public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { PullOutSummaryPerBrandBTQRpt rpt = new PullOutSummaryPerBrandBTQRpt(); rpt.Site = this.Site; return(rpt); }
public void InitializeReport() { ReportDocument PullOutSummaryPerBrand = new ReportDocument(); switch(Request.QueryString["CustomerType"]) { case "PROVINCIAL": PullOutSummaryPerBrand = new PullOutSummaryPerBrandPROVRpt(); break; case "BOUTIQUE": PullOutSummaryPerBrand = new PullOutSummaryPerBrandBTQRpt(); break; case "DEPARTMENT STORE": PullOutSummaryPerBrand = new PullOutSummaryPerBrandDEPTSTORERpt(); break; } DataBaseLogIn(PullOutSummaryPerBrand); ParameterField prmBrand = new ParameterField(); ParameterField prmDateFrom = new ParameterField(); ParameterField prmDateTo = new ParameterField(); ParameterFields prmList = new ParameterFields(); prmBrand.ParameterFieldName = "brand"; prmDateFrom.ParameterFieldName = "date_from"; prmDateTo.ParameterFieldName = "date_to"; ParameterDiscreteValue prmBrandValue = new ParameterDiscreteValue(); ParameterDiscreteValue prmDateFromValue = new ParameterDiscreteValue(); ParameterDiscreteValue prmDateToValue = new ParameterDiscreteValue(); prmBrandValue.Value = Request.QueryString["Brand"]; prmDateFromValue.Value = Request.QueryString["DateFrom"]; prmDateToValue.Value = Request.QueryString["DateTo"]; prmBrand.CurrentValues.Add(prmBrandValue); prmDateFrom.CurrentValues.Add(prmDateFromValue); prmDateTo.CurrentValues.Add(prmDateToValue); prmList.Add(prmBrand); prmList.Add(prmDateFrom); prmList.Add(prmDateTo); this.crViewerPullOutSummaryPerBrand.ParameterFieldInfo = prmList; crViewerPullOutSummaryPerBrand.ReportSource = PullOutSummaryPerBrand; }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { PullOutSummaryPerBrandBTQRpt rpt = new PullOutSummaryPerBrandBTQRpt(); rpt.Site = this.Site; return rpt; }