public static bool ThemHDXuat(HDXuatDTO hd) { hd.MaHDXuat = (HDXuatDAO.LayMaHDXuatLonNhat() + 1); if (!HDXuatDAO.ThemHDXuat(hd)) { return(false); } return(true); }
public static int LayMaHDXuatLonNhat() { int maxHDXuat = HDXuatDAO.LayMaHDXuatLonNhat(); if (maxHDXuat != 0) { return(maxHDXuat + 1); } return(1); }
public static bool CapNhatTrangThaiHuy(int maHD, int tTai) { return(HDXuatDAO.CapNhatTrangThaiHuy(maHD, tTai)); }
public static bool HoanTatHD(HDXuatDTO hd) { return(HDXuatDAO.HoanTatHD(hd)); }
public static bool CapNhatHDXuat(int maHD, int tTien) { return(HDXuatDAO.CapNhatHDXuat(maHD, tTien)); }
//Lấy tổng tiền trong HD public static int LayTongTienHDXuat(int maHD) { return(HDXuatDAO.LayTongTienHD(maHD)); }
public static DataTable LayDSHDXuatBiXoa(string tenTK) { return(HDXuatDAO.LayDSHDXuatBiXoa(tenTK)); }