From 2066a7e10e20433f7445431d6d34a9026c29f663 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期一, 23 十二月 2024 08:43:43 +0800 Subject: [PATCH] 细节 --- DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs | 45 ++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 42 insertions(+), 3 deletions(-) diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs index 401c407..6cb3967 100644 --- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs +++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs @@ -59,7 +59,7 @@ } } } - + public static string HttpPost(string url, string meth, string param) { string _caption = "鎷煎懡鍔犺浇涓紝璇风◢鍚�..."; @@ -603,6 +603,17 @@ txt.Enabled = false; continue; } + //鑷畾daa + if (colType is UcLookDaa) + { + var txt = colType as UcLookDaa; + txt.SetIdOrCode(strVal); + if (txt.IsReadly == false) + txt.Enabled = !isEdt; + else + txt.Enabled = false; + continue; + } if (colType is SimpleButton) { var txt = colType as SimpleButton; @@ -819,6 +830,14 @@ if (ctrl is UcLookDepartment) { var txt = ctrl as UcLookDepartment; + txt.SetIdOrCode("-1"); + txt.Enabled = !isEdt; + continue; + } + //鑷畾daa + if (ctrl is UcLookDaa) + { + var txt = ctrl as UcLookDaa; txt.SetIdOrCode("-1"); txt.Enabled = !isEdt; continue; @@ -1040,6 +1059,16 @@ txt.Enabled = false; continue; } + //鑷畾daa + if (ctrl is UcLookDaa) + { + var txt = ctrl as UcLookDaa; + if (txt.IsReadly == false) + txt.Enabled = !isEdt; + else + txt.Enabled = false; + continue; + } } } @@ -1070,9 +1099,11 @@ /// </summary> /// <param name="tabControl"></param> /// <param name="idx">0鏌ョ湅锛�1閫�鍑猴紝2鍒犻櫎锛�3淇敼锛�4鏂板鍔�</param> - public static void JumpTab(XtraTabControl tabControl, int action) { + public static void JumpTab(XtraTabControl tabControl, int action) + { - if (action == 0) { + if (action == 0) + { tabControl.TabPages[0].PageEnabled = true; tabControl.TabPages[1].PageEnabled = true; tabControl.SelectedTabPageIndex = 1; @@ -1223,6 +1254,13 @@ if (str.ToUpper() == "true".ToUpper()) return 1; return 0; + } + + public string GetIsNullOrEmpty(string str) + { + if (string.IsNullOrEmpty(str.Trim())) + return "{>"; + return str.Trim(); } /// <summary> @@ -1595,6 +1633,7 @@ /// <param name="icoName"></param> public static void SetGridViewParameterMx(GridView gridView1) { + gridView1.OptionsView.ColumnAutoWidth = false;//鑷姩璋冩暣鍒楀 gridView1.OptionsFilter.AllowFilterEditor = false; gridView1.OptionsFilter.ShowCustomFunctions = DevExpress.Utils.DefaultBoolean.False; gridView1.OptionsCustomization.AllowFilter = false; -- Gitblit v1.9.3