Пример #1
0
        public DataRow GetThongTinAccountByUserName(string userName)
        {
            string condition = "UserName = '******'";

            try
            {
                DataRow[] hoaDon = new Account_DAO().GetTableAccount().Select(condition);
                return(hoaDon[0]);
            }
            catch (SqlException ex)
            {
                throw ex;
            }
        }
Пример #2
0
 public static void ChangePassword(string id, string pw)
 {
     Account_DAO.ChangePassword(id, pw);
 }
Пример #3
0
 public static void DeleteAccount(string id)
 {
     Account_DAO.DeleteAccount(id);
 }
Пример #4
0
 public static DataTable FindAccount(string id)
 {
     return(Account_DAO.FindAccountById(id));
 }
Пример #5
0
 public static void EditAccount(Account_DTO acc)
 {
     Account_DAO.EditAccount(acc);
 }
Пример #6
0
 public static void AddAccount(Account_DTO acc)
 {
     Account_DAO.AddAccount(acc);
 }
Пример #7
0
 public static DataTable ListAccount()
 {
     return(Account_DAO.ListAccount());
 }
Пример #8
0
 public static string getAllChucVu(string userCV, string passCV)
 {
     return(Account_DAO.getChucVu(userCV, passCV));
 }
Пример #9
0
 public static int getPer(string userID, string passID)
 {
     return(Account_DAO.getID(userID, passID));
 }
Пример #10
0
 //public static List<DangNhap_DTO> takeTaiKhoan()
 //{
 //    return Account_DAO.takeAccount();
 //}
 public static string getAllName(string user, string pass)
 {
     return(Account_DAO.getNameUser(user, pass));
 }
Пример #11
0
 public static bool TakeAllAccounts(string userName, string passWord)
 {
     return(Account_DAO.Login(userName, passWord));
 }