From 66315d3ad5ab7fcc673cdf479742c6eff73df8ea Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期日, 27 十月 2024 07:57:50 +0800 Subject: [PATCH] 修改了检查guid --- DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs index 65f16cd..cd6b43f 100644 --- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs +++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs @@ -252,6 +252,13 @@ if (gridViews != null) foreach (var gv in gridViews) gv.OptionsBehavior.Editable = !isEdt; + + var _btnAry= controls.Find("btnSelect", false); + if (_btnAry.Length > 0) { + var _btnType = _btnAry[0]; + _btnType.Enabled = !isEdt; + } + foreach (JProperty property in dynamicObject.Properties()) { var strName = property.Name; @@ -407,12 +414,11 @@ txt.Text = strVal; } } - //鑷畾涔変粨搴� if (colType is UcLookCk) { var txt = colType as UcLookCk; - txt.SetCode( strVal); + txt.SetIdOrCode( strVal); txt.Enabled = !isEdt; continue; } @@ -420,18 +426,16 @@ if (colType is UcLookSupplier) { var txt = colType as UcLookSupplier; - txt.SetCode(strVal); + txt.SetIdOrCode(strVal); txt.Enabled = !isEdt; continue; } if (colType is SimpleButton) { var txt = colType as UcLookCk; - txt.SetCode(strVal); txt.Enabled = !isEdt; continue; } - } } catch (Exception ex) @@ -674,7 +678,7 @@ /// </summary> /// <param name="str"></param> /// <returns></returns> - public Guid ToGuid(string str) + public static Guid ToGuid(string str) { if (string.IsNullOrEmpty(str)) return Guid.Empty; return Guid.Parse(str); -- Gitblit v1.9.3