Пример #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
            {
                DataTable dt = new DataTable();


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

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