lu
2025-01-08 07c98b01b357c37a75353370bc95430e814543f3
DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -358,7 +358,6 @@
                                    txt.Text = strVal;
                                }
                            else
                                txt.Text = strVal;
                            txt.ReadOnly = isEdt;
@@ -391,7 +390,12 @@
                            var txt = colType as MemoEdit;
                            if (txt != null)
                                txt.Text = strVal;
                            txt.ReadOnly = isEdt;
                            if (_isRead(txt.Tag))
                            {
                                txt.ReadOnly = true;
                            }
                            else
                                txt.ReadOnly = isEdt;
                            continue;
                        }
                        //数字卡
@@ -432,18 +436,32 @@
                        {
                            var txt = colType as CheckBox;
                            if (txt != null)
                                txt.Checked = bool.Parse(strVal);
                                switch (strVal)
                                {
                                    case "True":
                                        txt.Checked = true;
                                        break;
                                    case "1":
                                        txt.Checked = true;
                                        break;
                                    case "False":
                                        txt.Checked = false;
                                        break;
                                    default:
                                        txt.Checked = false;
                                        break;
                                }
                            txt.Enabled = !isEdt;
                            continue;
                        }
                        if (colType is CheckEdit)
                        {
                            var txt = colType as CheckEdit;
                            if (txt != null)
                                txt.Checked = bool.Parse(strVal);
                            txt.ReadOnly = isEdt;
                            continue;
                        }
                        //if (colType is CheckEdit)
                        //{
                        //    var txt = colType as CheckEdit;
                        //    if (txt != null)
                        //        txt.Checked = bool.Parse(strVal);
                        //    txt.ReadOnly = isEdt;
                        //    continue;
                        //}
                        //时间
                        if (colType is DateTimePicker)
                        {