Пример #1
0
class TinhGiaBeTuDong:
    def __init__(self):
        self.MayBe = MayThanhPham(
            660000, 0.5, 2000,
            0)  #tốc độ 2000, khấu hao 5 năm tấm bỏ vô /giờ, có bù hao rồi
        self.ChiBe = 20000  #chỉ bế cho 1 bài

    def chi_phi_theo_so_luong(self, so_luong):
        return self.ChiBe + self.MayBe.tong_chi_phi_chay_may(so_luong)

    def gia_ban_theo_day_loi_nhuan(self, day_so_luong, day_loi_nhuan, so_luong,
                                   muc_loi_nhuan_them):
        loi_nhuan = giaTriTheoKhuc(day_so_luong, day_loi_nhuan, so_luong)
        ty_le_loi_nhuan = loi_nhuan / 100
        if ty_le_loi_nhuan >= 1:  #ngừa chia 0
            ty_le_loi_nhuan = 0.99
        kq1 = self.chi_phi_theo_so_luong(so_luong) + \
               self.chi_phi_theo_so_luong(so_luong) * ty_le_loi_nhuan /(1 - ty_le_loi_nhuan)
        ty_le_loi_nhuan_them = muc_loi_nhuan_them / 100
        kq2 = kq1 + kq1 * ty_le_loi_nhuan_them / (1 - ty_le_loi_nhuan_them)
        return kq2

    def gia_ban(self, so_luong, muc_loi_nhuan):
        ty_le_loi_nhuan = muc_loi_nhuan / 100
        kq = self.chi_phi_theo_so_luong(so_luong) + \
             self.chi_phi_theo_so_luong(so_luong) + ty_le_loi_nhuan / ( 1- ty_le_loi_nhuan)
        return kq
Пример #2
0
class TinhKeoGayPUR:
    def __init__(self, phi_keo_moi_cuon):
        self.MayKeoGayPUR = MayThanhPham(200000, 0.5, 70,
                                         20000)  #tốc độ 70 cuốn/gời
        self.PhiKeoMoiCuon = phi_keo_moi_cuon

    def chi_phi_theo_so_luong(self, so_luong):
        return self.MayKeoGayPUR.tong_chi_phi_chay_may(so_luong) \
        + self.PhiKeoMoiCuon * so_luong

    def gia_ban_theo_day_loi_nhuan(self, day_so_luong, day_loi_nhuan, so_luong,
                                   muc_loi_nhuan_them):
        loi_nhuan = giaTriTheoKhuc(day_so_luong, day_loi_nhuan, so_luong)
        ty_le_loi_nhuan = loi_nhuan / 100
        if ty_le_loi_nhuan >= 1:  #ngừa chia 0
            ty_le_loi_nhuan = 0.99
        kq1 = self.chi_phi_theo_so_luong(so_luong) / (1 - ty_le_loi_nhuan)
        ty_le_loi_nhuan_them = muc_loi_nhuan_them / 100
        kq2 = kq1 / (1 - ty_le_loi_nhuan_them)
        return kq2

    def gia_ban(self, so_luong, muc_loi_nhuan):
        ty_le_loi_nhuan = muc_loi_nhuan / 100
        kq = self.chi_phi_theo_so_luong(so_luong) / (1 - ty_le_loi_nhuan)
        return kq
Пример #3
0
class TinhGiaBeTruyenThong:
    def __init__(self):
        self.QuetKeoDan = MayThanhPham(
            30000, 0.5, 275, 0)  #tốc độ 13 giây 1 bao thư 12x22, settup 0.5 hf
        self.TienKeoMotBai = 320000  #Tiền keo cho 1 bài

    def chi_phi_theo_so_luong(self, so_luong):
        return self.TienKeoMotBai + self.QuetKeoDan.tong_chi_phi_chay_may(
            so_luong)

    def gia_ban_theo_day_loi_nhuan(self, day_so_luong, day_loi_nhuan, so_luong,
                                   muc_loi_nhuan_them):
        loi_nhuan = giaTriTheoKhuc(day_so_luong, day_loi_nhuan, so_luong)
        ty_le_loi_nhuan = loi_nhuan / 100
        if ty_le_loi_nhuan >= 1:  #ngừa chia 0
            ty_le_loi_nhuan = 0.99
        kq1 = self.chi_phi_theo_so_luong(so_luong) + \
               self.chi_phi_theo_so_luong(so_luong) * ty_le_loi_nhuan /(1 - ty_le_loi_nhuan)
        ty_le_loi_nhuan_them = muc_loi_nhuan_them / 100
        kq2 = kq1 + kq1 * ty_le_loi_nhuan_them / (1 - ty_le_loi_nhuan_them)
        return kq2

    def gia_ban(self, so_luong, muc_loi_nhuan):
        ty_le_loi_nhuan = muc_loi_nhuan / 100
        kq = self.chi_phi_theo_so_luong(so_luong) + \
             self.chi_phi_theo_so_luong(so_luong) + ty_le_loi_nhuan / ( 1- ty_le_loi_nhuan)
        return kq
Пример #4
0
class TinhGiaEpKimThuyLuc:
    def __init__(self):
        self.MayEpKim = MayThanhPham(
            60000, 0.5, 720,
            20000)  #tốc độ 720, khấu hao 5 năm tấm bỏ vô /giờ, có bù hao rồi

    def chi_phi_theo_so_luong(self, so_luong):
        return self.MayEpKim.tong_chi_phi_chay_may(so_luong)

    def gia_ban_theo_day_loi_nhuan(self, day_so_luong, day_loi_nhuan, so_luong,
                                   muc_loi_nhuan_them):
        loi_nhuan = giaTriTheoKhuc(day_so_luong, day_loi_nhuan, so_luong)
        ty_le_loi_nhuan = loi_nhuan / 100
        if ty_le_loi_nhuan >= 1:  #ngừa chia 0
            ty_le_loi_nhuan = 0.99
        kq1 = self.chi_phi_theo_so_luong(so_luong) + \
               self.chi_phi_theo_so_luong(so_luong) * ty_le_loi_nhuan /(1 - ty_le_loi_nhuan)
        ty_le_loi_nhuan_them = muc_loi_nhuan_them / 100
        kq2 = kq1 + kq1 * ty_le_loi_nhuan_them / (1 - ty_le_loi_nhuan_them)
        return kq2

    def gia_ban(self, so_luong, muc_loi_nhuan):
        ty_le_loi_nhuan = muc_loi_nhuan / 100
        kq = self.chi_phi_theo_so_luong(so_luong) + \
             self.chi_phi_theo_so_luong(so_luong) + ty_le_loi_nhuan / ( 1- ty_le_loi_nhuan)
        return kq
Пример #5
0
class TinhCanDigiFold:
    def __init__(self ):
        self.MayCanDigiFold = MayThanhPham(250000, 0.2, 4000, 10000) #tốc độ 3000 tờ /giờ

    def chi_phi_theo_so_luong(self, so_luong ):
        return self.MayCanDigiFold.tong_chi_phi_chay_may(so_luong)

    def gia_ban_theo_day_loi_nhuan(self, day_so_luong, day_loi_nhuan, so_luong, muc_loi_nhuan_them):
        loi_nhuan = giaTriTheoKhuc(day_so_luong, day_loi_nhuan, so_luong)
        ty_le_loi_nhuan = loi_nhuan / 100
        if ty_le_loi_nhuan >= 1: #ngừa chia 0
            ty_le_loi_nhuan = 0.99
        kq1 = self.chi_phi_theo_so_luong(so_luong) /(1 - ty_le_loi_nhuan)
        ty_le_loi_nhuan_them = muc_loi_nhuan_them / 100
        kq2 = kq1 / (1 - ty_le_loi_nhuan_them)
        return kq2

    def gia_ban(self, so_luong, muc_loi_nhuan):
        ty_le_loi_nhuan = muc_loi_nhuan / 100
        kq = self.chi_phi_theo_so_luong(so_luong)  / ( 1- ty_le_loi_nhuan)
        return kq
Пример #6
0
class TinhKeoGayEva:
    def __init__(self ):
        self.MayKeoGayEva = MayThanhPham(140000, 0.3, 120, 10000) #tốc độ 120 cuốn/giờ

    def chi_phi_theo_so_luong(self, so_luong ):
        return self.MayKeoGayEva.tong_chi_phi_chay_may(so_luong)

    def gia_ban_theo_day_loi_nhuan(self, day_so_luong, day_loi_nhuan, so_luong, muc_loi_nhuan_them):
        loi_nhuan = giaTriTheoKhuc(day_so_luong, day_loi_nhuan, so_luong)
        ty_le_loi_nhuan = loi_nhuan / 100
        if ty_le_loi_nhuan >= 1: #ngừa chia 0
            ty_le_loi_nhuan = 0.99
        kq1 = self.chi_phi_theo_so_luong(so_luong) /(1 - ty_le_loi_nhuan)
        ty_le_loi_nhuan_them = muc_loi_nhuan_them / 100
        kq2 = kq1 / (1 - ty_le_loi_nhuan_them)
        return kq2

    def gia_ban(self, so_luong, muc_loi_nhuan):
        ty_le_loi_nhuan = muc_loi_nhuan / 100
        kq = self.chi_phi_theo_so_luong(so_luong)  / ( 1- ty_le_loi_nhuan)
        return kq
Пример #7
0
class TinhSapCuonDeKhauChi:
    def __init__(self ):
        self.MayDuplo = MayThanhPham(190000, 0.3, 12, 0) #tốc độ 5 phút/cuốn

    def chi_phi_theo_so_luong(self, so_luong ):
        return self.MayDuplo.tong_chi_phi_chay_may(so_luong)

    def gia_ban_theo_day_loi_nhuan(self, day_so_luong, day_loi_nhuan, so_luong, muc_loi_nhuan_them):
        loi_nhuan = giaTriTheoKhuc(day_so_luong, day_loi_nhuan, so_luong)
        ty_le_loi_nhuan = loi_nhuan / 100
        if ty_le_loi_nhuan >= 1: #ngừa chia 0
            ty_le_loi_nhuan = 0.99
        kq1 = self.chi_phi_theo_so_luong(so_luong) /(1 - ty_le_loi_nhuan)
        ty_le_loi_nhuan_them = muc_loi_nhuan_them / 100
        kq2 = kq1 / (1 - ty_le_loi_nhuan_them)
        return kq2

    def gia_ban(self, so_luong, muc_loi_nhuan):
        ty_le_loi_nhuan = muc_loi_nhuan / 100
        kq = self.chi_phi_theo_so_luong(so_luong)  / ( 1- ty_le_loi_nhuan)
        return kq
Пример #8
0
 def __init__(self):
     self.QuetKeoDan = MayThanhPham(
         30000, 0.5, 275, 0)  #tốc độ 13 giây 1 bao thư 12x22, settup 0.5 hf
     self.TienKeoMotBai = 320000  #Tiền keo cho 1 bài
Пример #9
0
 def __init__(self ):
     self.MayBe = MayThanhPham(150000, 0.5, 360, 0) #tốc độ 360 tấm bỏ vô /giờ, có bù hao rồi
     self.ChiBe = 20000 #chỉ bế cho 1 bài
Пример #10
0
 def __init__(self):
     self.MayKhauChi = MayThanhPham(65000, 0.3, 8,
                                    50000)  #tốc độ 5 phút/cuốn
Пример #11
0
 def __init__(self ):
     self.MayCanDigiFold = MayThanhPham(250000, 0.2, 4000, 10000) #tốc độ 3000 tờ /giờ
Пример #12
0
 def __init__(self, phi_keo_moi_cuon):
     self.MayKeoGayPUR = MayThanhPham(200000, 0.5, 70,
                                      20000)  #tốc độ 70 cuốn/gời
     self.PhiKeoMoiCuon = phi_keo_moi_cuon
Пример #13
0
 def __init__(self):
     self.MayBe = MayThanhPham(
         660000, 0.5, 2000,
         0)  #tốc độ 2000, khấu hao 5 năm tấm bỏ vô /giờ, có bù hao rồi
     self.ChiBe = 20000  #chỉ bế cho 1 bài
Пример #14
0
 def __init__(self):
     self.MayCanQuay = MayThanhPham(150000, 0.3, 3000,
                                    10000)  #tốc độ 3000 tờ /giờ
Пример #15
0
 def __init__(self ):
     self.MayDuplo = MayThanhPham(190000, 0.3, 12, 0) #tốc độ 5 phút/cuốn
Пример #16
0
 def __init__(self):
     self.MayEpKim = MayThanhPham(
         60000, 0.5, 720,
         20000)  #tốc độ 720, khấu hao 5 năm tấm bỏ vô /giờ, có bù hao rồi
Пример #17
0
 def __init__(self ):
     self.MayKeoGayEva = MayThanhPham(140000, 0.3, 120, 10000) #tốc độ 120 cuốn/giờ