Пример #1
0
        private static double GetFine(int soNgayMuon)
        {
            int    soNgayTraTre = soNgayMuon - ThamSoBUS.GetSoNgayMuon();
            double tienPhat     = ThamSoBUS.GetTienPhat();

            return(tienPhat * soNgayTraTre);
        }
Пример #2
0
        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());
 }
Пример #5
0
 public static int GetThoiHanMuonSach()
 {
     return(ThamSoBUS.GetSoNgayMuon());
 }
Пример #6
0
 public static int GetSoLuongSachMuonToiDa()
 {
     return(ThamSoBUS.GetSoLuongSachDuocMuon());
 }
Пример #7
0
        public static int GetSoLuongSachMuonTrongKhoangTG(int idDocGia)
        {
            int thoiHanMuonSach = ThamSoBUS.GetSoNgayMuon();

            return(CT_PhieuMuonDAO.GetSoLuongSachMuonTrongKhoangTG(idDocGia, thoiHanMuonSach));
        }
Пример #8
0
        public static IList GetSachMuonQuaHans(int idDocGia)
        {
            int thoiHanMuonSach = ThamSoBUS.GetSoNgayMuon();

            return(CT_PhieuMuonDAO.GetSachMuonQuaHans(idDocGia, thoiHanMuonSach));
        }