public DataTable DoanhThuTheLoaiMuaItNhat_SelectAll(DuLieu_DoThiCot dlc) { return(xlc.table_Select("select top 9 TheLoai,sum(Tong) as [Tong] from ChiTietBanHang group by TheLoai order by sum(Tong) ")); }
public DataTable DoanhThuSachNhieuNhat_SelectAll(DuLieu_DoThiCot dlc) { return(xlc.table_Select("select top 9 TenSach,sum(Tong) as [Tong] from ChiTietBanHang group by TenSach order by sum(Tong) desc")); }
public DataTable TheLoaiMuaNhieuNhat_SelectAll(DuLieu_DoThiCot dlc) { return(xlc.table_Select("select top 9 TheLoai,sum(Sl) as [Sl] from ChiTietBanHang group by TheLoai order by sum(Sl) desc")); }
public DataTable SlSachItNhat_SelectAll(DuLieu_DoThiCot dlc) { return(xlc.table_Select("select top 9 TenSach,sum(Sl) as [Sl] from ChiTietBanHang group by TenSach order by sum(Sl) ")); }
public DataTable DoanhThuNam_SelectAll(DuLieu_DoThiCot dlc) { return(xlc.table_Select("select year(Ngay)as[Nam], sum(Tong)as[Tong] from ChiTietBanHang group by year(Ngay)")); }
public DataTable SlBanNam_SelectAll(DuLieu_DoThiCot dlc) { return(xlc.table_Select("select year(Ngay)as[Nam], sum(Sl)as[Sl] from ChiTietBanHang group by year(Ngay)")); }
public DataTable DoanhThuThang_SelectAll(DuLieu_DoThiCot dlc) { return(xlc.table_Select("select month(Ngay)as[Thang], sum(Tong)as[Tong] from ChiTietBanHang group by month(Ngay)")); }
public DataTable SlBanThang_SelectAll(DuLieu_DoThiCot dlc) { return(xlc.table_Select("select month(Ngay)as[Thang], sum(Sl)as[Sl] from ChiTietBanHang group by month(Ngay)")); }