public ActionResult Edit(int id)
        {
            var objDB = _DotTuyenDungService.GetById(id);

            if (objDB == null)
            {
                return(HttpNotFound());
            }
            var listYeuCauTuyenDung = _RecruitmentRequestService.GetRecruitmentRequestsNew();

            ViewBag.listYeuCauTuyenDung = listYeuCauTuyenDung;

            var model = _mapper.Map <TD_DotTuyenDung, EditDotTuyenDungModel>(objDB);
            var listYeuCauTuyenDungDot = _DotTuyenDungService.GetYeuCauCuaDotTuyenDung(objDB.Id);

            ViewBag.listYeuCauTuyenDungDot = listYeuCauTuyenDungDot;
            var tailieudinhkem = _taiLieuDinhKemService.GetListTaiLieuAllByType(LoaiTaiLieuUploadConstant.DotTuyenDung, objDB.Id);

            ViewBag.tailieudinhkem = tailieudinhkem;

            return(View(model));
        }
Exemple #2
0
        public ActionResult Edit(long id)
        {
            var modelDB = _hoSoUngVienService.GetById(id);

            if (modelDB == null)
            {
                return(HttpNotFound());
            }
            var model = _mapper.Map <TD_HoSoUngVien, EditHoSoUngVienModel>(modelDB);

            ViewBag.DanTocDropdownData       = _DulieuDanhmucService.GetDropdownlist(DanhMucConstant.DanToc, model.DanToc).AddDefault("--Chọn dân tộc--");
            ViewBag.TonGiaoDropdownData      = _DulieuDanhmucService.GetDropdownlist(DanhMucConstant.TonGiao, model.TonGiao).AddDefault("--Chọn tôn giáo--");
            ViewBag.QuocGiaDropdownData      = _DulieuDanhmucService.GetDropdownlist(DanhMucConstant.QuocGia, model.QuocTich).AddDefault("--Chọn quốc tịch--");
            ViewBag.XuatThanDropdownData     = _DulieuDanhmucService.GetDropdownlist(DanhMucConstant.XuatThan, model.XuatThan).AddDefault("--Chọn xuất thân--");
            ViewBag.KenhUngTuyenDropdownData = _DulieuDanhmucService.GetDropdownlist(DanhMucConstant.KenhUngTuyen, model.KenhUngTuyen).AddDefault("--Chọn kênh ứng tuyển--");
            ViewBag.DotTuyenDung             = _DotTuyenDungService.DropdownListDotTuyenDung().AddDefault("--Chọn đợt tuyển dụng--");
            ViewBag.YeuCauTuyenDung          = _DotTuyenDungService.GetYeuCauCuaDotTuyenDungDropdownlist(modelDB.IDDotTuyenDung.GetValueOrDefault(), model.IdYeuCauTuyenDung).AddDefault("--Chọn đợt tuyển dụng--");

            ViewBag.lstTaiLieu = _taiLieuDinhKemService.GetListTaiLieuAllByType(LoaiTaiLieuUploadConstant.HoSoUngVien, model.Id);
            return(View(model));
        }