Ejemplo n.º 1
0
        public string SearchCurrency(string InputValue)
        {
            string pageinfo = "";

            ServiceREF.InventoryService.InventoryService service = new ServiceREF.InventoryService.InventoryService();
            string inventoryUnitList = service.GetInventoryUnitListInCSV(InputValue, ref pageinfo);

            return(inventoryUnitList);
        }
Ejemplo n.º 2
0
        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());
        }
Ejemplo n.º 3
0
        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());
        }
Ejemplo n.º 4
0
        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());
        }
Ejemplo n.º 5
0
 public CGroupBase()
 {
     customerService  = new ServiceREF.CustomerService.CustomerService();
     inventoryService = new ServiceREF.InventoryService.InventoryService();
     vendorService    = new ServiceREF.VendorService.VendorService();
 }