Ejemplo n.º 1
0
 protected NodeData CreateColumnInfo(Identifier parentIdentifier, IClassMetadata classMetadata, String propertyName)
 {
     Type type = classMetadata.GetMappedClass(EntityMode.Poco);
     ColumnInfo columnInfo = Schema.GetColumnInfo(type, propertyName);
     NodeData nodeData = new NodeData
                                 {
                                     ReportColumn = new ReportColumn(type, new Identifier(parentIdentifier, propertyName)),
                                     Caption = columnInfo.Caption,
                                     Format = columnInfo.Format,
                                     ColumnType = columnInfo.ColumnType,
                                     IsHidden = columnInfo.IsHidden
                                 };
     return nodeData;
 }
Ejemplo n.º 2
0
 private void AddColumn(NodeData nodeData)
 {
     if (_columns.Contains(nodeData) || nodeData == null)
     {
         return;
     }
     _columns.Add(nodeData);
     lbxColumns.Items.Add(nodeData.Caption);
     UpdatePivotCheckboxEnabled();
 }
Ejemplo n.º 3
0
 public void ResolveColumn(NodeData nodeData, out Type table, out String column)
 {
     if (nodeData.Results)
     {
         Schema.Resolve(MostManyTable.ResultsClass, ToResultsIdentifier(nodeData.ReportColumn.Column), out table,
                        out column);
     }
     else if (nodeData.ResultsSummary)
     {
         Schema.Resolve(MostManyTable.ResultsSummaryClass, ToResultsSummaryIdentifier(nodeData.ReportColumn.Column), out table,
                        out column);
     }
     else
     {
         Schema.Resolve(MostManyTable.PersistentClass, nodeData.ReportColumn.Column, out table, out column);
     }
 }