public JsonResult GetDsYeuCauOfDot(int?id) { var result = new List <SelectListItem>(); if (!id.HasValue) { return(Json(result)); } result = _DotTuyenDungService.GetYeuCauCuaDotTuyenDungDropdownlist(id.Value); return(Json(result)); }
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)); }