From e9400c84c89638423bdb95cc102865926f925dcd Mon Sep 17 00:00:00 2001 From: jhz <jinghz@oceic.com> Date: 星期二, 12 七月 2022 18:20:13 +0800 Subject: [PATCH] 系统参数按组织设置 --- WebAPI/Controllers/ProductInController.cs | 41 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 41 insertions(+), 0 deletions(-) diff --git a/WebAPI/Controllers/ProductInController.cs b/WebAPI/Controllers/ProductInController.cs index a85280a..2c655bb 100644 --- a/WebAPI/Controllers/ProductInController.cs +++ b/WebAPI/Controllers/ProductInController.cs @@ -168,6 +168,47 @@ } } + //缂撳瓨鍒楄〃鏌ヨ鍔熻兘 + [Route("ProductInBillList/list1")] + [HttpGet] + public object list1(string BillType, string HBillNo, string HSourceBillNo) + { + try + { + if (HSourceBillNo == null) + { + HSourceBillNo = ""; + } + WebS.WebService1 oWebs = new WebS.WebService1(); + ds = oWebs.GetKf_ICStockBillQueryList(BillType, HBillNo, HSourceBillNo); + if (ds == null || ds.Tables[0].Rows.Count <= 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�"; + objJsonResult.data = null; + return objJsonResult; + //DBUtility.ClsPub.MessageBeep((int)DBUtility.ClsPub.BeepType.Warning); + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 1; + objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + /// <summary> /// 鍏朵粬鍑哄簱鏍¢獙鎵弿鍗曟嵁鍙�/鐩存帴璋冪敤webservice -- Gitblit v1.9.1