public string UpdateInventoryProductGroup(string InputValue) { ServiceREF.InventoryService.InventoryService service = new ServiceREF.InventoryService.InventoryService(); ServiceREF.InventoryService.CApplicationMessage message = service.UpdateInventoryItemGroup(InputValue); StringBuilder ret = new StringBuilder(); ret.Append("{"); ret.AppendFormat("ID:'{0}',\n", message.ID); ret.AppendFormat("Code:'{0}',\n", message.Code); ret.AppendFormat("Name:'{0}'\n", message.Name); ret.Append("}"); return(ret.ToString()); }
public string DeleteInventoryProductGroup(string InputValue) { StringBuilder ret = new StringBuilder(); ServiceREF.InventoryService.CApplicationMessage message = null; string[] str = InputValue.Split('^'); for (int i = 0; i < str.Length; i++) { string pInput = string.Format("<InputValue UserID='{0}' ID='{1}' Action='DELETE'/>", 1, str[i]); ServiceREF.InventoryService.InventoryService service = new ServiceREF.InventoryService.InventoryService(); message = service.UpdateInventoryItemGroup(pInput); } ret.Append("{"); ret.AppendFormat("ID:'{0}',\n", message.ID); ret.AppendFormat("Code:'{0}',\n", message.Code); ret.AppendFormat("Name:'{0}'\n", message.Name); ret.Append("}"); return(ret.ToString()); }
public string UpdateAction(string funcPara, string instant) { string InputValue = CXmlPara.CreatePara(funcPara); switch (instant) { case "Customer": ServiceREF.CustomerService.CApplicationMessage cmessage = customerService.UpdateCustomerGroup(InputValue); return(CJson.SerializeObject(cmessage)); case "Product": ServiceREF.InventoryService.CApplicationMessage imessage = inventoryService.UpdateInventoryItemGroup(InputValue); return(CJson.SerializeObject(imessage)); case "Vendor": ServiceREF.VendorService.CApplicationMessage vmessage = vendorService.UpdateVendorGroup(InputValue); return(CJson.SerializeObject(vmessage)); } return("[{}]"); }