public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CustDRIten rpt = new CustDRIten(); rpt.Site = this.Site; return(rpt); }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CustDRIten rpt = new CustDRIten(); rpt.Site = this.Site; return rpt; }
private void Acc_Customer() { ReportDocument rpt; string rptDocCachedKey = null; if (Request.QueryString["rptnameCust"] == "rptCustSIDtl") { rptDocCachedKey = "rptCustSIDtl"; if (Cache[rptDocCachedKey] != null) { rpt = (CustSI)Cache[rptDocCachedKey]; } else { rpt = new CustSI(); Cache.Insert(rptDocCachedKey, rpt); } } else if (Request.QueryString["rptnameCust"] == "rptCustSIIten") { rptDocCachedKey = "rptCustSIIten"; if (Cache[rptDocCachedKey] != null) { rpt = (CustSIIten)Cache[rptDocCachedKey]; } else { rpt = new CustSIIten(); Cache.Insert(rptDocCachedKey, rpt); } } else if (Request.QueryString["rptnameCust"] == "rptCustDRDtl") { rptDocCachedKey = "rptCustDRDtl"; if (Cache[rptDocCachedKey] != null) { rpt = (CustDR)Cache[rptDocCachedKey]; } else { rpt = new CustDR(); Cache.Insert(rptDocCachedKey, rpt); } } else if (Request.QueryString["rptnameCust"] == "rptCustDRIten") { rptDocCachedKey = "rptCustDRIten"; if (Cache[rptDocCachedKey] != null) { rpt = (CustDRIten)Cache[rptDocCachedKey]; } else { rpt = new CustDRIten(); Cache.Insert(rptDocCachedKey, rpt); } } else if (Request.QueryString["rptnameCust"] == "rptCustCRSDtl") { rptDocCachedKey = "rptCustCRSDtl"; if (Cache[rptDocCachedKey] != null) { rpt = (CustCRS)Cache[rptDocCachedKey]; } else { rpt = new CustCRS(); Cache.Insert(rptDocCachedKey, rpt); } } else { rptDocCachedKey = "CustCRSIten"; if (Cache[rptDocCachedKey] != null) { rpt = (CustCRSIten)Cache[rptDocCachedKey]; } else { rpt = new CustCRSIten(); Cache.Insert(rptDocCachedKey, rpt); } } DataBaseLogIn(rpt); ParameterField prmCustomer = new ParameterField(); ParameterField prmDateFrom = new ParameterField(); ParameterField prmDateTo = new ParameterField(); ParameterFields prmList = new ParameterFields(); prmCustomer.ParameterFieldName = "custno"; prmDateFrom.ParameterFieldName = "datefrom"; prmDateTo.ParameterFieldName = "dateto"; ParameterDiscreteValue prmCustNoValue = new ParameterDiscreteValue(); ParameterDiscreteValue prmDateFromValue = new ParameterDiscreteValue(); ParameterDiscreteValue prmDateToValue = new ParameterDiscreteValue(); prmCustNoValue.Value = Request.QueryString["custno"]; prmDateFromValue.Value = Request.QueryString["datefrom"]; prmDateToValue.Value = Request.QueryString["dateto"]; prmCustomer.CurrentValues.Add(prmCustNoValue); prmDateFrom.CurrentValues.Add(prmDateFromValue); prmDateTo.CurrentValues.Add(prmDateToValue); prmList.Add(prmCustomer); prmList.Add(prmDateFrom); prmList.Add(prmDateTo); crvDailyReport.ParameterFieldInfo = prmList; crvDailyReport.ReportSource = rpt; }