SIMS 7 - TPStudentBehaviour
This interface gets information of all the achievements associated with the personId [student] passed as input to the interface. It gets all the achievements of the student valid between the date ranges supplied. Sample code and output from this interface is shown below
This interface gets information of all the behaviours associated with the personId [student] passed as input to the interface. It gets the behaviours valid between the date ranges supplied. Sample code and output from this interface is shown below
TPStudentBehaviour behInfo = new TPStudentBehaviour();
string data = behInfo.GetXmlBehaviours(6420, DateTime.Parse("14/07/2009"), DateTime.Parse("06/01/2010"));
Output
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<Behaviours>
<Behaviour>
<PersonID>6420</PersonID>
<BehaviourType>Bullying</BehaviourType>
<BehaviourDate>2010-01-04T00:00:00</BehaviourDate>
<Points>1</Points>
<Action>Refer to Head of Department</Action>
<ActionDate>2010-01-04T00:00:00</ActionDate>
<Comments />
</Behaviour>
<Behaviour>
<PersonID>6420</PersonID>
<BehaviourType>Fighting</BehaviourType>
<BehaviourDate>2010-01-05T00:00:00</BehaviourDate>
<Points>1</Points>
<Action>Discussed with Pupil</Action>
<ActionDate>2010-01-05T00:00:00</ActionDate>
<Comments />
</Behaviour>
<Behaviour>
<PersonID>6420</PersonID>
<BehaviourType>Damage to Property</BehaviourType>
<BehaviourDate>2009-07-14T00:00:00</BehaviourDate>
<Points>1</Points>
<Action>Lunchtime Detention</Action>
<ActionDate>2009-09-01T00:00:00</ActionDate>
<Comments />
</Behaviour>
</Behaviours>