Ejemplo n.º 1
0
 private void setupListEntityTemplateParam()
 {
     listEntityTemplateParam.EntityType = typeof(ReportParam);
     listEntityTemplateParam.GetVisibleColumns = () => new ColumnDefinitionList{
             new ColumnDefinition(){Name="Name", DisplayName="Parametre Adý", Width=150},
             new ColumnDefinition(){Name="PType", DisplayName="Tipi", Width=150},
             new ColumnDefinition(){Name="PModuleName", DisplayName="Modül Adý", Width=150},
             new ColumnDefinition(){Name="PEntityName", DisplayName="Entity Adý", Width=150},
      };
     listEntityTemplateParam.GetFilter = () => FilterExpression.Create("ReportId", CriteriaTypes.Eq, CurrentTemplate.Id);
     listEntityTemplateParam.CreateEntityForm = (entity) =>
                                                	{
                                                     ReportParam tp = (ReportParam)entity;
                                                     if (tp == null) tp = new ReportParam();
                                                		tp.ReportId = CurrentTemplate.Id;
                                                		return new FormTemplateParam(tp);
                                                	};
 }
Ejemplo n.º 2
0
        public FormTemplateParam(ReportParam entity)
        {
            InitializeComponent();

            this.entity = entity == null ? new ReportParam() : (ReportParam)DMT.Provider.CloneObject(entity);
        }