Пример #1
0
 protected void dgvApprover_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     try
     {
         dgvApprover.DataSource = um.getAllSec();
         dgvApprover.PageIndex  = e.NewPageIndex;
         dgvApprover.DataBind();
     }
     catch (Exception ex)
     {
         Logger.logmessage(classobject, "dgvApprover_PageIndexChanging", ex.Message + ex.StackTrace);
         Response.Redirect("~/ThongBaoLoi.aspx", false);
     }
 }
Пример #2
0
        public void bindingDDLs()
        {
            try
            {
                Su_ThoiHanBaoQuanLogic bqLogic = new Su_ThoiHanBaoQuanLogic();
                DataTable dt = bqLogic.getAllSec();
                bindingEachDDL(dt, "All", ddlThoiHan);

                Su_TinhTrangVatLyLogic vlLogic = new Su_TinhTrangVatLyLogic();
                dt = vlLogic.getAllSec();
                bindingEachDDL(dt, "All", ddlTinhTrangVatLy);

                Su_MucLucLogic mlLogic = new Su_MucLucLogic();
                dt = mlLogic.getAllSec();
                bindingEachDDL(dt, "All", ddlMucluc);

                QuanLyCheDoSuDungLogic cdLogic = new QuanLyCheDoSuDungLogic();
                dt = cdLogic.getAllSec();
                bindingEachDDL(dt, "All", ddlCheDoSuDung);
            }
            catch (Exception ex)
            {
                Logger.logmessage(classobject, "bindingDDLs", ex.Message + ex.StackTrace); Response.Redirect("~/ThongBaoLoi.aspx", false);
            }
        }