From 14bc9725c38aec848bfecb0d11b0bd8fd6193c5b Mon Sep 17 00:00:00 2001 From: zrg <z18737863051@163.com> Date: 星期三, 21 八月 2024 16:01:33 +0800 Subject: [PATCH] 增加 生产日需求模具报表方法,出站单增加系统参数(不是开工状态不能出站),设备工艺产数点检(不是开工状态不能出站),报工台判断单据状态进行优化,改为存储过程,是可配的 --- WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs b/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs index d1cdbb4..76cbab4 100644 --- a/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs +++ b/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs @@ -277,6 +277,19 @@ return objJsonResult; } } + //鍒ゆ柇褰撳墠宸ュ崟鏄惁寮�宸� + else if (oSystemParameter.omodel.MES_StationOutBill_MustBeginWorkCtl == "Y") + { + ds = oCN.RunProcReturn("select * from Sc_ICMOBillStatus_Tmp where HSourceID = '" + HSourceID + "' and HICMOBillNo = '" + HICMOBillNo + "' and HInterID = '" + HICMOInterID + "' and hicmostatus =1", "Sc_ICMOBillStatus_Tmp"); + if (ds.Tables[0].Rows[0]["HICMOStatus"].ToString() != "1") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "褰撳墠宸ュ崟涓嶆槸寮�宸ョ姸鎬佷笉鑳芥眹鎶ワ紒"; + objJsonResult.data = null; + return objJsonResult; + } + } else { if (HQty + HWasterQty <= 0) { -- Gitblit v1.9.1