private DataSet DataSetFromSqlText(IDataAccessStrategy dataAccess) { var dataSet = dataAccess.ReadData(); dataSet.Tables[0].TableName = CreateTableName(reportStructure); return(dataSet); }
private DataManager (ReportSettings reportSettings,IDataAccessStrategy dataAccess) { DataSet dataSet = dataAccess.ReadData(); this.Init(reportSettings,dataSet.Tables[0]); this.dataViewStrategy = new TableStrategy((DataTable)this.dataSource, reportSettings); }
private DataManager(ReportSettings reportSettings, IDataAccessStrategy dataAccess) { DataSet dataSet = dataAccess.ReadData(); this.Init(reportSettings, dataSet.Tables[0]); this.dataViewStrategy = new TableStrategy((DataTable)this.dataSource, reportSettings); }
private DataSet DataSetFromStoredProcedure(IDataAccessStrategy dataAccess) { DataSet dataSet = ResultPanel.CreateDataSet(); IProcedure procedure = reportStructure.IDatabaseObjectBase as IProcedure; var sqlParamCollection = CreateSqlParameters(procedure); if (sqlParamCollection.Count > 0) { reportStructure.SqlQueryParameters.AddRange(sqlParamCollection); model.ReportSettings.SqlParameters.AddRange(sqlParamCollection); CollectParamValues(model.ReportSettings); } dataSet = dataAccess.ReadData(); dataSet.Tables[0].TableName = procedure.Name; return(dataSet); }
private DataSet DataSetFromStoredProcedure(IDataAccessStrategy dataAccess) { DataSet dataSet = ResultPanel.CreateDataSet(); IProcedure procedure = reportStructure.IDatabaseObjectBase as IProcedure; var sqlParamCollection = CreateSqlParameters(procedure); if (sqlParamCollection.Count > 0) { reportStructure.SqlQueryParameters.AddRange(sqlParamCollection); model.ReportSettings.SqlParameters.AddRange(sqlParamCollection); CollectParamValues(model.ReportSettings); } dataSet = dataAccess.ReadData(); dataSet.Tables[0].TableName = procedure.Name; return dataSet; }
private DataSet DataSetFromSqlText(IDataAccessStrategy dataAccess) { var dataSet = dataAccess.ReadData(); dataSet.Tables[0].TableName = CreateTableName (reportStructure); return dataSet; }