示例#1
0
        public static string Sua(MayBoiNhieuLop boiBiaCung)
        {
            var boiNhieuLopLogic = new MayBoiNhieuLopLogic();
            var itemBDO          = new MayBoiNhieuLopBDO();

            ChuyenDoiDTOThanhBDO(boiBiaCung, itemBDO);
            return(boiNhieuLopLogic.Sua(itemBDO));
        }
示例#2
0
 public GiaBoiNhieuLop(int soLuongTamBoi, MayBoiNhieuLop boiBiaCung,
                       float tamRong, float tamCao, GiayDeBoi toBoi,
                       int soLopLot, KieuBoiNhieuLop kieuBoi, int tyLeMarkUpSales)
 {
     this.SoLuong    = soLuongTamBoi;
     this.TamRong    = tamRong;
     this.TamCao     = tamCao;
     this.MayBoi     = boiBiaCung;
     this.ToBoi      = toBoi;
     this.SoLopLot   = soLopLot;
     this.KieuBoi    = kieuBoi;
     this.TyLeMarkUp = tyLeMarkUpSales;
 }
示例#3
0
        public static MayBoiNhieuLop DocTheoId(int iD)
        {
            var            boiNhieuLopLogic = new MayBoiNhieuLopLogic();;
            MayBoiNhieuLop dongCuon         = new MayBoiNhieuLop();

            try
            {
                var dongCuonBDO = boiNhieuLopLogic.DocTheoId(iD);
                //Chuyen
                ChuyenDoiBDOThanhDTO(dongCuonBDO, dongCuon);
            }
            catch
            {
            }
            return(dongCuon);
        }
示例#4
0
 private static void ChuyenDoiDTOThanhBDO(MayBoiNhieuLop itemDTO, MayBoiNhieuLopBDO itemBDO)
 {
     itemBDO.ID                = itemDTO.ID;
     itemBDO.Ten               = itemDTO.Ten;
     itemBDO.BHR               = itemDTO.BHR;
     itemBDO.TocDoTamGio       = itemDTO.TocDoTamGio;
     itemBDO.PhiKeoMetVuong    = itemDTO.PhiKeoMetVuong;
     itemBDO.ThoiGianChuanBi   = itemDTO.ThoiGianChuanBi;
     itemBDO.DayLoiNhuan       = itemDTO.DayLoiNhuan;
     itemBDO.DaySoLuong        = itemDTO.DaySoLuong;
     itemBDO.Ma_01             = itemDTO.Ma_01;
     itemBDO.DonViTinh         = itemDTO.DonViTinh;
     itemBDO.DaySoLuongNiemYet = itemDTO.DaySoLuongNiemYet;
     itemBDO.DienGiai          = itemDTO.DienGiai;
     itemBDO.ThuTu             = itemDTO.ThuTu;
 }