lu
2024-10-26 223860a40b134665037802ec67d57afaf3d2415a
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;
@@ -282,10 +289,7 @@
                                    txt.ReadOnly = isEdt;
                                    txt.SelectedIndex = i;
                                }
                                ;
                            }
                            continue;
                        }
@@ -410,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;
                        }
@@ -423,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)