Example #1
0
 public static TrangThaiDuAnDTO FromEntity(TrangThaiDuAn item)
 {
     return(new TrangThaiDuAnDTO()
     {
         Id = item.Id,
         DuAnId = item.DuAnId,
         DuAn = item.DuAn != null?DuAnDTO.FromEntity(item.DuAn) : null,
                    TrangThaiId = item.TrangThaiId,
                    TrangThai = item.TrangThai != null?TrangThaiDTO.FromEntity(item.TrangThai) : null,
                                    ThoiGianTao = item.ThoiGianTao,
     });
 }
Example #2
0
 public static ChiTietCongViecDTO FromEntity(ChiTietCongViec item)
 {
     return(new ChiTietCongViecDTO()
     {
         Id = item.Id,
         CongViecId = item.CongViecId,
         CongViec = item.CongViec != null?CongViecDTO.FromEntity(item.CongViec) : null,
                        TrangThaiId = item.TrangThaiId,
                        TrangThai = item.TrangThai != null?TrangThaiDTO.FromEntity(item.TrangThai) : null,
                                        TenChiTietCongViec = item.TenChiTietCongViec,
                                        NgayHetHan = item.NgayHetHan,
                                        LichSuChiTietCongViec = item.LichSuChiTietCongViec?.Select(LichSuChiTietCongViecDTO.FromEntity),
                                        BaoCao = item.BaoCao?.Select(BaoCaoDTO.FromEntity),
     });
 }
Example #3
0
 //public IEnumerable<DanhGiaChungUngVienDTO> DanhGiaChungUngVien { get; set; }
 //public IEnumerable<KyNangUngVienDTO> KyNangUngVien { get; set; }
 //public IEnumerable<UngTuyenDTO> UngTuyen { get; set; }
 //public IEnumerable<UngVienLamBaiTestDTO> UngVienLamBaiTest { get; set; }
 public static UngVienDTO FromEntity(UngVien item)
 {
     return(new UngVienDTO()
     {
         Id = item.Id,
         TinhThanhId = item.TinhThanhId,
         TrangThaiId = item.TrangThaiId,
         QuanHuyenId = item.QuanHuyenId,
         XaPhuongId = item.XaPhuongId,
         TruongDaiHocId = item.TruongDaiHocId,
         HoTen = item.HoTen,
         NgaySinh = item.NgaySinh,
         Sdt = item.Sdt,
         Account = item.Account,
         Email = item.Email,
         Cmtnd = item.Cmtnd,
         DiaChi = item.DiaChi,
         LinkAnhCaNhan = item.LinkAnhCaNhan,
         LinkAnhMatTruoc = item.LinkAnhMatTruoc,
         LinkAnhMatSau = item.LinkAnhMatSau,
         BietQuaFaceBook = item.BietQuaFaceBook,
         BietQuaWeb = item.BietQuaWeb,
         BietQuaGioiThieu = item.BietQuaGioiThieu,
         TenNguoiGioiThieu = item.TenNguoiGioiThieu,
         LinkFaceBook = item.LinkFaceBook,
         LinkSkype = item.LinkSkype,
         LinkZalo = item.LinkZalo,
         DaDienDu = item.DaDienDu,
         TenKhoa = item.TenKhoa,
         NamThu = item.NamThu,
         TinhThanh = item.TinhThanh != null?TinhThanhDTO.FromEntity(item.TinhThanh) : null,
                         TruongDaiHoc = item.TruongDaiHoc != null?TruongDaiHocDTO.FromEntity(item.TruongDaiHoc) : null,
                                            QuanHuyen = item.QuanHuyen != null?QuanHuyenDTO.FromEntity(item.QuanHuyen) : null,
                                                            XaPhuong = item.XaPhuong != null?XaPhuongDTO.FromEntity(item.XaPhuong) : null,
                                                                           //ThanhVienDuAn = item.ThanhVienDuAn?.Select(ThanhVienDuAnDTO.FromEntity),
                                                                           //CVUngVien = item.CVUngVien?.Select(CVUngVienDTO.FromEntity),
                                                                           TrangThai = item.TrangThai != null?TrangThaiDTO.FromEntity(item.TrangThai) : null,
                                                                                           //DanhGiaChungUngVien = item.DanhGiaChungUngVien?.Select(DanhGiaChungUngVienDTO.FromEntity),
                                                                                           //KyNangUngVien = item.KyNangUngVien?.Select(KyNangUngVienDTO.FromEntity),
                                                                                           //UngTuyen = item.UngTuyen?.Select(UngTuyenDTO.FromEntity),
                                                                                           //UngVienLamBaiTest = item.UngVienLamBaiTest?.Select(UngVienLamBaiTestDTO.FromEntity),
     });
 }