Beispiel #1
0
        private DataSet DataSetFromSqlText(IDataAccessStrategy dataAccess)
        {
            var dataSet = dataAccess.ReadData();

            dataSet.Tables[0].TableName = CreateTableName(reportStructure);
            return(dataSet);
        }
Beispiel #2
0
		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);
        }
Beispiel #4
0
        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);
        }
Beispiel #5
0
		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;
		}
Beispiel #6
0
		private DataSet DataSetFromSqlText(IDataAccessStrategy dataAccess)
		{
			var dataSet = dataAccess.ReadData();
			dataSet.Tables[0].TableName = CreateTableName (reportStructure);
			return dataSet;
		}