Exemple #1
0
 public ColumnElement(AvrViewColumn col)
 {
     this.uniquePath  = col.UniquePath;
     this.fullPath    = col.FullPath;
     this.displayText = col.DisplayText;
     this.isColumn    = true;
     this.info        = col.IsAggregate ?
                        EidssMessages.Get("AggregateColumn") + (col.AggregateFunction.HasValue ? ": " + col.AggregateFunctionName() : "") :
                        EidssMessages.Get("OrdinaryColumn");
     this.isAggregate = col.IsAggregate;
     if (col.IsAggregate)
     {
         this.aggrFunction      = col.AggregateFunction;
         this.precision         = col.Precision;
         this.sourceColumn      = col.SourceViewColumn;
         this.denominatorColumn = col.DenominatorViewColumn;
     }
 }