コード例 #1
0
 private GenerateReportsControl getControl()
 {
     if (grCtrl == null)
     {
         grCtrl = new GenerateReportsControl();
     }
     return(grCtrl);
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (null != Request.QueryString["retrievalID"] &&
             null != Request.QueryString["date"])
         {
             grCtrl = new GenerateReportsControl();
             DataTable dt = grCtrl.getDisbursment(Request.QueryString["date"].ToString(), Request.QueryString["retrievalID"].ToString());
             if (dt != null && dt.Rows.Count > 0)
             {
                 DgvDisbursementList.DataSource = dt;
                 DgvDisbursementList.DataBind();
                 lblDate.Text = Request.QueryString["date"].ToString();
             }
         }
     }
 }