示例#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));
        }