Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            PullOutDetailedPerOutletRpt rpt = new PullOutDetailedPerOutletRpt();

            rpt.Site = this.Site;
            return(rpt);
        }
        public void InitializeReport()
        {
            ReportDocument DetailedReportperOutlet;
            DetailedReportperOutlet = new PullOutDetailedPerOutletRpt();
            int CustomerNumber = int.Parse(Request.QueryString["CustomerNumber"]);
            DateTime DateFrom = DateTime.Parse(Request.QueryString["DateFrom"]);
            DateTime DateTo = DateTime.Parse(Request.QueryString["DateTo"]);

            DataBaseLogIn(DetailedReportperOutlet);

            ParameterField prmCustomerNumber = new ParameterField();
            ParameterField prmDateFrom = new ParameterField();
            ParameterField prmDateTo = new ParameterField();
            ParameterFields prmList = new ParameterFields();

            prmCustomerNumber.ParameterFieldName = "customer_number";
            prmDateFrom.ParameterFieldName = "date_from";
            prmDateTo.ParameterFieldName = "date_to";

            ParameterDiscreteValue prmCustNoValue = new ParameterDiscreteValue();
            ParameterDiscreteValue prmDateFromValue = new ParameterDiscreteValue();
            ParameterDiscreteValue prmDateToValue = new ParameterDiscreteValue();

            prmCustNoValue.Value = Request.QueryString["CustomerNumber"];
            prmDateFromValue.Value = Request.QueryString["DateFrom"];
            prmDateToValue.Value = Request.QueryString["DateTo"];

            prmCustomerNumber.CurrentValues.Add(prmCustNoValue);
            prmDateFrom.CurrentValues.Add(prmDateFromValue);
            prmDateTo.CurrentValues.Add(prmDateToValue);

            prmList.Add(prmCustomerNumber);
            prmList.Add(prmDateFrom);
            prmList.Add(prmDateTo);
            crViewerDetailedReportPerOutlet.ParameterFieldInfo = prmList;
            crViewerDetailedReportPerOutlet.ReportSource = DetailedReportperOutlet;
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     PullOutDetailedPerOutletRpt rpt = new PullOutDetailedPerOutletRpt();
     rpt.Site = this.Site;
     return rpt;
 }