public string SearchCurrency(string InputValue) { string pageinfo = ""; ServiceREF.InventoryService.InventoryService service = new ServiceREF.InventoryService.InventoryService(); string inventoryUnitList = service.GetInventoryUnitListInCSV(InputValue, ref pageinfo); return(inventoryUnitList); }
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 GetInventoryListGroup(string InputValue) { ServiceREF.InventoryService.InventoryService service = new ServiceREF.InventoryService.InventoryService(); ServiceREF.InventoryService.CItemGroup iItem = service.GetInventoryItemGroup(InputValue); StringBuilder ret = new StringBuilder(); ret.Append("{"); ret.AppendFormat("ID:'{0}',\n", iItem.ID); ret.AppendFormat("Code:'{0}',\n", iItem.Code); ret.AppendFormat("Name:'{0}',\n", iItem.Name); ret.AppendFormat("Active:'{0}',\n", iItem.Active); ret.AppendFormat("Description:'{0}'\n", iItem.Description); 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 CGroupBase() { customerService = new ServiceREF.CustomerService.CustomerService(); inventoryService = new ServiceREF.InventoryService.InventoryService(); vendorService = new ServiceREF.VendorService.VendorService(); }