Dovico.TrackITAPI.CEstimatedExpense.Save(System.String,Dovico.TrackITAPI.CStateInfo)
Function Overview:
Saves estimated expenses information specified in the format estexp.xsd
Parameter List:
sXml - string - string of xml containing estimated expense information to be saved in the format estexp.xsd
siState - CStateInfo - State information needed to process the transaction
Returns
A string of xml containing the IDs of inserted and updated estimated expenses.
Example:
// build up xml to insert a new estimated expense
string sXml = "<EstimatedExpense:ESTEXPS xmlns:EstimatedExpense=\"http://www.dovico.com/schemas/estexp.xsd\">";
sXml += "<ESTEXP ID=\"-1\" PROJECT=\"100\" GROUP=\"109\" DATE=\"2003-01-01T00:00:00\" AMOUNT=\"100.00\" ";
sXml += "DESC=\"example description\" OUTSIDE=\"\"/></EstimatedExpense:ESTEXPS>";
// call the EstimatedExpenseSave method
wsapi.MethodInvoke("EstimatedExpenseSave", sXml, stToken);