From db94e0405f124e189530a5b0ee454960dddd111d Mon Sep 17 00:00:00 2001 From: yxj <1qaz@123> Date: 星期五, 06 一月 2023 16:58:57 +0800 Subject: [PATCH] 条码系统增加单据日期是否取界面递入日期系统参数,销售出库、生产入库上传方法日期递入值修改 --- WebAPI/Service/LuBaoSevice.cs | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/WebAPI/Service/LuBaoSevice.cs b/WebAPI/Service/LuBaoSevice.cs index 0a1eea8..a9a261b 100644 --- a/WebAPI/Service/LuBaoSevice.cs +++ b/WebAPI/Service/LuBaoSevice.cs @@ -277,5 +277,26 @@ return dataSet; } + + /// <summary> + /// 鐗╂枡璁剧疆鏍规嵁id鑾峰彇淇℃伅 + /// </summary> + public static ApiResult<DataSet> GetGy_MaterialBillDetail(string HID) + { + if (string.IsNullOrEmpty(HID)) + return new ApiResult<DataSet> { code = -1, msg = "ID涓嶈兘涓虹┖" }; + var dataSet = Gy_MaterialDb(HID); + if (dataSet == null || dataSet.Tables[0].Rows.Count == 0) + return new ApiResult<DataSet> { code = -1, msg = "涓嶅瓨鍦ㄦ鐗╂枡鏁版嵁" }; + return new ApiResult<DataSet> { code = 1, msg = "鏌ヨ鎴愬姛", data = dataSet }; + } + + public static DataSet Gy_MaterialDb(string HID) + { + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + var dataSet = oCN.RunProcReturn("select top 1 * from h_v_Edit_Gy_MaterialList where HItemID= " + HID + " ", "h_v_Edit_Gy_MaterialList"); + return dataSet; + } + } } \ No newline at end of file -- Gitblit v1.9.1