本文整理汇总了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;
}
示例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'");
}
示例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);
}
}
示例4: TableStrategy
public TableStrategy(DataTable table,ReportSettings reportSettings):base(reportSettings)
{
if (table == null) {
throw new ArgumentNullException("table");
}
this.table = table;
}
示例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);
}
示例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");
}
示例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");
}
示例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);
}
示例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"));
}
示例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;
}
示例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);
}
示例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);
}
示例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'");
}
示例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);
}
}
示例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);
}