예제 #1
0
        public CMCustomReportInitializer(CMConfig config, string reportType, string dateFrom, string dateTo, ICollection <string> columnNames)
        {
            this.ReportType = reportType;
            CultureInfo provider = CultureInfo.InvariantCulture;

            this.DateFrom        = DateTime.ParseExact(dateFrom, config.DateTimeInputFormat, provider);
            this.DateTo          = DateTime.ParseExact(dateTo, config.DateTimeInputFormat, provider);
            this.ColumnNames     = (columnNames == null) ? new string[0] : columnNames;
            this.NoColumnsPassed = (this.ColumnNames == null || this.ColumnNames.Count == 0) ? true : false;
            this.columns         = this.ColumnNames.ToDictionary(x => x, y => (CustomReportColumn) new CMCustomReportColumn(y));
        }
 public CMCustomReportReceiver(CMConfig config)
 {
     this.config = config;
 }