From 4dc2dbda4150c7c74a26435a75308789dc359b99 Mon Sep 17 00:00:00 2001
From: cdk <2441919651@qq.com>
Date: 星期六, 01 十一月 2025 17:06:41 +0800
Subject: [PATCH] 增加批量打印功能,增加组织分开维护

---
 DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs b/DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs
index 9245540..17ccd66 100644
--- a/DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs
@@ -194,7 +194,17 @@
                     _type = "宸ュ簭G003:姘存涓嶈壇鎻忚堪";
                 if (txt_gx.Text.Trim() == fGxZhongJian)
                     _type = "宸ュ簭G004:缁堟涓嶈壇鎻忚堪";
-                UcDictionarySelect frm = new UcDictionarySelect(_type, " a.s_type='" + _type + "' and pid<>'00000000-0000-0000-0000-000000000000'", _msg);
+                string condition = $" pid<>'00000000-0000-0000-0000-000000000000' " ;
+                if(txt_orgId.Text.Trim() == "104554") // 鐢靛櫒
+                {
+                    condition += $" and a.s_type =  '{_type}' ";
+                }
+                if (txt_orgId.Text.Trim() == "104540") // 榄斿嚒
+                {
+                    condition += $" and a.s_type = '榄斿嚒{_type}' ";
+                }
+
+                UcDictionarySelect frm = new UcDictionarySelect(_type, condition, _msg);
                 frm.UpdateParent += (ss, ee) =>
                 {
                     System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder();
@@ -426,7 +436,11 @@
                     if (!string.IsNullOrEmpty(_msg))
                     {
                         // Toast vm = new Toast((goodTag == "鈭�" ? 1 : -1), _msg); 2025-08-20 淇敼鎻愮ず澶栬
-                        Toast vm = new Toast(1, _rtn.rtnMsg);
+                        Toast vm;
+                        if (_msg.EndsWith("."))
+                            vm = new Toast(-1, _rtn.rtnMsg);
+                        else
+                            vm = new Toast(1, _rtn.rtnMsg);
                         vm.Show();
                     }
                 }

--
Gitblit v1.9.3