From 2b2034300fc709f3eda43c14fe700bb6b8707e5d Mon Sep 17 00:00:00 2001 From: duhe <226547893@qq.com> Date: 星期一, 19 八月 2024 16:10:13 +0800 Subject: [PATCH] 乔一进站单、出站单:数量控制 --- WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs | 60 ++++++++++++++++++++++++++++++------------------------------ 1 files changed, 30 insertions(+), 30 deletions(-) diff --git a/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs b/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs index 1db60e5..343b39e 100644 --- a/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs +++ b/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs @@ -466,36 +466,36 @@ //涓昏〃 //LogService.Write($"5.绯荤粺鎺у埗鏌ヨ鍒ゆ柇锛岀敤鏃�" + sw.Elapsed); - //ds = oCN.RunProcReturn("exec h_p_MES_StationOutBill_QtyCtrl " + HInterID + "", "h_p_MES_StationOutBill_QtyCtrl"); - //if (ds == null) - //{ - // oCN.RollBack(); - // objJsonResult.code = "0"; - // objJsonResult.count = 0; - // objJsonResult.Message = "鍒ゆ柇鏁伴噺澶辫触锛�"; - // objJsonResult.data = null; - // return objJsonResult; - //} - //LogService.Write($"5.1锛岀敤鏃�" + sw.Elapsed); - //if (ds.Tables[0].Rows.Count == 0) - //{ - // oCN.RollBack(); - // objJsonResult.code = "0"; - // objJsonResult.count = 0; - // objJsonResult.Message = "鍒ゆ柇鏁伴噺澶辫触锛�"; - // objJsonResult.data = null; - // return objJsonResult; - //} - //LogService.Write($"5.2锛岀敤鏃�" + sw.Elapsed); - //if (ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBack"]) == "2") - //{ - // oCN.RollBack(); - // objJsonResult.code = "0"; - // objJsonResult.count = 0; - // objJsonResult.Message = "鏁伴噺鎺у埗," + ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBackRemark"]); - // objJsonResult.data = null; - // return objJsonResult; - //} + ds = oCN.RunProcReturn("exec h_p_MES_StationOutBill_QtyCtrl " + HInterID + "", "h_p_MES_StationOutBill_QtyCtrl"); + if (ds == null) + { + oCN.RollBack(); + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍒ゆ柇鏁伴噺澶辫触锛�"; + objJsonResult.data = null; + return objJsonResult; + } + LogService.Write($"5.1锛岀敤鏃�" + sw.Elapsed); + if (ds.Tables[0].Rows.Count == 0) + { + oCN.RollBack(); + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍒ゆ柇鏁伴噺澶辫触锛�"; + objJsonResult.data = null; + return objJsonResult; + } + LogService.Write($"5.2锛岀敤鏃�" + sw.Elapsed); + if (ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBack"]) == "2") + { + oCN.RollBack(); + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏁伴噺鎺у埗," + ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBackRemark"]); + objJsonResult.data = null; + return objJsonResult; + } LogService.Write($"6.鍒ゆ柇缁撴潫锛岀敤鏃�" + sw.Elapsed); oCN.RunProc("exec h_p_Mes_ProcessExchangeRelationQty_Out " + HInterID + "," + num + ""); LogService.Write($"6.1锛岀敤鏃�" + sw.Elapsed); -- Gitblit v1.9.1