From c121f891642127678454bd86719f8b17702cf7e1 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期一, 16 六月 2025 17:03:04 +0800
Subject: [PATCH] 1

---
 WebAPI/Controllers/华远datamapping/HY_DataMappingController.cs |  100 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 100 insertions(+), 0 deletions(-)

diff --git "a/WebAPI/Controllers/\345\215\216\350\277\234datamapping/HY_DataMappingController.cs" "b/WebAPI/Controllers/\345\215\216\350\277\234datamapping/HY_DataMappingController.cs"
index 6ebbcff..87ed51e 100644
--- "a/WebAPI/Controllers/\345\215\216\350\277\234datamapping/HY_DataMappingController.cs"
+++ "b/WebAPI/Controllers/\345\215\216\350\277\234datamapping/HY_DataMappingController.cs"
@@ -567,6 +567,56 @@
         }
         #endregion
 
+        #region 鐐.VRS鍐呭眰鐢宠PNL鏉$爜鎺ュ彛
+
+        /// <summary>
+        /// 鐢宠PNL鏉$爜鎺ュ彛
+        /// </summary>
+        /// <returns></returns>
+        [Route("VRSInner/VRSInner_getBarCodeBill_PNL")]
+        [HttpGet]
+        public object VRSInner_getBarCodeBill_PNL(string HLayOutName, string HMaker)
+        {
+            try
+            {
+                ds = oCN.RunProcReturn("exec h_p_Gy_BarCodeBill_PNL_Temp_Insert '" + HLayOutName + "','" + HMaker + "'", "h_p_Gy_BarCodeBill_PNL_Temp_Insert");
+                if (ds == null || ds.Tables[0].Rows.Count == 0)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "鍐欏叆鑾峰彇PNL鏉$爜鏃跺彂鐢熼敊璇紒";
+                    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 = "1";
+                    objJsonResult.count = 1;  //鎴愬姛锛�
+                    objJsonResult.Message = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HRemark"]);
+                    objJsonResult.data = ds.Tables[0];
+                    return objJsonResult;
+                }
+            }
+            catch (Exception e)
+            {
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "鐢宠PNL鏉$爜鎺ュ彛澶辫触锛�" + e.ToString();
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+        }
+
+        #endregion
+
         #region 鐐.VRS澶栧眰鑾峰彇datamapping鏁版嵁 鎺ュ彛
         [Route("VRSOuter/VRSOuter_getDataMapping")]
         [HttpGet]
@@ -689,6 +739,56 @@
         }
         #endregion
 
+        #region 鐐.VRS澶栧眰鐢宠set鏉$爜鎺ュ彛
+
+        /// <summary>
+        /// 鐢宠set鏉$爜鎺ュ彛
+        /// </summary>
+        /// <returns></returns>
+        [Route("VRSOuter/VRSOuter_getBarCodeBill_SET")]
+        [HttpGet]
+        public object VRSOuter_getBarCodeBill_SET(string HBarCode_PNL, string HMaker)
+        {
+            try
+            {
+                ds = oCN.RunProcReturn("exec h_p_Gy_BarCodeBill_Set_Temp_Insert '" + HBarCode_PNL + "','" + HMaker + "'", "h_p_Gy_BarCodeBill_Set_Temp_Insert");
+                if (ds == null || ds.Tables[0].Rows.Count == 0)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "鍐欏叆鑾峰彇SET鏉$爜鏃跺彂鐢熼敊璇紒";
+                    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 = "1";
+                    objJsonResult.count = 1;  //鎴愬姛锛�
+                    objJsonResult.Message = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HRemark"]);
+                    objJsonResult.data = ds.Tables[0];
+                    return objJsonResult;
+                }
+            }
+            catch (Exception e)
+            {
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "鐢宠SET鏉$爜鎺ュ彛澶辫触锛�" + e.ToString();
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+        }
+
+        #endregion
+
         #region AVI鑾峰彇datamapping鏁版嵁 鎺ュ彛
         [Route("AVI/AVI_getDataMapping")]
         [HttpGet]

--
Gitblit v1.9.1