コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }