From eedfab0cc6288b09227ee6970c8071114dd831de Mon Sep 17 00:00:00 2001 From: cnf <3200815559@qq.com> Date: 星期四, 11 九月 2025 18:52:55 +0800 Subject: [PATCH] 首检 --- DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs | 45 +++++++++++++++++++++++++++++++++++++-------- 1 files changed, 37 insertions(+), 8 deletions(-) diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs index 2656a70..134de17 100644 --- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs +++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs @@ -43,6 +43,18 @@ ConfigurationManager.AppSettings["WebApiUrl"]; /// <summary> + /// 鏁版嵁杩囨护 + /// </summary> + /// <returns></returns> + public static string GetOrgWhere() + { + System.Text.StringBuilder sb = new System.Text.StringBuilder(); + sb.Append(" (select aboutGuid as fid from SYS_USER_BIND where userGuid='" + LoginInfoModel.CurrentUser.LoginUserGuid + "' and ftype='缁勭粐')"); + return sb.ToString(); + } + + + /// <summary> /// 璇诲彇鍔犺浇淇℃伅 /// </summary> /// <returns></returns> @@ -274,7 +286,7 @@ { colmn.Visible = !isEdt; if (colmn.Visible == true) - colmn.VisibleIndex = 99999; + colmn.VisibleIndex = 1; } else { @@ -1713,8 +1725,8 @@ /// <param name="isPostSearch"></param> /// <param name="action2">濮旀墭2锛堝垪琛ㄦ樉绀烘槑缁嗭級</param> public static void SetGridViewParameter(GridView gridView1, PictureBox picCheckBox = null, Form fm = null, string fileName = "checkStatus", string icoName = "", DelegateGetModel action = null, DevExpress.Utils.ToolTipController tips = null, bool isPostSearch = true, DelegateGetModel action2 = null) - { - gridView1.PopupMenuShowing += (s, e) => + { //2025-09-04 kyy 寮曞叆涓枃鎻掍欢娉� + /*gridView1.PopupMenuShowing += (s, e) => { if (e.MenuType == DevExpress.XtraGrid.Views.Grid.GridMenuType.Column) { @@ -1732,7 +1744,7 @@ } } } - }; + };*/ gridView1.OptionsView.ColumnAutoWidth = false;//鑷姩璋冩暣鍒楀 if (isPostSearch == true) { @@ -1997,7 +2009,8 @@ /// <param name="icoName"></param> public static void SetGridViewParameterMx(GridView gridView1, DevExpress.Utils.ToolTipController tips = null) { - gridView1.PopupMenuShowing += (s, e) => + //2025-09-04 kyy 娉� + /* gridView1.PopupMenuShowing += (s, e) => { if (e.MenuType == DevExpress.XtraGrid.Views.Grid.GridMenuType.Column) { @@ -2014,10 +2027,11 @@ } } } + } }; gridView1.OptionsView.ShowGroupPanel = false; - gridView1.OptionsCustomization.AllowGroup = false; + gridView1.OptionsCustomization.AllowGroup = false;*/ // gridView1.OptionsView.Alignment = DataGridViewContentAlignment.MiddleLeft; foreach (GridColumn column in gridView1.Columns) @@ -3192,6 +3206,8 @@ return false; } + + /// <summary> /// 璁剧疆GridView澶嶉�夋鍒楃偣鍑绘椂鑷姩鍒锋柊鏉′欢姹囨�� /// 2025-08-15 kyy 鏂板鍏敤鏂规硶 @@ -3362,11 +3378,24 @@ ipqc棣栨, fqc, 鐢熶骇閫�鏂欏叆搴撴, - 鍏跺畠鍏ュ簱妫� + 鍏跺畠鍏ュ簱妫�, + 閿�鍞��璐у叆搴撴, + 瓒呮湡妫�, + 濮斿閫�鏂欏叆搴撴, + cqcjyes,//閲嶆鏂规 + cqcjno,//閲嶆鏂规 + 浜х嚎绉伴噸, + iqc绉伴噸, + 鍙楁墭鍏ュ簱 } - + public enum OrderType + { + 鍏跺畠鍏ュ簱, + 鐗╂枡璋冩嫧, + 鍏跺畠鍑哄簱 + } } \ No newline at end of file -- Gitblit v1.9.3