コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.QueryString.AllKeys.Contains("ReportType"))
     {
         DataTable ExportDT = CRBusinessLogicLayer.EXECUTIVE_VISIT_DETAILS(Convert.ToInt32(Request.QueryString["EXID"]), Request.QueryString["FDATE"], Request.QueryString["TDATE"], Request.QueryString["BANK"], Request.QueryString["BRANCH"], Convert.ToInt32(Request.QueryString["CITYID"]));
         if (ExportDT.Rows.Count > 0)
         {
             CRBusinessLogicLayer.GENERATEREPORT(ExportDT, "RECORDS OF VISIT", Convert.ToInt32(Request.QueryString["ReportType"]));
         }
         else
         {
             Response.Redirect("~/DailyTransactions/ExecutiveWiseVisitDetails.aspx?Error='No data to display'", false);
         }
     }
     LoginRequired = true;
 }