Example #1
0
        public string GetAutoStock(string Input)
        {
            ServiceREF.InventoryService.COutputValue     pageinfo = new ServiceREF.InventoryService.COutputValue();
            ServiceREF.InventoryService.InventoryService service  = new ServiceREF.InventoryService.InventoryService();

            CStock[]      list = service.GetInventoryStockList(Input, ref pageinfo);
            StringBuilder ret  = new StringBuilder();

            if (list != null && list.Length > 0)
            {
                foreach (var item in list)
                {
                    ret.AppendFormat("{0}|{1}|{2}\n", item.ID, item.Code, item.Name);
                }
            }
            string result = string.Empty;

            if (ret.Length > 0)
            {
                result = ret.ToString(0, ret.Length - 1);
            }
            return(result);
        }
Example #2
0
 public CStockUI()
 {
     service = new ServiceREF.InventoryService.InventoryService();
 }
Example #3
0
 public CItemUI()
 {
     service = new ServiceREF.InventoryService.InventoryService();
 }