Dovico.TrackITAPI.CAssignment.SaveAdditionalInfo(System.String,Dovico.TrackITAPI.CStateInfo)
Function Overview:
This method allows you to specify an optional list of attributes to update for the assignment. You must pass in the assignment ID. All other information is optional. The xml should be in the format assignmentadditionalinfo.xsd
Parameter List:
sXml - string - xml containing properties to be updated for the assignment in the format assignmentadditionalinfo.xsd
siState - CStateInfo - State Information needed to process the transaction
Returns
An empty string reserved for future use.
Example:
// initialize an xml string for updating HOURS, ADJHOURS, EMPRATE, EMPCOST, PRORATE, START, FINISH AND WBS...
// note all these parameters are optional, so only include the ones you wish to update
// you can also optionally include overtime assignments
string sXml = "<AssignmentAdditionalInfo:ADDITIONALINFOS xmlns:AssignmentAdditionalInfo=\"http://www.dovico.com/schemas/assignmentadditionalinfo.xsd\">";
sXml += "<ADDITIONALINFO ID=\"100\" HOURS=\"2.0\" ADJHOURS=\"3.0\" EMPRATE=\"2.25\" EMPCOST=\"3.5\" PRORATE=\"3\" START=\"2003-05-05T00:00:00\" ";
sXml += "FINISH=\"2003-12-31T00:00:00\" WBS=\"TEST\"><OTCOST><ID>100</ID></OTCOST>";
sXml += "<OTRATE><ID>100</ID></OTRATE></ADDITIONALINFO></AssignmentAdditionalInfo:ADDITIONALINFOS>";
// call the method
wsapi.MethodInvoke("AssignmentSaveAdditionalInfo", sXml, stToken);