Пример #1
0
        public override List <ReportParameter> rParameter(ListOfSelected parameter)
        {
            var rParameter = new List <ReportParameter> {
                new ReportParameter()
                {
                    ParaName = "Operate", ParaValue = "Report"
                },
                new ReportParameter()
                {
                    ParaName = "UserID", ParaValue = parameter.UserID
                },
                new ReportParameter()
                {
                    ParaName = "SchoolYear", ParaValue = parameter.SchoolYear
                },
                new ReportParameter()
                {
                    ParaName = "SchoolCode", ParaValue = parameter.SchoolCode
                },
                new ReportParameter()
                {
                    ParaName = "PersonID", ParaValue = parameter.ObjID
                },
                new ReportParameter()
                {
                    ParaName = "FormNo", ParaValue = parameter.ObjNo
                }
            };

            return(rParameter);
        }
Пример #2
0
        private static List <ReportParameter> GetReportParameter(ListOfSelected parameter)
        {
            var reportParameters = new List <ReportParameter>();

            reportParameters.Add(new ReportParameter()
            {
                ParaName = "Operate", ParaValue = "Report"
            });
            reportParameters.Add(new ReportParameter()
            {
                ParaName = "UserID", ParaValue = parameter.UserID
            });
            reportParameters.Add(new ReportParameter()
            {
                ParaName = "SchoolYear", ParaValue = parameter.SchoolYear
            });
            reportParameters.Add(new ReportParameter()
            {
                ParaName = "SchoolCode", ParaValue = parameter.SchoolCode
            });
            reportParameters.Add(new ReportParameter()
            {
                ParaName = "EmployeeID", ParaValue = parameter.ObjID
            });
            reportParameters.Add(new ReportParameter()
            {
                ParaName = "SessionID", ParaValue = parameter.ObjNo
            });
            reportParameters.Add(new ReportParameter()
            {
                ParaName = "Category", ParaValue = parameter.ObjType
            });
            return(reportParameters);
        }
Пример #3
0
        public static List <ReportParameter> GetReportParameter(string reportType, ListOfSelected parameter)
        {
            var myReportClass = ReportParameterMapClass.ReportParametersInstance(reportType);

            return(new GeneralReportParameter(myReportClass).GeneralReportParameters(parameter));

            //switch (reportType)
            //{
            //    case "IEP":
            //    case "IEPPDF":
            //        return new GeneralReportParameter(new IEPReportParameter()).GeneralReportParameters(parameter);
            //    case "TPA":
            //        return new GeneralReportParameter(new TPAReportParameter()).GeneralReportParameters(parameter);
            //    default:
            //        return new GeneralReportParameter(new IEPReportParameter()).GeneralReportParameters(parameter);
            //}
        }
Пример #4
0
        public static Byte[] GetOneReport(ReportBase reportPara, ListOfSelected parameter)
        {
            var reportParameters = BuildReportingParameters.GetReportParameter(reportPara.ReportType, parameter);

            return(getPDFReport(reportPara, reportParameters));
        }
Пример #5
0
        private static Byte[] GetOneReport(string reportName, ListOfSelected parameter)
        {
            var reportParameters = GetReportParameter(parameter);

            return(GetReportR2(reportName, "PDF", reportParameters));
        }
Пример #6
0
 //public SSFormReportParameter(ListOfSelected parameter)
 //{
 //    this._parameter = parameter;
 //}
 //public List<ReportParameter> ReportParameters()
 //{
 //     return addToReportParameter();
 //}
 public List <ReportParameter> ReportParameters(ListOfSelected parameter)
 {
     _parameter = parameter;
     return(addToReportParameter());
 }
Пример #7
0
 public List <ReportParameter> GeneralReportParameters(ListOfSelected parameter)
 {
     return(_reportPrameter.ReportParameters(parameter));
 }
Пример #8
0
        public virtual List <ReportParameter> rParameter(ListOfSelected parameter)
        {
            var rParameter = new List <ReportParameter>();

            return(rParameter);
        }