$(function() {
	// 添加员工验证
	$('#staffAdd').validator({
		timely : 3,
		focusCleanup : true,

		fields : {// tel(invoiceCompany);digits(invoiceCompany)
					// ;remote[/ajaxCheckInvoiceNoUniqueness]'
			nature : 'required;',
			username : 'required;',
			cid_did : 'required;',
			position : 'required;'

			,
			baseWage : 'required; ',
			postWage : 'required; ',
			hiredate : 'required; ',
			telephone : 'mobile',
			achievementBonus : 'required; '
		}
	});

	// 更新员工验证

	$('#staffUpdate').validator({
		timely : 3,
		focusCleanup : true,

		fields : {// tel(invoiceCompany);digits(invoiceCompany)
					// ;remote[/ajaxCheckInvoiceNoUniqueness]'

			cid_did : 'required;',
			position : 'required;',
			hiredate : 'required; ',
			birthday : 'required; '

		}
	});

	// 申请入职验证
	$('#appliedEntry').validator({
		timely : 3,
		focusCleanup : true,

		fields : {// tel(invoiceCompany);digits(invoiceCompany)
					// ;remote[/ajaxCheckInvoiceNoUniqueness]'
					// wecat:'required;', ,email: 'required; '
			telephone : 'required;',
			qq : 'required;',
			phone : 'required;',
			gender : 'required; ',
			birthday : 'required; '

			,
			qualifications : 'required; ',
			marriage : 'required; ',
			nativePlace : 'required; ',
			emergencyContacts : 'required; ',
			living : 'required; '

			,
			nation : 'required; ',
			graduateInstitutions : 'required; ',
			major : 'required; ',
			education : 'required; ',
			graduationTime : 'required; ',
			registeredResidence : 'required; ',
			householdRegistrationType : 'required; ',
			IDcardsValidity : 'required; ',
			IDcards : 'required; '

		}
	});

	// 申请离职验证
	$('#appliedDimission').validator({
		timely : 3,
		focusCleanup : true,
		fields : {// tel(invoiceCompany);digits(invoiceCompany)
					// ;remote[/ajaxCheckInvoiceNoUniqueness]'
			dimissionReason : 'required;',

		}
	});

})