示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.QueryString.AllKeys.Contains("ReportType"))
     {
         DataTable ExportDT = CRBusinessLogicLayer.DAILY_REPORT(Convert.ToInt32(Request.QueryString["EXECUTIVE"]), Request.QueryString["BANK"], Request.QueryString["BRANCH"], Convert.ToInt32(Request.QueryString["CityID"]), Request.QueryString["FDATE"], Convert.ToInt32(Request.QueryString["STATUS"]));
         if (ExportDT.Rows.Count > 0)
         {
             CRBusinessLogicLayer.GENERATEREPORT_FOR_DAILYREPORT(ExportDT, "Daily recovery progress Report", Convert.ToInt32(Request.QueryString["ReportType"]));
         }
         else
         {
             Response.Redirect("~/Reports/DailyReport.aspx", false);
             Response.Write("<script>alert('No data to export');</script>");
         }
     }
     LoginRequired = true;
 }