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

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