Dovico.TrackITAPI.CAssignment.BulkAssign(System.String,Dovico.TrackITAPI.CStateInfo)
Function Overview:
This allows the caller to create one or more assignments with a very small amount of information. It will default the assignments to the employees wage, rate as well as take into account task prorating and any overtime assignments for the employees wage and charge. If the assignment already exists, it will not be added again and information about the assignment that could not be made will be returned. Note the ASSIGNEMPLOYEE attribute in the ASSIGNMENTS root element. This should be set to T if assigning by employee or F if assigning by team.
Parameter List:
sXml - string - string of xml containing assignments to be made in the format bulkassign.xsd.
siState - CStateInfo - state information needed to process the transaction
Returns
a string of xml containing assignments that could not be inserted because they already exist
Example:
// initialize a string of xml containing an employee assignment and a task assignment to that employee
string sXml = "<BulkAssign:ASSIGNMENTS xmlns:BulkAssign=\"http://www.dovico.com/schemas/bulkassign.xsd\" ASSIGNEMPLOYEE=\"T\">";
sXml += "<ASSIGNMENT PROJECT=\"99\" EMPLOYEE=\"100\" TASK=\"0\" GROUP=\"0\" GPAR=\"0\"/>";
sXml += "<ASSIGNMENT PROJECT=\"99\" EMPLOYEE=\"100\" TASK=\"100\" GROUP=\"0\" GPAR=\"0\"/>";
sXml += "</BulkAssign:ASSIGNMENTS>";
// call the method
wsapi.MethodInvoke("AssignmentBulkAssign", sXml, stToken);