⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 generatepushdatareport.cs

📁 c#源代码
💻 CS
字号:
//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.1.4322.2032
//
//     Changes to this file may cause incorrect behavior and will be lost if 
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

using System;
using System.Data;
	
using ICSharpCode.Core.Properties;
	
using SharpReportCore;
	
/// <summary>
/// This class is used to generate PushDataReports
/// (Reports, that are feed with an DataSet etc)
/// </summary>
/// <remarks>
/// 	created by - Forstmeier Peter
/// 	created on - 08.09.2005 10:10:19
/// </remarks>
	
namespace ReportGenerator {
	public class GeneratePushDataReport : AbstractReportGenerator {
		
		/// <summary>
		/// Default constructor - initializes all fields to default values
		/// </summary>
		public GeneratePushDataReport(IProperties customizer,
		                              ReportModel reportModel):base(customizer,reportModel){
			
			if (base.ReportModel.ReportSettings.DataModel != GlobalEnums.enmPushPullModel.PushData) {
				throw new ArgumentException ("Wrong DataModel in GeneratePushReport");
			}
		}
		
		public override void GenerateReport() {
			base.ReportModel.ReportSettings.ReportType = GlobalEnums.enmReportType.DataReport;
			
			BuildStandartSections();
			base.Manager.CreatePageHeader (base.ReportModel);
			ReportItemCollection col = (ReportItemCollection)base.Customizer.GetProperty ("ReportItemCollection");
			
			base.Manager.CreateHeaderColumns (base.ReportModel.PageHeader,col);
			base.Manager.CreateDataColumns (base.ReportModel.DetailSection,col);
			base.Manager.CreatePageNumber(base.ReportModel);
			using (TableLayout layout = new TableLayout(base.ReportModel)){
				layout.BuildLayout();
			}
			base.Manager.AdjustNames(base.ReportModel);
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -