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); } }
public void bindingDDLs(SqlConnection conn) { try { Su_TinhTrangVatLyLogic vlLogic = new Su_TinhTrangVatLyLogic(); DataTable dt = vlLogic.getAllSec(); bindingEachDDL(dt, "All", ddlTinhTrangVatLy); } catch (Exception ex) { Logger.logmessage(classobject, "bindingDDLs", ex.Message + ex.StackTrace); Response.Redirect("~/ThongBaoLoi.aspx", false); } }