private static double GetFine(int soNgayMuon) { int soNgayTraTre = soNgayMuon - ThamSoBUS.GetSoNgayMuon(); double tienPhat = ThamSoBUS.GetTienPhat(); return(tienPhat * soNgayTraTre); }
private static bool IsLate(int soNgayMuon) { int soNgayMuonToiDa = ThamSoBUS.GetSoNgayMuon(); if (soNgayMuon > soNgayMuonToiDa) { return(true); } return(false); }
public static int[] GetNamXuatBan() { int khoang_cach_nam_xuat_ban = ThamSoBUS.GetKhoangCachNamXuatBan(); int currYear = DateTime.Now.Year; int[] namXuatBans = new int[khoang_cach_nam_xuat_ban + 1]; namXuatBans[0] = currYear; for (int i = 1; i <= khoang_cach_nam_xuat_ban; i++) { namXuatBans[i] = currYear - i; } return(namXuatBans); }
public static int GetThoiHanGiaTriThe() { return(ThamSoBUS.GetThoiHanGiaTriThe()); }
public static int GetThoiHanMuonSach() { return(ThamSoBUS.GetSoNgayMuon()); }
public static int GetSoLuongSachMuonToiDa() { return(ThamSoBUS.GetSoLuongSachDuocMuon()); }
public static int GetSoLuongSachMuonTrongKhoangTG(int idDocGia) { int thoiHanMuonSach = ThamSoBUS.GetSoNgayMuon(); return(CT_PhieuMuonDAO.GetSoLuongSachMuonTrongKhoangTG(idDocGia, thoiHanMuonSach)); }
public static IList GetSachMuonQuaHans(int idDocGia) { int thoiHanMuonSach = ThamSoBUS.GetSoNgayMuon(); return(CT_PhieuMuonDAO.GetSachMuonQuaHans(idDocGia, thoiHanMuonSach)); }