Update

 

Dovico.TrackITAPI.CAssignment.Update(System.String,Dovico.TrackITAPI.CStateInfo)

 

 

Function Overview:

This method updates properties in assignment (budget) based on the ACTION type. The action type can be specified as CONSTANTS.ASSIGN_UPDATE*. When the action type is ASSIGN_UPDATE_PROPERTIES, the following must be specified: ASSIGNEMPLOYEE, EMPLOYEEID, TASKID, PROJECTID, HOURS, ADJHOURS, EMPRATE, PRORATE, TRABILLALBE. When ACTION is ASSIGN_UPDATE_HIDE, the following must be specified (ASSIGNEMPLOYEE, EMPLOYEEID, TASKID, PROJECTID, HIDE). When the action is ASSIGN_UPDATE_TOTAL, the following must be specified (PROJECTID, PROJECTTOTAL). If you are missing a required attribute for the ACTION type an exception will be thrown.

 

 

Parameter List:

sXml - string - xml for the information to update in the format assignmentupdate.xsd

siState - CStateInfo - State Information needed to process the transaction

 

Returns

An empty string reserved for future use

 

Example:

string sXml;

// initialize an xml string for updating HOURS, ADJHOURS, PRORATE and EMPRATE

sXml = "<AssignmentUpdate:ASSIGNMENTUPDATE xmlns:AssignmentUpdate=\"http://www.dovico.com/schemas/assignmentupdate.xsd\" ACTION=\"P\" ASSIGNEMPLOYEE=\"T\" PROJECTID=\"100\" TASKID=\"100\" EMPLOYEEID=\"115\" HOURS=\"10\" ADJHOURS=\"10\" PRORATE=\"10\" EMPRATE=\"10\ TRABILLABLE=\"T\""/>";

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

// initialize an xml string for updating the HIDE value of an assignment

sXml = "<AssignmentUpdate:ASSIGNMENTUPDATE xmlns:AssignmentUpdate=\"http://www.dovico.com/schemas/assignmentupdate.xsd\" ACTION=\"H\" ASSIGNEMPLOYEE=\"F\" PROJECTID=\"100\" TASKID=\"100\" EMPLOYEEID=\"100\" HIDE=\"T\"/>";

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

// initialize xml for updating the total hours on estimates for a project

sXml = "<AssignmentUpdate:ASSIGNMENTUPDATE xmlns:AssignmentUpdate=\"http://www.dovico.com/schemas/assignmentupdate.xsd\" ACTION=\"T\" PROJECTID=\"100\" PROJECTTOTAL=\"100\"/>";

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