From af5ed4d676b880e3ba5ada0e3a2568018fd40c0d Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期三, 11 三月 2026 15:39:57 +0800
Subject: [PATCH] 去除 开工单 配置项

---
 Pub_Class/CustomerCls/ClsXt_SystemParameter.cs           |   11 -----------
 Pub_Class/CustomerCls/ClsXt_SystemParameterMain.cs       |    3 ---
 WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs |   26 --------------------------
 3 files changed, 0 insertions(+), 40 deletions(-)

diff --git a/Pub_Class/CustomerCls/ClsXt_SystemParameter.cs b/Pub_Class/CustomerCls/ClsXt_SystemParameter.cs
index 50d9417..38a9f38 100644
--- a/Pub_Class/CustomerCls/ClsXt_SystemParameter.cs
+++ b/Pub_Class/CustomerCls/ClsXt_SystemParameter.cs
@@ -2784,12 +2784,6 @@
                         omodel.Xt_grdAlignment_WMES_RemoteTransFileCTL = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]);
                     }
 
-                    // 是否启用开工单首检控制
-                    if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MESBeginWorkBill_FirstCheckCtl")
-                    {
-                        omodel.Sc_MESBeginWorkBill_FirstCheckCtl = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]);
-                    }
-
                     if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "QC_PatrolProcCheckOtherBill_FirstCheckCtl")
                     {
                         omodel.QC_PatrolProcCheckOtherBill_FirstCheckCtl = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]);
@@ -5221,11 +5215,6 @@
                     }
 
                     // 是否启用开工单首检控制
-                    if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MESBeginWorkBill_FirstCheckCtl")
-                    {
-                        omodel.Sc_MESBeginWorkBill_FirstCheckCtl = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]);
-                    }
-
                     if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "QC_PatrolProcCheckOtherBill_FirstCheckCtl")
                     {
                         omodel.QC_PatrolProcCheckOtherBill_FirstCheckCtl = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]);
diff --git a/Pub_Class/CustomerCls/ClsXt_SystemParameterMain.cs b/Pub_Class/CustomerCls/ClsXt_SystemParameterMain.cs
index 59c519f..cfe9986 100644
--- a/Pub_Class/CustomerCls/ClsXt_SystemParameterMain.cs
+++ b/Pub_Class/CustomerCls/ClsXt_SystemParameterMain.cs
@@ -869,9 +869,6 @@
         // 多语言
         public string Xt_grdAlignment_WMES_RemoteTransFileCTL; // APP 是否启用远程获取翻译文件功能
 
-        // 开工单 首检控制
-        public string Sc_MESBeginWorkBill_FirstCheckCtl; // 开工单 是否启用 首检控制
-
         // 巡检单 首检控制
         public string QC_PatrolProcCheckOtherBill_FirstCheckCtl; // 巡检单 是否启用 首检控制
 
diff --git a/WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs b/WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs
index 8d605b1..f9a047e 100644
--- a/WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs
+++ b/WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs
@@ -1631,32 +1631,6 @@
                 objJsonResult.data = null;
                 return objJsonResult;
             }
-
-            oSystemParameter.ShowBill(ref DBUtility.ClsPub.sErrInfo);
-            if(oSystemParameter.omodel.Sc_MESBeginWorkBill_FirstCheckCtl == "Y")
-            {
-                // 鍒ゆ柇鏄惁鍏佽 鏈妫�鍚堟牸鍓嶅紑宸�
-                DataSet ds = oCN.RunProcReturn($@"select top 1 * from QC_FirstPieceCheckBillMain 
-                            where HMainSourceBillType = '{HBillType}' and HMainSourceBillNo = '{HSourceBillNo}'
-                order by HDate desc", "QC_FirstPieceCheckBillMain");
-
-                if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0)
-                {
-                    objJsonResult.code = "0";
-                    objJsonResult.count = 0;
-                    objJsonResult.Message = "妫�楠岄浠舵楠屽け璐ワ紝璇ュ崟鎹病鏈夊仛瀵瑰嵃鐨勯妫�鍗�";
-
-                    return objJsonResult;
-                }
-
-                if (ds.Tables[0].Rows[0]["HLastResult"].ToString() == "0")
-                {
-                    objJsonResult.code = "0";
-                    objJsonResult.count = 0;
-                    objJsonResult.Message = "棣栦欢妫�澶辫触锛岄浠舵妫�楠岀粨鏋滀负涓嶅悎鏍硷紝涓嶅厑璁镐笅鎺ㄥ崟鎹�";
-                    return objJsonResult;
-                }
-            }
             
 
             //鍒ゆ柇浼氳鏈熸槸鍚﹀悎鐞�

--
Gitblit v1.9.1