当前位置: 首页>>代码示例>>C#>>正文


C# Core.ReportSettings类代码示例

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


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


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