示例#1
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));
        }
示例#2
0
        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));
        }
        public ActionResult InHoSoUngTuyen(int madangki)
        {
            RegistrationInterview registrationInterview = registrationInterviewRepository.GetRegistrationInterviewByIdWithDetail(madangki);

            return(View(registrationInterview));
        }
        public ActionResult PrintRegistrationInterview(int id)
        {
            RegistrationInterview registrationInterview = registrationInterviewRepository.GetRegistrationInterviewByIdWithDetail(id);

            return(View(registrationInterview));
        }