public List <engage_resumeModel> SeBy(int dqy, String Qid, String Pid, String Guan, String Start, String End, String Zt) { int rows = 0; List <engage_resume> list; if (Start == "" && End == "") { list = FenYe(e => e.Id, e => e.human_major_kind_id.Contains(Qid) && e.check_status.Equals(Zt) && e.human_major_id.Contains(Pid) && (e.human_name.Contains(Guan) || e.human_telephone.Contains(Guan) || e.human_idcard.Contains(Guan) || e.human_history_records.Contains(Guan)), ref rows, dqy, 3); } else { DateTime start = Convert.ToDateTime(Start); DateTime end = Convert.ToDateTime(End); list = FenYe(e => e.Id, e => e.human_major_kind_id.Contains(Qid) && e.check_status.Equals(Zt) && e.human_major_id.Contains(Pid) && (e.human_name.Contains(Guan) || e.human_telephone.Contains(Guan) || e.human_idcard.Contains(Guan) || e.human_history_records.Contains(Guan)) && e.regist_time >= start && e.regist_time <= end, ref rows, dqy, 3); } List <engage_resumeModel> list2 = new List <engage_resumeModel>(); foreach (var item in list) { engage_resumeModel sd = new engage_resumeModel() { Id = item.Id, human_major_kind_id = item.human_major_kind_id, human_major_id = item.human_major_id, human_name = item.human_name, human_sex = item.human_sex, human_major_kind_name = item.human_major_kind_name, human_major_name = item.human_major_name, human_telephone = item.human_telephone, check_status = item.check_status, }; list2.Add(sd); } return(list2); }
public int Add(engage_resumeModel st) { //把DTO转为EO9 engage_resume est = new engage_resume() { Id = st.Id, human_address = st.human_address, human_age = st.human_age, human_birthday = st.human_birthday, human_birthplace = st.human_birthplace, human_college = st.human_college, human_educated_degree = st.human_educated_degree, human_educated_major = st.human_educated_major, human_educated_years = st.human_educated_years, human_email = st.human_email, human_history_records = st.human_history_records, human_hobby = st.human_hobby, human_homephone = st.human_homephone, human_idcard = st.human_idcard, human_major_id = st.human_major_id, human_major_kind_id = st.human_major_kind_id, human_major_kind_name = st.human_major_kind_name, human_mobilephone = st.human_mobilephone, human_major_name = st.human_major_name, human_name = st.human_name, human_nationality = st.human_nationality, human_party = st.human_party, human_picture = st.human_picture, human_postcode = st.human_postcode, human_race = st.human_race, human_religion = st.human_religion, human_sex = st.human_sex, human_specility = st.human_specility, human_telephone = st.human_telephone, attachment_name = st.attachment_name, checker = st.checker, check_status = st.check_status, check_time = st.check_time, pass_checkComment = st.pass_checkComment, pass_checker = st.pass_checker, pass_check_status = st.pass_check_status, pass_check_time = st.pass_check_time, pass_passComment = st.pass_passComment, pass_register = st.pass_register, pass_regist_time = st.pass_regist_time, total_points = st.total_points, test_amount = st.test_amount, test_checker = st.test_checker, test_check_time = st.test_check_time, engage_type = st.engage_type, demand_salary_standard = st.demand_salary_standard, interview_status = st.interview_status, recomandation = st.recomandation, register = st.register, regist_time = st.regist_time, remark = st.remark }; return(Add(est)); }
public ActionResult SQ(int id) { List <engage_resumeModel> list = ss.ByID(id); engage_resumeModel erm = new engage_resumeModel { Id = list[0].Id, human_name = list[0].human_name, engage_type = list[0].engage_type, human_address = list[0].human_address, human_postcode = list[0].human_postcode, human_major_kind_id = list[0].human_major_kind_id, human_major_kind_name = list[0].human_major_kind_name, human_major_id = list[0].human_major_id, human_major_name = list[0].human_major_name, human_telephone = list[0].human_telephone, human_homephone = list[0].human_homephone, human_mobilephone = list[0].human_mobilephone, human_email = list[0].human_email, human_hobby = list[0].human_hobby, human_specility = list[0].human_specility, human_sex = list[0].human_sex, human_religion = list[0].human_religion, human_party = list[0].human_party, human_nationality = list[0].human_nationality, human_race = list[0].human_race, human_birthday = list[0].human_birthday, human_age = list[0].human_age, human_educated_degree = list[0].human_educated_degree, human_educated_years = list[0].human_educated_years, human_educated_major = list[0].human_educated_major, human_college = list[0].human_college, human_idcard = list[0].human_idcard, human_birthplace = list[0].human_birthplace, demand_salary_standard = list[0].demand_salary_standard, human_history_records = list[0].human_history_records, remark = list[0].remark, regist_time = list[0].regist_time, check_time = list[0].check_time, pass_check_time = list[0].pass_check_time, pass_regist_time = list[0].pass_regist_time, test_check_time = list[0].test_check_time, recomandation = list[0].recomandation, checker = list[0].checker, interview_amount = list[0].interview_amount, interview_status = list[0].interview_status, image_degree = list[0].image_degree, native_language_degree = list[0].native_language_degree, foreign_language_degree = list[0].foreign_language_degree, response_speed_degree = list[0].response_speed_degree, EQ_degree = list[0].EQ_degree, IQ_degree = list[0].IQ_degree, multi_quality_degree = list[0].multi_quality_degree, pass_register = list[0].pass_register, pass_checker = list[0].pass_checker, pass_check_status = list[0].pass_check_status }; ViewData.Model = erm; return(View()); }
public ActionResult Update(engage_resumeModel u) { engage_interviewModel eim = new engage_interviewModel { human_name = u.human_name, human_major_id = u.human_major_id, human_major_kind_id = u.human_major_kind_id, human_major_kind_name = u.human_major_kind_name, human_major_name = u.human_major_name, resume_id = u.Id }; u.check_status = 1; u.interview_status = 1; // TODO: Add update logic here if (ss.Update(u) > 0 && ieb.Add(eim) > 0) { return(Content("<script>alert('推荐成功');window.location.href='/engage_resume/SelectBy'</script>")); } else { ViewBag.dt = u; } return(View()); }
public ActionResult Add2(engage_resumeModel s) { engage_major_releaseModel csm = new engage_major_releaseModel { major_kind_id = s.human_major_kind_id }; engage_major_releaseModel cfm = new engage_major_releaseModel { major_id = s.human_major_id }; List <engage_major_releaseModel> lists = sb.SelectByName(csm); List <engage_major_releaseModel> listf = sb.SelectByNamee(cfm); s.human_major_kind_name = lists[0].major_kind_name; s.human_major_name = listf[0].major_name; s.check_time = DateTime.Now; s.test_check_time = DateTime.Now; s.pass_regist_time = DateTime.Now; s.pass_check_time = DateTime.Now; if (ss.Add(s) > 0) { return(Content("<script>alert('新增成功');window.location='Add2'</script>")); } else { return(Content("<script>alert('新增成功');window.location='Add2'</script>")); } }
public ActionResult Add(engage_resumeModel em) { engage_interviewModel eim = new engage_interviewModel { Id = em.Id, human_name = em.human_name, human_major_id = em.human_major_id, human_major_kind_id = em.human_major_kind_id, human_major_kind_name = em.human_major_kind_name, human_major_name = em.human_major_name, resume_id = em.Id, image_degree = em.image_degree, interview_amount = em.interview_amount, native_language_degree = em.native_language_degree, foreign_language_degree = em.foreign_language_degree, response_speed_degree = em.response_speed_degree, EQ_degree = em.EQ_degree, IQ_degree = em.IQ_degree, multi_quality_degree = em.multi_quality_degree, }; em.check_status = 2; em.interview_status = 2; em.test_checker = em.multi_quality_degree; em.test_amount = em.interview_amount; if (eib.Update(eim) > 0 && ieb.Update(em) > 0) { return(Content("<script>alert('登记成功');window.location.href='/engage_resume/SelectByy'</script>")); } return(Content("<script>alert('登记失败');window.location.href='/engage_resume/SelectByy'</script>")); }
public int update2(engage_resumeModel st) { engage_resume erm = db.engage_resumes.Where(e => e.Id.Equals(st.Id)).FirstOrDefault(); erm.Id = st.Id; erm.interview_status = st.interview_status; return(db.SaveChanges()); }
public ActionResult SQ(engage_resumeModel em) { if (ss.Update(em) > 0) { return(Content("<script>alert('申请成功!');window.location.href='/engage_resume/LYSQ'</script>")); } return(View(em)); }
public int TKDel(engage_resumeModel st) { engage_resume est = new engage_resume() { res_id = st.res_id, }; return(Delete(est)); }
public int Add(engage_resumeModel item) { engage_resume ko = new engage_resume(); ko.Id = item.Id; ko.human_name = item.human_name; ko.engage_type = item.engage_type; ko.human_address = item.human_address; ko.human_postcode = item.human_postcode; ko.human_major_kind_id = item.human_major_kind_id; ko.human_major_kind_name = item.human_major_kind_name; ko.human_major_id = item.human_major_id; ko.human_major_name = item.human_major_name; ko.human_telephone = item.human_telephone; ko.human_homephone = item.human_homephone; ko.human_mobilephone = item.human_mobilephone; ko.human_email = item.human_email; ko.human_hobby = item.human_hobby; ko.human_specility = item.human_specility; ko.human_sex = item.human_sex; ko.human_religion = item.human_religion; ko.human_party = item.human_party; ko.human_nationality = item.human_nationality; ko.human_race = item.human_race; ko.human_birthday = item.human_birthday; ko.human_age = item.human_age; ko.human_educated_degree = item.human_educated_degree; ko.human_educated_years = item.human_educated_years; ko.human_educated_major = item.human_educated_major; ko.human_college = item.human_college; ko.human_idcard = item.human_idcard; ko.human_birthplace = item.human_birthplace; ko.demand_salary_standard = item.demand_salary_standard; ko.human_history_records = item.human_history_records; ko.remark = item.remark; ko.recomandation = item.recomandation; ko.human_picture = item.human_picture; ko.attachment_name = item.attachment_name; ko.check_status = item.check_status; ko.register = item.register; ko.regist_time = item.regist_time; ko.checker = item.checker; ko.check_time = DateTime.Now; ko.interview_status = item.interview_status; ko.total_points = item.total_points; ko.test_amount = item.test_amount; ko.test_checker = item.test_checker; ko.test_check_time = DateTime.Now; ko.pass_register = item.pass_register; ko.pass_regist_time = DateTime.Now; ko.pass_checker = item.pass_checker; ko.pass_check_time = DateTime.Now; ko.pass_check_status = item.pass_check_status; ko.pass_checkComment = item.pass_checkComment; ko.pass_passComment = item.pass_passComment; return(Add(ko)); }
public ActionResult SP(engage_resumeModel em) { em.check_status = 2; if (ss.Update(em) > 0) { return(Content("<script>alert('审批成功!');window.location.href='/engage_resume/SP'</script>")); } return(View(em)); }
//删除 public int engage_resumeDel(engage_resumeModel erm) { engage_resume er = new engage_resume() { Id = erm.Id }; return(Delete(er)); }
public List <engage_resumeModel> SelectBy(engage_resumeModel st) { List <engage_resume> list = SelectBy(e => e.Id.Equals(st.Id)); List <engage_resumeModel> list2 = new List <engage_resumeModel>(); foreach (var item in list) { engage_resumeModel sd = new engage_resumeModel() { Id = item.Id, human_name = item.human_name, engage_type = item.engage_type, human_address = item.human_address, human_postcode = item.human_postcode, human_major_kind_id = item.human_major_kind_id, human_major_kind_name = item.human_major_kind_name, human_major_id = item.human_major_id, human_major_name = item.human_major_name, human_telephone = item.human_telephone, human_homephone = item.human_homephone, human_mobilephone = item.human_mobilephone, human_email = item.human_email, human_hobby = item.human_hobby, human_specility = item.human_specility, human_sex = item.human_sex, human_religion = item.human_religion, human_party = item.human_party, human_nationality = item.human_nationality, human_race = item.human_race, human_birthday = item.human_birthday, human_age = item.human_age, human_educated_degree = item.human_educated_degree, human_educated_years = item.human_educated_years, human_educated_major = item.human_educated_major, human_college = item.human_college, human_idcard = item.human_idcard, human_birthplace = item.human_birthplace, demand_salary_standard = item.demand_salary_standard, human_history_records = item.human_history_records, remark = item.remark, regist_time = item.regist_time, check_time = item.check_time, pass_check_time = item.pass_check_time, pass_regist_time = item.pass_regist_time, test_check_time = item.test_check_time, recomandation = item.recomandation, checker = item.checker, interview_status = item.interview_status, register = item.register }; list2.Add(sd); } return(list2); }
//查询 public List <engage_resumeModel> engage_resumeSelect() { List <engage_resume> list = Select(); List <engage_resumeModel> liste = new List <engage_resumeModel>(); foreach (engage_resume erm in list) { engage_resumeModel er = new engage_resumeModel() { Id = erm.Id, human_name = erm.human_name, engage_type = erm.engage_type, human_address = erm.human_address, human_postcode = erm.human_postcode, human_major_kind_id = erm.human_major_kind_id, human_major_kind_name = erm.human_major_kind_name, human_major_id = erm.human_major_id, human_major_name = erm.human_major_name, human_telephone = erm.human_telephone, human_homephone = erm.human_homephone, human_mobilephone = erm.human_mobilephone, human_email = erm.human_email, human_hobby = erm.human_hobby, human_specility = erm.human_specility, human_sex = erm.human_sex, human_religion = erm.human_religion, human_party = erm.human_party, human_nationality = erm.human_nationality, human_race = erm.human_race, human_birthday = erm.human_birthday, human_age = erm.human_age, human_educated_degree = erm.human_educated_degree, human_educated_years = erm.human_educated_years, human_educated_major = erm.human_educated_major, human_college = erm.human_college, human_idcard = erm.human_idcard, human_birthplace = erm.human_birthplace, demand_salary_standard = erm.demand_salary_standard, human_history_records = erm.human_history_records, remark = erm.remark, check_status = erm.check_status, regist_time = erm.regist_time, human_picture = erm.human_picture, test_amount = erm.test_amount, register = erm.register, checker = erm.checker, check_time = DateTime.Now }; liste.Add(er); } return(liste); }
public List <engage_resumeModel> Fenye2(int dqy) { int rows = 0; List <engage_resume> list = FenYe <int>(e => e.Id, e => e.interview_status.Equals("待面试"), ref rows, dqy, 3); List <engage_resumeModel> list2 = new List <engage_resumeModel>(); foreach (engage_resume item in list) { engage_resumeModel um = new engage_resumeModel() { Id = item.Id, human_name = item.human_name, engage_type = item.engage_type, human_address = item.human_address, human_postcode = item.human_postcode, human_major_kind_id = item.human_major_kind_id, human_major_kind_name = item.human_major_kind_name, human_major_id = item.human_major_id, human_major_name = item.human_major_name, human_telephone = item.human_telephone, human_homephone = item.human_homephone, human_mobilephone = item.human_mobilephone, human_email = item.human_email, human_hobby = item.human_hobby, human_specility = item.human_specility, human_sex = item.human_sex, human_religion = item.human_religion, human_party = item.human_party, human_nationality = item.human_nationality, human_race = item.human_race, human_birthday = item.human_birthday, human_age = item.human_age, human_educated_degree = item.human_educated_degree, human_educated_years = item.human_educated_years, human_educated_major = item.human_educated_major, human_college = item.human_college, human_idcard = item.human_idcard, human_birthplace = item.human_birthplace, demand_salary_standard = item.demand_salary_standard, human_history_records = item.human_history_records, remark = item.remark, regist_time = item.regist_time, check_time = item.check_time, pass_check_time = item.pass_check_time, pass_regist_time = item.pass_regist_time, test_check_time = item.test_check_time, interview_status = item.interview_status }; list2.Add(um); } return(list2); }
public ActionResult DJ(engage_resumeModel erm) { List <config_file_first_kindModel> list = ib.Select(); List <SelectListItem> listyj = new List <SelectListItem>(); for (int i = 0; i < list.Count; i++) { SelectListItem sl = new SelectListItem() { Text = list[i].first_kind_name.ToString(), Value = list[i].first_kind_id.ToString() }; listyj.Add(sl); } ViewData["yj"] = listyj; human_fileModel hfm = new human_fileModel { human_id = erm.Id.ToString(), human_name = erm.human_name, human_address = erm.human_address, human_age = erm.human_age, human_email = erm.human_email, human_major_id = erm.human_major_id, human_major_kind_id = erm.human_major_kind_id, human_major_kind_name = erm.human_major_kind_name, hunma_major_name = erm.human_major_name, human_telephone = erm.human_telephone, human_mobilephone = erm.human_mobilephone, human_hobby = erm.human_hobby, human_speciality = erm.human_specility, human_religion = erm.human_religion, human_party = erm.human_party, human_nationality = erm.human_nationality, human_race = erm.human_race, human_birthday = erm.human_birthday, human_birthplace = erm.human_birthplace, human_educated_degree = erm.human_educated_degree, human_educated_years = erm.human_educated_years, human_educated_major = erm.human_educated_major, human_id_card = erm.human_idcard, human_postcode = erm.human_postcode, register = Session["us"].ToString(), remark = erm.remark }; ZC(); XZBZ(); return(View(hfm)); }
public int Update(engage_resumeModel st) { engage_resume est = new engage_resume() { Id = st.Id, human_name = st.human_name, engage_type = st.engage_type, human_address = st.human_address, human_postcode = st.human_postcode, human_major_kind_id = st.human_major_kind_id, human_major_kind_name = st.human_major_kind_name, human_major_id = st.human_major_id, human_major_name = st.human_major_name, human_telephone = st.human_telephone, human_homephone = st.human_homephone, human_mobilephone = st.human_mobilephone, human_email = st.human_email, human_hobby = st.human_hobby, human_specility = st.human_specility, human_sex = st.human_sex, human_religion = st.human_religion, human_party = st.human_party, human_nationality = st.human_nationality, human_race = st.human_race, human_birthday = st.human_birthday, human_age = st.human_age, human_educated_degree = st.human_educated_degree, human_educated_years = st.human_educated_years, human_educated_major = st.human_educated_major, human_college = st.human_college, human_idcard = st.human_idcard, human_birthplace = st.human_birthplace, demand_salary_standard = st.demand_salary_standard, human_history_records = st.human_history_records, remark = st.remark, regist_time = st.regist_time, check_time = st.check_time, pass_check_time = st.pass_check_time, pass_regist_time = st.pass_regist_time, test_check_time = st.test_check_time, register = st.register, checker = st.checker, check_status = "通过", interview_status = st.interview_status, recomandation = st.recomandation }; return(Update(est)); }
//根据id查询 public engage_resumeModel engage_resumeSelectById(int id) { MyDbContext mc = new MyDbContext(); List <engage_resume> list = mc.engage_resume.Where( e => e.Id == id).Select(e => e).ToList(); engage_resumeModel erm = new engage_resumeModel() { Id = list[0].Id, human_name = list[0].human_name, engage_type = list[0].engage_type, human_address = list[0].human_address, human_postcode = list[0].human_postcode, human_major_kind_id = list[0].human_major_kind_id, human_major_kind_name = list[0].human_major_kind_name, human_major_id = list[0].human_major_id, human_major_name = list[0].human_major_name, human_telephone = list[0].human_telephone, human_homephone = list[0].human_homephone, human_mobilephone = list[0].human_mobilephone, human_email = list[0].human_email, human_hobby = list[0].human_hobby, human_specility = list[0].human_specility, human_sex = list[0].human_sex, human_religion = list[0].human_religion, human_party = list[0].human_party, human_nationality = list[0].human_nationality, human_race = list[0].human_race, human_birthday = list[0].human_birthday, human_age = list[0].human_age, human_educated_degree = list[0].human_educated_degree, human_educated_years = list[0].human_educated_years, human_educated_major = list[0].human_educated_major, human_college = list[0].human_college, human_idcard = list[0].human_idcard, human_birthplace = list[0].human_birthplace, demand_salary_standard = list[0].demand_salary_standard, human_history_records = list[0].human_history_records, remark = list[0].remark, check_status = list[0].check_status, regist_time = list[0].regist_time, human_picture = list[0].human_picture, test_amount = list[0].test_amount, register = list[0].register, checker = list[0].checker, check_time = list[0].check_time, }; return(erm); }
public List <Model.engage_resumeModel> Select() { List <engage_resume> list = SelectAll(); List <engage_resumeModel> list2 = new List <engage_resumeModel>(); foreach (engage_resume item in list) { engage_resumeModel sm = new engage_resumeModel() { Id = item.Id }; list2.Add(sm); } return(list2); }
public ActionResult register(FormCollection collection) { engage_resumeModel erm = new engage_resumeModel(); erm.human_major_kind_name = Request["hm"]; erm.human_major_name = Request["hmn"]; erm.engage_type = Request["et"]; erm.human_name = Request["human_name"]; erm.human_sex = Request["hs"]; erm.human_email = Request["human_email"]; erm.human_telephone = Request["human_telephone"]; erm.human_homephone = Request["human_homephone"]; erm.human_mobilephone = Request["human_mobilephone"]; erm.human_address = Request["human_address"]; erm.human_postcode = Request["human_postcode"]; erm.human_nationality = Request["hmt"]; erm.human_birthplace = Request["human_birthplace"]; erm.human_birthday = DateTime.Parse(Request["human_birthday"]); erm.human_race = Request["hr"]; erm.human_religion = Request["hrg"]; erm.human_party = Request["hp"]; erm.human_idcard = Request["human_idcard"]; erm.human_age = int.Parse(Request["human_age"]); erm.human_college = Request["human_college"]; erm.human_educated_degree = Request["hed"]; erm.human_educated_years = int.Parse(Request["hey"]); erm.human_educated_major = Request["hem"]; erm.demand_salary_standard = decimal.Parse(Request["demand_salary_standard"]); erm.regist_time = DateTime.Parse(Request["regist_time"]); erm.human_specility = Request["hsp"]; erm.human_hobby = Request["hh"]; erm.human_history_records = Request["human_history_records"]; erm.remark = Request["remark"]; //erm.check_time = DateTime.Now; //erm.test_check_time = DateTime.Now; //erm.pass_regist_time = DateTime.Now; //erm.pass_check_time = DateTime.Now; int i1 = erb.Add1(erm); if (i1 > 0) { return(Content(i1.ToString())); } else { return(Content(i1.ToString())); } }
//修改 public int engage_resumeUpdate(engage_resumeModel erm) { engage_resume er = new engage_resume() { Id = erm.Id, human_name = erm.human_name, engage_type = erm.engage_type, human_address = erm.human_address, human_postcode = erm.human_postcode, human_major_kind_id = erm.human_major_kind_id, human_major_kind_name = erm.human_major_kind_name, human_major_id = erm.human_major_id, human_major_name = erm.human_major_name, human_telephone = erm.human_telephone, human_homephone = erm.human_homephone, human_mobilephone = erm.human_mobilephone, human_email = erm.human_email, human_hobby = erm.human_hobby, human_specility = erm.human_specility, human_sex = erm.human_sex, human_religion = erm.human_religion, human_party = erm.human_party, human_nationality = erm.human_nationality, human_race = erm.human_race, human_birthday = erm.human_birthday, human_age = erm.human_age, human_educated_degree = erm.human_educated_degree, human_educated_years = erm.human_educated_years, human_educated_major = erm.human_educated_major, human_college = erm.human_college, human_idcard = erm.human_idcard, human_birthplace = erm.human_birthplace, demand_salary_standard = erm.demand_salary_standard, human_history_records = erm.human_history_records, remark = erm.remark, check_status = erm.check_status, regist_time = erm.regist_time, human_picture = erm.human_picture, test_amount = erm.test_amount, register = erm.register, checker = erm.checker, check_time = erm.check_time, }; return(Update(er)); }
public Dictionary <string, object> SeByy(int dqy, String Qid, String Pid, String Guan, String Start, String End, String Zt) { int rows = 0; List <engage_resume> list; int zt = int.Parse(Zt); if (Start == "" && End == "") { list = FenYe(e => e.Id, e => e.human_major_kind_id.Contains(Qid) && e.check_status == zt && e.human_major_id.Contains(Pid) && (e.human_name.Contains(Guan) || e.human_telephone.Contains(Guan) || e.human_idcard.Contains(Guan) || e.human_history_records.Contains(Guan)), ref rows, dqy, 3); } else { DateTime start = Convert.ToDateTime(Start); DateTime end = Convert.ToDateTime(End); list = FenYe(e => e.Id, e => e.human_major_kind_id.Contains(Qid) && e.check_status == zt && e.human_major_id.Contains(Pid) && (e.human_name.Contains(Guan) || e.human_telephone.Contains(Guan) || e.human_idcard.Contains(Guan) || e.human_history_records.Contains(Guan)) && e.regist_time >= start && e.regist_time <= end, ref rows, dqy, 3); } List <engage_resumeModel> list2 = new List <engage_resumeModel>(); foreach (var item in list) { engage_resumeModel sd = new engage_resumeModel() { Id = item.Id, human_major_kind_id = item.human_major_kind_id, human_major_id = item.human_major_id, human_name = item.human_name, human_sex = item.human_sex, human_major_kind_name = item.human_major_kind_name, human_major_name = item.human_major_name, human_telephone = item.human_telephone, check_status = item.check_status, interview_status = item.interview_status }; list2.Add(sd); } double page = rows / 5.00; int pages = int.Parse(Math.Ceiling(page).ToString()); Dictionary <string, object> di = new Dictionary <string, object>(); di["dt"] = list2; di["rows"] = rows; di["pages"] = pages; return(di); }
public ActionResult Add2() { List <config_major_kindModel> lll = re.Select(); List <SelectListItem> liss = new List <SelectListItem>(); for (int i = 0; i < lll.Count; i++) { SelectListItem sl = new SelectListItem() { Text = lll[i].major_kind_name.ToString(), Value = lll[i].major_kind_id.ToString() }; liss.Add(sl); } engage_resumeModel ctm = new engage_resumeModel(); ViewData["jj"] = liss; return(View(ctm)); }
public ActionResult Add(int id) { engage_major_releaseModel sd = new engage_major_releaseModel() { Id = short.Parse(id.ToString()) }; List <engage_major_releaseModel> list = sb.SelectBy(sd); List <SelectListItem> listyj = new List <SelectListItem>(); SelectListItem sl = new SelectListItem() { Text = list[0].major_kind_name.ToString(), Value = list[0].major_kind_id.ToString() }; listyj.Add(sl); List <SelectListItem> listy = new List <SelectListItem>(); SelectListItem si = new SelectListItem() { Text = list[0].major_name.ToString(), Value = list[0].major_id.ToString() }; listy.Add(si); List <SelectListItem> lista = new List <SelectListItem>(); SelectListItem sa = new SelectListItem() { Text = list[0].engage_type.ToString(), Value = list[0].engage_type.ToString() }; lista.Add(sa); engage_resumeModel ctm = new engage_resumeModel(); ViewData["yj"] = listyj; ViewData["jj"] = listy; ViewData["ej"] = lista; return(View(ctm)); }
public ActionResult Edit(engage_resumeModel erm) { if (erm.pass_check_status == 2) { erm.interview_status = 1; erm.interview_amount += 1; if (ieb.Update(erm) > 0) { return(Content("<script>alert('成功');window.location.href='/engage_resume/SelectByy'</script>")); } else { return(Content("<script>alert('失败');window.location.href='/engage_resume/LYSQ'</script>")); } } if (erm.pass_check_status == 3) { erm.interview_status = 3; if (ieb.Update(erm) > 0) { return(Content("<script>alert('申请成功');window.location.href='/engage_resume/SelectByy'</script>")); } else { return(Content("<script>alert('申请失败');window.location.href='/engage_resume/LYSQ'</script>")); } } else { ieb.Del(erm); engage_interviewModel em = new engage_interviewModel { Id = erm.Id }; eib.Del(em); return(Content("<script>alert('删除成功');window.location.href='/engage_interview/DJ'</script>")); } }
public int update(engage_resumeModel item) { engage_resume erm = db.engage_resumes.Where(e => e.Id.Equals(item.Id)).FirstOrDefault(); erm.Id = item.Id; erm.human_name = item.human_name; erm.human_email = item.human_email; erm.human_telephone = item.human_telephone; erm.human_homephone = item.human_homephone; erm.human_mobilephone = item.human_mobilephone; erm.human_address = item.human_address; erm.human_postcode = item.human_postcode; erm.human_birthplace = item.human_birthplace; erm.human_birthday = item.human_birthday; erm.human_idcard = item.human_idcard; erm.human_age = item.human_age; erm.human_college = item.human_college; erm.demand_salary_standard = item.demand_salary_standard; erm.checker = item.checker; erm.check_time = item.check_time; erm.check_status = item.check_status; erm.recomandation = item.recomandation; return(db.SaveChanges()); }
public ActionResult Update2(engage_resumeModel u) { // TODO: Add update logic here return(View()); }
public ActionResult Update2(int id) { engage_resumeModel sd = new engage_resumeModel() { Id = short.Parse(id.ToString()) }; List <engage_resumeModel> list = ss.SelectBy(sd); List <SelectListItem> listyj = new List <SelectListItem>(); SelectListItem sl = new SelectListItem() { Text = list[0].human_major_kind_name.ToString(), Value = list[0].human_major_kind_id.ToString() }; listyj.Add(sl); List <SelectListItem> listy = new List <SelectListItem>(); SelectListItem si = new SelectListItem() { Text = list[0].human_major_name.ToString(), Value = list[0].human_major_id.ToString() }; listy.Add(si); List <SelectListItem> lista = new List <SelectListItem>(); SelectListItem sa = new SelectListItem() { Text = list[0].engage_type.ToString(), Value = list[0].engage_type.ToString() }; lista.Add(sa); engage_resumeModel ctm = new engage_resumeModel(); ViewData["yj"] = listyj; ViewData["jj"] = listy; ViewData["ej"] = lista; engage_resumeModel st = new engage_resumeModel() { Id = list[0].Id, human_name = list[0].human_name, engage_type = list[0].engage_type, human_address = list[0].human_address, human_postcode = list[0].human_postcode, human_major_kind_id = list[0].human_major_kind_id, human_major_kind_name = list[0].human_major_kind_name, human_major_id = list[0].human_major_id, human_major_name = list[0].human_major_name, human_telephone = list[0].human_telephone, human_homephone = list[0].human_homephone, human_mobilephone = list[0].human_mobilephone, human_email = list[0].human_email, human_hobby = list[0].human_hobby, human_specility = list[0].human_specility, human_sex = list[0].human_sex, human_religion = list[0].human_religion, human_party = list[0].human_party, human_nationality = list[0].human_nationality, human_race = list[0].human_race, human_birthday = list[0].human_birthday, human_age = list[0].human_age, human_educated_degree = list[0].human_educated_degree, human_educated_years = list[0].human_educated_years, human_educated_major = list[0].human_educated_major, human_college = list[0].human_college, human_idcard = list[0].human_idcard, human_birthplace = list[0].human_birthplace, demand_salary_standard = list[0].demand_salary_standard, human_history_records = list[0].human_history_records, remark = list[0].remark, regist_time = list[0].regist_time, check_time = list[0].check_time, pass_check_time = list[0].pass_check_time, pass_regist_time = list[0].pass_regist_time, test_check_time = list[0].test_check_time, recomandation = list[0].recomandation, checker = list[0].checker, register = list[0].register, }; return(View(st)); }
public ActionResult Update(engage_resumeModel u) { engage_interviewModel css = new engage_interviewModel { human_name = u.human_name, interview_amount = 1, human_major_kind_id = u.human_major_kind_id, human_major_kind_name = u.human_major_kind_name, human_major_id = u.human_major_id, human_major_name = u.human_major_name, interview_status = "待面试", resume_id = u.Id.ToString() }; engage_resumeModel ccc = new engage_resumeModel { Id = u.Id, interview_status = "待面试", human_name = u.human_name, engage_type = u.engage_type, human_address = u.human_address, human_postcode = u.human_postcode, human_major_kind_id = u.human_major_kind_id, human_major_kind_name = u.human_major_kind_name, human_major_id = u.human_major_id, human_major_name = u.human_major_name, human_telephone = u.human_telephone, human_homephone = u.human_homephone, human_mobilephone = u.human_mobilephone, human_email = u.human_email, human_hobby = u.human_hobby, human_specility = u.human_specility, human_sex = u.human_sex, human_religion = u.human_religion, human_party = u.human_party, human_nationality = u.human_nationality, human_race = u.human_race, human_birthday = u.human_birthday, human_age = u.human_age, human_educated_degree = u.human_educated_degree, human_educated_years = u.human_educated_years, human_educated_major = u.human_educated_major, human_college = u.human_college, human_idcard = u.human_idcard, human_birthplace = u.human_birthplace, demand_salary_standard = u.demand_salary_standard, human_history_records = u.human_history_records, remark = u.remark, regist_time = u.regist_time, check_time = u.check_time, pass_check_time = u.pass_check_time, pass_regist_time = u.pass_regist_time, test_check_time = u.test_check_time, recomandation = u.recomandation, checker = u.checker, register = u.register }; // TODO: Add update logic here if (ss.Update(ccc) > 0 && ei.Add(css) > 0) { return(JavaScript("alert('推荐成功');window.location.href='/engage_resume/SelectBy'")); } else { ViewBag.dt = u; } return(View()); }
public Dictionary <string, object> interviewDJ(int dqy) { int rows = 0; List <engage_resume> list = FenYe(e => e.Id, e => e.interview_status.Equals(2), ref rows, dqy, 5); List <engage_resumeModel> list2 = new List <engage_resumeModel>(); foreach (var item in list) { engage_resumeModel sd = new engage_resumeModel() { Id = item.Id, human_address = item.human_address, human_age = item.human_age, human_birthday = item.human_birthday, human_birthplace = item.human_birthplace, human_college = item.human_college, human_educated_degree = item.human_educated_degree, human_educated_major = item.human_educated_major, human_educated_years = item.human_educated_years, human_email = item.human_email, human_history_records = item.human_history_records, human_hobby = item.human_hobby, human_homephone = item.human_homephone, human_idcard = item.human_idcard, human_major_id = item.human_major_id, human_major_kind_id = item.human_major_kind_id, human_major_kind_name = item.human_major_kind_name, human_mobilephone = item.human_mobilephone, human_major_name = item.human_major_name, human_name = item.human_name, human_nationality = item.human_nationality, human_party = item.human_party, human_picture = item.human_picture, human_postcode = item.human_postcode, human_race = item.human_race, human_religion = item.human_religion, human_sex = item.human_sex, human_specility = item.human_specility, human_telephone = item.human_telephone, attachment_name = item.attachment_name, checker = item.checker, check_status = item.check_status, check_time = item.check_time, pass_checkComment = item.pass_checkComment, pass_checker = item.pass_checker, pass_check_status = item.pass_check_status, pass_check_time = item.pass_check_time, pass_passComment = item.pass_passComment, pass_register = item.pass_register, pass_regist_time = item.pass_regist_time, total_points = item.total_points, test_amount = item.test_amount, test_checker = item.test_checker, test_check_time = item.test_check_time, engage_type = item.engage_type, demand_salary_standard = item.demand_salary_standard, interview_status = item.interview_status, recomandation = item.recomandation, register = item.register, regist_time = item.regist_time, remark = item.remark }; list2.Add(sd); } rows = list.Count(); double page = rows / 5.00; int pages = int.Parse(Math.Ceiling(page).ToString()); Dictionary <string, object> di = new Dictionary <string, object>(); di["dt"] = list2; di["rows"] = rows; di["pages"] = pages; return(di); }