//注册 function submitresume(committype) { var site = $("#site").val(); var username = $("#username").val(); var gender = $("#gender").val(); var degree = $("#degree").val(); var height = $("#height").val(); var weight = $("#weight").val(); var homeaddress = $("#homeaddress").val(); var province = $("#province").val(); var city = $("#city").val(); var graduationyear = $("#graduationyear").val(); var universityid = $("#universityid").val(); var subjectcategoryid = $("#subjectcategoryid").val(); var majorid = $("#majorid").val(); var majorname = $("#majorname").val(); var identno = $("#identno").val(); //var qqno = $("#qqno").val(); var mobile = $("#mobile").val(); var companyid = $("#companyid").val(); var jobpositionid = $("#jobpositionid").val(); var scoresort = $("#scoresort").val(); //var classcount = $("#classcount").val(); //var studentcount = $("#studentcount").val(); var photourl = $("#resumeurl-e").val(); var resumename = $("#resumename-d").val(); var resumeurl = $("#resumeurl-d").val(); var topaward = $("#topaward").val(); var reportcard = $("#resumeurl-b").val(); var email = $("#email").val(); var newmajor = ""; var source = ""; var sourcelist = $("input[name=source]"); for (var i = 0; i < sourcelist.length; i++) { if (sourcelist[i].checked) source += sourcelist[i].value + ',' } source = source.replace("on,", ""); var grouptopposition = $("#jobs").val(); var seledtedamb = $("#selambassador").val(); var ambassadorid = "0"; var ambassador = ""; var inempid = ""; var inempname = ""; if (seledtedamb == "校园大使推荐" && $("#inempname").val() != "无") { ambassadorid = $("#ambassadorid").val(); ambassador = $("#ambassador").val(); } else if (seledtedamb == "华劲员工推荐") { inempid = $("#inempid").val(); inempname = $("#inempname").val(); ambassador = $("#inempname").val(); if (inempid == "" || inempname == "") { messagehtml(" ", "华劲员工推荐必填推荐人工号、姓名."); return false; } } if (source == null || source == "") { messagehtml(" ", "招聘信息来源未填写,不能提交"); return false; } if (companyid == null || companyid == "") { messagehtml(" ", "应聘公司未填写,不能提交"); return false; } if (jobpositionid == null || jobpositionid == "") { messagehtml(" ", "应聘岗位未填写,不能提交"); return false; } if (username == null || username == "") { messagehtml(" ", "姓名未填写,不能提交"); return false; } if (gender == null || gender == "") { messagehtml(" ", "性别未填写,不能提交"); return false; } if (degree == null || degree == "") { messagehtml(" ", "学历未填写,不能提交"); return false; } /*447上海财经大学,1101华东理工大学,1124上海大学,1127东华大学(这几所大学报销售公司岗位,仅研究生可报名)*/ if (companyid == 2 && degree == "本科" && (universityid == 447 || universityid == 1101 || universityid == 1124 || universityid == 1127)) { messagehtml(" ", "抱歉,您的学校仅研究生才能报名."); return false; } /*4“软件设计与开发”*/ if ((jobpositionid == 10 || jobpositionid == 112) && degree == "本科") { messagehtml(" ", "抱歉,本岗位仅研究生才能报名."); return false; } /*广西竹林营林管理只允许本科报名*/ if (jobpositionid == 23 && degree != "本科") { messagehtml(" ", "抱歉,营林管理仅本科才能报名."); return false; } if (height == null || height == "") { messagehtml(" ", "身高未填写,不能提交"); return false; } if (weight == null || weight == "") { messagehtml(" ", "体高未填写,不能提交"); return false; } if (homeaddress == null || homeaddress == "") { messagehtml(" ", "家庭所在地未填写,不能提交"); return false; } if (graduationyear == null || graduationyear == "") { messagehtml(" ", "毕业年份未填写,不能提交"); return false; } if (universityid == null || universityid == "") { messagehtml(" ", "毕业院校未填写,不能提交"); return false; } if (subjectcategoryid == null || subjectcategoryid == "") { messagehtml(" ", "学科类别未填写,不能提交"); return false; } if ((majorid == null || majorid == "") && (majorname == null || majorname == "")) { messagehtml(" ", "专业未填写,不能提交"); return false; } if (identno == null || identno == "") { messagehtml(" ", "身份证号码未填写,不能提交"); return false; } if (province == null || province == "") { messagehtml(" ", "籍贯未填写,不能提交"); return false; } if (mobile == null || mobile == "") { messagehtml(" ", "手机号码未填写,不能提交"); return false; } if (topaward == null || topaward == "") { messagehtml(" ", "获得奖学金最高级别未填写,不能提交"); return false; } /** 2017年2月14日修改,原有字段应用为其他描述信息 scoresort 原:成绩排名 现在:学分加权平均成绩(必填) classcount 原:班级数 现在:gpa满分绩点 (非必填) studentcount 原:本班人数 现在:gpa平均绩点(非必填) **/ if (scoresort == null || scoresort == "") { messagehtml(" ", "学分加权平均成绩未填写,不能提交"); return false; } if (photourl == null || photourl == "") { messagehtml(" ", "照片未上传,不能提交"); return false; } if (resumename == null || resumename == "") { messagehtml(" ", "简历未上传,不能提交"); return false; } if (resumeurl == null || resumeurl == "") { messagehtml(" ", "简历未上传,不能提交"); return false; } if (reportcard == null || reportcard == "") { messagehtml(" ", "成绩单未上传,不能提交"); return false; } if (email == null || email == "") { messagehtml(" ", "邮箱地址未填写,不能提交"); return false; } //简历预览,未正式提交 add by hdh@2017-09-17 if (committype != "1") { //个人信息 var universityname = $("#universityname").val(); var subjectcategory = $("#subjectcategory").val(); $("#div_username").html(username); $("#div_gender").html(gender); $("#div_degree").html(degree); $("#div_height").html(height); $("#div_weight").html(weight); $("#div_homeaddress").html(homeaddress); $("#div_universityname").html(universityname); $("#div_subjectcategory").html(subjectcategory); $("#div_major").html(majorname); $("#div_provincecity").html(province + city); //您应聘的岗位 var infos = $("#hidden_infos").val(); arr = infos.split('|'); $("#col_companyname").html(arr[0]); $("#col_deptname").html(arr[1]); $("#col_jobpositionname").html(arr[2]); $("#col_subjectcategoryname").html(arr[3]); $("#col_specrequire").html(arr[4]); $("#col_workplace").html(arr[5]); $("#col_salary").html(arr[6]); //$("#col_employnum").html(arr[7]); //详细应聘信息 $("#div_identno").html(identno); //$("#div_qqno").html(qqno); $("#div_mobile").html(mobile); $("#div_email").html(email); //$("#div_classcount").html(classcount); //gpa平均绩点 //$("#div_studentcount").html(studentcount); //gpa满分绩点 $("#div_scoresort").html(scoresort); //学分加权平均成绩 $("#div_topaward").html(topaward); $("#div_graduationyear").html(graduationyear); $("#div_grouptopposition").html(grouptopposition); $("#div_source").html(source); $("#div_ambassador").html(ambassador); //上传 $("#div_resumename-d").html($("#resumename-d").val()); $("#div_resumename-b").html($("#resumename-b").val()); $("#div_resumename-c").html($("#txtfilename-c").val()); //这个值有点特殊 $("#div_resumename-e").html($("#resumename-e").val()); $("#div_resumename-f").html($("#txtfilename-f").val()); return; } //正式提交 $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=submitresume", data: { "site": "main", "username": username, "gender": gender, "degree": degree, "height": height, "weight": weight, "homeaddress": homeaddress, "province": province, "city": city, "graduationyear": graduationyear, "universityid": universityid, "subjectcategoryid": subjectcategoryid, "majorid": majorid, "majorname": majorname, "identno": identno, //"qqno": qqno, "mobile": mobile, "companyid": companyid, "jobpositionid": jobpositionid, //"classcount": classcount, "scoresort": scoresort, "topaward": topaward, //"studentcount": studentcount, "photourl": photourl, "resumename": resumename, "resumeurl": resumeurl, "email": email, "newmajor": newmajor, "source": source, "grouptopposition": grouptopposition, "ambassadorid": ambassadorid, "inempid": inempid, "inempname": inempname, }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { messageok2(" ", data.msg); } else { messagenewlink(data.msg, data.url); } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); } function submitresume_zk(committype) { var site = $("#site").val(); var username = $("#username").val(); var gender = $("#gender").val(); var degree = $("#degree").val(); var graduationyear = $("#graduationyear").val(); var universityid = $("#universityid").val(); var majorid = $("#majorid").val(); var majorname = $("#majorname").val(); var identno = $("#identno").val(); var qqno = $("#qqno").val(); var mobile = $("#mobile").val(); var companyid = $("#companyid").val(); var jobpositionid = $("#jobpositionid").val(); var scoresort = $("#scoresort").val(); //var classcount = $("#classcount").val(); //var studentcount = $("#studentcount").val(); var photourl = $("#resumeurl-e").val(); var topaward = $("#topaward").val(); var resumename = $("#resumename-d").val(); var resumeurl = $("#resumeurl-d").val(); var reportcard = $("#resumeurl-b").val(); var email = $("#email").val(); var newmajor = ""; var source = ""; var selambassador = $("#selambassador").val(); if (selambassador == "点击选择") { selambassador = ""; } var sourcelist = $("input[name=source]"); for (var i = 0; i < sourcelist.length; i++) { if (sourcelist[i].checked) source += sourcelist[i].value + ',' } source = source.replace("on,", ""); var grouptopposition = $("#jobs").val(); var ambassadorid = $("#ambassadorid").val(); if (ambassadorid == "") { ambassadorid = 0; } var inempid = ""; var inempname = ""; if (source == null || source == "") { messagehtml(" ", "招聘信息来源未填写,不能提交"); return false; } if (username == null || username == "") { messagehtml(" ", "姓名未填写,不能提交"); return false; } if (gender == null || gender == "") { messagehtml(" ", "性别未填写,不能提交"); return false; } if (degree == null || degree == "") { messagehtml(" ", "学历未填写,不能提交"); return false; } if (graduationyear == null || graduationyear == "") { messagehtml(" ", "毕业年份未填写,不能提交"); return false; } if (universityid == null || universityid == "") { messagehtml(" ", "毕业院校未填写,不能提交"); return false; } if ((majorid == null || majorid == "") && (majorname == null || majorname == "")) { messagehtml(" ", "专业未填写,不能提交"); return false; } if (identno == null || identno == "") { messagehtml(" ", "身份证号码未填写,不能提交"); return false; } //特殊处理 //if (identno !="459999198601241518" ) { // messagehtml(" ", "抱歉,已过3月27日0时的报名截止日期!"); // return false; //} if (qqno == null || qqno == "") { messagehtml(" ", "qq号码未填写,不能提交"); return false; } if (mobile == null || mobile == "") { messagehtml(" ", "手机号码未填写,不能提交"); return false; } if (companyid == null || companyid == "") { messagehtml(" ", "应聘公司未填写,不能提交"); return false; } if (jobpositionid == null || jobpositionid == "") { messagehtml(" ", "应聘岗位未填写,不能提交"); return false; } if (topaward == null || topaward == "") { messagehtml(" ", "获得奖学金最高级别未填写,不能提交"); return false; } /** 2017年2月14日修改,原有字段应用为其他描述信息 scoresort 原:成绩排名 现在:学分加权平均成绩(必填) classcount 原:班级数 现在:gpa满分绩点 (非必填) studentcount 原:本班人数 现在:gpa平均绩点(非必填) **/ if (scoresort == null || scoresort == "") { messagehtml(" ", "学分加权平均成绩未填写,不能提交"); return false; } alert(photourl); if (photourl == null || photourl == "") { messagehtml(" ", "照片未上传,不能提交"); return false; } if (resumename == null || resumename == "") { messagehtml(" ", "简历未上传,不能提交"); return false; } if (resumeurl == null || resumeurl == "") { messagehtml(" ", "简历未上传,不能提交"); return false; } if (reportcard == null || reportcard == "") { messagehtml(" ", "成绩单未上传,不能提交"); return false; } if (email == null || email == "") { messagehtml(" ", "邮箱地址未填写,不能提交"); return false; } //简历预览,未正式提交 add by ld@2017-11-13 if (committype != "1") { //个人信息 var universityname = $("#universityname").val(); $("#div_username").html(username); $("#div_gender").html(gender); $("#div_degree").html(degree); $("#div_universityname").html(universityname); $("#div_major").html(majorname); //您应聘的岗位 var infos = $("#hidden_infos").val(); arr = infos.split('|'); $("#col_companyname").html(arr[0]); $("#col_deptname").html(arr[1]); $("#col_jobpositionname").html(arr[2]); $("#col_title").html(arr[3]); $("#col_internship_treatment").html(arr[5]); $("#col_monthly_pay").html(arr[6]); $("#col_salary").html(arr[7]); $("#col_work_hours").html(arr[9]); $("#col_workingtype").html(arr[10]); $("#col_week_work").html(arr[11]); $("#col_workplace").html(arr[12]); //详细应聘信息 var ambassador = $("#ambassador").val(); $("#div_identno").html(identno); $("#div_qqno").html(qqno); $("#div_mobile").html(mobile); $("#div_email").html(email); $("#div_scoresort").html(scoresort); //学分加权平均成绩 $("#div_topaward").html(topaward); $("#div_graduationyear").html(graduationyear); $("#div_grouptopposition").html(grouptopposition); $("#div_source").html(source); $("#div_ambassador").html(selambassador); //上传 $("#div_resumename-d").html($("#resumename-d").val()); $("#div_resumename-b").html($("#resumename-b").val()); $("#div_resumename-c").html($("#txtfilename-c").val()); //这个值有点特殊 $("#div_resumename-e").html($("#resumename-e").val()); $("#div_resumename-f").html($("#txtfilename-f").val()); return; } //正式提交 $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=submitresume", data: { "site": site, "username": username, "gender": gender, "degree": degree, "graduationyear": graduationyear, "universityid": universityid, "subjectcategoryid": "8", "majorid": majorid, "majorname": majorname, "identno": identno, "qqno": qqno, "mobile": mobile, "companyid": companyid, "jobpositionid": jobpositionid, "scoresort": scoresort, "topaward": topaward, //"classcount": classcount, //"studentcount": studentcount, "photourl": photourl, "resumename": resumename, "resumeurl": resumeurl, "email": email, "newmajor": newmajor, "source": source, "grouptopposition": grouptopposition, "ambassadorid": ambassadorid, "inempid": inempid, "inempname": inempname, }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { messageok2(" ", data.msg); } else { messagenewlink(data.msg, data.url); } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); } function promptmessage(obj, message) { var d = dialog({ content: message, quickclose: true }); d.show(obj); $(obj).focus().select(); } function tsmessage(nr, obj) { var sid = document.getelementbyid(obj); var d = dialog({ content: nr, quickclose: true// 点击空白处快速关闭 }); d.showmodal(sid); $(sid).focus().select(); } function messageok2(title, content, obj) { var d = dialog({ title: title, content: content, cancel: false, ok: function () { $(document.getelementbyid(obj)).focus().select(); } }); d.showmodal(); } function messageok(content) { var d = dialog({ title: "提示", content: content, cancel: false, ok: function () { location.reload(); } }); d.showmodal(); } function messagehtml(title, content) { var d = dialog({ title: title, content: content }); d.showmodal(); } function quickmessage(title, content) { var d = dialog({ title: title, content: content }); d.showmodal(); } function messagelink(content, url) { var d = dialog({ title: "提示", content: content, cancel: false, ok: function () { window.open(url); } }); d.showmodal(); } function messagelink4resume_list(content, url) { var d = dialog({ title: "温 馨 提 示", content: content, //cancel: true, //cancelvalue:"关闭", okvalue: "继续", ok: function () { window.open(url); } }); d.showmodal(); } function messagenewlink(content, url) { var d = dialog({ title: " ", content: content, cancel: false, ok: function () { location.href = url; } }); d.showmodal(); } function checkidentno(identno) { var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|x|x)$)/; var reghk = /^[a-z][0-9]{6}\([0-9a]\)$/; if (reg.test(identno) === false && reghk.test(identno)) { messagehtml(" ", "您填写的身份证不合法"); return false; } return true; } function checkgraduationyear(year) { var reg = /^\d{4}$/; if (year != "" && reg.test(year) === false) { messagehtml(" ", "请输入正确的年份"); return false; } var site = $("#site").val(); $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=getgraduateyear", data: { "site": site }, datatype: "json", success: function (data, textstatus) { if (data.status == 0) { var theyeart = data.year; if (year != "" && year != theyeart) { messagehtml(" ", "很抱歉,您的毕业年份不在本次应届生校园招聘范围内."); $("#graduationyear").val(''); return false; } return true; } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); } function checkqqno(qqno) { var reg = /^\d{5,12}$/; if (reg.test(qqno) === false) { messagehtml(" ", "请输入正确的qq号码"); return false; } return true; } function checkmobile(mobile) { //对手机号码的验证 var reg = /^0?1[3|4|5|6|7|8|9][0-9]\d{8}$/; if (!reg.test(mobile)) { messagehtml(" ", "请输入正确的手机号码"); return false; }; return true; } /** 1.2版本修改,将原有的“学习成绩排名”字段用做“gpa平均绩点”字段,将原有的整数校验变成非负浮点数校验。 **/ function checkscoresort(scoresort) { var reg = /^\d+(\.\d+)?$/; if (scoresort != "") { if (!reg.test(scoresort)) { messagehtml(" ", "学分加权平均成绩只能填写正浮点数"); $("#scoresort").val(''); return false; }; if (scoresort < 10 || scoresort > 100) { messagehtml(" ", "录入有误,请核实!"); $("#scoresort").val(''); return false; } } } /** 1.2版本修改,将原有的“专业班级数”字段用做“gpa满分绩点”字段,将原有的整数校验变成非负浮点数校验。 **/ function checkclasscount(classcount) { if (classcount != "") { var reg = /^\d+(\.\d+)?$/; if (!reg.test(classcount)) { messagehtml(" ", "gpa满分绩点只能填写正浮点数"); $("#classcount").val(''); return false; }; } } /** 1.2版本修改,将原有的“本班人数”字段用做“学分加权平均成绩”字段,将原有的整数校验变成非负浮点数校验。 **/ function checkstudentcount(studentcount) { if (studentcount != "") { var reg = /^\d+(\.\d+)?$/; if (!reg.test(studentcount)) { messagehtml(" ", "gpa平均绩点只能填写正浮点数"); $("#studentcount").val(''); return false; }; } } function checkemail(email) { var mailreg = /^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/; if (!mailreg.test(email)) { messagehtml(" ", "输入的邮箱格式有误"); return false; } return true; } //第二次确认弹窗操作 function cancelcheckjob() { $(".fixedjobs").fadein("fast"); $(".jobscheck").fadeout("fast"); } function checkjobs() { var val_arr = getselectjobs(); $("#jobs").val(val_arr.join(",")); $("#jobs").attr("title", val_arr.join(",")); $(".fixedjobs").fadeout("fast"); $(".jobscheck").fadeout("fast"); $("#mask").css({ display: 'none' }); $("#ascrail2000").css({ display: 'none' }); } function getselectjobs() { var checkedlist = $(".jobboxs input[name='jobs']:checked"); var val_arr = []; $.each(checkedlist, function () { val_arr.push($(this).val()); }); return val_arr; } //选择职务后第一次确认 function savejobs() { var val_arr = getselectjobs(); //console.log(val_arr.join(",")); if (val_arr.length <= 0) { $("#selectjobs").html("无组织任职"); } else { $("#selectjobs").html(val_arr.join("
")); } if (val_arr) { $(".fixedjobs").fadeout("fast");; $(".jobscheck").fadein("fast"); } } function getmajor() { alert("error1 getmajor()"); if ($("#universityid").val() == "") { messagehtml("", "请先选择毕业院校"); return false; } else { $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=getmajor", data: { "site": "main", "universityid": universityid }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { // messageok2("提示", data.msg); } else { // messageok(data.msg); } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); } } function getcompany() { var universitylevel = $("#universitylevel").val(); $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=getcompanybyuniversitylevel", //获取应聘公司列表 data: { "universitylevel": universitylevel }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { // messageok2("提示", data.msg); } else { // messageok(data.msg); } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); } function getjobposition() { var companyid = $("#companyid").val(); var universitylevel = $("#universitylevel").val(); if ($("#companyid").val() == "") { messagehtml(" ", "请先选择应聘公司"); return false; } else { $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=getjobposition", //获取应聘岗位 data: { "companyid": companyid, "universitylevel": universitylevel }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { // messageok2("提示", data.msg); } else { // messageok(data.msg); } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); } } //whn添加@2018-3-10 function checkjobposition() { var site = $("#site").val(); var universityid = $("#universityid").val(); var companyid = $("#companyid").val(); $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=checkjobposition", data: { "site": site, "universityid": universityid, "companyid": companyid }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { messagehtml(" ", data.msg); } else { location.href = data.url; //跳转 } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); } function check_gw() { $("body").append("
"); $("#mask").addclass("mask").fadein("fast"); $("#iframe_gw").attr("src", "gw.html"); $(".fixedjob").fadein(); } function check_gn() { $("body").append("
"); $("#mask").addclass("mask").fadein("fast"); $("#iframe_gn").attr("src", "gn.html"); $(".fixedjob1").fadein(); } function cancel_gw() { $(".fixedjob").fadeout("fast"); $("#mask").css({ display: 'none' }); } function cancel_gn() { $(".fixedjob1").fadeout("fast"); $("#mask").css({ display: 'none' }); } function submituniversity() { var name = $("#tags").val(); var site = $("#site").val(); if ($("#tags").val() == "") { messagehtml(" ", "请输入您的毕业院校"); return false; } $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=submituniversity", //提交毕业院校 data: { "universityname": name, "site": site }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { messagehtml(" ", data.msg); } else { $("#schoollevel").val(data.university.level); /*记录学校等级*/ location.href = data.url; } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); } function sendmessage(phone) { var mobile = phone; $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=sendmessageforconfirming", //发送验证码短信 data: { "mobile": mobile }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { messagehtml(" ", data.msg); } else { location.href = data.url; } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); } function submitjobposition() { var site = $("#site").val(); var jobpositionid = $("#jobpositionid").val(); var companyid = $("#companyid").val(); //alert("companyid=" + companyid); $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=submitjobposition", //提交申请职位 data: { "jobpositionid": jobpositionid, "site": site, "companyid": companyid }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { messagehtml(" ", data.msg); } else if (data.status == 2) { messagelink4resume_list(data.msg, data.url) } else { location.href = data.url; } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); } function submitjobposition_zk() { var site = $("#site").val(); var jobpositionid = $("#jobpositionid").val(); $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=submitjobposition_zk", //提交申请职位 data: { "jobpositionid": jobpositionid, "site": site }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { messagehtml("温 馨 提 示", data.msg); } else if (data.status == 2) { messagelink4resume_list(data.msg, data.url); } else { location.href = data.url; } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); } function setsex(sexval) { $("#gender").val(sexval); } function setdegree() { var degree = $('#seldegree option:selected').val(); var companyid = $("#companyid").val(); var universityid = $("#universityid").val(); /*447上海财经大学,1101华东理工大学,1124上海大学,1127东华大学(这几所大学报销售公司岗位,仅研究生可报名)*/ if (companyid == 2 && degree == "本科" && (universityid == 447 || universityid == 1101 || universityid == 1124 || universityid == 1127)) { messagehtml(" ", "抱歉,您的学校仅研究生才能报名."); } else { $("#degree").val(degree); } } function sethomeaddress() { $("#homeaddress").val($('#selhomeaddress option:selected').val()); } function setprovince() { $("#province").val($('#selprovince option:selected').val()); bindcity(); } function setcity() { $("#city").val($('#selcity option:selected').val()); } function settopaward() { $("#topaward").val($('#seltopaward option:selected').val()); } function deletephoto() { $('#preview').attr('src', ''); $('#chayue').attr('href', ''); $('#chayue').removeattr('target'); $('#hidefilename').val(''); $('#filename').val(''); $('#imgshow').css("display", "none"); $('#imgbtn').css("display", "block"); var webpath = $("#webpath").val(); initwebuploader(webpath); } function setuniversityid(uid, uname) { $("#seluid").val(uid); $("#seluname").val(uname); } function setambassadorid(aid, aname) { $("#selaid").val(aid); $("#selaname").val(aname); } function sureambassador() { //选择了就赋值 if ($("#selaid").val() != "") { $("#ambassadorid").val($("#selaid").val()); $("#ambassador").val($("#selaname").val()); $("#inempname").val($("#selaname").val()); } else { $("#ambassadorid").val($("#selaid").val()); $("#ambassador").val($("#无").val()); $("#inempname").val("无"); } //关闭弹窗 $(".fixedambassador").fadeout("slow"); $(".fixedambassador li").removeclass("on"); $("#mask").css({ display: 'none' }); $("#tip").remove(); } function sureuniversity() { if ($("#seluid").val() == "") { messagehtml(" ", "请选择您的毕业院校"); return false; } if ($("#uid1").val() == "") //第一次提交 { $("#uid1").val($("#seluid").val()); //第二次弹窗 $(".fixedcollege").fadeout("slow"); $("#unititle").html("请再次选择毕业院校"); $("#sureuniversity").append("您刚才选的是" + $("#seluname").val() + ",请再次确认"); $(".fixedcollege").fadein("slow"); } else { if ($("#uid1").val() == $("#seluid").val()) //选择成功 { $("#universityid").val($("#seluid").val()); $("#universityname").val($("#seluname").val()); $("#unititle").html("请选择您的毕业院校"); $("#uid1").val(''); $("#seluid").val(''); $("#seluname").val(''); $("#subjectcategoryid").val(''); $("#subjectcategory").val(''); $("#selsubjectcategory").val(''); $("#majorid").val(''); $("#majorname").val(''); $("#jobpositionid").val(''); $("#selposition").val(''); $("#companyid").val(''); $("#selcompany").val(''); $("#tip").remove(); $(".fixedcollege").fadeout("slow"); $(".fixedcollege li").removeclass("on"); $("#mask").css({ display: 'none' }); var uid = $("#universityid").val(); checkiskey(uid); getambassadorlist(); } else { messagehtml(" ", "请选择您两次选择的毕业院校不同,请重新选择"); getuniversitylist(); $("#tip").remove(); $(".fixedcollege").fadeout("slow"); $("#unititle").html("请选择您的毕业院校"); $(".fixedcollege li").removeclass("on"); $("#uid1").val(''); $("#seluid").val(''); $("#seluname").val(''); $(".fixedcollege").fadein("slow"); } } } function sureidentno() { if ($("#identno1").val() != $("#identno2").val()) { messagehtml(" ", "两次输入的身份证号码不一致,请重新输入"); $("#identno1").val(''); $("#identno2").val(''); } else { if (checkidentno($("#identno1").val())) { var site = $("#site").val(); var identno = $("#identno1").val(); var count = 0; $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=queryidentno", data: { "site": site, "identno": identno }, datatype: "json", success: function (data, textstatus) { if (data.status == 0) { count = data.count; if (count > 0) { alert("身份证号【" + identno + "】已报名,不能重复报名."); $("#identno").val(''); } else { $("#identno").val($("#identno1").val()); $("#identno1").val(''); $("#identno2").val(''); $(".fixedid").fadeout("slow"); $("#mask").css({ display: 'none' }); } } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); } else { $("#identno1").val(''); $("#identno2").val(''); } } } function sureqqno() { if ($("#qqno1").val() != $("#qqno2").val()) { messagehtml(" ", "两次输入的qq号码不一致,请重新输入"); $("#qqno1").val(''); $("#qqno2").val(''); } else { if (checkqqno($("#qqno1").val())) { $("#qqno").val($("#qqno1").val()); $("#qqno1").val(''); $("#qqno2").val(''); $(".fixedqq").fadeout("slow"); $("#mask").css({ display: 'none' }); } else { $("#qqno1").val(''); $("#qqno2").val(''); } } } function suremobile() { if ($("#mobile1").val() != $("#mobile2").val()) { messagehtml(" ", "两次输入的手机号码不一致,请重新输入"); $("#mobile1").val(''); $("#mobile2").val(''); } else { if (checkmobile($("#mobile1").val())) { $("#mobile").val($("#mobile1").val()); $("#mobile1").val(''); $("#mobile2").val(''); $(".fixedmobile").fadeout("slow"); $("#mask").css({ display: 'none' }); } else { $("#mobile1").val(''); $("#mobile2").val(''); } } } function sureemail() { if ($("#email1").val() != $("#email2").val()) { messagehtml(" ", "两次输入的邮箱不一致,请重新输入"); $("#email1").val(''); $("#email2").val(''); } else { if (checkemail($("#email1").val())) { $("#email").val($("#email1").val()); $("#email1").val(''); $("#email2").val(''); $(".fixedemail").fadeout("slow"); $("#mask").css({ display: 'none' }); } else { $("#email1").val(''); $("#email2").val(''); } } } function checksubjectcategory() { if ($("#majorid").val() == '' && $("#addmajorname").val() == '') { messagehtml(" ", "请先选择专业"); } else if ($("#majorid").val() == '' && $("#addmajorname").val() != '') { messagehtml(" ", "自增的专业不需填写学科类别"); } } function getmajorlist() { var universityid = $("#universityid").val(); var universityname = $("#universityname").val(); var universitylevel = $("#universitylevel").val(); var subjectcategoryid = $("#subjectcategoryid").val(); if (universitylevel == 5) { subjectcategoryid = 8; //8表示工学 (modiby by hdh@2019-06-26) } if (subjectcategoryid == "") { messagehtml(" ", "请先选择学科类别"); return false; } $("#majortitle").html(universityname + "(请选择专业)"); alert("error2-universityid:" + universityid); alert("error2-universitylevel:" + universitylevel); $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=getmajor", data: { "universityid": universityid, "universitylevel": universitylevel, "subjectcategoryid": subjectcategoryid }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { messagehtml("", data.msg); } else { var strhtml = ''; var start = false; var end = true; for (var i in data.data) { if (data.data[i].type == 1) { if (!end) { strhtml += ''; end = true; start = false; } strhtml += '

' + data.data[i].name + '

' if (!start) { strhtml += ''; $("#majorlist").html(strhtml); jquery(".slidemen").slide({ titcell: "h4", targetcell: "ul", trigger: "click", effect: "slidedown" }); $('.fixedbox li').click(function () { $(this).addclass('on'); $(this).siblings().removeclass(); }); } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); return true; } function setmajor(mid, mname, subid, subname) { $("#selmid").val(mid); $("#selmname").val(mname); $("#selsubid").val(subid); $("#selsubname").val(subname); } function suremajor() { if ($("#selmid").val() == "") { messagehtml(" ", "请选择您的专业"); return false; } if ($("#mid1").val() == "") //第一次提交 { $("#mid1").val($("#selmid").val()); //第二次弹窗 $(".fixedmajor").fadeout("slow"); $("#majortitle").html($("#universityname").val() + "(请再次选择专业)"); $(".fixedmajor").fadein("slow"); } else { if ($("#mid1").val() == $("#selmid").val()) //选择成功 { $("#majorid").val($("#selmid").val()); $("#majorname").val($("#selmname").val()); $("#jobpositionid").val(''); $("#selposition").val(''); $("#companyid").val(''); $("#selcompany").val(''); $("#majortitle").html($("#universityname").val() + "(请选择专业)"); $("#mid1").val(''); $("#selmid").val(''); $("#selmname").val(''); $(".fixedmajor").fadeout("slow"); $(".fixedmajor li").removeclass("on"); $("#mask").css({ display: 'none' }); $("#ascrail2001").css({ display: 'none' }); if ($("#universitylevel").val() == 5) { bindmajorlist_zk(); } else { bindmajorlist(); } bindambassadorlist(); } else { messagehtml(" ", "请选择您两次选择的专业不同,请重新选择"); $(".fixedmajor").fadeout("slow"); $("#unititle").html($("#universityname").val() + "(请选择专业)"); $(".fixedmajor li").removeclass("on"); $("#mid1").val(''); $("#selmid").val(''); $("#selmname").val(''); $(".fixedmajor").fadein("slow"); } } } //可应聘的岗位 add by hdh@2017-09-15 function bindmajorlist() { var universityid = $("#universityid").val(); var subjectcategory = $("#subjectcategory").val(); var major = $("#majorname").val(); var companyid = $("#hiddencompanyid").val(); //alert("bindmajorlist_companyid="+companyid); if ($("#iskey_1").val() == "1") { major = ""; } $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=getjobpositionbymajor", data: { "universityid": universityid, "subjectcategory": subjectcategory, "major": major, "companyid": companyid }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { messagehtml("", data.msg); } else { var strhtml = ''; var strtablerow = ''; var infos = ''; var start = false; var end = true; for (var i in data.data) { var salary = data.data[i].salary; /*447上海财经大学,1101华东理工大学,1124上海大学,1127东华大学(这几所大学报销售公司岗位,仅显示研究生薪酬)*/ if (companyid == 2 && (universityid == 447 || universityid == 1101 || universityid == 1124 || universityid == 1127)) { salary = salary.substr(0, salary.lastindexof("本") - 1); } infos = data.data[i].companyname + '|' + data.data[i].deptname + '|' + data.data[i].jobpositionname + '|' + data.data[i].subjectcategoryname + '|' + data.data[i].specrequire + '|' + data.data[i].workplace + '|' + salary + '|' + data.data[i].employnum; if (major != "自动化" || (major == "自动化" && data.data[i].jobpositionname != "生产机械管理")) { strtablerow += ""; strtablerow += "" + (parseint(i) + 1) + ""; strtablerow += "" + data.data[i].companyname + ""; strtablerow += "" + data.data[i].deptname + ""; strtablerow += "" + data.data[i].jobpositionname + ""; strtablerow += "" + data.data[i].workplace + ""; strtablerow += "" + salary + ""; strtablerow += "" + "学科::" + data.data[i].subjectcategoryname + ";专业:" + data.data[i].specrequire + ""; //strtablerow += "点击查阅"; if (data.data[i].jobpostionstatus == '2') { strtablerow += "满员"; } else { strtablerow += ""; } strtablerow += ""; } infos = ''; } strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; if (strtablerow == '') { strhtml += ''; } else { strhtml += strtablerow; } strhtml += "
序号公司名称部门岗位工作地点首年年薪
(元)
学科门类及专业我要
应聘
抱歉,本次招聘没有适合您的岗位.
"; $("#div_majorlist").html(strhtml); jquery(".slidemen").slide({ titcell: "h4", targetcell: "ul", trigger: "click", effect: "slidedown" }); $('.fixedbox li').click(function () { $(this).addclass('on'); $(this).siblings().removeclass(); }); } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); return true; } //专门为大专学生做一个新的绑定 function bindmajorlist_zk() { var universityid = $("#universityid").val(); var subjectcategory = $("#subjectcategory").val(); var major = $("#majorname").val(); if ($("#iskey_1").val() == "1") { major = ""; } $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=getjobpositionbymajor_zk", data: { "universityid": universityid, "subjectcategory": "工学", "major": major }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { messagehtml("", data.msg); } else { var strhtml = ''; var strtablerow = ''; var infos = ''; var start = false; var end = true; for (var i in data.data) { infos = data.data[i].companyname + '|' + data.data[i].deptname + '|' + data.data[i].jobpositionname + '|' + data.data[i].title + '|' + data.data[i].employnum + '|' + data.data[i].internship_treatment + '|' + data.data[i].monthly_pay + '|' + data.data[i].salary + '|' + data.data[i].specrequire + '|' + data.data[i].work_hours + '|' + data.data[i].workingtype + '|' + data.data[i].week_work + '|' + data.data[i].workplace + '|' + data.data[i].remarks; strtablerow += ""; strtablerow += "" + (parseint(i) + 1) + ""; strtablerow += "" + data.data[i].companyname.replace(",崇左纸业", "") + ""; strtablerow += "" + data.data[i].deptname + ""; /*strtablerow += "林场";*/ strtablerow += "" + data.data[i].jobpositionname + ""; strtablerow += "" + data.data[i].workplace + ""; if (universityid == 2601000) { strtablerow += "2100元+入职奖励2100元"; strtablerow += "6000元"; strtablerow += "7.2万元"; } else { strtablerow += "" + data.data[i].internship_treatment + ""; strtablerow += "" + data.data[i].monthly_pay + ""; strtablerow += "" + data.data[i].salary + ""; } strtablerow += "" + data.data[i].employnum + ""; strtablerow += "" + data.data[i].specrequire + ""; /*strtablerow += "" + data.data[i].work_hours + ""; strtablerow += "" + data.data[i].workingtype + ""; strtablerow += "" + data.data[i].week_work + ""; strtablerow += "" + data.data[i].remarks + "";*/ //strtablerow += "点击查阅"; if (data.data[i].jobpostionstatus == '2') { strtablerow += "满员"; } else { strtablerow += ""; } strtablerow += ""; infos = ''; } strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; strhtml += ""; if (strtablerow == '') { strhtml += ''; } else { strhtml += strtablerow; } strhtml += "
序号公司名称部门岗位工作地点实习月薪转正薪酬招聘
人数
专业我要
应聘
月薪年薪
抱歉,本次招聘没有适合您的岗位.
"; $("#div_majorlist").html(strhtml); jquery(".slidemen").slide({ titcell: "h4", targetcell: "ul", trigger: "click", effect: "slidedown" }); $('.fixedbox li').click(function () { $(this).addclass('on'); $(this).siblings().removeclass(); }); } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); return true; } //根据院校id获取推荐人 add by hdh@2017-09-16 function bindambassadorlist() { var universityid = $("#universityid").val(); var details = ""; $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=getambassador", data: { "universityid": universityid }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { messagehtml("", data.msg); } else { $("#ishaveamb").val("0"); for (var i in data.data) { $("#ishaveamb").val("1"); } jquery(".slidemen").slide({ titcell: "h4", targetcell: "ul", trigger: "click", effect: "slidedown" }); $('.fixedbox li').click(function () { $(this).addclass('on'); $(this).siblings().removeclass(); }); } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); return true; } function cancelresumeconfirm() { $(".viewresumeconfirm").fadeout("fast"); $("#mask").css({ display: 'none' }); $("#ascrail2000").css({ display: 'none' }); } function cancelcollege() { $("#unititle").html("请选择您的毕业院校"); $("#uid1").val(''); $("#seluid").val(''); $("#seluname").val(''); $("#tip").remove(); } function canceljob() { $(".fixedjob").fadeout("fast"); $("#mask").css({ display: 'none' }); } function cancelsubjectcategory() { $("#subtitle").html("请选择您的学科类别"); $("#subid1").val(''); $("#selsubid").val(''); $("#selsubname").val(''); } function cancelmajor() { $("#majortitle").html($("#universityname").val() + "(请选择专业)"); $("#mid1").val(''); $("#selmid").val(''); $("#selmname").val(''); } function cancelidentno() { $("#identno1").val(''); $("#identno2").val(''); } function cancelqqno() { $("#qqno1").val(''); $("#qqno2").val(''); } function cancelmobile() { $('.ifrbox').css('margin-left', ''); $("#mobile1").val(''); $("#mobile2").val(''); } function cancelemail() { $("#email1").val(''); $("#email2").val(''); } function addmajor() { $(".fixedmajor").fadeout("slow"); $("#ascrail2001").css({ display: 'none' }); $("#unititle").html($("#universityname").val() + "(请选择专业)"); $(".fixedmajor li").removeclass("on"); $("#mid1").val(''); $("#selmid").val(''); $("#selmname").val(''); $(".fixedaddmajor").fadein("slow"); } function sureaddmajor() { var addcollege = $("#addcollege").val(); var addmajorname1 = $("#addmajorname1").val(); if (addcollege == "") { messagehtml("", "请填写学院"); } if (addmajorname1 == "") { messagehtml("", "请填写新增的专业"); } $("#addmajorname").val(addmajorname1); $("#addcollegename").val(addcollege); $("#majorname").val(addmajorname1); $("#addcollege").val(''); $("#addmajorname1").val(''); $("#majorid").val(''); $(".fixedaddmajor").fadeout("slow"); $("#mask").css({ display: 'none' }); } function submitcareerplan(id) { var site = $("#site").val(); $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=submitcareerplan", //查阅生涯发展规划 data: { "careerplanid": id, "site": site }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { messagehtml("", data.msg); } else { // window.open(data.url); // $("body").append("
"); // $("#openwin").submit(); // $("#openwin").remove(); //alert("ok"); //alert(data.url); $(".ifrbox").css('margin-left', '100px'); $("#postdevelopment").attr("src", data.url); } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); } //function deleteresume() //{ // $("#resumename-d").val(''); // $("#resumeurl-d").val(''); // $("#resumename1").html(''); // $("#resumeurl1").attr('href',''); // $("#resumebtn").show();//.css("display", "block"); // $("#resumeshow").hide();//.css("display", "none"); // $(".upload-attach").inituploader({ filesize: "5000m", sendurl: "/tools/upload_ajax.ashx", swf: "/scripts/webuploader/uploader.swf", filetypes: "doc,docx,pdf" }); //} function showsubjectcategoryoption() { var universityid = $("#universityid").val(); var universityname = $("#universityname").val(); if ($("#universityid").val() == "") { messagehtml(" ", "请先选择毕业院校"); return false; } return true; } function getsubjectcategorylist() { var universityid = $("#universityid").val(); var universityname = $("#universityname").val(); var universitylevel = $("#universitylevel").val(); var iskey = $("#iskey_1").val(); if (iskey == 1) { universityid = 99999999; } if ($("#universityid").val() == "") { messagehtml(" ", "请先选择毕业院校"); return false; } $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=getsubjectcategorylist", async: false, data: { "site": "main", "universityid": universityid, "universitylevel": universitylevel }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { messagehtml("", data.msg); } else { var strhtml = ''; for (var i = 0; i < data.data.length; i++) { strhtml += '
  • ' + data.data[i].name + '
  • '; } $("#subjectcategorylist").html(strhtml); $('.fixedbox li').click(function () { $(this).addclass('on'); $(this).siblings().removeclass(); }); } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); return true; } function setsubjectcategoryid(uid, uname) { $("#selsubid").val(uid); $("#selsubname").val(uname); } function setsubjectcateid() { if ($("#subid1").val() == "") //第一次提交 { $("#subid1").val($("#selsubid").val()); //第二次弹窗 $(".fixedsubjectcategory").fadeout("slow"); $("#subtitle").html("请再次选择学科门类"); $(".fixedsubjectcategory").fadein("slow"); } else { if ($("#subid1").val() == $("#selsubid").val()) //选择成功 { $("#subjectcategoryid").val($("#selsubid").val()); $("#subjectcategory").val($("#selsubname").val()); $("#subtitle").html("请选择您的学科分类"); $("#subid1").val(''); $("#selsubid").val(''); $("#selsubname").val(''); $(".fixedsubjectcategory").fadeout("slow"); $(".fixedsubjectcategory li").removeclass("on"); $("#mask").css({ display: 'none' }); } else { messagehtml(" ", "请选择您两次选择的学科门类不同,请重新选择"); $(".fixedsubjectcategory").fadeout("slow"); $("#subtitle").html("请选择您的学科门类"); $(".fixedsubjectcategory li").removeclass("on"); $("#subid1").val(''); $("#selsubid").val(''); $("#selsubname").val(''); $(".fixedsubjectcategory").fadein("slow"); } } } function setsubjectcategory() { $("#subjectcategoryid").val($('#selsubjectcategory option:selected').val()); $("#majorid").val(''); $("#majorname").val(''); $("#jobpositionid").val(''); $("#selposition").val(''); $("#companyid").val(''); $("#selcompany").val(''); } function setcompany() { var majorname = $("#majorname").val(); if (majorname != "") { var companyid = $('#selcompany option:selected').val(); var universitylevel = $("#universitylevel").val(); $("#jobpositionid").val(''); $("#selposition").val(''); $("#companyid").val(companyid); $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=getjobposition", data: { "companyid": companyid, "universitylevel": universitylevel }, datatype: "json", async: false, beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { messagehtml("", data.msg); } else { $("#selposition").empty(); var strhtml = ''; for (var i in data.data) { if (data.data[i].id == 12) { strhtml += ''; } else if (data.data[i].id == 26) { strhtml += ''; } else { strhtml += ''; } } $("#selposition").append(strhtml); } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); } else { majorid = $("#majorid").val(); var companyid = $('#selcompany option:selected').val(); var universitylevel = $("#universitylevel").val(); $("#jobpositionid").val(''); $("#selposition").val(''); if (companyid != "") { //验证公司是否符合专业 $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=getcompanycount", async: false, data: { "majorid": majorid, "companyid": companyid, "universitylevel": universitylevel }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { messagehtml("", data.msg); } else { if (data.msg == "success") { $("#companyid").val(companyid); $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=getjobposition", data: { "companyid": companyid, "universitylevel": universitylevel }, datatype: "json", async: false, beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { messagehtml("", data.msg); } else { $("#selposition").empty(); var strhtml = ''; for (var i in data.data) { if (data.data[i].id == 12) { strhtml += ''; } else if (data.data[i].id == 26) { strhtml += ''; } else { strhtml += ''; } } $("#selposition").append(strhtml); } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); } else { $("#companyid").val(''); $("#selcompany").val(''); $("#jobpositionid").val(''); $("#selposition").val(''); messagehtml(" ", data.msg); } } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); } else { $("#companyid").val(''); $("#jobpositionid").val(''); $("#selposition").val(''); } } } function showcompanyoption() { var majorid = $("#majorid").val(); var majorname = $("#majorname").val(); if (majorid == "" && majorname == "") { messagehtml(" ", "请先选择您的专业"); return false; } return true; } function showpositionoption() { var companyid = $("#companyid").val(); var universitylevel = $("#universitylevel").val(); if (companyid == "") { messagehtml(" ", "请先选择您要应聘的公司"); return false; } else { ////取公司下的所有岗位 //$.ajax({ // type: "post", // url: "/tools/submit_ajax.ashx?action=getjobposition", // data: { // "companyid": companyid, // "universitylevel": universitylevel // }, // datatype: "json", // async:false, // beforesend: function (xmlhttprequest) { // }, // success: function (data, textstatus) { // if (data.status == 0) { // messagehtml("", data.msg); // } // else { // $("#selposition").empty(); // var strhtml = ''; // for (var i in data.data) { // strhtml += ''; // } // $("#selposition").append(strhtml); // } // }, // error: function (xmlhttprequest, textstatus, errorthrown) { // messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); // }, // complete: function (xmlhttprequest, textstatus) { // }, // timeout: 20000 //}); } return true; } function setposition() { var majorname = $("#majorname").val(); var positionid = $('#selposition option:selected').val(); var universitylevel = $("#universitylevel").val(); if (positionid != "") { //验证公司是否符合专业 $.ajax({ type: "post", async: false, url: "/tools/submit_ajax.ashx?action=getpositioncount", data: { "majorname": majorname, "positionid": positionid, "universitylevel": universitylevel }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { messagehtml("", data.msg); } else { if (data.msg == "success") { $("#jobpositionid").val(positionid); } else { $("#jobpositionid").val(''); $("#selposition").val(''); messagehtml(" ", data.msg); } } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); } else { $("#jobpositionid").val(''); } } function getuniversitylist(pageindex) { $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=getuniversitylist", data: { "universityid": universityid, "subjectcategoryid": subjectcategoryid }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { messagehtml("", data.msg); } else { var strhtml = ''; var start = false; var end = true; for (var i in data.data) { if (data.data[i].type == 1) { if (!end) { strhtml += ''; end = true; start = false; } strhtml += '

    ' + data.data[i].name + '

    ' if (!start) { strhtml += ''; $("#majorlist").html(strhtml); jquery(".slidemen").slide({ titcell: "h4", targetcell: "ul", trigger: "click", effect: "slidedown" }); $('.fixedbox li').click(function () { $(this).addclass('on'); $(this).siblings().removeclass(); }); } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); return true; } function getambassadorlist() { if ($("#universityid").val() == "") { messagehtml(" ", "请先选择毕业院校"); return; } var universityid = $("#universityid").val(); $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=getambassadorlist", data: { "site": "main", "universityid": universityid }, datatype: "json", beforesend: function (xmlhttprequest) { $("#ambassadorlist").html('

    正在努力加载,请稍候...

    '); }, success: function (data, textstatus) { if (data.status == 0) { messagehtml("", data.msg); } else { var strhtml = ''; var start = false; var end = true; //初始化 $("#selambassador").val('点击选择'); $("#ambassadorid").val(''); $("#ambassador").val(''); $("#selaid").val(''); $("#selaname").val(''); for (var i in data.data) { strhtml += '
  • ' + data.data[i].ambassador + '
  • '; } if (strhtml != '') { strhtml += ''; $("#ambassadorlist").html(strhtml); jquery(".slidemen").slide({ titcell: "h4", targetcell: "ul", trigger: "click", effect: "slidedown" }); $('.fixedbox li').click(function () { $(this).addclass('on'); $(this).siblings().removeclass(); }); } else { $("#ishaveamb").val('0'); } } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); return true; } //成品展示页图片ajax分页 function getuniversitylist() { //pageindex -页面索引初始值 //pagesize -每页显示条数初始化 //pagecount -取得总页数 var pagecount = $("#pagecount").val(); initcomment1(0);//初始化评论数据 $("#pagination").pagination(pagecount, { callback: pageselectcallback1, prev_text: "", next_text: "", items_per_page: 96, num_display_entries: 3, current_page: 0, num_edge_entries: 2, link_to: "javascript:;" }); //分页点击事件 function pageselectcallback1(page_id2, jq) { initcomment1(page_id2, 0); } //请求图片 function initcomment1(page_id2) { var webpath = $("#webpath").val(); var universitylevel = $("#universitylevel").val(); var universityid = $("#hiddenuniversityid").val(); var urls = "/tools/submit_ajax.ashx?action=getuniversitylist"; page_id2++; $.ajax({ type: "post", datatype: "json", url: urls, data: { page_index: page_id2, universitylevel: universitylevel, universityid: universityid, pagesize: 96 }, beforesend: function (xmlhttprequest) { $("#universitylist").html('

    正在狠努力加载,请稍候...

    '); }, success: function (obj) { var strhtml = ''; if (obj.data == null || obj.data.length == 0) { $("#universitylist").html('

    抱歉,未找到对应的学校

    '); } else { for (var i = 0; i < obj.data.length; i++) { strhtml += '
  • ' + obj.data[i].name + '
  • '; } $("#universitylist").html(strhtml); } $('.fixedbox li').click(function () { $(this).addclass('on'); $(this).siblings().removeclass(); }); }, error: function (xmlhttprequest, textstatus, errorthrown) { $("#universitylist").html('

    暂无数据

    '); } }); } return true; } function getuniversitylistforshow() { //pageindex -页面索引初始值 //pagesize -每页显示条数初始化 //pagecount -取得总页数 var pagecount = $("#pagecount").val(); initcomment1(0);//初始化评论数据 $("#pagination").pagination(pagecount, { callback: pageselectcallback1, prev_text: "", next_text: "", items_per_page: 96, num_display_entries: 3, current_page: 0, num_edge_entries: 2, link_to: "javascript:;" }); //分页点击事件 function pageselectcallback1(page_id2, jq) { initcomment1(page_id2, 0); } //请求图片 function initcomment1(page_id2) { var webpath = $("#webpath").val(); var universitylevel = $("#universitylevel").val(); var universityid = $("#universityid").val(); var urls = "/tools/submit_ajax.ashx?action=getuniversitylistforshow"; page_id2++; $.ajax({ type: "post", datatype: "json", url: urls, data: { page_index: page_id2, universitylevel: universitylevel, pagesize: 96, universityid: universityid }, beforesend: function (xmlhttprequest) { $("#universitylist").html('

    正在狠努力加载,请稍候...

    '); }, success: function (obj) { var strhtml = ''; if (obj.data == null || obj.data.length == 0) { $("#universitylist").html('

    抱歉,未找到对应的学校

    '); } else { for (var i = 0; i < obj.data.length; i++) { strhtml += '
  • ' + obj.data[i].name + '
  • '; } $("#universitylist").html(strhtml); } //$('.fixedbox li').click(function () { // $(this).addclass('on'); // $(this).siblings().removeclass(); //}); }, error: function (xmlhttprequest, textstatus, errorthrown) { $("#universitylist").html('

    暂无数据

    '); } }); } return true; } function checkiskey(uid) { $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=checkiskey", data: { "universityid": uid }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 0) { messagehtml("", data.msg); } else { $("#majorname").removeclass(); //国外的大学,移除弹窗 if (data.data == 1 || data.level == 10) { $("#majorname").removeattr("readonly"); $("#majorname").unbind().bind("blur", function () { if ($("#majorname").val() != "") { bindmajorlist(); bindambassadorlist(); } }); $("#iskey_1").val("1"); } else { $("#majorname").attr("readonly", "true"); $("#majorname").addclass("major"); $(".major").hover(function () { $(this).stop().animate({ opacity: '1' }, 600); }, function () { $(this).stop().animate({ opacity: '1' }, 1000); }).on('click', function () { if (getmajorlist()) { $("body").append("
    "); $("#mask").addclass("mask").fadein("fast"); $(".fixedmajor").fadein("fast"); } //关闭 $(".close_btn").click(function () { $(".fixedmajor").fadeout("fast"); $(".fixedaddmajor").fadeout("fast"); $("#mask").css({ display: 'none' }); $("#ascrail2001").css({ display: 'none' }); }); }); } } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); } function deleteresumefile(identno, type) { $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=deleteresumefile", //删除文件 data: { "identno": identno, "type": type }, datatype: "json", beforesend: function (xmlhttprequest) { }, success: function (data, textstatus) { if (data.status == 1) { messagehtml(" ", data.msg); } else { messagehtml(" ", data.msg); } }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示:" + errorthrown); }, complete: function (xmlhttprequest, textstatus) { }, timeout: 20000 }); } /*校招简历:绑定籍贯*/ function bindprovince() { var site = $("#site").val(); var typename = "province"; $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=getdictdatalistby", //查询数据字典 data: { "site": site, "typename": typename }, datatype: "json", success: function (data, textstatus) { var strrow = "''"; var value = $("#province").val(); if (data.status == 0) { for (var i = 0; i < data.data.length; i++) { var itemname = data.data[i].itemname; if (value != "" && itemname == value) { strrow += ""; } else { strrow += ""; } } } $("#selprovince").html(strrow); }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示6:" + errorthrown); }, timeout: 20000 }); } /*校招简历:绑定城市*/ function bindcity() { var site = $("#site").val(); var typename = "province"; var itemname = $("#province").val(); $.ajax({ type: "post", url: "/tools/submit_ajax.ashx?action=getone_dictdata", //查询数据字典一条记录 data: { "site": site, "typename": typename, "itemname": itemname }, datatype: "json", success: function (data, textstatus) { var strrow = "''"; var value = $("#city").val(); if (data.status == 0 && data.data.remarks != "") { //alert(data.data.remarks); //兰州市,天水市,庆阳市,武威市,酒泉市,张掖市,陇南地区,白银市,定西地区,平凉市,嘉峪关市,临夏回族自治州,金昌市,甘南州 var arr = data.data.remarks.split(","); for (var i = 0; i < arr.length; i++) { var itemname = arr[i]; if (value != "" && itemname == value) { strrow += ""; } else { strrow += ""; } } } $("#selcity").html(strrow); }, error: function (xmlhttprequest, textstatus, errorthrown) { messagehtml("状态:" + textstatus + ";出错提示6:" + errorthrown); }, timeout: 20000 }); }