From aa4f194b945670509478a60ed7f2d5a2858b8d93 Mon Sep 17 00:00:00 2001 From: yxj <yxj@hz-kingdee.com> Date: 星期四, 05 九月 2024 13:40:23 +0800 Subject: [PATCH] 新增条码生成模块,物料基础资料返回时增加返回辅助属性、批号、条码类型、生产日期等 --- WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs b/WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs index 5e32490..99abdc1 100644 --- a/WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs +++ b/WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs @@ -944,7 +944,14 @@ { try { - ds = new SQLHelper.ClsCN().RunProcReturn("select * from Sc_ICMOBillStatus_Tmp" + sWhere, "Sc_ICMOBillStatus_Tmp"); + Dictionary<object, object> dic = Newtonsoft.Json.JsonConvert.DeserializeObject<Dictionary<object, object>>(sWhere); + + string HSourceID = dic["HSourceID"].ToString(); + string HICMOBillNo = dic["HICMOBillNo"].ToString(); + string HInterID = dic["HInterID"].ToString(); + string Type = dic["type"].ToString(); + + ds = new SQLHelper.ClsCN().RunProcReturn("exec h_p_IpadIndexButton '"+ HSourceID + "','" + HICMOBillNo + "','" + HInterID + "','" + Type + "'", "h_p_IpadIndexButton"); if (ds.Tables[0].Rows.Count > 0) { objJsonResult.code = "1"; -- Gitblit v1.9.1