public DataSet LayXe() { return(db.ExecuteQueryDataSet("select MaXe,TenXe,TenDongXe,NamRaMat,MauSac,SoLuong,GiaXe from Xe x, DongXe d where x.MaDongXe = d.MaDongXe ", CommandType.Text)); }
public DataSet LayHoaDon() { return(db.ExecuteQueryDataSet("select MaHD,NgayXuatDon,MaNV,MaKH,TongHoaDon from HoaDon ", CommandType.Text)); }
public DataSet LayKhachHang() { return(db.ExecuteQueryDataSet("select * from KhachHang ", CommandType.Text)); }
public DataSet LayThongTinXeMua(string MaHD) { return(db.ExecuteQueryDataSet("SELECT HD_Xe.MaXe AS MaXe,TenXe,TenDongXe,NamRaMat,MauSac,dbo.HD_Xe.Gia AS GiaXe,dbo.HD_Xe.SLXe AS SLXe FROM Xe,dbo.DongXe,dbo.HD_Xe WHERE MaHD = '" + MaHD + "' AND HD_Xe.MaXe = dbo.Xe.MaXe AND Xe.MaDongXe = DongXe.MaDongXe", CommandType.Text)); }
public DataSet LayTaiKkhoanNV() { return(db.ExecuteQueryDataSet("select TaiKhoan,MatKhau,Users.MaNV,TenNV from Users,NhanVien Where Users.MaNV = NhanVien.MaNV", CommandType.Text)); }