public GiaInOffsetGiaCong(OffsetGiaCong toChayDigi, int soLuongA4, int tyLeMarkUp, int mauIn) { this.ToChayDigi = toChayDigi; this.SoMatIn = soLuongA4; this.TyLeMarkUp = tyLeMarkUp; this.MauIn = mauIn; }
public GiaInOffsetGiaCong(OffsetGiaCong mayInOffset, int soMatIn, int tyLeMarkUp, KieuInOffsetS kieuInOffset) { this.MayInOffset = mayInOffset; this.SoMatIn = soMatIn; this.TyLeMarkUp = tyLeMarkUp; this.KieuInOffset = kieuInOffset; }
public GiaInOffsetGiaCong(OffsetGiaCong mayInOffset, int soMatIn, int tyLeMarkUp, int kieuInOffset, decimal phiVanChuyen, decimal phiCanhBai) { this.MayInOffset = mayInOffset; this.SoMatIn = soMatIn; this.TyLeMarkUp = tyLeMarkUp; this.KieuInOffset = kieuInOffset; this.PhiVanChuyen = phiVanChuyen; this.PhiCanhBai = phiCanhBai; }
public static OffsetGiaCong DocTheoId(int id) { var offsetGiaCongLogic = new OffsetGiaCongLogic(); // OffsetGiaCong toChayDTO = new OffsetGiaCong(); try { var toChayBDO = offsetGiaCongLogic.DocTheoId(id); //Chuyen ChuyenBDOThanhDTO(toChayBDO, toChayDTO); } catch { } return(toChayDTO); }
private static void ChuyenDTOThanhBDO(OffsetGiaCong offsetGiaCongDTO, OffsetGiaCongBDO offsetGiaCongBDO) { offsetGiaCongBDO.ID = offsetGiaCongDTO.ID; offsetGiaCongBDO.Ten = offsetGiaCongDTO.Ten; offsetGiaCongBDO.TenNhaCungCap = offsetGiaCongDTO.TenNhaCungCap; offsetGiaCongBDO.TenKhoIn = offsetGiaCongDTO.TenKhoIn; offsetGiaCongBDO.KhoInRongMax = offsetGiaCongDTO.KhoInRongMax; offsetGiaCongBDO.KhoInDaiMax = offsetGiaCongDTO.KhoInDaiMax; offsetGiaCongBDO.KhoInRongMin = offsetGiaCongDTO.KhoInRongMin; offsetGiaCongBDO.KhoInDaiMin = offsetGiaCongDTO.KhoInDaiMin; offsetGiaCongBDO.TuTroNhip = offsetGiaCongDTO.TuTroNhip; offsetGiaCongBDO.GiaCongIn = offsetGiaCongDTO.GiaCongIn; offsetGiaCongBDO.SoMatInCoBan = offsetGiaCongDTO.SoMatInCoBan; offsetGiaCongBDO.GiaInMoiMatVuotCoBan = offsetGiaCongDTO.GiaInMoiMatVuotCoBan; offsetGiaCongBDO.SoToChayBuHaoCoBan = offsetGiaCongDTO.SoToChayBuHaoCoBan; offsetGiaCongBDO.ThongTinThoDungMayIn = offsetGiaCongDTO.ThongTinThoDungMayIn; offsetGiaCongBDO.GhiChu = offsetGiaCongDTO.GhiChu; offsetGiaCongBDO.ThuTu = offsetGiaCongDTO.ThuTu; offsetGiaCongBDO.KhongDung = offsetGiaCongDTO.KhongDung; }
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); }