⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 release.js

📁 企业人力资源管理
💻 JS
字号:
function check(Expression, str) {	alert("");	var objExp = new RegExp(Expression);	if (objExp.test(str) == true) {		return true;	} else {		return false;	}}
//职位发布_登记_加载事件function release_add_load() {	var third_relate = new CreateThirdRelate();	third_relate.setRelate("firstKindId", "secondKindId", "thirdKindId");	var major_relate = new CreateMajorRelate();	major_relate.setRelate("majorKindId", "majorId");	var date = new Date();	var cur_month = (date.getMonth() + 1);	var cur_date = date.getDate();	cur_month = cur_month > 10 ? cur_month : "0" + cur_month;	cur_date = cur_date > 10 ? cur_date : "0" + cur_date;	document.forms[0].cur_date.value = date.getYear() + "-" + cur_month + "-" + cur_date;}
//职位发布_登记_提交事件function release_add_sub(e) {	var firstKindId = e.firstKindId;//一级机构对象	var secondKindId = e.secondKindId;//二级机构对象	var thirdKindId = e.thirdKindId;//三级机构对象	var majorKindId = e.majorKindId;//职位分类对象	var majorId = e.majorId;//职位对象	var humanAmount = e.humanAmount.value;//招聘人数	var dead_date = e.dead_date.value;//截止日期	var majorDescribe = e.majorDescribe.value;//招聘描述	var engageRequired = e.engageRequired.value;//招聘要求	if (check_null(firstKindId.value) || check_null(secondKindId.value) || check_null(thirdKindId.value) || check_null(majorKindId.value) || check_null(majorId.value) || check_null(humanAmount) || check_null(dead_date) || check_null(majorDescribe) || check_null(engageRequired)) {		alert("\u804c\u4f4d\u53d1\u5e03\u65f6\uff0c\u8bf7\u8f93\u5165\u6709\u6548\u7684\u8f93\u5165\u4fe1\u606f\uff01");	} else {		if (isNaN(humanAmount) || humanAmount == 0) {			alert("\u8bf7\u8f93\u5165\u6709\u6548\u7684\u62db\u8058\u4eba\u6570\uff01");		} else {			if (e.cur_date.value > dead_date) {				alert("\u8bf7\u8f93\u5165\u6709\u6548\u7684\u622a\u6b62\u65e5\u671f\uff01");			} else {				e.firstKindName.value = firstKindId[firstKindId.selectedIndex].text;				e.secondKindName.value = secondKindId[secondKindId.selectedIndex].text;				e.thirdKindName.value = thirdKindId[thirdKindId.selectedIndex].text;				e.majorKindName.value = majorKindId[majorKindId.selectedIndex].text;				e.majorName.value = majorId[majorId.selectedIndex].text;				return true;			}		}	}	return false;}

//职位发布_变更_提交事件function release_mod_sub(e) {	var humanAmount = e.humanAmount.value;//招聘人数	var dead_date = e.dead_date.value;//截止日期	var majorDescribe = e.majorDescribe.value;//招聘描述	var engageRequired = e.engageRequired.value;//招聘要求	if (check_null(humanAmount) || check_null(dead_date) || check_null(majorDescribe) || check_null(engageRequired)) {		alert("\u804c\u4f4d\u53d1\u5e03\u65f6\uff0c\u8bf7\u8f93\u5165\u6709\u6548\u7684\u8f93\u5165\u4fe1\u606f\uff01");	} else {		if (isNaN(humanAmount) || humanAmount == 0) {			alert("\u8bf7\u8f93\u5165\u6709\u6548\u7684\u62db\u8058\u4eba\u6570\uff01");		} else {			if (e.cur_date.value > dead_date) {				alert("\u8bf7\u8f93\u5165\u6709\u6548\u7684\u622a\u6b62\u65e5\u671f\uff01");			} else {				return true;			}		}	}	return false;}

//职位发布_变更_加载事件function release_mod_load() {	var date = new Date();	var cur_month = (date.getMonth() + 1);	var cur_date = date.getDate();	cur_month = cur_month > 10 ? cur_month : "0" + cur_month;	cur_date = cur_date > 10 ? cur_date : "0" + cur_date;	document.forms[0].cur_date.value = date.getYear() + "-" + cur_month + "-" + cur_date;}

//简历发布_登记_加载事件function resume_add_load() {	var major_relate = new CreateMajorRelate();	major_relate.setRelate("humanMajorKindId", "humanMajorId");	var date = new Date();	document.forms[0].cur_date.value = date.getYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate();}

//简历发布_登记_提交事件function resume_add_sub(e) {	var humanName = e.humanName.value;	var humanAge = e.humanAge.value;	var humanCollegee = e.humanCollege.value;	var humanHistoryRecords = e.humanHistoryRecords.value;	var humanEmail = e.humanEmail.value;	var humanTelephone = e.humanTelephone.value;	var humanHomephone = e.humanHomephone.value;	var humanMobilephone = e.humanMobilephone.value;	var humanAddress = e.humanAddress.value;	var humanPostcode = e.humanPostcode.value;//邮编	var humanIdcard = e.humanIdcard.value;	var demandSalaryStandard = e.demandSalaryStandard.value;	var humanMajorKindId = e.humanMajorKindId;//职位分类对象	var humanMajorId = e.humanMajorId;//职位对象	if (check_null(humanMajorKindId.value) || check_null(humanMajorId.value) || check_null(humanName) || check_null(humanCollege) || check_null(humanAddress) || check_null(humanPostcode) || check_null(humanHistoryRecords)) {		alert("\u804c\u4f4d\u53d1\u5e03\u65f6\uff0c\u8bf7\u8f93\u5165\u6709\u6548\u7684\u8f93\u5165\u4fe1\u606f\uff01");	} else {		alert("");		if (!check(/[_a-zA-Z]{3,6}@[0-9]+.(com|cn|com.cn)$/, humanEmail)) {			alert("\u8bf7\u8f93\u5165\u6b63\u786e\u683c\u5f0f\u7684Email");			e.humanEmail.focus();		} else {			if (!check(/(\d{3}-)?\d{8}|(\d{4}-)(\d{7})/, humanTelephone)) {				alert("\u8bf7\u8f93\u5165\u6b63\u786e\u683c\u5f0f\u7684\u7535\u8bdd");				e.humanTelephone.focus();			} else {				if (!check(/(\d{3}-)?\d{8}|(\d{4}-)(\d{7})/, humanHomephone)) {					alert("\u8bf7\u8f93\u5165\u6b63\u786e\u683c\u5f0f\u7684\u5bb6\u5ead\u7535\u8bdd");					e.humanHomephone.focus();				} else {					if (!check(/\d{11}/, humanMobilephone)) {						alert("\u8bf7\u8f93\u5165\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a");						e.humanMobilephone.focus();					} else {						if (!check(/^\d{17}[\dX]|^\d{15}$/, humanIdcard)) {							alert("\u8bf7\u8f93\u5165\u6709\u6548\u7684\u8eab\u4efd\u8bc1");							e.humanIdcard.focus();						} else {							if (isNaN(humanAge) || humanAge == 0 || isNaN(demandSalaryStandard) || demandSalaryStandard == 0) {								alert("\u85aa\u916c\u6807\u51c6\u6216\u5e74\u9f84\u5fc5\u987b\u662f\u6570\u5b57\u4e14\u4e0d\u4e3a\u96f6");								e.demandSalaryStandard.focus();							} else {								if (isNaN(humanPostcode)) {									alert("\u90ae\u7f16\u5fc5\u987b\u662f\u6570\u5b57");									e.humanPostcode.focus();								} else {									e.humanMajorKindName.value = humanMajorKindId[humanMajorKindId.selectedIndex].text;									e.humanMajorName.value = humanMajorId[humanMajorId.selectedIndex].text;									//return true;								}							}						}					}				}			}		}	}	return false;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -