From 6953c0394201ef74007978f334397ea30a32ec63 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期一, 26 一月 2026 09:47:02 +0800
Subject: [PATCH] 添加 获取 待检验列表 接口

---
 WebAPI/Controllers/条码管理/WEBSController.cs |   51 +++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 49 insertions(+), 2 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 c1b4508..ed05dcf 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"
@@ -13834,15 +13834,22 @@
                 if(Mode == 1)
                 {
                     //鎵爜妯″紡闇�瑕佽В鏋愭潯鐮佽幏鍙朒InterID鍜孒EntryID
+                    LogService.Write($@"
+                    exec h_p_CheckBillBarCode_AnalysisBarcode 
+                        @HBillType={HBillType},
+                        @HSourceBillType={HSourceBillType},
+                        @HBarCode='{HBarCode}',
+                        @user = '{user}'
+                    ");
                     ds = oCn.RunProcReturn($@"
                     exec h_p_CheckBillBarCode_AnalysisBarcode 
                         @HBillType={HBillType},
                         @HSourceBillType={HSourceBillType},
-                        @HBarCode={HBarCode},
+                        @HBarCode='{HBarCode}',
                         @user = '{user}'
                     ", "h_p_CheckBillBarCode_AnalysisBarcode");
 
-                    if (ds.Tables[0].Rows.Count == 0)
+                    if (ds is null || ds.Tables[0].Rows.Count == 0)
                     {
                         objJsonResult.code = "0";
                         objJsonResult.count = 0;
@@ -13982,5 +13989,45 @@
             }
         }
         #endregion
+
+        #region [鍙栨牱鍗昡 鑾峰彇鏈笅鎺ㄦ垚妫�楠屽崟鐨勫彇鏍峰崟鍒楄〃
+        [Route("WEBSController/AwaitCheckSampleBillList")]
+        [HttpGet]
+        public Object AwaitCheckSampleBillList(string user)
+        {
+            List<object> columnNameList = new List<object>();
+            try
+            {
+                ds = oCn.RunProcReturn($@"
+                    exec h_p_AwaitCheckSampleBillList @user={user}
+                ", "h_p_CheckBillBarCode_CheckItem");
+
+                //娣诲姞鍒楀悕
+                foreach (DataColumn col in ds.Tables[0].Columns)
+                {
+                    Type dataType = col.DataType;
+                    string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}";
+                    columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//鑾峰彇鍒癉ataColumn鍒楀璞$殑鍒楀悕
+                }
+
+                objJsonResult.code = "1";
+                objJsonResult.count = 1;
+                objJsonResult.Message = "success锛�";
+                objJsonResult.data = ds.Tables;
+                objJsonResult.list = columnNameList;
+
+                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