Exemplo n.º 1
0
        private static double GetFine(int soNgayMuon)
        {
            int    soNgayTraTre = soNgayMuon - ThamSoBUS.GetSoNgayMuon();
            double tienPhat     = ThamSoBUS.GetTienPhat();

            return(tienPhat * soNgayTraTre);
        }
Exemplo n.º 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());
 }
Exemplo n.º 5
0
 public static int GetThoiHanMuonSach()
 {
     return(ThamSoBUS.GetSoNgayMuon());
 }
Exemplo n.º 6
0
 public static int GetSoLuongSachMuonToiDa()
 {
     return(ThamSoBUS.GetSoLuongSachDuocMuon());
 }
Exemplo n.º 7
0
        public static int GetSoLuongSachMuonTrongKhoangTG(int idDocGia)
        {
            int thoiHanMuonSach = ThamSoBUS.GetSoNgayMuon();

            return(CT_PhieuMuonDAO.GetSoLuongSachMuonTrongKhoangTG(idDocGia, thoiHanMuonSach));
        }
Exemplo n.º 8
0
        public static IList GetSachMuonQuaHans(int idDocGia)
        {
            int thoiHanMuonSach = ThamSoBUS.GetSoNgayMuon();

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