© 2018 Capita Business Services Ltd. All rights reserved.

Capita Education Software Solutions is a trading name of Capita Business Services Ltd. Our Registered office is 30 Berners Street, London, W1T 3LR and our registered number is 02299747. Further information about Capita plc can be found in our legal statement.

SIMS 7 - TPStudentBehaviour

TPStudentBehaviour.GetXmlAchievements(int PersonId,DateTime startDate, DateTime endDate)

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

TPStudentBehaviour.GetXmlBehaviours(int PersonId,DateTime startDate,DateTime endDate)

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>

 

SIMS 7 RESOURCES

Related resources for SIMS 7