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

📄 majorchange_regist.jsp

📁 人力资源管理系统
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/page.tld" prefix="page" %>


<html>
  <head>
    <base href="http://localhost:8080/accp_hr/">
    <title>职位调动注册查询页面</title>
    <script type="text/javascript" src="accp_hr/interface/FirstK.js"></script>
	<script type="text/javascript" src="accp_hr/interface/SecondK.js"></script>
	<script type="text/javascript" src="accp_hr/interface/ThirdK.js"></script>
	<script type="text/javascript" src="accp_hr/interface/MojarkModel.js"></script>
	<script type="text/javascript" src="accp_hr/interface/MojarModel.js"></script>
	<script type="text/javascript" src="accp_hr/interface/Standards.js"></script>
	<script type="text/javascript" src="accp_hr/engine.js"></script>
	<script type="text/javascript" src="accp_hr/util.js"></script>
	<script type="text/javascript" src="js/DateTime2.js"></script>
	<script type="text/javascript" src="js/validator.js"></script>
	<script type="text/javascript">
		window.onload=function(){
			firstFind();
			zwflfind();
			xcbzfind();
			startclock();
		}
		
		function newoption(){
			nops=new Option();
			
			nops.text="---未选择---";
			return nops;
		}
		
		//一级机构
		function firstFind()
		{
			FirstK.findAll(null,showFirst);
		}
		function showFirst(firstitem)
		{
			$('firstk').options.add(newoption());
			DWRUtil.addOptions('firstk',firstitem,'ffkId','firstKindName');
			secondFind($('firstk').options[0].value);
		}
		//二级机构
		function secondFind(kid)
		{
			if(kid==''){
				$('secondk').options.length=0;
				$('thirdk').options.length=0;
				$('secondk').options.add(newoption());
				$('thirdk').options.add(newoption());
			}else{
				SecondK.findAll(kid,showSecond);
			}
		}
		function showSecond(seconditem){
			$('secondk').options.length=0;
			$('secondk').options.add(newoption());
			DWRUtil.addOptions('secondk',seconditem,'fskId','secondKindName');
			thirdFind($('secondk').options[0].value);
		}
		
		//三级机构
		function thirdFind(kid)
		{
			if(kid==''){
				$('thirdk').options.length=0;
				$('thirdk').options.add(newoption());
			}else{
				ThirdK.findAll(kid,showThird);
			}
		}
		function showThird(thirditem){
			$('thirdk').options.length=0;
			$('thirdk').options.add(newoption());
			DWRUtil.addOptions('thirdk',thirditem,'ftkId','thirdKindName');
		}
		
		//职位分类
		function zwflfind(){
			MojarkModel.findAll(showZwfl);
		}
		function showZwfl(zwitem){
			DWRUtil.addOptions('zwfl',zwitem,'majorKindId','majorKindName');
			zhiweifind($('zwfl').options[0].value);
		}
		//职位
		function zhiweifind(mid){
			MojarModel.findAll(mid,showZhiwei);
		}
		function showZhiwei(zwitem){
			$('zhiwei').options.length=0;
			DWRUtil.addOptions('zhiwei',zwitem,'makId','majorName');
		}
		
		
		//薪酬标准
		function xcbzfind(){
			Standards.findAll(showXcbz);
		}
		function showXcbz(xcitem){
			$('xcbz').options.length=0;
			DWRUtil.addOptions('xcbz',xcitem,'standardId','standardName');
			
		}
		
	</script>
	<style type="text/css">
		th{
			background-color: #CCCCFF;
		}
		td{
			background-color: #DADEDD;
		}
		.texts{
			width: 130px;
		}
		.texts2{
			width: 200px;
		}
		.texts3{
			background-color: transparent;
			border-style: none;
			width: 130px;
		}
		select{
			width: 130px;
		}
		
	</style>
  </head>
  
  <body bgcolor="#DADEDD"  style="background-image: url('images/accphr/main.jpg');background-attachment :fixed ;">
    <center>职位调动注册查询</center>
    <br>
    <html:form action="majorChange" onsubmit="return Validator.Validate(this,1)" >
   	 <input type="hidden" name="opmc" value="doRegist"/>
		<input type="hidden" name="majorChange.humanId" value="${rhuman.hufId}"/>
		<input type="hidden" name="majorChange.salarySum" value="${rhuman.salarySum}"/>
				<table border="1" cellspacing="0" align="center" width="100%" bordercolor="black" style="font-size: 12px">
					<tr>
						<th>姓名</th>
						<td colspan="5"><html:text property="majorChange.humanName" styleClass="texts3" readonly="true" value="${rhuman.humanName}" />
						</td>
					</tr>
					<tr>
						<th>原I级机构</th>
						<td>
							<html:text property="majorChange.firstKindName" styleClass="texts3" readonly="true" value="${rhuman.firstKindName}" />
							<input type="hidden" name="majorChange.firstKindId" value="${rhuman.firstKindId}" >
						</td>
						<th>原Ⅱ级机构</th>
						<td>
							<html:text property="majorChange.secondKindName" styleClass="texts3" readonly="true" value="${rhuman.secondKindName}" />
							<input type="hidden" name="majorChange.secondKindId" value="${rhuman.secondKindId}" >
						</td>
						<th>原Ⅲ级机构</th>
						<td>
							<html:text property="majorChange.thirdKindName" styleClass="texts3" readonly="true" value="${rhuman.thirdKindName}" />
							<input type="hidden" name="majorChange.thirdKindId" value="${rhuman.thirdKindId}" >
						</td>
						
					</tr>
					<tr>
						<th>原职位分类</th>
						<td>
							<html:text property="majorChange.majorKindName" styleClass="texts3" readonly="true" value="${rhuman.humanMajorKindName}" />
							<input type="hidden" name="majorChange.majorKindId" value="${rhuman.humanMajorKindId}" >
						</td>
						<th>原职位名称</th>
						<td>
							<html:text property="majorChange.majorName" styleClass="texts3" readonly="true" value="${rhuman.hunmaMajorName}" />
							<input type="hidden" name="majorChange.majorId" value="${rhuman.humanMajorId}" >
						</td>
						<th>原薪酬标准</th>
						<td>
							<html:text property="majorChange.salaryStandardName" styleClass="texts3" readonly="true" value="${rhuman.salaryStandardName}" />
							<input type="hidden" name="majorChange.salaryStandardId" value="${rhuman.salaryStandardId}" >
							
						</td>
						
					</tr>
		
					<tr>
						<th>I级机构</th>
						<td>
						<input type="hidden" name="majorChange.newFirstKindName" id="fkn" >
			     			
			     			<select name="majorChange.newFirstKindId" id="firstK" onchange="secondFind(this.value);" class="texts" dataType="Require" msg="未选择所在机构">
			     			</select>
			     			
			   			</td>
						<th>Ⅱ级机构</th>
						<td>
						<input type="hidden" name="majorChange.newSecondKindName" id="skn" >
							<html:select property="majorChange.newSecondKindId" styleId="secondk" onchange="thirdFind(this.value)" styleClass="texts" ></html:select>
						</td>
						<th>Ⅲ级机构:</th>
						<td>
						<input type="hidden" name="majorChange.newThirdKindName" id="tkn" >
							<html:select property="majorChange.newThirdKindId" styleId="thirdk" styleClass="texts" ></html:select>
		   				</td>
			     		
					</tr>
					<tr>
			   			<th>职位分类</th>
						<td>
						<input type="hidden" name="majorChange.newMajorKindName" id="mkn" >
							<html:select property="majorChange.newMajorKindId" styleId="zwfl" onchange="zhiweifind(this.value);" styleClass="texts" ></html:select>
       					</td>
       					<th>职位名称</th>
       					<td>
       					<input type="hidden" name="majorChange.newMajorName" id="mn" >
       						<html:select property="majorChange.newMajorId" styleId="zhiwei" styleClass="texts" ></html:select>
			     		</td>
			     		<th>薪酬标准</th>
			     		<td>
			     		<input type="hidden" name="majorChange.newSalaryStandardName" id="ssn" >
			     			<html:select property="majorChange.newSalaryStandardId" styleId="xcbz" onchange="setSubName();"></html:select>
			     		</td>
			     		
					</tr>

					<tr>
						<th>登记人</th>
						<td>
							<html:text property="majorChange.register" styleClass="texts3" readonly="true" value="${loginuser.uname}" />
						</td>
						<th>登记时间</th>
						<td>
							<input type="text" name="times" id="currentTime" readonly="readonly" class="texts3">
						</td>
						<th>&nbsp;</th>
						<td>&nbsp;</td>
						
					</tr>
					<tr>
						<th>调动原因</th>
						<td colspan="5">
							<html:textarea property="majorChange.changeReason" rows="5" style="width:100%;"></html:textarea>
						</td>
						
					</tr>
					
						
					
				</table>
				<center><html:submit value="提交" onclick="setSubName();" /> &nbsp; <input type="button" value="返回" onclick="location.href='majorChange.do?opmc=toRegistFind'" ></center>
    </html:form>
  </body>
</html>
<script type="text/javascript">
<!--
		
	<!--给隐藏域的一级、二级机构赋值-->
	function setSubName(){
		//一级标题
		var temp=$("firstk").options;
		for(var i=0;i<temp.length;i++){
			if(temp[i].selected&&temp[i].value!='')
				$("fkn").value=temp[i].innerText;
		}
		//二级标题
		var temp1=$("secondk").options;
		for(var i=0;i<temp1.length;i++){
			if(temp1[i].selected&&temp1[i].value!='')
				$("skn").value=temp1[i].innerText;
		}
		//三级标题
		var temp2=$("thirdk").options;
		for(var i=0;i<temp2.length;i++){
			if(temp2[i].selected&&temp2[i].value!='')
				$("tkn").value=temp2[i].innerText;
		}
		//职位分类
		var temp3=$("zwfl").options;
		for(var i=0;i<temp3.length;i++){
			if(temp3[i].selected&&temp3[i].value!='')
				$("mkn").value=temp3[i].innerText;
		}
		//职位名称
		var temp4=$("zhiwei").options;
		for(var i=0;i<temp4.length;i++){
			if(temp4[i].selected&&temp4[i].value!='')
				$("mn").value=temp4[i].innerText;
		}
		
		//薪酬标准
		var temp5=$("xcbz").options;
		for(var i=0;i<temp5.length;i++){
			if(temp5[i].selected&&temp5[i].value!='')
				$("ssn").value=temp5[i].innerText;
		}
	}
//-->
</script>
<!-- 




/* 	"check_reason" : 审核通过意见                                                                   */
/* 	"check_status" : 复核通过状态                                                                   */

/* 	"checker" : 复核人                                                                           */

/* 	"check_time" : 复核时间 

 -->

⌨️ 快捷键说明

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