Esempio n. 1
0
        public int f_dangnhap(string loginname, string password)
        {
            bool    t       = true;
            ACCOUNT account = data.database().ACCOUNTs.SingleOrDefault(a => a.LOGINNAME_AC == loginname && a.PASSWORD_AC == password && a.HIENHANH_AC == t);

            if (account != null)
            {
                return(1);
            }
            else
            {
                return(0);
            }
        }
Esempio n. 2
0
        //load du lieu vao gridview
        public void loaddulieu(FORM_KHACHHANG f)
        {
            var sql = data.database().PROC_KHACHHANG();

            f.gctr_khachhang.DataSource = sql;
        }