public ArrayList engage_resumeYouXianFenYe6(LikeFenYe l) { ArrayList list2 = new ArrayList(); int rows = 0; List <engage_resume> list = null; List <engage_resume_Model> list1 = new List <engage_resume_Model>(); list = FenYe <int>(e => e.res_id, e => (e.interview_status == 6), ref rows, l.Dq, l.PageSize); foreach (var item in list) { engage_resume_Model erm = new engage_resume_Model() { human_name = item.human_name, res_id = item.res_id, human_sex = item.human_sex, human_major_kind_name = item.human_major_kind_name, human_major_name = item.human_major_name, human_educated_major = item.human_educated_major, human_telephone = item.human_telephone, human_age = item.human_age, human_college = item.human_college }; list1.Add(erm); } list2.Add(list1); list2.Add(rows); list2.Add(l.Dq); list2.Add(l.PageSize); list2.Add((rows - 1) / l.PageSize + 1); return(list2); }
public int engage_resumeDelete(engage_resume_Model e) { int i = Delete(new engage_resume() { res_id = e.res_id }); return(i); }
public ActionResult Sc2(HttpPostedFileBase file) { #region 获取从图片上传的数据 engage_resume_Model er = new engage_resume_Model(); er.human_name = Request["human_name"]; er.engage_type = Request["engage_type"]; er.human_address = Request["human_address"]; er.human_postcode = Request["human_postcode"]; er.human_major_kind_id = Request["human_major_kind_id"]; er.human_major_kind_name = Request["human_major_kind_name"]; er.human_major_id = Request["human_major_id"]; er.human_major_name = Request["human_major_name"]; er.human_telephone = Request["human_telephone"]; er.human_homephone = Request["human_homephone"]; er.human_mobilephone = Request["human_mobilephone"]; er.human_email = Request["human_email"]; er.human_hobby = Request["human_hobby"]; er.human_specility = Request["human_specility"]; er.human_sex = Request["human_sex"]; er.human_religion = Request["human_religion"]; er.human_party = Request["human_party"]; er.human_nationality = Request["human_nationality"]; er.human_race = Request["human_race"]; er.human_birthday = DateTime.Parse(Request["human_birthday"]); er.human_age = int.Parse(Request["human_age"]); er.human_educated_years = int.Parse(Request["human_educated_years"]); er.human_educated_major = Request["human_educated_major"]; er.human_college = Request["human_college"]; er.human_idcard = Request["human_idcard"]; er.human_birthplace = Request["human_birthplace"]; er.demand_salary_standard = double.Parse(Request["demand_salary_standard"]); er.human_history_records = Request["human_history_records"]; er.remark = Request["remark"]; er.regist_time = DateTime.Parse(Request["regist_time"]); er.human_educated_degree = Request["human_educated_degree"]; er.register = Request["register"]; er.check_status = 1; #endregion string name = Md5String.Md5CreateName(file.InputStream); //文件名 string ext = Path.GetExtension(file.FileName); //后缀名 //1 获得上传文件的完整路径 string path = $"~/Phone/{DateTime.Now.ToString("yyyy/MM/dd")}/" + name + ext; string fullPath = Server.MapPath(path); new FileInfo(fullPath).Directory.Create();//创建文件夹 //2 调用file.SaveAs(完整路径) file.SaveAs(fullPath); er.human_picture = $"/Phone/{ DateTime.Now.ToString("yyyy/MM/dd")}/" + name + ext; //根据uid做表的修改 if (r.engage_resumeAdd(er) > 0) { return(Content("<script>alert('登记成功');window.location.href ='/position_release_search/Index'</script>")); } else { return(View(er)); } }
public ActionResult XianXi() { int res_id = int.Parse(Request["id"]); engage_resume_Model erm = er.SelectId(new engage_resume_Model() { res_id = res_id }); return(View(erm)); }
public engage_resume_Model SelectId(engage_resume_Model em) { engage_resume e = SelectBy(el => el.res_id == em.res_id).FirstOrDefault(); engage_resume_Model er = new engage_resume_Model(); er.human_name = e.human_name; er.engage_type = e.engage_type; er.human_address = e.human_address; er.human_postcode = e.human_postcode; er.human_major_kind_id = e.human_major_kind_id; er.human_major_kind_name = e.human_major_kind_name; er.human_major_id = e.human_major_id; er.human_major_name = e.human_major_name; er.human_telephone = e.human_telephone; er.human_homephone = e.human_homephone; er.human_mobilephone = e.human_mobilephone; er.human_email = e.human_email; er.human_hobby = e.human_hobby; er.human_specility = e.human_specility; er.human_sex = e.human_sex; er.human_religion = e.human_religion; er.human_party = e.human_party; er.human_nationality = e.human_nationality; er.human_race = e.human_race; er.human_birthday = e.human_birthday; er.human_age = e.human_age; er.human_educated_years = e.human_educated_years; er.human_educated_major = e.human_educated_major; er.human_college = e.human_college; er.human_idcard = e.human_idcard; er.human_birthplace = e.human_birthplace; er.demand_salary_standard = e.demand_salary_standard; er.human_history_records = e.human_history_records; er.remark = e.remark; er.regist_time = e.regist_time; er.register = e.register; er.check_time = e.check_time; er.pass_check_time = Convert.ToDateTime("2000-01-01"); er.pass_regist_time = Convert.ToDateTime("2000-01-01"); er.test_check_time = Convert.ToDateTime("2000-01-01"); er.human_educated_degree = e.human_educated_degree; er.check_status = e.check_status; er.checker = e.checker; er.recomandation = e.recomandation; er.res_id = e.res_id; er.human_picture = e.human_picture; er.interview_status = e.interview_status; er.pass_checkComment = e.pass_checkComment; er.pass_passComment = e.pass_passComment; return(er); }
public int engage_resumeAdd(engage_resume_Model e) { engage_resume er = new engage_resume(); er.human_name = e.human_name; er.engage_type = e.engage_type; er.human_address = e.human_address; er.human_postcode = e.human_postcode; er.human_major_kind_id = e.human_major_kind_id; er.human_major_kind_name = e.human_major_kind_name; er.human_major_id = e.human_major_id; er.human_major_name = e.human_major_name; er.human_telephone = e.human_telephone; er.human_homephone = e.human_homephone; er.human_mobilephone = e.human_mobilephone; er.human_email = e.human_email; er.human_hobby = e.human_hobby; er.human_specility = e.human_specility; er.human_sex = e.human_sex; er.human_religion = e.human_religion; er.human_party = e.human_party; er.human_nationality = e.human_nationality; er.human_race = e.human_race; er.human_birthday = e.human_birthday; er.human_age = e.human_age; er.human_educated_years = e.human_educated_years; er.human_educated_major = e.human_educated_major; er.human_college = e.human_college; er.human_idcard = e.human_idcard; er.human_birthplace = e.human_birthplace; er.demand_salary_standard = e.demand_salary_standard; er.human_history_records = e.human_history_records; er.remark = e.remark; er.regist_time = e.regist_time; er.register = e.register; er.check_time = Convert.ToDateTime("2000-01-01"); er.pass_check_time = Convert.ToDateTime("2000-01-01"); er.pass_regist_time = Convert.ToDateTime("2000-01-01"); er.test_check_time = Convert.ToDateTime("2000-01-01"); er.human_educated_degree = e.human_educated_degree; er.check_status = e.check_status; er.human_picture = e.human_picture; return(Add(er)); }
public ArrayList engage_resumeYouXianFenYe(LikeFenYe l) { ArrayList list2 = new ArrayList(); int rows = 0; List <engage_resume> list = null; List <engage_resume_Model> list1 = new List <engage_resume_Model>(); list = FenYe <int>(e => e.res_id, e => (e.human_major_kind_id.Contains(l.major_kind_id) && e.human_major_id.Contains(l.humanMajorId) && e.human_name.Contains(l.primarKey) && e.regist_time > l.startDate && e.regist_time < l.endDate && e.interview_status == 1), ref rows, l.Dq, l.PageSize); if (list.Count() == 0) { list = FenYe <int>(e => e.res_id, e => (e.human_major_kind_id.Contains(l.major_kind_id) && e.human_major_id.Contains(l.humanMajorId) && e.human_address.Contains(l.primarKey) && e.regist_time > l.startDate && e.regist_time < l.endDate && e.interview_status == 1), ref rows, l.Dq, l.PageSize); } foreach (var item in list) { engage_resume_Model erm = new engage_resume_Model() { human_name = item.human_name, res_id = item.res_id, 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, human_age = item.human_age, interview_status = item.interview_status }; if (item.check_status == 2) { erm.check_status1 = "通过"; } if (item.interview_status == 1) { erm.interview_status1 = "待面试"; } list1.Add(erm); } list2.Add(list1); list2.Add(rows); list2.Add(l.Dq); list2.Add(l.PageSize); list2.Add((rows - 1) / l.PageSize + 1); return(list2); }
//public ActionResult major_kind_nameSelect() //{ // string id = Request["id"]; // return Content(JsonConvert.SerializeObject(m.SelectwWhere(id))); //} public ActionResult SC() { engage_resume_Model er = new engage_resume_Model(); er.human_name = Request["humanname"]; er.engage_type = Request["engagetype"]; er.human_address = Request["humanaddress"]; er.human_postcode = Request["humanpostcode"]; er.human_major_kind_id = Request["humanmajorkindid"]; er.human_major_kind_name = Request["humanmajorkindname"]; er.human_major_id = Request["humanmajorid"]; er.human_major_name = Request["humanmajorname"]; er.human_telephone = Request["humantelephone"]; er.human_homephone = Request["humanhomephone"]; er.human_mobilephone = Request["humanmobilephone"]; er.human_email = Request["humanemail"]; er.human_hobby = Request["humanhobby"]; er.human_specility = Request["humanspecility"]; er.human_sex = Request["humansex"]; er.human_religion = Request["humanreligion"]; er.human_party = Request["humanparty"]; er.human_nationality = Request["humannationality"]; er.human_race = Request["humanrace"]; er.human_birthday = DateTime.Parse(Request["humanbirthday"]); er.human_age = int.Parse(Request["humanage"]); er.human_educated_years = int.Parse(Request["humaneducatedyears"]); er.human_educated_major = Request["humaneducatedmajor"]; er.human_college = Request["humancollege"]; er.human_idcard = Request["humanidcard"]; er.human_birthplace = Request["humanbirthday"]; er.demand_salary_standard = double.Parse(Request["demandsalarystandard"]); er.human_history_records = Request["humanhistoryrecords"]; er.remark = Request["remark"]; er.regist_time = DateTime.Parse(Request["registtime"]); er.human_educated_degree = Request["humaneducateddegree"]; er.register = Request["register"]; er.check_status = 1; return(View(er)); }
public ActionResult TuiJian() { engage_resume_Model erm = er.SelectId(new engage_resume_Model() { res_id = int.Parse(Request["res_id"]) }); erm.recomandation = Request["recomandation"]; erm.check_status = 2; erm.checker = Request["checker"]; erm.check_time = DateTime.Now; erm.interview_status = 1; int i = er.engage_resumeUpdate(erm); if (i > 0) { return(Content("<script>alert('推荐成功--跳转筛选页面');window.location.href ='/resumechoose/Index'</script>")); } else { return(Content("<script>alert('推荐失败--请重试');window.location.href ='/resumechoose/XianXi?id=" + erm.res_id + "'</script>")); } }
/// <summary> /// 建议笔试 /// </summary> /// <returns></returns> public ActionResult JYBS() { string human_name = Request["human_name"]; int res_id = int.Parse(Request["resume_id"]); int ein_id = int.Parse(Request["ein_id"]); engage_resume_Model erm = ers.SelectId(new engage_resume_Model() { res_id = res_id }); erm.interview_status = 5; if (ers.engage_resumeUpdate(erm) > 0) { engage_interviewModel eim = iei.SelectCunZai(new engage_interviewModel() { human_name = human_name })[0] as engage_interviewModel; eim.interview_status = 5; eim.checker = Request["register2"]; eim.check_time = DateTime.Parse(Request["check_time1"]); eim.result = Request["check_comment"]; eim.check_comment = Request["check_comment"]; eim.check_status = 2; if (iei.engage_interviewUpdate(eim) > 0) { return(Content("<script>alert('筛选成功');window.location.href='/siftlist/Index'</script>")); } else { return(Content("<script>alert('筛选失败');window.location.href='/siftlist/Update?id=" + eim.ein_id + "'</script>")); } } else { return(Content("<script>alert('筛选失败');window.location.href='/siftlist/Update?id=" + ein_id + "'</script>")); } }
public engage_resume_Model SelectId(engage_resume_Model e) { return(s.SelectId(e)); }
public int engage_resumeUpdate(engage_resume_Model e) { return(s.engage_resumeUpdate(e)); }
public int engage_resumeAdd(engage_resume_Model e) { return(s.engage_resumeAdd(e)); }