From 5b4a35e3fe0e5faa08233d23cd5efddebb5dd220 Mon Sep 17 00:00:00 2001
From: llj <132905093+newwwwwwtree@users.noreply.github.com>
Date: 星期四, 09 四月 2026 15:07:20 +0800
Subject: [PATCH] 器具长宽高修复

---
 WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs |   38 +++++++-------------------------------
 1 files changed, 7 insertions(+), 31 deletions(-)

diff --git a/WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs b/WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs
index 8d605b1..1101998 100644
--- a/WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs
+++ b/WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs
@@ -465,7 +465,8 @@
         /// <returns></returns>
         [Route("Sc_MESBeginWorkBill/SaveGetMESBeginWorkFrom_KS")]
         [HttpGet]
-        public object SaveGetMESBeginWorkFrom_KS(string HBillType,int HSourceInterID,int HSourceEntryID,string HSourceBillNo,string user,string HSourceBillType)
+        public object SaveGetMESBeginWorkFrom_KS(string HBillType,int HSourceInterID,int HSourceEntryID,
+            string HSourceBillNo,string user,string HSourceBillType)
         {
 
          
@@ -1618,7 +1619,8 @@
         #region 鎶ュ伐骞冲彴蹇嵎寮�宸�
         [Route("Sc_MESBeginWorkBill/FastBeginWorkBill")]
         [HttpGet]
-        public object FastBeginWorkBill(string HBillType, int HSourceInterID, int HSourceEntryID, string HSourceBillNo, string HSourceBillType,string user)
+        public object FastBeginWorkBill(string HBillType, int HSourceInterID, int HSourceEntryID,
+            string HSourceBillNo, string HSourceBillType,string user)
         {
 
 
@@ -1630,32 +1632,6 @@
                 objJsonResult.Message = "鏃犱繚瀛樻潈闄愶紒";
                 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;
-                }
             }
             
 
@@ -1701,7 +1677,7 @@
                 {
                     ClsSc_MESBeginWorkBillMain.HWorkShiftID = int.Parse(set.Tables[0].Rows[0]["HInterID"].ToString());
                 }
-                ds = oCN.RunProcReturn("select * from h_v_Cj_GetDefValByUser where 鐢ㄦ埛鍚嶇О='" + user + "'", "h_v_xt_UserAssociationSelect");
+                ds = oCN.RunProcReturn("select * from h_v_Cj_GetDefValByUser where 鐢ㄦ埛鍚嶇О='" + user + "'", "h_v_Cj_GetDefValByUser");
 
                 //if (ds.Tables[0].Rows[0]["HGroupID"].ToString() == "0")
                 //{
@@ -1789,10 +1765,10 @@
                 {
                     if (oSystemParameter.omodel.WMS_CampanyName == "鍗庤垷")
                     {                       
-                        LogService.Write("鑷姩鐢熸垚宸ヤ綔鑱旂郴鍗�...");
+                        LogService.Write("鑷姩鐢熸垚宸ヤ綔鑱旂郴鍗�..."+ oBill.omodel.HInterID);
 
                         //鑷姩鐢熸垚宸ヤ綔鑱旂郴鍗�
-                        ds2 = oCN.RunProcReturn("exec h_p_OA_WorkLinkBill_Create " + ds.Tables[0].Rows[0]["HInterID"].ToString() + "," + 3772, "h_p_OA_WorkLinkBill_Create");
+                        ds2 = oCN.RunProcReturn("exec h_p_OA_WorkLinkBill_Create " + oBill.omodel.HInterID + "," + 3787, "h_p_OA_WorkLinkBill_Create");
                     }
                 }
 

--
Gitblit v1.9.1