From ac2f359d397c0ec5eb87c9cbc415584d1d88439f Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期二, 16 九月 2025 08:56:53 +0800
Subject: [PATCH] 采购退料:列表选择、列表明细更改为存储过程,添加组织隔离,添加库位列表,添加隐藏完结单号功能

---
 service/base/MesPrintMangeer.cs |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/service/base/MesPrintMangeer.cs b/service/base/MesPrintMangeer.cs
index 5ee9f12..b73c912 100644
--- a/service/base/MesPrintMangeer.cs
+++ b/service/base/MesPrintMangeer.cs
@@ -56,6 +56,32 @@
             return mergedData;
         }
 
+        /// <summary>
+        /// PDA閲嶆墦鏉$爜
+        /// </summary>
+        /// <param name="query"></param>
+        /// <returns></returns>
+        /// <exception cref="ArgumentException"></exception>
+        public dynamic getPrintBarInfo(dynamic query) // 浣跨敤鍏蜂綋绫诲瀷鏇夸唬dynamic
+        {
+            // 鍙傛暟鏍¢獙
+            if (string.IsNullOrEmpty(query?.barcode))
+                throw new ArgumentException("鍘熷鏉$爜涓嶈兘涓虹┖");
+
+            // 浣跨敤寮虹被鍨嬪弬鏁�
+            var sqlParams = new List<SugarParameter> {
+                new("@pi_Bar", query.barcode.Trim())
+            };
+
+            var sql = @"EXEC prc_pda_basePrint_selBarInfo @pi_Bar ";
+
+            var mergedData = Db.Ado.SqlQuery<dynamic>(sql, sqlParams);
+
+            //if (mergedData.Count < 2) throw new Exception("鏉$爜淇℃伅瀛樺湪寮傚父锛岃鑱旂郴绠$悊鍛橈紒");
+
+            return mergedData;
+        }
+
         // // 鐜板満鏀舵枡灞曠ず鍒楄〃
         // public class PrintBarInfo
         // {

--
Gitblit v1.9.3