From 8b2b716130c13264c2138cbd0d9cd44e0fca524a Mon Sep 17 00:00:00 2001 From: yangle <admin@YINMOU> Date: 星期一, 19 六月 2023 08:51:16 +0800 Subject: [PATCH] 1 --- WebAPI/Controllers/SCGL/日计划管理/Sc_JIT_ComplementGoodBillController.cs | 35 +++++++++++++++++++++-------------- 1 files changed, 21 insertions(+), 14 deletions(-) diff --git "a/WebAPI/Controllers/SCGL/\346\227\245\350\256\241\345\210\222\347\256\241\347\220\206/Sc_JIT_ComplementGoodBillController.cs" "b/WebAPI/Controllers/SCGL/\346\227\245\350\256\241\345\210\222\347\256\241\347\220\206/Sc_JIT_ComplementGoodBillController.cs" index 2a887c1..b6b05a8 100644 --- "a/WebAPI/Controllers/SCGL/\346\227\245\350\256\241\345\210\222\347\256\241\347\220\206/Sc_JIT_ComplementGoodBillController.cs" +++ "b/WebAPI/Controllers/SCGL/\346\227\245\350\256\241\345\210\222\347\256\241\347\220\206/Sc_JIT_ComplementGoodBillController.cs" @@ -21,6 +21,7 @@ private json objJsonResult = new json(); SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); DataSet ds; + Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); #region 鏃ヨ鍒掑钩鍙板熀纭�璧勬枡 杞﹂棿浠撳簱瀵圭収 @@ -419,6 +420,8 @@ public json AddPODBillSub(string msg3) { + string Ret = ""; + oSystemParameter.ShowBill(ref Ret); omodelPODsub = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Cg_PODemandPlanConfigBillSub>>(msg3); foreach (Models.Cg_PODemandPlanConfigBillSub oSub in omodelPODsub) @@ -447,21 +450,25 @@ objJsonResult.data = null; return objJsonResult; } - if (oSub.HLeadTime_Sec == 0 || oSub.HLeadTime_Sec == null) + + if (oSystemParameter.omodel.WMS_CampanyName != "甯呭▉") { - objJsonResult.code = "0"; - objJsonResult.count = 0; - objJsonResult.Message = " JIT鍒拌揣鍓嶇疆鏈熶笉鑳戒负绌�"; - objJsonResult.data = null; - return objJsonResult; - } - if (oSub.HDeliveryDaysCtrl == 0 || oSub.HDeliveryDaysCtrl == null) - { - objJsonResult.code = "0"; - objJsonResult.count = 0; - objJsonResult.Message = " JIT閫佽揣鎺у埗澶╂暟涓嶈兘涓虹┖"; - objJsonResult.data = null; - return objJsonResult; + if (oSub.HLeadTime_Sec == 0 || oSub.HLeadTime_Sec == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = " JIT鍒拌揣鍓嶇疆鏈熶笉鑳戒负绌�"; + objJsonResult.data = null; + return objJsonResult; + } + if (oSub.HDeliveryDaysCtrl == 0 || oSub.HDeliveryDaysCtrl == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = " JIT閫佽揣鎺у埗澶╂暟涓嶈兘涓虹┖"; + objJsonResult.data = null; + return objJsonResult; + } } } -- Gitblit v1.9.1