public ActionResult CapNhatHoSoUngTuyen(int madangki, string cmnd) { RegistrationInterview registrationInterview = registrationInterviewRepository.GetRegistrationInterviewByIdAndIdentifyCard(madangki, cmnd.Trim()); if (registrationInterview == null || registrationInterview.CreatedAt.Value.Year != DateTime.Now.Year || registrationInterview.NguoiRaSoat != null || registrationInterview.IsActive == false) { return(RedirectToRoute("capnhathosougtuyen")); } List <Province> province = provinceRepository.GetProvinceByCountryId(237); List <District> nohnQuanHuyen = districtRepository.GetDistrictByProvinceId(registrationInterview.Ward.District.ProvinceId); List <Ward> nohnPhuongXa = wardRepository.GetWardByDistrictId(registrationInterview.Ward.DistrictID); List <District> hkttQuanHuyen = districtRepository.GetDistrictByProvinceId(registrationInterview.Ward1.District.ProvinceId); List <Ward> hkttPhuongXa = wardRepository.GetWardByDistrictId(registrationInterview.Ward1.DistrictID); List <HinhThucDaoTao> hinhThucDaoTaos = hinhThucDaoTaoRepository.GetHinhThucDaoTaos(); List <BangTotNghiep> bangTotNghieps = bangTotNghiepRepository.GetBangTotNghieps(); List <ChuyenNganhDaoTao> chuyenNganhDaoTaos = chuyenNganhDaoTaoRepository.GetChuyenNganhDaoTaos(); List <TrinhDoCaoNhat> trinhDoCaoNhats = trinhDoCaoNhatRepository.GetTrinhDoCaoNhats(); List <LamViecTrongNganh> lamViecTrongNganhs = lamViecTrongNganhRepository.GetLamViecTrongNganhs(); List <TrinhDoTinHoc> trinhDoTinHocs = trinhDoTinHocRepository.GetTrinhDoTinHocs(); List <TrinhDoNgoaiNgu> trinhDoNgoaiNgus = trinhDoNgoaiNguRepository.GetTrinhDoNgoaiNgus(); List <MonDuTuyen> monDuTuyens = monDuTuyenRepository.GetMonDuTuyens(); List <XepLoaiHocLuc> xepLoaiHocLucs = xepLoaiHocLucRepository.GetXepLoaiHocLucs(); List <District> HCMDistrict = districtRepository.GetDistrictByProvinceId(79); CandidateModelInOneView candidateModelInOneView = new CandidateModelInOneView(province, nohnQuanHuyen, nohnPhuongXa, hkttQuanHuyen, hkttPhuongXa, registrationInterview, hinhThucDaoTaos, bangTotNghieps, trinhDoCaoNhats, chuyenNganhDaoTaos, lamViecTrongNganhs, trinhDoTinHocs, trinhDoNgoaiNgus, monDuTuyens, xepLoaiHocLucs, HCMDistrict); return(View(candidateModelInOneView)); }
public ActionResult CapNhatHoSoUngTuyen(string madangki, string cmnd) { RegistrationInterview registrationInterview = registrationInterviewRepository.GetRegistrationInterviewByIdAndIdentifyCard(madangki.ToUpper(), cmnd.Trim()); if (registrationInterview.CreatedAt.Value.Year != DateTime.Now.Year || registrationInterview.TrangThaiHosoTuyenDungId == 1 || registrationInterview.TrangThaiHosoTuyenDungId == 3 || registrationInterview.IsActive == false) { return(RedirectToRoute("capnhatphieudutuyen")); } List <Province> province = provinceRepository.GetProvinceByCountryId(237); List <District> nohnQuanHuyen = districtRepository.GetDistrictByProvinceId(registrationInterview.Ward.District.ProvinceId); List <Ward> nohnPhuongXa = wardRepository.GetWardByDistrictId(registrationInterview.Ward.DistrictID); List <District> hkttQuanHuyen = districtRepository.GetDistrictByProvinceId(registrationInterview.Ward1.District.ProvinceId); List <Ward> hkttPhuongXa = wardRepository.GetWardByDistrictId(registrationInterview.Ward1.DistrictID); List <HinhThucDaoTao> hinhThucDaoTaos = hinhThucDaoTaoRepository.GetHinhThucDaoTaos(); List <BangTotNghiep> bangTotNghieps = bangTotNghiepRepository.GetBangTotNghieps(); List <ChuyenNganhDaoTao> chuyenNganhDaoTaos = chuyenNganhDaoTaoRepository.GetChuyenNganhDaoTaos(); List <TrinhDoCaoNhat> trinhDoCaoNhats = trinhDoCaoNhatRepository.GetTrinhDoCaoNhats(); List <LamViecTrongNganh> lamViecTrongNganhs = lamViecTrongNganhRepository.GetLamViecTrongNganhs(); List <TrinhDoTinHoc> trinhDoTinHocs = trinhDoTinHocRepository.GetTrinhDoTinHocs(); List <TrinhDoNgoaiNgu> trinhDoNgoaiNgus = trinhDoNgoaiNguRepository.GetTrinhDoNgoaiNgus(); List <MonDuTuyen> monDuTuyens = monDuTuyenRepository.GetMonDuTuyens(); List <XepLoaiHocLuc> xepLoaiHocLucs = xepLoaiHocLucRepository.GetXepLoaiHocLucs(); List <District> HCMDistrict = districtRepository.GetDistrictByProvinceId(79); CandidateModelInOneView candidateModelInOneView = new CandidateModelInOneView(province, nohnQuanHuyen, nohnPhuongXa, hkttQuanHuyen, hkttPhuongXa, registrationInterview, hinhThucDaoTaos, bangTotNghieps, trinhDoCaoNhats, chuyenNganhDaoTaos, lamViecTrongNganhs, trinhDoTinHocs, trinhDoNgoaiNgus, monDuTuyens, xepLoaiHocLucs, HCMDistrict); ViewBag.DoiTuongUuTiens = doiTuongUuTienRepository.GetDoiTuongUuTiens(); ViewBag.TonGiaos = tonGiaoRepository.GetTonGiaos(); ViewBag.DanTocs = danTocRepository.GetDanTocs(); ViewBag.ThanhPhanBanThanHienTais = thanhPhanBanThanHienTaiRepository.GetThanhPhanBanThanHienTais(); ViewBag.TruongHopDacBiets = truongHopDacBietRepository.GetTruongHopDacBiets(); ViewBag.TrinhDoNgoaiNguKhas = trinhDoNgoaiNguKhacReposittory.GetTrinhDoNgoaiNguKhacs(); ViewBag.ChungChiNghiepVuSuPhams = chungChiNghiepVuSuPhamRepository.GetChungChiNghiepVuSuPhams(); return(View(candidateModelInOneView)); }
public ActionResult UpdateRegistrationInterview(int registrationId, string identifyCard) { RegistrationInterview registrationInterview = registrationInterviewRepository.GetRegistrationInterviewByIdAndIdentifyCard(registrationId, identifyCard); if (registrationInterview == null || registrationInterview.CreatedAt.Value.Year != DateTime.Now.Year || registrationInterview.ReviewedBy != null) { return(RedirectToRoute("hosoungtuyen")); } List <Province> province = provinceRepository.GetProvinceByCountryId(237); List <District> districtsCurrentLiving = districtRepository.GetDistrictByProvinceId(79); List <Ward> wardsCurrentLiving = wardRepository.GetWardByDistrictId(registrationInterview.CurrentLivingAddress.Ward.DistrictID); List <District> districtsHouseHold = districtRepository.GetDistrictByProvinceId(registrationInterview.HouseHold.Ward.District.ProvinceId); List <Ward> wardsHouseHold = wardRepository.GetWardByDistrictId(registrationInterview.HouseHold.Ward.DistrictID); List <TrainningCategory> trainningCategories = trainningCategoryRepository.GetTrainningCategories(); List <GraduationClassfication> graduationClassfication = graduationClassficationRepository.GetGraduationClassfications(); List <SpecializedTraining> specializedTrainings = specializedTrainingRepository.GetSpecializedTrainings(); List <HighestLevelEducation> highestLevelEducations = highestLevelEducationRepository.GetHighestLevelEducations(); List <StatusWorikingInEducation> statusWorikingInEducations = statusWorikingInEducationRepository.GetStatusWorikingInEducations(); List <InfomationTechnologyDegree> infomationTechnologyDegrees = informationTechnologyDegree.GetAllInfomationTechnologyDegree(); List <ForeignLanguageCertification> foreignLanguageCertifications = foreignLanguageRepository.GetAllForeignLanguageCertification(); List <Subject> subjects = subjectRepository.GetSubjects(); List <DegreeClassification> degreeClassifications = degreeClassificationRepository.GetDegreeClassifications(); List <SchoolDegree> schoolDegrees = degreeRepository.GetSchoolDegrees(); CandidateModelInOneView candidateModelInOneView = new CandidateModelInOneView(province, districtsCurrentLiving, wardsCurrentLiving, districtsHouseHold, wardsHouseHold, registrationInterview, trainningCategories, graduationClassfication, highestLevelEducations, specializedTrainings, statusWorikingInEducations, infomationTechnologyDegrees, foreignLanguageCertifications, subjects, degreeClassifications, schoolDegrees); return(View(candidateModelInOneView)); }
public ActionResult DuyetHoSoChiTiet(int id) { int permissionId = 7; Account account = (Account)Session[Utils.Constants.USER_SESSION]; if (account == null) { return(RedirectToRoute("login")); } List <UserPermission> userPermission = (List <UserPermission>)Session[Utils.Constants.USER_PERMISSION_SESSION]; if (userPermission.Where(s => s.PermissionId == permissionId).SingleOrDefault() == null) { return(RedirectToRoute("login")); } RegistrationInterview registrationInterview = registrationInterviewRepository.GetRegistrationInterviewByIdWithDetail(id); if (registrationInterview == null || registrationInterview.TrangThaiHosoTuyenDungId == 3 || registrationInterview.TrangThaiHosoTuyenDungId == 1 || registrationInterview.UpdatedAt == null) { return(RedirectToRoute("duyethoso")); } List <Province> province = provinceRepository.GetProvinceByCountryId(237); List <District> nohnQuanHuyen = districtRepository.GetDistrictByProvinceId(registrationInterview.Ward.District.ProvinceId); List <Ward> nohnPhuongXa = wardRepository.GetWardByDistrictId(registrationInterview.Ward.DistrictID); List <District> hkttQuanHuyen = districtRepository.GetDistrictByProvinceId(registrationInterview.Ward1.District.ProvinceId); List <Ward> hkttPhuongXa = wardRepository.GetWardByDistrictId(registrationInterview.Ward1.DistrictID); List <HinhThucDaoTao> hinhThucDaoTaos = hinhThucDaoTaoRepository.GetHinhThucDaoTaos(); List <BangTotNghiep> bangTotNghieps = bangTotNghiepRepository.GetBangTotNghieps(); List <ChuyenNganhDaoTao> chuyenNganhDaoTaos = chuyenNganhDaoTaoRepository.GetChuyenNganhDaoTaos(); List <TrinhDoCaoNhat> trinhDoCaoNhats = trinhDoCaoNhatRepository.GetTrinhDoCaoNhats(); List <LamViecTrongNganh> lamViecTrongNganhs = lamViecTrongNganhRepository.GetLamViecTrongNganhs(); List <TrinhDoTinHoc> trinhDoTinHocs = trinhDoTinHocRepository.GetTrinhDoTinHocs(); List <TrinhDoNgoaiNgu> trinhDoNgoaiNgus = trinhDoNgoaiNguRepository.GetTrinhDoNgoaiNgus(); List <MonDuTuyen> monDuTuyens = monDuTuyenRepository.GetMonDuTuyens(); List <XepLoaiHocLuc> xepLoaiHocLucs = xepLoaiHocLucRepository.GetXepLoaiHocLucs(); List <District> HCMDistrict = districtRepository.GetDistrictByProvinceId(79); CandidateModelInOneView candidateModelInOneView = new CandidateModelInOneView(province, nohnQuanHuyen, nohnPhuongXa, hkttQuanHuyen, hkttPhuongXa, registrationInterview, hinhThucDaoTaos, bangTotNghieps, trinhDoCaoNhats, chuyenNganhDaoTaos, lamViecTrongNganhs, trinhDoTinHocs, trinhDoNgoaiNgus, monDuTuyens, xepLoaiHocLucs, HCMDistrict); ViewBag.DoiTuongUuTiens = doiTuongUuTienRepository.GetDoiTuongUuTiens(); ViewBag.TonGiaos = tonGiaoRepository.GetTonGiaos(); ViewBag.DanTocs = danTocRepository.GetDanTocs(); ViewBag.ThanhPhanBanThanHienTais = thanhPhanBanThanHienTaiRepository.GetThanhPhanBanThanHienTais(); ViewBag.TruongHopDacBiets = truongHopDacBietRepository.GetTruongHopDacBiets(); ViewBag.TrinhDoNgoaiNguKhas = trinhDoNgoaiNguKhacReposittory.GetTrinhDoNgoaiNguKhacs(); ViewBag.ChungChiNghiepVuSuPhams = chungChiNghiepVuSuPhamRepository.GetChungChiNghiepVuSuPhams(); return(View(candidateModelInOneView)); }
// GET: CommonsAPI public ActionResult GetWardByDistrictId(int id) { List <Ward> wards = wardRepository.GetWardByDistrictId(id); var wardsJson = JsonConvert.SerializeObject(wards, Formatting.None, new JsonSerializerSettings() { ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore }); return(Json(new ReturnResult(200, "success", wardsJson), JsonRequestBehavior.AllowGet)); }
public ActionResult ApproveRegistration(int id) { Account usersession = (Account)Session[CommonConstants.USER_SESSION]; if (usersession == null || usersession.RoleId != 4 && usersession.RoleId != 2) { Session.RemoveAll(); return(RedirectToRoute("login", null)); } RegistrationInterview registrationInterview = registrationInterviewRepository.GetRegistrationInterviewByIdWithDetail(id); if (registrationInterview == null || registrationInterview.PhoneNumber == null || registrationInterview.CreatedAt.Value.Year != DateTime.Now.Year || registrationInterview.ReviewedBy != null || registrationInterview.CreatedAtManagementUnitId != usersession.ManagementUnitId) { return(RedirectToRoute("raxoathoso")); } List <Province> province = provinceRepository.GetProvinceByCountryId(237); List <District> districtsCurrentLiving = districtRepository.GetDistrictByProvinceId(79); List <Ward> wardsCurrentLiving = wardRepository.GetWardByDistrictId(registrationInterview.CurrentLivingAddress.Ward.DistrictID); List <District> districtsHouseHold = districtRepository.GetDistrictByProvinceId(registrationInterview.HouseHold.Ward.District.ProvinceId); List <Ward> wardsHouseHold = wardRepository.GetWardByDistrictId(registrationInterview.HouseHold.Ward.DistrictID); List <TrainningCategory> trainningCategories = trainningCategoryRepository.GetTrainningCategories(); List <GraduationClassfication> graduationClassfication = graduationClassficationRepository.GetGraduationClassfications(); List <SpecializedTraining> specializedTrainings = specializedTrainingRepository.GetSpecializedTrainings(); List <HighestLevelEducation> highestLevelEducations = highestLevelEducationRepository.GetHighestLevelEducations(); List <StatusWorikingInEducation> statusWorikingInEducations = statusWorikingInEducationRepository.GetStatusWorikingInEducations(); List <InfomationTechnologyDegree> infomationTechnologyDegrees = informationTechnologyDegree.GetAllInfomationTechnologyDegree(); List <ForeignLanguageCertification> foreignLanguageCertifications = foreignLanguageRepository.GetAllForeignLanguageCertification(); List <Subject> subjects = subjectRepository.GetSubjects(); List <DegreeClassification> degreeClassifications = degreeClassificationRepository.GetDegreeClassifications(); List <SchoolDegree> schoolDegrees = degreeRepository.GetSchoolDegrees(); List <SubjectRequiredSchoolDegree> subjectRequiredSchoolDegrees = subjectsRequiredSchoolDegreeRepository.GetSubjectRequiredSchoolDegreesBySchoolDegree(registrationInterview.SchoolDegreeIdExpectedTeach); CandidateModelInOneView candidateModelInOneView = new CandidateModelInOneView(province, districtsCurrentLiving, wardsCurrentLiving, districtsHouseHold, wardsHouseHold, registrationInterview, trainningCategories, graduationClassfication, highestLevelEducations, specializedTrainings, statusWorikingInEducations, infomationTechnologyDegrees, foreignLanguageCertifications, subjects, degreeClassifications, schoolDegrees); return(View(candidateModelInOneView)); }