public ActionResult DangKimoi() { using (var _districtService = new DistrictRepository()) { ViewBag.Districts = _districtService.GetDistrictByProvinceId(79); } using (var _wardService = new WardRepository()) { ViewBag.Wards = _wardService.GetWardByDistrictId(760); } using (var _provinceService = new ProvinceRepository()) { ViewBag.Provinces = _provinceService.GetProvinceByCountryId(237); } using (var _CapTruongService = new CapTruongRepository()) { ViewBag.CapTruongs = _CapTruongService.GetCapTruongs(); } using (var _monDuTuyen = new MonDuTuyenRepository()) { ViewBag.MonDays = _monDuTuyen.GetMonDuTuyens(); } using (var _hinhThucDaoTao = new HinhThucDaoTaoRepository()) { ViewBag.HinhThucDaoTaos = _hinhThucDaoTao.GetHinhThucDaoTaos(); } using (var _xepLoaiHocLuc = new XepLoaiHocLucRepository()) { ViewBag.XepLoaiHocLucs = _xepLoaiHocLuc.GetXepLoaiHocLucs(); } using (var _chuyenNghanhDaoTao = new ChuyenNganhDaoTaoRepository()) { ViewBag.ChuyenNganhDaoTaos = _chuyenNghanhDaoTao.GetChuyenNganhDaoTaos(); } using (var _bangTotNghiep = new BangTotNghiepRepository()) { ViewBag.BangTotNghieps = _bangTotNghiep.GetBangTotNghieps(); } using (var _schoolService = new SchoolRepository()) { ViewBag.Schools = _schoolService.GetSchoolsByDistrictAndCapHoc(760, 4); } using (var _trinhdoDaoTao = new TrinhDoCaoNhatRepository()) { ViewBag.TrinhDoCaoNhats = _trinhdoDaoTao.GetTrinhDoCaoNhats(); } return(View()); }
public ActionResult CapNhatThuyenChuyen(string id, string cmnd) { using (var _thuyenchuyenService = new ThuyenChuyenRepository()) { ThuyenChuyen thuyenChuyen = _thuyenchuyenService.CheckThuyenChuyenExistedByIdAndCMND(id, cmnd); if (thuyenChuyen == null || (thuyenChuyen.StatusId != 5 && thuyenChuyen.StatusId != null)) { return(RedirectToRoute("thuyenchuyenkiemtramatruong")); } using (var _districtService = new DistrictRepository()) { ViewBag.DistrictsNoiSinh = _districtService.GetDistrictByProvinceId(thuyenChuyen.Ward.District.ProvinceId); ViewBag.DistrictsHKTT = _districtService.GetDistrictByProvinceId(thuyenChuyen.Ward1.District.ProvinceId); ViewBag.Districts = _districtService.GetDistrictByProvinceId(79); } using (var _wardService = new WardRepository()) { ViewBag.WardsNoiSinh = _wardService.GetWardByDistrictId(thuyenChuyen.Ward.DistrictID); ViewBag.WardsHKTT = _wardService.GetWardByDistrictId(thuyenChuyen.Ward1.DistrictID); } using (var _provinceService = new ProvinceRepository()) { ViewBag.Provinces = _provinceService.GetProvinceByCountryId(237); } using (var _CapTruongService = new CapTruongRepository()) { ViewBag.CapTruongs = _CapTruongService.GetCapTruongs(); } using (var _monDuTuyen = new MonDuTuyenRepository()) { ViewBag.MonDays = _monDuTuyen.GetMonDuTuyens(); } using (var _hinhThucDaoTao = new HinhThucDaoTaoRepository()) { ViewBag.HinhThucDaoTaos = _hinhThucDaoTao.GetHinhThucDaoTaos(); } using (var _xepLoaiHocLuc = new XepLoaiHocLucRepository()) { ViewBag.XepLoaiHocLucs = _xepLoaiHocLuc.GetXepLoaiHocLucs(); } using (var _chuyenNghanhDaoTao = new ChuyenNganhDaoTaoRepository()) { ViewBag.ChuyenNganhDaoTaos = _chuyenNghanhDaoTao.GetChuyenNganhDaoTaos(); } using (var _bangTotNghiep = new BangTotNghiepRepository()) { ViewBag.BangTotNghieps = _bangTotNghiep.GetBangTotNghieps(); } using (var _schoolService = new SchoolRepository()) { ViewBag.SchoolsDCT = _schoolService.GetSchoolsByDistrictAndCapHoc(thuyenChuyen.School.Ward.DistrictID, thuyenChuyen.School.CapTruongId); ViewBag.SchoolsCD = _schoolService.GetSchoolsByDistrictAndCapHoc(thuyenChuyen.School1.Ward.DistrictID, thuyenChuyen.School1.CapTruongId); } using (var _trinhdoDaoTao = new TrinhDoCaoNhatRepository()) { ViewBag.TrinhDoCaoNhats = _trinhdoDaoTao.GetTrinhDoCaoNhats(); } ViewBag.ThuyenChuyen = thuyenChuyen; return(View()); } }