public static boolean goDanhDauXoaTaiKhoan(String maTaiKhoan) {
   TaiKhoan tk = TaiKhoanDAO.layThongTinTaiKhoan(maTaiKhoan);
   if (tk == null) {
     return false;
   }
   tk.setDaXoa(false);
   return capNhatTaiKhoan(tk);
 }
 public static void ganThuocTinhTimKiem(
     Criteria crit, TaiKhoan tk, String strDaXoa, String strDaBan) {
   if (tk.getMaTaiKhoan() != "") {
     Disjunction or = Restrictions.disjunction();
     or.add(Restrictions.ilike("maTaiKhoan", "%" + tk.getMaTaiKhoan() + "%"));
     or.add(Restrictions.ilike("maTaiKhoan", tk.getMaTaiKhoan() + "%"));
     or.add(Restrictions.ilike("maTaiKhoan", "%" + tk.getMaTaiKhoan()));
     or.add(Restrictions.ilike("maTaiKhoan", tk.getMaTaiKhoan()));
     crit.add(or);
   }
   if (tk.getLoaiTaiKhoan() != null) {
     crit.add(Restrictions.eq("loaiTaiKhoan", tk.getLoaiTaiKhoan()));
   }
   if (strDaXoa != "") {
     crit.add(Restrictions.eq("daXoa", tk.getDaXoa()));
   }
   if (strDaBan != "") {
     crit.add(Restrictions.eq("daBan", tk.getDaBan()));
   }
 }