public ReportsV2Helper(XafApplication Application, IXPSimpleObject CurrentObject) { this._currentObject = CurrentObject; if (Application != null) { this._reportDataSourceHelper = new ReportDataSourceHelper(Application); } else { this._reportV2DataSourceHelper = new ReportV2DataSourceHelper(this._currentObject.Session); } }
public void Dispose() { if (this._reportDataSourceHelper != null) { this._reportDataSourceHelper = null; } if (this._reportV2DataSourceHelper != null) { this._reportV2DataSourceHelper.Dispose(); this._reportV2DataSourceHelper = null; } }
public ReportDataSource GetDataSource(Dictionary <string, object> parameters) { return(ReportDataSourceHelper.GetDataSource(Type, parameters)); }