Dovico.TrackITAPI.CRegion.Save(System.String,Dovico.TrackITAPI.CStateInfo)
Function Overview:
Saves region information to the database. xml should be in the format region.xsd
Parameter List:
sXml - string - string of xml in the format region.xsd
siState - CStateInfo - State information needed to process the transaction
Returns
A string of xml containing the IDs of inserted and updated items.
Example:
// build up xml to create a new region in the database
string sXml = "<Region:REGIONS xmlns:Region=\"http://www.dovico.com/schemas/region.xsd\">";
sXml += "<REGION ID=\"-1\" NAME=\"Example Region\" DESC=\"description for region\" ";
sXml += "LABOR=\"15\" GOODS=\"10\" ARCHIVE=\"F\" OUTSIDE=\"\" HIDE=\"F\"/></Region:REGIONS>";
// call the RegionSave method
wsapi.MethodInvoke("RegionSave", sXml, stToken);