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); }
public CStockUI() { service = new ServiceREF.InventoryService.InventoryService(); }
public CItemUI() { service = new ServiceREF.InventoryService.InventoryService(); }