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

C# Core.ReportSettings类代码示例

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

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



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

示例1: CollectParametersCommand

		public CollectParametersCommand (ReportSettings reportSettings)
		{
			if (reportSettings == null) {
				throw new ArgumentNullException("reportSettings");
			}
			this.reportSettings = reportSettings;
		}
开发者ID:kristjan84,项目名称:SharpDevelop,代码行数:7,代码来源:ViewCommands.cs


示例2: ConstructorWithEmptyFileName

		public void ConstructorWithEmptyFileName ()
		{
			ReportSettings rs = new ReportSettings (GlobalValues.DefaultPageSize,reportName,"");
			Assert.AreEqual(rs.ReportName,reportName,"Should be 'ReportName'");
			FileInfo fileInfo = new System.IO.FileInfo(rs.FileName);
			Assert.AreEqual(GlobalValues.PlainFileName,fileInfo.Name,"Should be 'report1.srd'");
		}
开发者ID:nylen,项目名称:SharpDevelop,代码行数:7,代码来源:ReportSettingsFixture.cs


示例3: CreateGrouping

		private void CreateGrouping(ReportSettings settings)
		{
			if (!String.IsNullOrEmpty(this.Grouping)){
				GroupColumn g = new GroupColumn(Grouping,1,System.ComponentModel.ListSortDirection.Ascending);
				settings.GroupColumnsCollection.Add(g);
			}
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:7,代码来源:ReportStructure.cs


示例4: TableStrategy

		public TableStrategy(DataTable table,ReportSettings reportSettings):base(reportSettings)
		{
			if (table == null) {
				throw new ArgumentNullException("table");
			}
			this.table = table;
			
		}
开发者ID:OmerRaviv,项目名称:SharpDevelop,代码行数:8,代码来源:TableStrategy.cs


示例5: ConstructorWithEmptyReportName

		public void ConstructorWithEmptyReportName ()
		{
			ReportSettings rs = new ReportSettings (GlobalValues.DefaultPageSize,"","FileName");
			FileInfo fileInfo = new System.IO.FileInfo(rs.FileName);
			Assert.IsNotNull(rs,"Should not be null");
			Assert.AreEqual(GlobalValues.DefaultReportName,rs.ReportName,"Should be 'Report1'");
			Assert.AreEqual(fileName,fileInfo.Name);
		}
开发者ID:nylen,项目名称:SharpDevelop,代码行数:8,代码来源:ReportSettingsFixture.cs


示例6: BaseListStrategy

//	private ListChangedEventArgs resetList = new ListChangedEventArgs(ListChangedType.Reset,-1,-1);
		
//		public event EventHandler <ListChangedEventArgs> ListChanged;
//		public event EventHandler <GroupChangedEventArgs> GroupChanged;
		
		#region Constructor
		
		protected BaseListStrategy(ReportSettings reportSettings)
		{
			if (reportSettings == null) {
				throw new ArgumentNullException("reportSettings");
			}
			this.reportSettings = reportSettings;
			this.indexList = new IndexList("IndexList");
		}
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:15,代码来源:BaseListStrategy.cs


示例7: DefaultConstructor

		public void DefaultConstructor ()
		{
			ReportSettings rs = new ReportSettings();
			rs.ConnectionString = "goodConnection";
			IDataAccessStrategy da = new MockDataAccessStrategy (rs);
			IDataManager dm = ICSharpCode.Reports.Core.DataManager.CreateInstance(rs,da);			                                                                     
			Assert.IsNotNull (dm,"IDataManager should not be 'null");
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:8,代码来源:IConnectionDataManagerFixture.cs


示例8: DataManager

		private DataManager (ReportSettings reportSettings,IDataAccessStrategy dataAccess)
		{
			DataSet	 dataSet = dataAccess.ReadData();
			this.Init(reportSettings,dataSet.Tables[0]);
			this.dataViewStrategy = new TableStrategy((DataTable)this.dataSource,
			                                          reportSettings);
			
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:8,代码来源:DataManager.cs


示例9: BuildConnectionObject

		public static ConnectionObject BuildConnectionObject (ReportSettings reportSettings)
		{
			if (reportSettings == null) {
				throw new ArgumentNullException("reportSettings");
			}
			return ConnectionObject.CreateInstance(reportSettings.ConnectionString,
			                                      DbProviderFactories.GetFactory("System.Data.OleDb"));
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:8,代码来源:ConnectionObjectFactory.cs


示例10: CreateInstance

		public static ReportDataSource CreateInstance (object dataSource, ReportSettings reportSettings)
		{
			if (reportSettings == null) {
				throw new ArgumentNullException("reportSettings");
			}
			ReportDataSource instance = new ReportDataSource(dataSource,reportSettings);
			return instance;
		}
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:8,代码来源:ReportDataSource.cs


示例11: DefaultConstructureShouldReturnStandardValues

		public void DefaultConstructureShouldReturnStandardValues()
		{
			ReportSettings rs = new ReportSettings();
			Assert.IsNotNull(rs,"Should not be 'null'");
			Assert.AreEqual(GlobalValues.DefaultReportName,rs.ReportName,"Should be 'Report1'");
			FileInfo fileInfo = new System.IO.FileInfo(rs.FileName);
			Assert.AreEqual(GlobalValues.PlainFileName,fileInfo.Name,"Should be 'Report1.srd");
			Assert.AreEqual(GlobalValues.DefaultPageSize,rs.PageSize);
		}
开发者ID:nylen,项目名称:SharpDevelop,代码行数:9,代码来源:ReportSettingsFixture.cs


示例12: BaseListStrategy

		protected BaseListStrategy(ReportSettings reportSettings)
		{
			if (reportSettings == null) {
				throw new ArgumentNullException("reportSettings");
			}
			this.ReportSettings = reportSettings;
			this.IndexList = new IndexList("IndexList");
			ExpressionEvaluator = new ExpressionEvaluatorFacade (null);
		}
开发者ID:OmerRaviv,项目名称:SharpDevelop,代码行数:9,代码来源:BaseListStrategy.cs


示例13: DataNavigatorNotNull

		public void DataNavigatorNotNull()
		{
			
			ReportSettings rs = new ReportSettings();
			rs.ConnectionString = "goodConnection";
			IDataAccessStrategy da = new MockDataAccessStrategy (rs);
			IDataManager dm = ICSharpCode.Reports.Core.DataManager.CreateInstance(rs,da);
			IDataNavigator dataNav = dm.GetNavigator;
			Assert.IsNotNull(dataNav,"Navigator should not be 'null'");
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:10,代码来源:IConnectionDataManagerFixture.cs


示例14: ReportDataSource

		private ReportDataSource(object dataSource, ReportSettings reportSettings)
		{
			this.dataSource = dataSource;
			this.reportSettings = reportSettings;
			if (!this.CheckDataSource()) {
				throw new MissingDataSourceException();
			}
			if (this.reportSettings.DataModel != GlobalEnums.PushPullModel.PushData) {
				SqlQueryChecker.Check(this.reportSettings.CommandType,this.reportSettings.CommandText);
			}
		}
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:11,代码来源:ReportDataSource.cs


示例15: CollectionStrategy

		public CollectionStrategy(IList list,ReportSettings reportSettings):base(reportSettings)
		{
			if (list.Count > 0) {
				firstItem = list[0];
				itemType =  firstItem.GetType();
				
				this.baseList = new DataCollection <object>(itemType);
				this.baseList.AddRange(list);
			}
			this.listProperties = this.baseList.GetItemProperties(null);
		}
开发者ID:ootsby,项目名称:SharpDevelop,代码行数:11,代码来源:CollectionStrategy.cs


示例16: TableCountEqualListCount

		public void TableCountEqualListCount ()
		{
			
			ReportSettings rs = new ReportSettings();
			rs.ConnectionString = "goodConnection";
			IDataAccessStrategy da = new MockDataAccessStrategy (rs);
			IDataManager dm = ICSharpCode.Reports.Core.DataManager.CreateInstance(rs,da);
			Assert.AreEqual(contributorsList.ContributorCollection.Count,
			                dm.GetNavigator.Count,
			                "TableCount should be equal listCount");
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:11,代码来源:IConnectionDataManagerFixture.cs


示例17: SqlDataAccessStrategy

		public SqlDataAccessStrategy(ReportSettings reportSettings,ConnectionObject connectionObject)
		{
			if (reportSettings == null) {
				throw new ArgumentNullException("reportSettings");
			}
			this.reportSettings = reportSettings;
			if (connectionObject == null) {
				this.connectionObject = ConnectionObjectFactory.BuildConnectionObject(reportSettings.ConnectionString);
			} else {
				this.connectionObject = connectionObject;
			}
		}
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:12,代码来源:SqlDataAccess.cs


示例18: DataManager

		private DataManager (ReportSettings reportSettings,IDataAccessStrategy dataAccess)
		{
			this.dataAccess = dataAccess;
			
			if (this.dataAccess.OpenConnection()) {
				DataSet	 t = this.dataAccess.ReadData();
				
				this.Init(reportSettings,t.Tables[0]);
				this.dataViewStrategy = new TableStrategy((DataTable)this.dataSource,
				                                          reportSettings);
			}
		}
开发者ID:nylen,项目名称:SharpDevelop,代码行数:12,代码来源:DataManager.cs


示例19: CreateInstance

		public static IDataManager CreateInstance (ReportSettings reportSettings ,IDataAccessStrategy dataAccess)
		{
			if (reportSettings == null) {
				throw new ArgumentNullException("reportSettings");
			}
			
			if (dataAccess == null) {
				throw new ArgumentNullException("dataAccess");
				
			}
			return new DataManager (reportSettings,dataAccess);
		}
开发者ID:nylen,项目名称:SharpDevelop,代码行数:12,代码来源:DataManager.cs


示例20: 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



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# RubyBinding.NRefactoryToRubyConverter类代码示例发布时间:2022-05-26
下一篇:
C# Core.ReportPageEventArgs类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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