public decimal ThanhTien_ThPh()
        {
            decimal  result  = 0;
            var      idEpKim = this.ThanhPhamS().FirstOrDefault(x => x.Value == View.TenThPhChon).Key;
            var      epKim   = EpKim.DocTheoId(idEpKim);
            var      khuonEp = KhuonEpKim.DocTheoId(View.IdKhuonChon);
            NhuEpKim nhuEp   = null;

            nhuEp = NhuEpKim.DocTheoId(View.IdNhuEpKimChon);
            if (nhuEp == null)//không thể không có nhũ
            {
                return(0);
            }
            var mucLoiNhuan = TinhToanThanhPham.MucLoiNhuan(epKim.DaySoLuong, epKim.DayLoiNhuan, View.SoLuong);
            var giaEpKim    = new GiaEpKim(View.SoLuong, View.KhoEpRong, View.KhoEpCao,
                                           epKim, khuonEp, nhuEp, mucLoiNhuan);

            decimal tyLeMK = (decimal)this.TyLeMarkUp(View.IdHangKhachHang) / 100;



            result = giaEpKim.ThanhTienCoBan() +
                     giaEpKim.ThanhTienCoBan() * tyLeMK / (1 - tyLeMK);

            return(result);
        }
Ejemplo n.º 2
0
        public decimal ThanhTienCoBan()
        {  //Giá đại lý
            decimal result      = 0;
            float   tyLeLNCoBan = (float)TinhToanThanhPham.MucLoiNhuan(this.MayInOffset.DaySoLuong, this.MayInOffset.DayLoiNhuan, this.SoMatIn) / 100;

            result = this.PhiIn() + this.PhiIn() * (decimal)tyLeLNCoBan / (decimal)(1 - tyLeLNCoBan);
            return(result);
        }
Ejemplo n.º 3
0
        public decimal ThanhTienCoBan()
        {  // số trang a4, Giá đại lý
            decimal result       = 0;
            float   tyLeLN       = (float)TinhToanThanhPham.MucLoiNhuan(this.CanGap.DaySoLuong, this.CanGap.DayLoiNhuan, this.SoLuong) / 100;
            decimal chiPhiCanGap = ChiPhi();

            result = chiPhiCanGap + (chiPhiCanGap * (decimal)tyLeLN) / (decimal)(1 - tyLeLN);
            return(result);
        }
Ejemplo n.º 4
0
        public decimal ThanhTienCoBan(int soLuong)
        {  //Giá đại lý
            decimal result       = 0;
            float   tyLeLN       = (float)TinhToanThanhPham.MucLoiNhuan(this.DaySoLuong, this.DayLoiNhuan, soLuong) / 100;
            decimal chiPhiCanGap = ChiPhiCanGap(soLuong);

            result = chiPhiCanGap + chiPhiCanGap * (decimal)tyLeLN / (decimal)(1 - tyLeLN);
            return(result);
        }
        public decimal ThanhTien_ThPh()
        {
            decimal result      = 0;
            var     idEpKim     = this.ThanhPhamS().FirstOrDefault(x => x.Value == View.TenThPhChon).Key;
            var     epKim       = EpKim.DocTheoId(idEpKim);
            var     khuonEp     = KhuonEpKim.DocTheoId(View.IdKhuonChon);
            var     nhuEp       = NhuEpKim.DocTheoId(View.IdNhuEpKimChon);
            var     mucLoiNhuan = TinhToanThanhPham.MucLoiNhuan(epKim.DaySoLuong, epKim.DaySoLuong, View.SoLuong);
            var     giaEpKim    = new GiaEpKim(View.SoLuong, View.KhoEpRong, View.KhoEpCao,
                                               epKim, nhuEp, mucLoiNhuan);

            var     idCanPhu = this.ThanhPhamS().FirstOrDefault(x => x.Value == View.TenThPhChon).Key;
            var     epKim    = EpKim.DocTheoId(idCanPhu);
            decimal tyLeMK   = (decimal)this.TyLeMarkUp(View.IdHangKhachHang) / 100;

            result = epKim.ThanhTienCoBan(View.SoLuong) +
                     epKim.ThanhTienCoBan(View.SoLuong) * tyLeMK / (1 - tyLeMK);

            return(result);
        }