예제 #1
0
 public DataSet LoadDSUser(string username, string password)
 {
     try
     {
         CBV_loginDAO loginDAO = new CBV_loginDAO();
         return(loginDAO.load_bv_login(username, password));
     }
     catch { return(null); }
 }
예제 #2
0
        public bv_dlogin f_getUser(string s_id)
        {
            bv_dlogin result = new bv_dlogin();

            try
            {
                CBV_loginDAO loginDAO = new CBV_loginDAO();
                DataSet      ds       = new DataSet();
                ds = loginDAO.load_bv_login(s_id);
                result.Khoaphong = ds.Tables[0].Rows[0]["MaKP"].ToString();
                result.Hoten     = ds.Tables[0].Rows[0]["hoten"].ToString();
                result.Nhomcdha  = ds.Tables[0].Rows[0]["NhomCDHA"].ToString();
            }
            catch { return(null); }
            return(result);
        }
예제 #3
0
 public DataSet Load_TenUser()
 {
     ds = bvlogin.load_bv_login();
     return(ds);
 }