예제 #1
0
        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);
            }
        }
예제 #2
0
        public void Dispose()
        {
            if (this._reportDataSourceHelper != null)
            {
                this._reportDataSourceHelper = null;
            }

            if (this._reportV2DataSourceHelper != null)
            {
                this._reportV2DataSourceHelper.Dispose();
                this._reportV2DataSourceHelper = null;
            }
        }
예제 #3
0
 public ReportDataSource GetDataSource(Dictionary <string, object> parameters)
 {
     return(ReportDataSourceHelper.GetDataSource(Type, parameters));
 }