Ejemplo n.º 1
0
 public int ThemNguoiDung()
 {
     sql.Execute("insert into tblnguoidung(TaiKhoanNguoiDung, matkhau, email, quyen) values(N'" + this.TaiKhoanNguoiDung + "', '" + this.MatKhau + "', '" + this.Email + "', " + this.Quyen + ")");
     return(Convert.ToInt32(sql.GetDataRow("select top 1 MaNguoiDung from tblnguoidung order by MaNguoiDung desc")["MaNguoiDung"]));
 }
Ejemplo n.º 2
0
 public int LayMaNguoiDung()
 {
     return(Convert.ToInt32(sql.GetDataRow("select manguoidung from tblNguoiDung_tblChuDe where machude = " + MaChuDe + " and taochude = 1")["manguoidung"]));
 }