Exemple #1
0
        private void ManageViewView()
        {
            foreach (var column in EntityListView.EntityListViewAllColumns.OrderBy(x => x.OrderID))
            {
                var propertyControl = new SimpleViewColumnControl()
                {
                    ListViewColumn = column
                };
                propertyControl.RelativeColumnName = column.RelativeColumnName;

                if (string.IsNullOrEmpty(column.Alias))
                {
                    propertyControl.Alias = column.Column.Alias;
                }
                else
                {
                    propertyControl.Alias = column.Alias;
                }
                //   propertyControl.ControlPackage = new UIControlPackageForSimpleColumn();
                //     propertyControl.IsPermanentReadOnly = true;
                propertyControl.ControlManager = AgentUICoreMediator.GetAgentUICoreMediator.UIManager.GenerateSimpleControlManagerForMultipleDataForm(column.Column, GetColumnUISetting(column.Column), false, true, propertyControl.Alias);
                //      if (propertyControl.IsPermanentReadOnly)
                if (!string.IsNullOrEmpty(column.Tooltip))
                {
                    propertyControl.ControlManager.LabelControlManager.SetTooltip(null, column.Tooltip);
                }
                propertyControl.ControlManager.SetReadonly(true);

                ViewColumnControls.Add(propertyControl);
            }
            foreach (var columnControl in ViewColumnControls)
            {
                columnControl.Visited = true;
                var simpleColumn = (columnControl as SimpleViewColumnControl);
                ViewView.AddUIControlPackage(simpleColumn.ControlManager, simpleColumn.ControlManager.LabelControlManager);
            }
        }
Exemple #2
0
 private string FetchTypePropertyControlValue(DP_DataRepository dataRepository, SimpleViewColumnControl typePropertyControl)
 {
     return(null);
     //////return typePropertyControl.ControlPackage.BaseControlHelper.GetValue(typePropertyControl.ControlPackage);
 }