Exemple #1
0
 private static void ChuyenDTOThanhBDO(ToChayDigi toChayDigiDTO, ToChayDigiBDO toChayDigiBDO)
 {
     toChayDigiBDO.ID                    = toChayDigiDTO.ID;
     toChayDigiBDO.Ten                   = toChayDigiDTO.Ten;
     toChayDigiBDO.Rong                  = toChayDigiDTO.Rong;
     toChayDigiBDO.Cao                   = toChayDigiDTO.Cao;
     toChayDigiBDO.VungInRong            = toChayDigiDTO.VungInRong;
     toChayDigiBDO.VungInCao             = toChayDigiDTO.VungInCao;
     toChayDigiBDO.KhoToChayCoTheIn      = toChayDigiDTO.KhoToChayCoTheIn;
     toChayDigiBDO.TocDo                 = toChayDigiDTO.TocDo;
     toChayDigiBDO.InTuTro               = toChayDigiDTO.InTuTro;
     toChayDigiBDO.LaInKhoDai            = toChayDigiDTO.LaInKhoDai;
     toChayDigiBDO.LaHPIndigo            = toChayDigiDTO.LaHPIndigo;
     toChayDigiBDO.ClickA4MotMau         = toChayDigiDTO.ClickA4MotMau;
     toChayDigiBDO.ClickA4BonMau         = toChayDigiDTO.ClickA4BonMau;
     toChayDigiBDO.ClickA4SauMau         = toChayDigiDTO.ClickA4SauMau;
     toChayDigiBDO.QuiA4                 = toChayDigiDTO.QuiA4;
     toChayDigiBDO.IdMayIn               = toChayDigiDTO.IdMayIn;
     toChayDigiBDO.BHR                   = toChayDigiDTO.BHR;
     toChayDigiBDO.ThoiGianSanSang       = toChayDigiDTO.ThoiGianSanSang;
     toChayDigiBDO.PhiPhePhamSanSang     = toChayDigiDTO.PhiPhePhamSanSang;
     toChayDigiBDO.ThoiGianDuLieuBienDoi = toChayDigiDTO.ThoiGianDuLieuBienDoi;
     toChayDigiBDO.DaySoLuong            = toChayDigiBDO.DaySoLuong;
     toChayDigiBDO.DayLoiNhuan           = toChayDigiBDO.DayLoiNhuan;
     toChayDigiBDO.ThuTu                 = toChayDigiDTO.ThuTu;
 }
Exemple #2
0
        public static ToChayDigi DocTheoId(int idToDigi)
        {
            var toChayDigiLogic = new ToChayDigiLogic();
            //
            ToChayDigi toChayDTO = new ToChayDigi();

            try
            {
                var toChayBDO = toChayDigiLogic.DocTheoId(idToDigi);
                //Chuyen
                ToChayDigi.ChuyenBDOThanhDTO(toChayBDO, toChayDTO);
            }
            catch
            {
            }
            return(toChayDTO);
        }