Ejemplo n.º 1
0
        private static void ChuyenDoiItemDTOThanhBDO(TuyChonDanhThiep tuyChonDThiep, TuyChonDanhThiepBDO tuyChonDThiepBDO)
        {
            tuyChonDThiepBDO.ID  = tuyChonDThiep.ID;
            tuyChonDThiepBDO.Ten = tuyChonDThiep.Ten;

            tuyChonDThiepBDO.ThuTu = tuyChonDThiep.ThuTu;
        }
Ejemplo n.º 2
0
        public static string Sua(TuyChonDanhThiep item)
        {
            var tuyChonDThiepLogic = new TuyChonDanhThiepLogic();
            var itemBDO            = new TuyChonDanhThiepBDO();

            ChuyenDoiItemDTOThanhBDO(item, itemBDO);
            return(tuyChonDThiepLogic.Sua(itemBDO));
        }
Ejemplo n.º 3
0
        public static TuyChonDanhThiep DocTheoId(int idKhuonEpKim)
        {
            var tuyChonDThiepLogic = new TuyChonDanhThiepLogic();
            var tuyChonDThiep      = new TuyChonDanhThiep();

            try
            {
                var tuyChonDThiepBDO = tuyChonDThiepLogic.DocTheoId(idKhuonEpKim);
                //Chuyen
                ChuyenDoiBDOThanhDTO(tuyChonDThiepBDO, tuyChonDThiep);
            }
            catch {
            }
            return(tuyChonDThiep);
        }
Ejemplo n.º 4
0
 //Chuyển đổi
 private static void ChuyenDoiBDOThanhDTO(TuyChonDanhThiepBDO tuyChonDThiepBDO, TuyChonDanhThiep tuyChonDThiep)
 {
     tuyChonDThiep.ID    = tuyChonDThiepBDO.ID;
     tuyChonDThiep.Ten   = tuyChonDThiepBDO.Ten;
     tuyChonDThiep.ThuTu = tuyChonDThiepBDO.ThuTu;
 }