コード例 #1
0
 public GiaInNhanhKetHopBangGia_May(int soTrangA4, BangGiaBase bgGiaInNhanh,
                                    int soTrangToiDa, int idToInDigi, int tyLeMarkUpSales)
 {
     this.IdToInDiGi           = idToInDigi;
     this.BangGiaInNhanh       = bgGiaInNhanh;
     this.SoLuongA4            = soTrangA4;
     this.TyLeMarkUpSales      = tyLeMarkUpSales;
     this.SoTrangToiDaTheoBang = soTrangToiDa;
     //Chú ý chỉ in 4 màu
     if (idToInDigi > 0)
     {
         duLieuInDigi = new DuLieuTinhGiaInNhanhTheoMay();
         var toInDiGi = ToInMayDigi.DocTheoId(idToInDigi);
         duLieuInDigi.TocDo             = toInDiGi.TocDo * toInDiGi.QuiA4;
         duLieuInDigi.InTuTro           = toInDiGi.InTuTro;
         duLieuInDigi.ClickTrangA4      = toInDiGi.ClickA4BonMau;
         duLieuInDigi.BHR               = toInDiGi.BHR;
         duLieuInDigi.PhiPhePhamSanSang = toInDiGi.PhiPhePhamSanSang;
         duLieuInDigi.ThoiGianSanSang   = toInDiGi.ThoiGianSanSang;
         duLieuInDigi.DaySoLuong        = toInDiGi.DaySoLuong;
         duLieuInDigi.DayLoiNhuan       = toInDiGi.DayLoiNhuan;
     }
 }
コード例 #2
0
        public float ToChayCao()
        {
            var kq = 0f;

            switch (this.PhuongPhapIn)
            {
            case PhuongPhapInS.KhongIn:
                kq = 0;
                break;

            case PhuongPhapInS.Offset:
                kq = OffsetGiaCong.DocTheoId(this.IdMayIn).KhoInDaiMax;
                break;

            case PhuongPhapInS.Toner:
                kq = ToInMayDigi.DocTheoId(this.IdMayIn).Cao;
                break;

            default:
                kq = 48.5f;
                break;
            }
            return(kq);
        }