コード例 #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);
        }
コード例 #2
0
 public CStockUI()
 {
     service = new ServiceREF.InventoryService.InventoryService();
 }
コード例 #3
0
ファイル: CItemUI.cs プロジェクト: phinamcn03/ttdk
 public CItemUI()
 {
     service = new ServiceREF.InventoryService.InventoryService();
 }