From aa61ade84d2657a9fb37993378c6fba4680b5ddf Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期五, 27 十二月 2024 09:39:11 +0800 Subject: [PATCH] 调拨 --- DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs | 23 ++++++++++------------- 1 files changed, 10 insertions(+), 13 deletions(-) diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs index 37332df..e2a9375 100644 --- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs +++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs @@ -344,25 +344,22 @@ var txt = colType as ComboBoxEdit; if (txt.Properties.TextEditStyle == TextEditStyles.DisableTextEditor) - txt.SelectedIndex = int.Parse(strVal); - else - txt.Text = strVal; - txt.ReadOnly = isEdt; - continue; - } + try + { + txt.SelectedIndex = int.Parse(strVal); + } + catch (Exception) + { - //涓嬫媺 - if (colType is ComboBoxEdit) - { - var txt = colType as ComboBoxEdit; - if (txt.Properties.TextEditStyle == - TextEditStyles.DisableTextEditor) - txt.SelectedIndex = int.Parse(strVal); + txt.Text = strVal; + } + else txt.Text = strVal; txt.ReadOnly = isEdt; continue; } + //鑷畾涔変笅鎷� if (colType is UcComBox) -- Gitblit v1.9.3