示例#1
0
        public object Get(ReportParameters parameters)
        {
            ReportConfig reportConfig   = GetReportConfig(parameters.ReportName);
            string       query          = GetQuery(reportConfig.Query, parameters);
            object       connectionInfo = GetConnectionInfo(reportConfig.ReportDataType);

            return(GetData(query, connectionInfo));
        }
示例#2
0
        public static ReportDataAccess GetInstance(string reportName)
        {
            ReportConfig reportConfig = GetReportConfig(reportName);

            if (reportConfig == null)
            {
                return(null);
            }

            return(GetReportDataAccess(reportConfig.ReportDataType));
        }