예제 #1
0
        public XlsReportDefBuilder(IAppServiceProvider provider, ReportDef report, SqlQueryReader reader)
        {
            Report     = report;
            SqlDataSet = new SqlQueryDataSet(provider, reader);

            Headers.Add(new XlsGridReportSectionText(Report.Caption));
        }
예제 #2
0
        public XlsCrossDataTableBuilder(ReportDef report, CrossDataTable table)
        {
            Report = report;
            Table  = table;

            Headers.Add(new XlsGridReportSectionText(Report.Caption));
        }
예제 #3
0
        public XlsReportDefAdjustInfo(ReportDef report)
        {
            //FormId = report.Id;

            if (report.Columns != null)
            {
                foreach (var column in report.Columns)
                {
                    AddControlBand(column);
                }
            }
        }
예제 #4
0
 public void AddReportDef(ReportDef report)
 {
     Forms.Add(new XlsReportDefAdjustInfo(report));
 }
예제 #5
0
 private void AdjustDocListForms(ReportDef report)
 {
     Headers.ForEach(_adjuster.AddReportSection);
     _adjuster.AddReportDef(report);
     Footers.ForEach(_adjuster.AddReportSection);
 }
예제 #6
0
 public static ReportConditionItemDef FindConditionDef(ReportDef def, Guid conditionId)
 {
     return(def.Conditions.Select(c => FindConditionById(c, conditionId)).FirstOrDefault(c => c != null));
 }