예제 #1
0
        public static string Them(MayInDigi item)
        {
            MayInDigiLogic mayInDigiLogic = new MayInDigiLogic();
            var            itemBDO        = new MayInDigiBDO();

            ChuyenDTOhanhBDO(item, itemBDO);
            return(mayInDigiLogic.Them(itemBDO));
        }
예제 #2
0
 public static void ChuyenDTOhanhBDO(MayInDigi monTP_DTO, MayInDigiBDO monTP_BDO)
 {
     monTP_BDO.ID                = monTP_DTO.ID;
     monTP_BDO.Ten               = monTP_DTO.Ten;
     monTP_BDO.BHR               = monTP_DTO.BHR;
     monTP_BDO.KhoInMin          = monTP_DTO.KhoInMin;
     monTP_BDO.KhoInMax          = monTP_DTO.KhoInMax;
     monTP_BDO.ThongTinTocDo     = monTP_DTO.ThongTinTocDo;
     monTP_BDO.TocDoHieuQua      = monTP_DTO.TocDoHieuQua;
     monTP_BDO.ClickA4_1M        = monTP_DTO.ClickA4_1M;
     monTP_BDO.ClickA4_4M        = monTP_DTO.ClickA4_4M;
     monTP_BDO.ClickA4_6M        = monTP_DTO.ClickA4_6M;
     monTP_BDO.ThoiGianSanSang   = monTP_DTO.ThoiGianSanSang;
     monTP_BDO.PhiPhePhamSanSang = monTP_DTO.PhiPhePhamSanSang;
 }
예제 #3
0
        public static MayInDigi DocTheoId(int iD)
        {
            var          mayInDigiLogic = new MayInDigiLogic();
            MayInDigiBDO mayInDigi_BDO  = null;
            MayInDigi    mayInDigi_DTO  = null;

            try
            {
                mayInDigi_BDO = mayInDigiLogic.DocTheoId(iD);
                if (mayInDigi_BDO != null)
                {
                    mayInDigi_DTO = new MayInDigi();
                    //Chuyển đổi
                    MayInDigi.ChuyenBDOThanhDTO(mayInDigi_BDO, mayInDigi_DTO);
                }
            }
            catch { }
            return(mayInDigi_DTO);
        }