- BaseGrid tbl = Proj.CurrentClickedGridMenu.BaseGrid.BaseBaseGrid;
- ColBase col = null;
- IDataRuleGrid ruleGrid = tbl.GetIDataRuleGrid();
- if (ruleGrid != null)
- {
- col = ruleGrid.View.ViewCols[e.ColData.Name];
- }
- //数据规范自动填充,像窗口选择、目录树选择、智能筛选这些一次性可以填充多列的数据规范,可以不打开
- IDataVlookup vlookup = null;
- if (col!=null && col.AutoFilterClient.RuleID.Length > 0)
- {
- vlookup = col.AutoFilterClient;
- }
- if (vlookup==null && col != null && col.FormSelectClient.RuleID.Length > 0)
- {
- vlookup = col.FormSelectClient;
- }
- if (vlookup == null && col != null && col.TreeViewFilterClient.RuleID.Length > 0)
- {
- vlookup = col.TreeViewFilterClient;
- }
- if (vlookup != null)
- {
- //禁止数据自动查询填充
- vlookup.AutoFillDataPolicy=AutoFillDataPolicyEnum.Disabled;
- //可以控制窗体弹出行为
- col.OnlyDisableEditInGrid=true;
- col.DisableClickCellButtonShowForm=true;
- }
复制代码
|