| | |
| | | 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; |
| | |
| | | txt.ReadOnly = isEdt; |
| | | txt.SelectedIndex = i; |
| | | } |
| | | |
| | | ; |
| | | } |
| | | |
| | | continue; |
| | | } |
| | | |
| | |
| | | txt.Text = strVal; |
| | | } |
| | | } |
| | | |
| | | //自定义仓库 |
| | | if (colType is UcLookCk) |
| | | { |
| | | var txt = colType as UcLookCk; |
| | | txt.SetCode( strVal); |
| | | txt.SetIdOrCode( strVal); |
| | | txt.Enabled = !isEdt; |
| | | continue; |
| | | } |
| | |
| | | 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) |