public AbstractDataRenderer(IReportModel model,
		                            IDataManager dataManager,
		                            ReportDocument reportDocument,
		                            ILayouter layout):base(model,reportDocument,layout)
		                           
		{
			if (dataManager == null) {
				throw new ArgumentNullException("dataManager");
			}
			this.dataManager = dataManager;
		}
		public static AbstractRenderer Create(IReportModel model,IDataManager container) {
			ReportDocument repDocumet = new ReportDocument();
			if (model != null) {
				Layouter layouter = new Layouter();
				switch (model.ReportSettings.ReportType) {
						case GlobalEnums.ReportType.FormSheet :{
							return new RenderFormSheetReport(model,repDocumet,layouter);
						}
						case GlobalEnums.ReportType.DataReport:{
							return new RenderDataReport(model,container,repDocumet,layouter);
						}
				}
			}
			throw  new MissingModelException();
		}
Esempio n. 3
0
		protected AbstractRenderer(IReportModel reportModel,ReportDocument reportDocument,ILayouter layout)
		{
			if (reportModel == null) {
				throw new MissingModelException();
			}
			if (reportDocument == null) {
				throw new ArgumentNullException("reportDocument");
			}
			if (layout == null) {
				throw new ArgumentNullException("layout");
			}
			this.reportModel = reportModel;
			this.reportSettings = reportModel.ReportSettings;
			this.reportDocument = reportDocument;
			this.layout = layout;
			this.sections = reportModel.SectionCollection;
			Init();
		}
		public RenderFormSheetReport (IReportModel model,
		                              ReportDocument reportDcoument,
		                             ILayouter layout):base( model,reportDcoument,layout)
		{
		}
Esempio n. 5
0
		public RenderDataReport(IReportModel model,
		                        IDataManager dataManager,
		                        ReportDocument reportDocument,
		                        ILayouter layout):base (model,dataManager,reportDocument,layout)
		{
		}
Esempio n. 6
0
 public RenderFormSheetReport(IReportModel model,
                              ReportDocument reportDcoument,
                              ILayouter layout) : base(model, reportDcoument, layout)
 {
 }