From bebb7b48326afd83927edd877eef53f4002d9a3f Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期六, 23 八月 2025 09:09:14 +0800 Subject: [PATCH] 数据过滤 --- DevApp/Gs.DevApp/DevFrm/FrmMain.cs | 23 +++++++++++++---------- 1 files changed, 13 insertions(+), 10 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/FrmMain.cs b/DevApp/Gs.DevApp/DevFrm/FrmMain.cs index c3aa09e..9ee0d2e 100644 --- a/DevApp/Gs.DevApp/DevFrm/FrmMain.cs +++ b/DevApp/Gs.DevApp/DevFrm/FrmMain.cs @@ -335,15 +335,15 @@ { if (item.Name == name) { - //鍚庢潵鍔犱笂锛屼负浜嗛噴鏀剧獥浣撹祫婧恇eg - //foreach (Control control in item.Controls) - //{ - // if (control is Form) - // { - // Form myForm = control as Form; - // myForm.Invoke((MethodInvoker)delegate { myForm.Dispose(); }); // 纭繚 UI 绾跨▼瀹夊叏鍦伴噴鏀捐祫婧� - // } - //} + //2025-08-08鍔犱笂锛屼负浜嗛噴鏀剧獥浣撹祫婧恇eg + foreach (Control control in item.Controls) + { + if (control is Form) + { + Form myForm = control as Form; + myForm.Invoke((MethodInvoker)delegate { myForm.Dispose(); }); // 纭繚 UI 绾跨▼瀹夊叏鍦伴噴鏀捐祫婧� + } + } //鍚庢潵鍔犱笂锛屼负浜嗛噴鏀剧獥浣撹祫婧恊nd tabControl.TabPages.Remove(item); item.Dispose(); @@ -485,7 +485,10 @@ private void GetOrg() { string userGuid = LoginInfoModel.CurrentUser.LoginUserGuid; - var pgq = new PageQueryModel(1, 999999, "FID", "asc", userGuid, " and IS_STATUS=1"); + System.Text.StringBuilder sbSql= new System.Text.StringBuilder(); + sbSql.Append(" and IS_STATUS=1"); + sbSql.Append(" and fid in( select org.FID from [dbo].[SYS_USER_BIND] b left join SYS_ORGANIZATION org on b.aboutGuid=org.FID where userGuid='"+ LoginInfoModel.CurrentUser.LoginUserGuid + "' and fType='缁勭粐' ) "); + var pgq = new PageQueryModel(1, 999999, "FID", "asc", userGuid, sbSql.ToString()); var json = JsonConvert.SerializeObject(pgq); try { -- Gitblit v1.9.3