From e6392974c2936259b330aa0dfe277751b4e23896 Mon Sep 17 00:00:00 2001
From: YL <YL@LAPTOP-SE03PLUR>
Date: 星期五, 03 九月 2021 18:45:19 +0800
Subject: [PATCH] nothing

---
 Pub_Class/CustomerCls/ClsXt_SystemParameter.cs           |    4 ++--
 Pub_Class/CustomerCls/ClsXt_SystemParameterMain.cs       |    2 ++
 WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs |   46 +++++++++++++++++++++++-----------------------
 3 files changed, 27 insertions(+), 25 deletions(-)

diff --git a/Pub_Class/CustomerCls/ClsXt_SystemParameter.cs b/Pub_Class/CustomerCls/ClsXt_SystemParameter.cs
index 5c0f20b..4fee0ba 100644
--- a/Pub_Class/CustomerCls/ClsXt_SystemParameter.cs
+++ b/Pub_Class/CustomerCls/ClsXt_SystemParameter.cs
@@ -634,9 +634,9 @@
                         omodel.MES_StationOutBill_QtyCtl = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]);
                     }
                     //出战单判断本道工序是否做首件检验 
-                    if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "MES_StationOutBill_ProcessCheckCtl")
+                    if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "MES_StationOutBill_FirstCheckOut")
                     {
-                        omodel.MES_StationOutBill_ProcessCheckCtl = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]);
+                        omodel.MES_StationOutBill_FirstCheckOut = 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 093b951..6bd830f 100644
--- a/Pub_Class/CustomerCls/ClsXt_SystemParameterMain.cs
+++ b/Pub_Class/CustomerCls/ClsXt_SystemParameterMain.cs
@@ -169,9 +169,11 @@
         public string MES_StationInBill_QtyCtl;                 //进站数量不能大于上道出站汇总合格数
         public string MES_StationInBill_OneCtl;                 //一张流转卡只允许一次进站
         public string MES_StationInBill_FirstCheckOut;          //必须首件检验通过才能保存单据
+        public string MES_StationInBill_ProcessCheckCtl;        //进站单当前工序的上道工序是否做工序检验
         //出站单
         public string MES_StationOutBill_QtyCtl;                //出站数量不能大于本道进站汇总数
         public string MES_StationOutBill_ProcessCheckOut;          //必须工序检验通过才能保存单据
+        public string MES_StationOutBill_FirstCheckOut;       //出战单判断本道工序是否做首件检验 
         //不良品评审单
         public string QC_NoPassProdCheckBill_QtyCtl;            //不良品数不能大于出站单报废数量
         //委外发出 
diff --git a/WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs b/WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs
index a0d4199..6cc31a6 100644
--- a/WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs
+++ b/WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs
@@ -1079,29 +1079,29 @@
             ListModels oListModels = new ListModels();
             try
             {
-                //绯荤粺鍙傛暟  鐢熸垚鐢熶骇姹囨姤鍗曞墠鍒ゆ柇鏄惁棣栨
-                string sReturn = "";
-                if (oSystemParameter.ShowBill(ref sReturn) == true)
-                {
-                    if (oSystemParameter.omodel.Sc_ICMOReportBill_FirstCheckOut == "Y") //绯荤粺鍙傛暟   蹇呴』棣栦欢妫�楠岄�氳繃鎵嶈兘淇濆瓨鍗曟嵁
-                    {
-                        //绯荤粺鍙傛暟瀹℃牳,鍒欐牴鎹敓浜ц鍗曞彿锛屽叧鑱旈妫�妫�楠屽崟涓簮鍗曞彿鏌ユ壘妫�楠屽崟鏁版嵁锛屽垽鏂崟鎹姸鎬佹槸鍚﹀悎鏍�
-                        ds = oCN.RunProcReturn("select *   from QC_FirstPieceCheckBillMain where HICMOInterID='" + HICMOInterID + "' and HICMOEntryID='"+ HICMOEntryID + "'", "QC_FirstPieceCheckBillMain");
-                        if (ds.Tables[0].Rows.Count > 0) //鏈夐妫�妫�楠屽崟
-                        {
-                            int rows = ds.Tables[0].AsEnumerable().Where(item => item["HLastResult"].ToString().Equals("True")).Count(); //鍒ゆ柇褰撳墠鏁版嵁(涓�鏉℃垨澶氭潯)涓渶缁堝垽瀹氭槸鍚︽湁鍚堟牸
-                            if (rows <= 0)
-                            {
-                                objJsonResult.code = "0";
-                                objJsonResult.count = 0;
-                                objJsonResult.Message = "褰撳墠宸ュ崟棣栨妫�楠屽垽瀹氫笉鍚堟牸,鏃犳硶鐢熸垚姹囨姤鍗曪紒";
-                                objJsonResult.data = null;
-                                return objJsonResult;
-                            }
-                        }
-                    }
-                }
-               
+                //绯荤粺鍙傛暟 鐢熸垚鐢熶骇姹囨姤鍗曞墠鍒ゆ柇鏄惁棣栨
+                //string sReturn = "";
+                //if (oSystemParameter.ShowBill(ref sReturn) == true)
+                //{
+                //    if (oSystemParameter.omodel.Sc_ICMOReportBill_FirstCheckOut == "Y") //绯荤粺鍙傛暟   蹇呴』棣栦欢妫�楠岄�氳繃鎵嶈兘淇濆瓨鍗曟嵁
+                //    {
+                //        //绯荤粺鍙傛暟瀹℃牳,鍒欐牴鎹敓浜ц鍗曞彿锛屽叧鑱旈妫�妫�楠屽崟涓簮鍗曞彿鏌ユ壘妫�楠屽崟鏁版嵁锛屽垽鏂崟鎹姸鎬佹槸鍚﹀悎鏍�
+                //        ds = oCN.RunProcReturn("select *   from QC_FirstPieceCheckBillMain where HICMOInterID='" + HICMOInterID + "' and HICMOEntryID='" + HICMOEntryID + "'", "QC_FirstPieceCheckBillMain");
+                //        if (ds.Tables[0].Rows.Count > 0) //鏈夐妫�妫�楠屽崟
+                //        {
+                //            int rows = ds.Tables[0].AsEnumerable().Where(item => item["HLastResult"].ToString().Equals("True")).Count(); //鍒ゆ柇褰撳墠鏁版嵁(涓�鏉℃垨澶氭潯)涓渶缁堝垽瀹氭槸鍚︽湁鍚堟牸
+                //            if (rows <= 0)
+                //            {
+                //                objJsonResult.code = "0";
+                //                objJsonResult.count = 0;
+                //                objJsonResult.Message = "褰撳墠宸ュ崟棣栨妫�楠屽垽瀹氫笉鍚堟牸,鏃犳硶鐢熸垚姹囨姤鍗曪紒";
+                //                objJsonResult.data = null;
+                //                return objJsonResult;
+                //            }
+                //        }
+                //    }
+                //}
+
                 string sHSourceType = HSourceBillType;
                 string  BillType = "3711";  //鍗曟嵁绫诲瀷 (鐢熶骇姹囨姤鍗�)
                 //寰楀埌mainid

--
Gitblit v1.9.1