From d4e0269da1cc87d42918cdda6afaa005b6c47a0e Mon Sep 17 00:00:00 2001
From: lg <123456>
Date: 星期三, 19 十一月 2025 13:40:46 +0800
Subject: [PATCH] 按大类维护

---
 DevApp/Gs.DevApp/DevFrm/WW/UcWwBlclSelectAll.cs |   25 ++++++++++++++++---------
 1 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/WW/UcWwBlclSelectAll.cs b/DevApp/Gs.DevApp/DevFrm/WW/UcWwBlclSelectAll.cs
index 7fe71a8..8cbe102 100644
--- a/DevApp/Gs.DevApp/DevFrm/WW/UcWwBlclSelectAll.cs
+++ b/DevApp/Gs.DevApp/DevFrm/WW/UcWwBlclSelectAll.cs
@@ -1,14 +1,8 @@
-锘縰sing DevExpress.XtraEditors;
-using Gs.DevApp.ToolBox;
+锘縰sing Gs.DevApp.ToolBox;
 using Newtonsoft.Json;
 using System;
 using System.Collections.Generic;
-using System.ComponentModel;
 using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows.Forms;
 
 namespace Gs.DevApp.DevFrm.WW
@@ -16,10 +10,12 @@
     public partial class UcWwBlclSelectAll : DevExpress.XtraEditors.XtraForm
     {
         private readonly string _webServiceName = "WWBlManager/";
+        private string _gysId = "";
+        private string _orgId = "";
         /// <summary>
         /// 
         /// </summary>
-        public UcWwBlclSelectAll()
+        public UcWwBlclSelectAll(string orgId = null, string gysId = null)
         {
             InitializeComponent();
             this.gridView1.CustomDrawColumnHeader += (s, e) => { Gs.DevApp.ToolBox.UtilityHelper.CustomDrawColumnHeader(s, e); };
@@ -29,6 +25,8 @@
             this.colChkInt.OptionsFilter.AllowFilter = false;
             this.colChkInt.OptionsFilter.AllowInHeaderSearch = DevExpress.Utils.DefaultBoolean.False;
             Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", null, null, false);
+            _gysId = gysId;
+            _orgId = orgId;
             getPageList(1);
             btnIn.Click += (s, e) =>
             {
@@ -72,12 +70,21 @@
         /// <param name="pageSize">姣忛〉鍑犳潯</param>
         private void getPageList(int curPage)
         {
+            var keyWhere = "";
+            if (!string.IsNullOrEmpty(_orgId))
+            {
+                keyWhere += " and  i.FSubsidiary = '" + _orgId + "'";
+            }
+            if (!string.IsNullOrEmpty(_gysId))
+            {
+                keyWhere += " and (SUPPLIERID is null or SUPPLIERID='" + _gysId + "') ";
+            }
             var _obj = new
             {
                 currentPage = 1,
                 everyPageSize = 999999,
                 sortName = "",
-                keyWhere = "",
+                keyWhere = keyWhere,
             };
             var json = JsonConvert.SerializeObject(_obj);
             try

--
Gitblit v1.9.3