ChangeAccrual

 

Dovico.TrackITAPI.CEmployee.ChangeAccrual(System.String,Dovico.TrackITAPI.CStateInfo)

 

 

Function Overview:

ChangeAccrual takes xml in the format changeaccrual.xsd that allows you to specify the employee for which the change is being made, and the ID of the new time and attendance rule.

 

 

Parameter List:

sXml - string - xml for change the time and attendance rule in the format changeaccrual.xsd

siState - CStateInfo - State information needed to process the transaction

 

Returns

A string containing the time and attendance accrual results for this employee in the same format returned from EmployeeGetInfo.

 

Example:

// build up xml to change an employees time and attendance rule

// the TIMATT attribute specifies the ID of the new rule

string sXml = "<ChangeAccrual:CHANGEACCRUAL xmlns:ChangeAccrual=\"http://www.dovico.com/schemas/changeaccrual.xsd\" ";

sXml += "EMPLOYEE=\"100\" TIMATT=\"100\"/>";

// call the EmployeeChangeAccrual method

wsapi.MethodInvoke("EmployeeChangeAccrual", sXml, stToken);