public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { DailySI rpt = new DailySI(); rpt.Site = this.Site; return rpt; }
private void WH_DailyCustomer() { ReportDocument rpt; //string rptDocCachedKey = null; if (Request.QueryString["rptname"] == "DailySI") { //rptDocCachedKey = "DailySI"; //if (rptDocCachedKey != null) //{ // rpt = (DailySI)Cache[rptDocCachedKey]; //} //else //{ rpt = new DailySI(); // Cache.Insert(rptDocCachedKey, rpt); //} } else if (Request.QueryString["rptname"] == "DailySIItin") { //rptDocCachedKey = "DailySIItin"; //if (rptDocCachedKey != null) //{ // rpt = (DailySIItin)Cache[rptDocCachedKey]; //} //else //{ rpt = new DailySIItin(); // Cache.Insert(rptDocCachedKey, rpt); //} } else if (Request.QueryString["rptname"] == "DailySISumm") { //rptDocCachedKey = "DailySISumm"; //if (rptDocCachedKey != null) //{ // rpt = (DailySISumm)Cache[rptDocCachedKey]; //} //else //{ rpt = new DailySISumm(); // Cache.Insert(rptDocCachedKey, rpt); //} } else if (Request.QueryString["rptname"] == "DailyDR") { //rptDocCachedKey = "DailyDR"; //if (rptDocCachedKey != null) //{ // rpt = (DailyDR)Cache[rptDocCachedKey]; //} //else //{ rpt = new DailyDR(); // Cache.Insert(rptDocCachedKey, rpt); //} } else if (Request.QueryString["rptname"] == "DailyDRItin") { //rptDocCachedKey = "DailyDRItin"; //if (rptDocCachedKey != null) //{ // rpt = (DailyDRItin)Cache[rptDocCachedKey]; //} //else //{ rpt = new DailyDRItin(); // Cache.Insert(rptDocCachedKey, rpt); //} } else if (Request.QueryString["rptname"] == "DailyDRSumm") { //rptDocCachedKey = "DailyDRSumm"; //if (rptDocCachedKey != null) //{ // rpt = (DailyDRSumm)Cache[rptDocCachedKey]; //} //else //{ rpt = new DailyDRSumm(); // Cache.Insert(rptDocCachedKey, rpt); //} } else if (Request.QueryString["rptname"] == "DailyCRS") { //rptDocCachedKey = "DailyCRS"; //if (rptDocCachedKey != null) //{ // rpt = (DailyCRS)Cache[rptDocCachedKey]; //} //else //{ rpt = new DailyCRS(); // Cache.Insert(rptDocCachedKey, rpt); //} } else if (Request.QueryString["rptname"] == "DailyCRSItin") { //rptDocCachedKey = "DailyCRSItin"; //if (rptDocCachedKey != null) //{ // rpt = (DailyCRSItin)Cache[rptDocCachedKey]; //} //else //{ rpt = new DailyCRSItin(); // Cache.Insert(rptDocCachedKey, rpt); //} } else { //rptDocCachedKey = "DailyCRSSumm"; //if (rptDocCachedKey != null) //{ // rpt = (DailyCRSSumm)Cache[rptDocCachedKey]; //} //else //{ rpt = new DailyCRSSumm(); // Cache.Insert(rptDocCachedKey, rpt); //} } DataBaseLogIn(rpt); ParameterField prmDateFrom = new ParameterField(); ParameterFields prmList = new ParameterFields(); prmDateFrom.ParameterFieldName = "datefrom"; ParameterDiscreteValue prmDateFromValue = new ParameterDiscreteValue(); prmDateFromValue.Value = Request.QueryString["datefrom"]; prmDateFrom.CurrentValues.Add(prmDateFromValue); prmList.Add(prmDateFrom); crvDailyReport.ParameterFieldInfo = prmList; crvDailyReport.ReportSource = rpt; }