From 4c7cb8434be52f1de8557c069ebf82dfbfd8d6ee Mon Sep 17 00:00:00 2001
From: zrg <z1873@LAPTOP-EAVL132E>
Date: 星期三, 05 十一月 2025 15:29:46 +0800
Subject: [PATCH] 增加凯贝装箱单

---
 WebAPI/Controllers/条码管理/WEBSController.cs |  448 ++++++++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 372 insertions(+), 76 deletions(-)

diff --git "a/WebAPI/Controllers/\346\235\241\347\240\201\347\256\241\347\220\206/WEBSController.cs" "b/WebAPI/Controllers/\346\235\241\347\240\201\347\256\241\347\220\206/WEBSController.cs"
index fe66b91..05f8d6c 100644
--- "a/WebAPI/Controllers/\346\235\241\347\240\201\347\256\241\347\220\206/WEBSController.cs"
+++ "b/WebAPI/Controllers/\346\235\241\347\240\201\347\256\241\347\220\206/WEBSController.cs"
@@ -1410,6 +1410,50 @@
 
         #endregion
 
+        #region 鎵爜妯″潡    鎵弿婧愬崟 杩涜鎺у埗鍒ゆ柇
+        /// <summary>
+        /// 婧愬崟鍒楄〃淇℃伅锛屾牴鎹崟鎹被鍨嬨�佹簮鍗曠被鍨嬨�佺粍缁嘔D杩斿洖婧愬崟鍒楄〃淇℃伅
+        /// </summary>
+        /// <returns></returns>
+        [Route("WEBSController/GetSourceBillList_Control")]
+        [HttpGet]
+        public object GetSourceBillList_Control(string HBillType, string HSourceBillType, Int64 HStockOrgID, string HSourceBillNo, string HMater, string HCustom)
+        {
+            try
+            {
+                ds = oCn.RunProcReturn("exec h_p_WMS_GetSourceBillList_Control '" + HBillType + "','" + HSourceBillType + "'," + HStockOrgID.ToString() + ",'" + HSourceBillNo + "','" + HMater + "','" + HCustom + "'", "h_p_WMS_GetSourceBillList_Control");
+                if (ds == null || ds.Tables[0].Rows.Count == 0)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "鍒ゆ柇婧愬崟澶辫触锛�";
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
+                if(DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBack"]) != "0")
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBackRemark"]);
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
+                objJsonResult.code = "1";
+                objJsonResult.count = 1;
+                objJsonResult.Message = "鎴愬姛";
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+            catch (Exception e)
+            {
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "鑾峰彇婧愬崟鍗曟嵁淇℃伅澶辫触锛�" + e.ToString();
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+        }
+        #endregion
 
         #region 鎵爜妯″潡    杩斿洖婧愬崟鍒楄〃淇℃伅
         /// <summary>
@@ -3880,96 +3924,116 @@
         [HttpPost]
         public object set_SaveMoveStockBill_Json([FromBody] JObject oMain)
         {
-            var _value = oMain["oMain"].ToString();
-            string msg1 = _value.ToString();
-            try
+            //鑾峰彇绯荤粺鍙傛暟
+            string sErrMsg = "";
+            if (oSystemParameter.ShowBill(ref sErrMsg) == true)
             {
-                List<Model.ClsKf_MoveStockBillMain> lsmain = new List<Model.ClsKf_MoveStockBillMain>();
-                ListModels oListModels = new ListModels();
-                lsmain = oListModels.getMoveStockBillMainByJson(msg1);
-                WebS.ClsKf_MoveStockBillMain websLsmain = new WebS.ClsKf_MoveStockBillMain();
-                string sSourceType = lsmain[0].HMainSourceBillType;
-                websLsmain.HInterID = lsmain[0].HInterID;
-                websLsmain.HBillNo = lsmain[0].HBillNo;
-                websLsmain.HBillType = lsmain[0].HBillType;
-                websLsmain.HDate = lsmain[0].HDate;
-                websLsmain.HDeptID = lsmain[0].HDeptID;
-                websLsmain.HWHID = lsmain[0].HWHID;
-                websLsmain.HSCWHID = lsmain[0].HSCWHID;
-                websLsmain.HSupID = lsmain[0].HSupID;
-                websLsmain.HKeeperID = lsmain[0].HKeeperID;
-                websLsmain.HSecManagerID = lsmain[0].HSecManagerID;
-                websLsmain.HEmpID = lsmain[0].HEmpID;
-                websLsmain.HManagerID = lsmain[0].HManagerID;
-                websLsmain.HRemark = lsmain[0].HRemark;
-                websLsmain.HExplanation = lsmain[0].HExplanation;
-                websLsmain.HInnerBillNo = lsmain[0].HInnerBillNo;
-                websLsmain.HRedBlueFlag = lsmain[0].HRedBlueFlag;
-                websLsmain.HBillSubType = lsmain[0].HBillSubType;
-                websLsmain.HStockStyle = lsmain[0].HStockStyle;
-                websLsmain.HTransferDirect = lsmain[0].HTransferDirect;
-                websLsmain.HShipType = lsmain[0].HShipType;
-                if (lsmain[0].HMainSourceBillType == "1402")
+                var _value = oMain["oMain"].ToString();
+                string msg1 = _value.ToString();
+                try
                 {
-                    websLsmain.HMainSourceBillType = "鍙戣揣閫氱煡鍗�";
-                }
-                else if (lsmain[0].HMainSourceBillType == "1243")
-                {
-                    websLsmain.HMainSourceBillType = "璋冩嫧鐢宠鍗�";
-                }
-                else if (lsmain[0].HMainSourceBillType == "3720")
-                {
-                    websLsmain.HMainSourceBillType = "鐢熶骇鐢ㄦ枡娓呭崟";
-                }
-                else if (lsmain[0].HMainSourceBillType == "1604")
-                {
-                    websLsmain.HMainSourceBillType = "濮斿鐢ㄦ枡娓呭崟";
-                }
-                else if (lsmain[0].HMainSourceBillType == "1214")
-                {
-                    websLsmain.HMainSourceBillType = "鐢熶骇鍙戞枡閫氱煡鍗�";
-                }
-                else if (lsmain[0].HMainSourceBillType == "3721")
-                {
-                    websLsmain.HMainSourceBillType = "鐢熶骇澶囨枡鍗�";
-                }
-                else if (lsmain[0].HMainSourceBillType == "1242")
-                {
-                    websLsmain.HMainSourceBillType = "鍑哄簱鐢宠鍗�";
-                }
-                else
-                {
-                    websLsmain.HMainSourceBillType = "鎵嬪伐褰曞叆";
-                }
-                websLsmain.HMaker = lsmain[0].HMaker;
-                websLsmain.HBillerID = lsmain[0].HBillerID;
-                websLsmain.HStockInOrgID = lsmain[0].HStockInOrgID;
-                websLsmain.HStockOutOrgID = lsmain[0].HStockOutOrgID;
-                websLsmain.HSTOCKORGID = lsmain[0].HStockOutOrgID;
-                websLsmain.HOWNERID = lsmain[0].HStockOutOrgID;
+                    List<Model.ClsKf_MoveStockBillMain> lsmain = new List<Model.ClsKf_MoveStockBillMain>();
+                    ListModels oListModels = new ListModels();
+                    lsmain = oListModels.getMoveStockBillMainByJson(msg1);
+                    WebS.ClsKf_MoveStockBillMain websLsmain = new WebS.ClsKf_MoveStockBillMain();
+                    string sSourceType = lsmain[0].HMainSourceBillType;
+                    websLsmain.HInterID = lsmain[0].HInterID;
+                    websLsmain.HBillNo = lsmain[0].HBillNo;
+                    websLsmain.HBillType = lsmain[0].HBillType;
+                    websLsmain.HDate = lsmain[0].HDate;
+                    websLsmain.HDeptID = lsmain[0].HDeptID;
+                    websLsmain.HWHID = lsmain[0].HWHID;
+                    websLsmain.HSCWHID = lsmain[0].HSCWHID;
+                    if (oSystemParameter.omodel.WMS_CampanyName == "灏忓崼") //绯荤粺鍙傛暟  瀹㈡埛瀹氬埗鍖栧悕绉�     绌虹櫧涓洪�氱敤
+                    {
+                        websLsmain.HSupID = lsmain[0].HCusID;
+                    }
+                    else
+                    {
+                        websLsmain.HSupID = lsmain[0].HSupID;
+                    }
+                    websLsmain.HKeeperID = lsmain[0].HKeeperID;
+                    websLsmain.HSecManagerID = lsmain[0].HSecManagerID;
+                    websLsmain.HEmpID = lsmain[0].HEmpID;
+                    websLsmain.HManagerID = lsmain[0].HManagerID;
+                    websLsmain.HRemark = lsmain[0].HRemark;
+                    websLsmain.HExplanation = lsmain[0].HExplanation;
+                    websLsmain.HInnerBillNo = lsmain[0].HInnerBillNo;
+                    websLsmain.HRedBlueFlag = lsmain[0].HRedBlueFlag;
+                    websLsmain.HBillSubType = lsmain[0].HBillSubType;
+                    websLsmain.HStockStyle = lsmain[0].HStockStyle;
+                    websLsmain.HTransferDirect = lsmain[0].HTransferDirect;
+                    websLsmain.HShipType = lsmain[0].HShipType;
+                    if (lsmain[0].HMainSourceBillType == "1402")
+                    {
+                        websLsmain.HMainSourceBillType = "鍙戣揣閫氱煡鍗�";
+                    }
+                    else if (lsmain[0].HMainSourceBillType == "1243")
+                    {
+                        websLsmain.HMainSourceBillType = "璋冩嫧鐢宠鍗�";
+                    }
+                    else if (lsmain[0].HMainSourceBillType == "3720")
+                    {
+                        websLsmain.HMainSourceBillType = "鐢熶骇鐢ㄦ枡娓呭崟";
+                    }
+                    else if (lsmain[0].HMainSourceBillType == "1604")
+                    {
+                        websLsmain.HMainSourceBillType = "濮斿鐢ㄦ枡娓呭崟";
+                    }
+                    else if (lsmain[0].HMainSourceBillType == "1214")
+                    {
+                        websLsmain.HMainSourceBillType = "鐢熶骇鍙戞枡閫氱煡鍗�";
+                    }
+                    else if (lsmain[0].HMainSourceBillType == "3721")
+                    {
+                        websLsmain.HMainSourceBillType = "鐢熶骇澶囨枡鍗�";
+                    }
+                    else if (lsmain[0].HMainSourceBillType == "1242")
+                    {
+                        websLsmain.HMainSourceBillType = "鍑哄簱鐢宠鍗�";
+                    }
+                    else
+                    {
+                        websLsmain.HMainSourceBillType = "鎵嬪伐褰曞叆";
+                    }
+                    websLsmain.HMaker = lsmain[0].HMaker;
+                    websLsmain.HBillerID = lsmain[0].HBillerID;
+                    websLsmain.HStockInOrgID = lsmain[0].HStockInOrgID;
+                    websLsmain.HStockOutOrgID = lsmain[0].HStockOutOrgID;
+                    websLsmain.HSTOCKORGID = lsmain[0].HStockOutOrgID;
+                    websLsmain.HOWNERID = lsmain[0].HStockOutOrgID;
 
-                if (oWebs.set_SaveMoveStockBill(websLsmain, sSourceType, ref DBUtility.ClsPub.sErrInfo))
-                {
-                    objJsonResult.code = "0";
-                    objJsonResult.count = 1;
-                    objJsonResult.Message = DBUtility.ClsPub.sErrInfo;  //鎴愬姛锛�
-                    objJsonResult.data = null;
-                    return objJsonResult;
+                    if (oWebs.set_SaveMoveStockBill(websLsmain, sSourceType, ref DBUtility.ClsPub.sErrInfo))
+                    {
+                        objJsonResult.code = "0";
+                        objJsonResult.count = 1;
+                        objJsonResult.Message = DBUtility.ClsPub.sErrInfo;  //鎴愬姛锛�
+                        objJsonResult.data = null;
+                        return objJsonResult;
+                    }
+                    else
+                    {
+                        objJsonResult.code = "0";
+                        objJsonResult.count = 0;
+                        objJsonResult.Message = DBUtility.ClsPub.sErrInfo;  //澶辫触锛�
+                        objJsonResult.data = null;
+                        return objJsonResult;
+                    }
                 }
-                else
+                catch (Exception e)
                 {
                     objJsonResult.code = "0";
                     objJsonResult.count = 0;
-                    objJsonResult.Message = DBUtility.ClsPub.sErrInfo;  //澶辫触锛�
+                    objJsonResult.Message = "鐩存帴璋冩嫧鍗曚笂浼犲け璐ワ紒" + e.ToString();
                     objJsonResult.data = null;
                     return objJsonResult;
                 }
             }
-            catch (Exception e)
+            else
             {
                 objJsonResult.code = "0";
                 objJsonResult.count = 0;
-                objJsonResult.Message = "鐩存帴璋冩嫧鍗曚笂浼犲け璐ワ紒" + e.ToString();
+                objJsonResult.Message = "鑾峰彇绯荤粺鍙傛暟澶辫触锛� " + sErrMsg;
                 objJsonResult.data = null;
                 return objJsonResult;
             }
@@ -7789,6 +7853,56 @@
 
         #endregion
 
+        #region 鐢熶骇缁勬墭鍗曟ā鍧� 鎵弿瀹㈡埛绠憋紙鎵橈級鏉$爜 -鍑礉瑁呯鍗�     20251103
+
+        /// <summary>
+        /// 鐢熶骇缁勬墭鍗曟ā鍧� 鎵弿绠憋紙鎵橈級鏉$爜
+        /// </summary>
+        /// <returns></returns>
+        [Route("WEBSController/Get_PackBarCode_PackUnionBill_New_Json_Cus")]
+        [HttpGet]
+        public object Get_PackBarCode_PackUnionBill_New_Json_Cus(Int64 HInterID, string HBillNo, string HBillType, string HBillSubType, string HBarCode_Pack, string HSourceBillNo)
+        {
+            try
+            {
+                ds = oCn.RunProcReturn("exec h_p_WMS_AddPackBarCode_PackUnionBill_New_Cus " + HInterID.ToString() + ",'" + HBillNo + "','" + HBillType + "','" + HBillSubType + "','" + HBarCode_Pack + "','" + HSourceBillNo + "'", "h_p_WMS_AddPackBarCode_PackUnionBill_New_Cus");
+                if (ds == null || ds.Tables[0].Rows.Count == 0)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "鎵弿鎵樻潯鐮佸彂鐢熼敊璇紒";
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
+                else if (DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HBack"]) == 1)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HRemark"]);
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
+                else
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 1;
+                    objJsonResult.Message = "鎴愬姛锛�";
+                    objJsonResult.data = ds.Tables[0];
+                    return objJsonResult;
+                }
+            }
+            catch (Exception e)
+            {
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "鎵弿鎵樻潯鐮佸け璐ワ紒" + e.ToString();
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+        }
+
+        #endregion
+
         #region 鐢熶骇缁勬墭鍗曟ā鍧� 鎵弿鎵樻潯鐮佸搴斿崟涓潯鐮�
 
         /// <summary>
@@ -7854,6 +7968,76 @@
                 try
                 {
                     ds = oCn.RunProcReturn("exec h_p_WMS_AddBarCode_PackUnionBill_New '" + HBarCode + "'," + HInterID.ToString() + ",'" + HBillNo + "','" + HBillType + "','" + HBillSubType + "','" + HBarCode_Pack + "','" + HMaterNumber_Pack + "','" + sMaterialCtl + "','" + sSourceBillTypeCtl + "','" + sSourceBillNoCtl + "','" + HMaker + "'," + HStockOrgID.ToString(), "h_p_WMS_AddBarCode_PackUnionBill_New");
+                    if (ds == null || ds.Tables[0].Rows.Count == 0)
+                    {
+                        objJsonResult.code = "0";
+                        objJsonResult.count = 0;
+                        objJsonResult.Message = "鎵弿鏉$爜鍙戠敓閿欒锛�";
+                        objJsonResult.data = null;
+                        return objJsonResult;
+                    }
+                    else if (DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HBack"]) == 1)
+                    {
+                        objJsonResult.code = "0";
+                        objJsonResult.count = 0;
+                        objJsonResult.Message = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HRemark"]);
+                        objJsonResult.data = null;
+                        return objJsonResult;
+                    }
+                    else
+                    {
+                        objJsonResult.code = "0";
+                        objJsonResult.count = 1;
+                        objJsonResult.Message = "鎴愬姛锛�";
+                        objJsonResult.data = null;
+                        return objJsonResult;
+                    }
+                }
+                catch (Exception e)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "鎵弿鏉$爜澶辫触锛�" + e.ToString();
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
+            }
+            else
+            {
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "鑾峰彇绯荤粺鍙傛暟澶辫触锛� " + sErrMsg;
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+        }
+
+        #endregion
+
+        #region 鐢熶骇缁勬墭鍗曟ā鍧� 鎵弿瀹㈡埛鎵樻潯鐮佸搴旀潯鐮�  -鍑礉瑁呯鍗�     20251103
+
+        /// <summary>
+        /// 鐢熶骇缁勬墭鍗曟ā鍧� 鎵弿鎵樻潯鐮佸搴旀潯鐮�
+        /// </summary>
+        /// <returns></returns>
+        [Route("WEBSController/Get_BarCode_PackUnionBill_New_Json_Cus")]
+        [HttpGet]
+        public object Get_BarCode_PackUnionBill_New_Json_Cus(string HBarCode, Int64 HInterID, string HBillNo, string HBillType, string HBillSubType, string HBarCode_Pack, string HMaterNumber_Pack, string HMaker, Int64 HStockOrgID)
+        {
+            //鑾峰彇绯荤粺鍙傛暟
+            string sErrMsg = "";
+            if (oSystemParameter.ShowBillByOrgID(HStockOrgID, ref sErrMsg) == true)
+            {
+                string sMaterialCtl = "Y";          //缁勬墭鐗╂枡鏄惁涓�鑷存帶鍒讹紙Y涓烘帶鍒讹級
+                string sSourceBillTypeCtl = "Y";    //鏈叆搴撴潯鐮佽繘琛岀粍鎵樻椂锛岃繘琛屽悓婧愬崟绫诲瀷鎺у埗锛圷涓烘帶鍒讹級
+                string sSourceBillNoCtl = "Y";      //鏈叆搴撴潯鐮佽繘琛岀粍鎵樻椂锛岃繘琛屽悓婧愬崟鎺у埗锛圷涓烘帶鍒讹級
+                sMaterialCtl = oSystemParameter.omodel.Sc_PackUnionBill_MaterialCtl.ToUpper();
+                sSourceBillTypeCtl = oSystemParameter.omodel.Sc_PackUnionBill_SourceBillTypeCtl.ToUpper();
+                sSourceBillNoCtl = oSystemParameter.omodel.Sc_PackUnionBill_SourceBillNoCtl.ToUpper();
+
+                try
+                {
+                    ds = oCn.RunProcReturn("exec h_p_WMS_AddBarCode_PackUnionBill_New_Cus '" + HBarCode + "'," + HInterID.ToString() + ",'" + HBillNo + "','" + HBillType + "','" + HBillSubType + "','" + HBarCode_Pack + "','" + HMaterNumber_Pack + "','" + sMaterialCtl + "','" + sSourceBillTypeCtl + "','" + sSourceBillNoCtl + "','" + HMaker + "'," + HStockOrgID.ToString(), "h_p_WMS_AddBarCode_PackUnionBill_New_Cus");
                     if (ds == null || ds.Tables[0].Rows.Count == 0)
                     {
                         objJsonResult.code = "0";
@@ -12730,5 +12914,117 @@
             }
         }
 
+        #region 鎯犲悍 鐢熶骇棰嗘枡鍗曟牎楠� 鎵弿婧愬崟 鑾峰彇鐢熶骇棰嗘枡鍗曞拰涓嬫父棰嗘枡鍗曟湭瀹℃牳 鍗曟嵁
+        [Route("WEBSController/get_BillBarCode_BillCheck_Json_MateOut_HuiKang")]
+        [HttpGet]
+        public Object get_BillBarCode_BillCheck_Json_MateOut_HuiKang(string HBillNo, string HBillType, string HMaker, Int64 HStockOrgID)
+        {
+
+            try
+            {
+                WebSoBar = null;
+                // 1. 鏌ヨ閲戣澏浜戜腑 鎵�鏈夌鍚堢殑鐢熶骇棰嗘枡鍗曞拰涓嬫父棰嗘枡鍗�
+                ds = oCn.RunProcReturn($@"
+                    select HBillNo, HChecker from h_v_Kf_MateOutBillList_K3 where HBillNo like '%{HBillNo}%'
+                ", "h_v_Kf_MateOutBillList_K3");
+
+                List<string> HBillNoList = new List<string>();
+                foreach (DataRow row in ds.Tables[0].Rows)
+                {
+                    if (!string.IsNullOrWhiteSpace(row["HChecker"].ToString()))
+                    {
+                        // 2. 鍒ゆ柇鍗曟嵁瀹℃牳鐘舵�侊紝鏌ユ壘鏈瀹℃牳鐨勫崟鎹�
+                        WebSoBar = oWebs.get_BillBarCode_BillCheck(HBillNo, HBillType, HMaker, HStockOrgID, ref DBUtility.ClsPub.sErrInfo);
+
+                        if (WebSoBar != null)
+                        {
+                            // 3. 鑾峰彇鍒扮鍚堟潯浠剁殑杩斿洖鍊硷紝绔嬪嵆杩斿洖
+                            objJsonResult.code = "0";
+                            objJsonResult.count = 1;
+                            objJsonResult.Message = "鎴愬姛";
+                            objJsonResult.data = WebSoBar;
+                            return objJsonResult;
+                        }
+                    }
+                }
+
+
+                // 3. 鎵�鏈夊崟鎹兘琚鏍革紝鎴栬�呮病鏈夌鍚堣姹傜殑鍗曟嵁锛岃繑鍥為敊璇俊鎭�
+                if (WebSoBar == null)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = DBUtility.ClsPub.sErrInfo;
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
+                else
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 1;
+                    objJsonResult.Message = "鎴愬姛";
+                    objJsonResult.data = WebSoBar;
+                    return objJsonResult;
+                }
+            }
+            catch (Exception e)
+            {
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "鎵弿鍗曟嵁鏉$爜澶辫触锛�" + e.ToString();
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+        }
+        #endregion
+
+
+        #region 鍑礉 瑁呯鍗曚繚瀛樺悗  鑷姩鐢熸垚浜ч噺姹囨姤鍗�
+
+        [Route("WEBSController/Sc_ICMOBillWorkQtyStatus_Tmp_Save")]
+        [HttpGet]
+        public object Sc_ICMOBillWorkQtyStatus_Tmp_Save(string HInterID)
+        {
+            try
+            {
+              
+                string sql = $"exec [h_p_Sc_ICMOBillWorkQtyStatus_Save] {HInterID}";
+                ds = oCn.RunProcReturn(sql, "[h_p_Sc_ICMOBillWorkQtyStatus_Save]");
+                if (ds == null || ds.Tables[0].Rows.Count == 0)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "鑷姩鐢熸垚浜ч噺姹囨姤鍗曞け璐ワ紒";
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
+                else if (DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HBack"]) == 1)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HRemark"]);
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
+                else
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 1;
+                    objJsonResult.Message = "鎴愬姛锛�";
+                    objJsonResult.data = ds.Tables[0];
+                    return objJsonResult;
+                }
+            }
+            catch (Exception e)
+            {
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "鑷姩鐢熸垚浜ч噺姹囨姤鍗曞け璐ワ紒" + e.ToString();
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+        }
+
+        #endregion
     }
 }

--
Gitblit v1.9.1