Dovico.TrackITAPI.CSubmit.SubmitInfo(System.String,Dovico.TrackITAPI.CStateInfo)
Function Overview:
Call this method when you are ready to submit information from TEMPTRANS or TEMPACTEXP to the workflow process. The information submitted is in form submitinfo.xsd. You need the Employee ID, the from date, the to date, the sheet title, and the type of information, and sheet type (CONSTANTS.SHEET_TYPE_TEMPTRANS or CONSTANTS.SHEET_TYPE_TEMPACTEXP).
Parameter List:
sXml - string - xml for what to submit in the format submitinfo.xsd
siState - CStateInfo - State Information needed to process the transaction
Returns
A string of xml containing all the sheets that have been created to route entries through the workflow process. If there was no workflow to be followed the info is automatically approved and no sheet ids will be returned.
Example:
// build up xml to submit a block of unsubmitted time between Jan 1, 2003
// to Jan 1, 2004. Note the TYPE attribute which is used to determine whether
// you are submitting time or expenses.
string sXml = "<SubmitInfo:SUBMITINFO xmlns:SubmitInfo=\"http://www.dovico.com/schemas/submitinfo.xsd\" ";
sXml += "EMPLOYEE=\"412\" FROM=\"2003-01-01T00:00:00\" TO=\"2004-01-01T00:00:00\" TITLE=\"this is a test timesheet submission\" TYPE=\"T\"/>";
// call the method which will submit the time to the workflow process
// if the time has no workflow, it will be automatically approved
wsapi.MethodInvoke("SubmitSubmitInfo", sXml, stToken);