• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IReportModel类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IReportModel的典型用法代码示例。如果您正苦于以下问题:C# IReportModel类的具体用法?C# IReportModel怎么用?C# IReportModel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IReportModel类属于命名空间,在下文中一共展示了IReportModel类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: CalculatePageBounds

		public void CalculatePageBounds (IReportModel reportModel)
		{
			MeasureReportHeader(reportModel.ReportHeader);
			MeasurePageHeader(reportModel.PageHeader);
			MeasurePageFooter(reportModel.PageFooter);
			MeasureReportFooter(reportModel.ReportFooter);
		}
开发者ID:nylen,项目名称:SharpDevelop,代码行数:7,代码来源:SectionBounds.cs


示例2: CreateDataManager

		public static IDataManager CreateDataManager (IReportModel reportModel,ReportParameters reportParameters)
		{
			if (reportModel == null) {
				throw new ArgumentNullException("reportModel");
			}
			IDataManager dataManager = null;
			ConnectionObject connectionObject = null;
			IDataAccessStrategy accesStrategy = null;
			if (reportParameters != null) {
				connectionObject = reportParameters.ConnectionObject;
			}
			
//			if (connectionObject != null) {
//				accesStrategy = new SqlDataAccessStrategy(reportModel.ReportSettings,connectionObject);
//			} else {
//				accesStrategy = new SqlDataAccessStrategy(reportModel.ReportSettings,null);
//				
//			}
			accesStrategy = new SqlDataAccessStrategy(reportModel.ReportSettings);
			dataManager = DataManager.CreateInstance(reportModel.ReportSettings,accesStrategy);
			if (dataManager == null) {
				throw new MissingDataManagerException();
			}
			return dataManager;
		}	
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:25,代码来源:DataManagerFactory.cs


示例3: AbstractRenderer

		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();
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:18,代码来源:AbstractRenderer.cs


示例4: CalculatePageBounds

		public void CalculatePageBounds(IReportModel reportModel)
		{
			if (reportModel == null) {
				throw new ArgumentNullException("reportModel");
			}

			sectionBounds.MeasureReportHeader(reportModel.ReportHeader);

			//PageHeader
			this.sectionBounds.MeasurePageHeader(reportModel.PageHeader);

			//PageFooter
			this.sectionBounds.MeasurePageFooter(reportModel.PageFooter);

			//ReportFooter

			this.sectionBounds.MeasureReportFooter(reportModel.ReportFooter);

			this.sectionBounds.MeasureDetailArea();
			
			this.sectionBounds.DetailSectionRectangle = new System.Drawing.Rectangle(reportModel.DetailSection.Location.X,sectionBounds.DetailStart.Y,
			                                                                         reportModel.DetailSection.Size.Width,
			                                                                         reportModel.DetailSection.Size.Height);

		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:25,代码来源:SinglePage.cs


示例5: ToXmlInternal

		static StringWriter ToXmlInternal(IReportModel model)
		{
			var writer = new StringWriterWithEncoding(System.Text.Encoding.UTF8);
			var xml = XmlHelper.CreatePropperWriter(writer);
		
			var reportDesignerWriter = new ReportDesignerWriter();
			XmlHelper.CreatePropperDocument(xml);
			
			
			reportDesignerWriter.Save(model.ReportSettings,xml);
			
			xml.WriteEndElement();
			xml.WriteStartElement("SectionCollection");
			
			// we look only for Sections
			foreach (var section in model.SectionCollection) {
					reportDesignerWriter.Save(section,xml);
			}
			
			//SectionCollection
			xml.WriteEndElement();
			//Reportmodel
			xml.WriteEndElement();
			xml.WriteEndDocument();
			xml.Close();
			return writer;
		}
开发者ID:linquize,项目名称:SharpDevelop,代码行数:27,代码来源:CreateFormSheetFromModel.cs


示例6: CreateInstance

		public static FormPageBuilder CreateInstance(IReportModel reportModel)
		{
			if (reportModel == null) {
				throw new ArgumentNullException("reportModel");
			}
			FormPageBuilder instance = new FormPageBuilder(reportModel);
			return instance;
		}
开发者ID:nylen,项目名称:SharpDevelop,代码行数:8,代码来源:FormPageBuilder.cs


示例7: BasePageBuilder

		public BasePageBuilder(IReportModel reportModel)
		{
			if (reportModel == null) {
				 throw new ArgumentNullException("reportModel");
			}
			ReportModel = reportModel;
			Pages = new Collection<IPage>();
			graphics = CreateGraphics.FromSize(reportModel.ReportSettings.PageSize);
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:9,代码来源:BasePageBuilder.cs


示例8: CalculatePageBounds

		public void CalculatePageBounds(IReportModel reportModel)
		{
			if (reportModel == null) {
				throw new ArgumentNullException("reportModel");
			}

			sectionBounds.CalculatePageBounds(reportModel);
			this.sectionBounds.DetailSectionRectangle = new System.Drawing.Rectangle(reportModel.DetailSection.Location.X,sectionBounds.DetailArea.Top,
			                                                                         reportModel.DetailSection.Size.Width,
			                                                                         reportModel.DetailSection.Size.Height);
		}
开发者ID:Rpinski,项目名称:SharpDevelop,代码行数:11,代码来源:SinglePage.cs


示例9: CreateInstance

		public static IReportCreator CreateInstance(IReportModel reportModel, IDataManager dataManager)
		{
			if (reportModel == null) {
				throw new ArgumentNullException("reportModel");
			}
			if (dataManager == null) {
				throw new ArgumentNullException("dataManager");
			}
			DataPageBuilder instance = new DataPageBuilder(reportModel,dataManager);
			return instance;
		}
开发者ID:Rpinski,项目名称:SharpDevelop,代码行数:11,代码来源:DataPageBuilder.cs


示例10: AbstractDataRenderer

		public AbstractDataRenderer(IReportModel model,
		                            IDataManager dataManager,
		                            ReportDocument reportDocument,
		                            ILayouter layout):base(model,reportDocument,layout)
		                           
		{
			if (dataManager == null) {
				throw new ArgumentNullException("dataManager");
			}
			this.dataManager = dataManager;
		}
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:11,代码来源:AbstractDataRenderer.cs


示例11: BasePager

		public BasePager(IReportModel reportModel)
		{
			if (reportModel == null) {
				throw new ArgumentNullException("reportModel");
			}
		
			this.ReportModel = reportModel;
			//this.Layouter = layouter;
			this.Layouter = new Layouter();
			this.Graphics = CreateGraphicObject.FromSize(this.ReportModel.ReportSettings.PageSize);
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:11,代码来源:BasePager.cs


示例12: BasePager

		public BasePager(IReportModel reportModel,ILayouter layouter)
		{
			if (reportModel == null) {
				throw new ArgumentNullException("reportModel");
			}
			if (layouter == null) {
				throw new ArgumentNullException ("layouter");
			}
			this.reportModel = reportModel;
			this.layouter = layouter;
			this.graphics = CreateGraphicObject.FromSize(this.reportModel.ReportSettings.PageSize);
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:12,代码来源:BasePager.cs


示例13: CreateDataManager

		public static IDataManager CreateDataManager (IReportModel reportModel,IList dataTable)
		{
			if (reportModel == null) {
				throw new ArgumentNullException("reportModel");
			}
			if (dataTable == null) {
				throw new ArgumentNullException("dataTable");
			}
			IDataManager dataManager = DataManager.CreateInstance(dataTable,reportModel.ReportSettings);
			if (dataManager == null) {
				throw new MissingDataManagerException();
			}
			return dataManager;
		}
开发者ID:nylen,项目名称:SharpDevelop,代码行数:14,代码来源:DataManagerFacrory.cs


示例14: ToXml

        public static StringWriter ToXml(IReportModel reportModel)
        {
            int locY = reportModel.ReportSettings.TopMargin;

                foreach (var section in reportModel.SectionCollection)
                {
                    section.Location = new Point(reportModel.ReportSettings.LeftMargin,locY);
                    section.Size = new Size(reportModel.ReportSettings.PrintableWidth(),GlobalValues.DefaultSectionHeight + 10);
                    locY = locY + section.Size.Height + DesignerGlobals.GabBetweenSection;
                }

                var xml = ToXmlInternal(reportModel);
            return xml;
        }
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:14,代码来源:CreateFormSheetFromModel.cs


示例15: BasePager

		public BasePager(IReportModel reportModel)
		{
			if (reportModel == null) {
				throw new ArgumentNullException("reportModel");
			}
			
			this.ReportModel = reportModel;
			
			if (!ServiceContainer.Contains(typeof(ILayouter))) {
				ServiceContainer.AddService<ILayouter>(new Layouter());
			}
			
			this.Graphics = CreateGraphicObject.FromSize(this.ReportModel.ReportSettings.PageSize);
		}
开发者ID:OmerRaviv,项目名称:SharpDevelop,代码行数:14,代码来源:BasePager.cs


示例16: BaseConverter

		public BaseConverter(IReportModel reportModel,IDataNavigator dataNavigator,ExporterPage singlePage)
		{
			if (dataNavigator == null) {
				throw new ArgumentNullException("dataNavigator");
			}
			if (singlePage == null) {
				throw new ArgumentNullException("singlePage");
			}
			this.ReportModel = reportModel;

			this.SinglePage = singlePage;
			this.DataNavigator = dataNavigator;
			this.Layouter =  (ILayouter)ServiceContainer.GetService(typeof(ILayouter));
			this.Evaluator = EvaluationHelper.CreateEvaluator(this.SinglePage,this.DataNavigator);
		}
开发者ID:nylen,项目名称:SharpDevelop,代码行数:15,代码来源:BaseConverter.cs


示例17: Create

		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();
		}
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:15,代码来源:RendererFactory.cs


示例18: CreateConverter

		public static IBaseConverter CreateConverter (BaseReportItem itemToConvert,IReportModel reportModel,
		                                              IDataNavigator dataNavigator,ExporterPage singlePage)
		                                             
		{
			Type t = itemToConvert.GetType();
			if (t.Equals(typeof(BaseTableItem))) {
				return new GroupedTableConverter(reportModel,dataNavigator,singlePage);
			}
			
			if (t.Equals(typeof(BaseRowItem))) {
				return new GroupedRowConverter (reportModel,dataNavigator,singlePage);
			}
			
			return null;
		}
开发者ID:nylen,项目名称:SharpDevelop,代码行数:15,代码来源:ConverterFactory.cs


示例19: ToXml

		public StringWriter ToXml(IReportModel reportModel) {
			int locY = reportModel.ReportSettings.TopMargin;
			
				foreach (var section in reportModel.SectionCollection)
				{
					section.Location = new Point(reportModel.ReportSettings.LeftMargin,locY);
					section.Size = new Size(reportModel.ReportSettings.PageSize.Width - reportModel.ReportSettings.LeftMargin - reportModel.ReportSettings.RightMargin,
						70);
					locY = locY + section.Size.Height + DesignerGlobals.GabBetweenSection;
				}
	
				
				var xml = ToXmlInternal(reportModel);
			return xml;
		}
开发者ID:hefnerliu,项目名称:SharpDevelop,代码行数:15,代码来源:CreateFormSheetFromModel.cs


示例20: ExporterFactory

		public static IReportCreator ExporterFactory(IReportModel reportModel)
		{
			IReportCreator reportCreator = null;
			switch (reportModel.ReportSettings.DataModel) {
				case GlobalEnums.PushPullModel.FormSheet:
					{
						reportCreator = new FormPageBuilder(reportModel);
						break;
					}

				case GlobalEnums.PushPullModel.PullData:
					{
						break;
					}

				case GlobalEnums.PushPullModel.PushData:
					{
						break;
					}

			}
			return reportCreator;
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:23,代码来源:ReportCreatorFactory.cs



注:本文中的IReportModel类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IReportViolations类代码示例发布时间:2022-05-24
下一篇:
C# IReport类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap