You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							268 lines
						
					
					
						
							8.4 KiB
						
					
					
				
			
		
		
	
	
							268 lines
						
					
					
						
							8.4 KiB
						
					
					
				<%@page import="com.zky.para.Para"%>
 | 
						|
<%@include file="/auth.jsp"%>
 | 
						|
<%@page import="java.util.Date"%>
 | 
						|
<%@page language="java" pageEncoding="utf-8" %>
 | 
						|
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
 | 
						|
<%
 | 
						|
    String operate = (String)request.getParameter("operate");
 | 
						|
    String trainId="";
 | 
						|
    String staffId="";
 | 
						|
    String departId="";
 | 
						|
    String trainTime="";//获得天数
 | 
						|
    String trainDate="";
 | 
						|
    String trainType="";
 | 
						|
    String trainSubject="";
 | 
						|
    String trainAddress="";
 | 
						|
    String trainState="";
 | 
						|
    String trainNum="";
 | 
						|
    String trainMark="";
 | 
						|
    String trainName="";
 | 
						|
    String readonly        = "";
 | 
						|
    Login loginObj = (Login)session.getAttribute("login");
 | 
						|
    String optrid = loginObj.optrid;
 | 
						|
    String optrname = getPara.getDesc("TAB_EMPLOYEE","EMPID","EMPNAME",optrid);
 | 
						|
    String sj = Common.convertNull(request.getParameter("sj"));
 | 
						|
    String qj = Common.convertNull(request.getParameter("qj"));
 | 
						|
    String school = Common.convertNull(request.getParameter("school"));
 | 
						|
    String date = DateTime.DateToStr(new Date());
 | 
						|
%>
 | 
						|
<html>
 | 
						|
<head>
 | 
						|
<title>培训管理</title>
 | 
						|
<link href="../../../css/font.css" rel="stylesheet" type="text/css">
 | 
						|
<%--<script src="../../../js/date.js"></script>--%>
 | 
						|
	<script src="../../../myjs/popCal.js"></script>
 | 
						|
<script src="../../../js/check.js"></script>
 | 
						|
 | 
						|
	<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
 | 
						|
	<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
 | 
						|
	<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
 | 
						|
 | 
						|
<script>
 | 
						|
function setValue() {
 | 
						|
<%
 | 
						|
if (!Common.isNull(sj)) {
 | 
						|
	out.println("form1.sj.value='" + sj+ "';");
 | 
						|
   }
 | 
						|
if (!Common.isNull(qj)) {
 | 
						|
	out.println("form1.qj.value='" + qj+ "';");
 | 
						|
   }
 | 
						|
if (!Common.isNull(qj)) {
 | 
						|
	out.println("form1.school.value='" + school+ "';");
 | 
						|
   }
 | 
						|
if (!Common.isNull(operate)) {
 | 
						|
		out.println("form1.operate.value='" + operate + "';");
 | 
						|
	}
 | 
						|
%>	
 | 
						|
}
 | 
						|
function check(operate) {
 | 
						|
	form1.operate.value = operate;
 | 
						|
	if(operate=='addTrain'){
 | 
						|
	if (form1.sj.value == "") {
 | 
						|
		alert("请选择地市!");
 | 
						|
		form1.sj.focus();
 | 
						|
		return false;
 | 
						|
	}
 | 
						|
	 var typemenu=document.getElementById("sj");
 | 
						|
	    var val=typemenu.value; 
 | 
						|
		if(val==0930){
 | 
						|
		}else{
 | 
						|
			   if (form1.qj.value == "") {
 | 
						|
				   alert("请选择所属区县!");
 | 
						|
				   form1.qj.focus();
 | 
						|
				    return false;
 | 
						|
			      }
 | 
						|
	     }
 | 
						|
	if (form1.school.value == "") {
 | 
						|
		alert("请选择单位!");
 | 
						|
		form1.school.focus();
 | 
						|
		return false;
 | 
						|
	}
 | 
						|
	if (form1.pary.value == "") {
 | 
						|
		alert("请填写下属部门!");
 | 
						|
		form1.pary.focus();
 | 
						|
		return false;
 | 
						|
	}
 | 
						|
	if (form1.trainName.value == "") {
 | 
						|
		alert("请选择人员!");
 | 
						|
		form1.trainName.focus();
 | 
						|
		return false;
 | 
						|
	}
 | 
						|
	if (form1.trainType.value == "") {
 | 
						|
		alert("请选择培训类型!");
 | 
						|
		form1.trainType.focus();
 | 
						|
		return false;
 | 
						|
	}
 | 
						|
	if (form1.trainSubject.value == "") {
 | 
						|
		alert("请选择培训对象!");
 | 
						|
		form1.trainSubject.focus();
 | 
						|
		return false;
 | 
						|
	}
 | 
						|
	if (form1.trainTime.value == "") {
 | 
						|
		alert("请选择培训开始时间!");
 | 
						|
		form1.trainTime.focus();
 | 
						|
		return false;
 | 
						|
	}
 | 
						|
	if (form1.trainTimeend.value == "") {
 | 
						|
		alert("请选择培训结束时间!");
 | 
						|
		form1.trainTimeend.focus();
 | 
						|
		return false;
 | 
						|
	}
 | 
						|
	if (form1.trainAddress.value == "") {
 | 
						|
		alert("请输入培训地点!");
 | 
						|
		form1.trainAddress.focus();
 | 
						|
		return false;
 | 
						|
	}
 | 
						|
	return true;
 | 
						|
}
 | 
						|
	
 | 
						|
	form1.button1.disabled=true;
 | 
						|
	form1.button2.disabled=true;
 | 
						|
	form1.submit();
 | 
						|
}
 | 
						|
function selectChange(i)
 | 
						|
{
 | 
						|
	form1.action = "/zhyw/smry/rypx/TrainEdit.jsp";
 | 
						|
	form1.submit();
 | 
						|
}
 | 
						|
</script>
 | 
						|
 | 
						|
<style type="text/css">
 | 
						|
 | 
						|
.aselect{
 | 
						|
	width: 155px;
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
</style>
 | 
						|
</head>
 | 
						|
<body onload="setValue();">
 | 
						|
<form name="form1" method="post" action="/servlet/TrainManage">
 | 
						|
<input type="hidden" name="operate" value=""/>
 | 
						|
<input type="hidden" name="trainstate" value="1"/>
 | 
						|
<table width="99%"  border="0" align="center" cellpadding="0" cellspacing="1" class="box">
 | 
						|
  <tr>
 | 
						|
    <td valign="top"><table width="100%" height="23"  border="0" cellpadding="0" cellspacing="0">
 | 
						|
        <tr>
 | 
						|
          <td width="25%" background="/images/tab_search_01.jpg"><table width="80%" height="23" border="0" align="center" cellpadding="0" cellspacing="0">
 | 
						|
              <tr>
 | 
						|
                <td width="3%"><img src="/images/little_red.jpg" width="12" height="12"></td>
 | 
						|
                <td width="97%" class="font12b"> 培训登记管理</td>
 | 
						|
              </tr>
 | 
						|
          </table></td>
 | 
						|
          <td width="82%" background="/images/tab_search_03.jpg"><img src="/images/tab_search_02.jpg" width="12" height="23"></td>
 | 
						|
        </tr>
 | 
						|
      </table>     
 | 
						|
   <table width="99%"  border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02">
 | 
						|
      	<tr bgcolor="#FFFFFF">
 | 
						|
		<td class="cell1" height="30">所属地市</td>
 | 
						|
		<td class="cell2">
 | 
						|
			<select class='aselect' name="sj" setValue="<%=sj%>" onChange="selectChange(1);">
 | 
						|
		   		<%=Para.getSj(getPara)%>            					
 | 
						|
			</select> <font color="#ff0000">*</font>
 | 
						|
		</td>		
 | 
						|
		<td class="cell1" style="line-height: 35px;">所属区县</td>
 | 
						|
		<td class="cell2">
 | 
						|
			<select class='aselect' name="qj" setValue="<%=qj%>"  <%if(sj.equals("0930")){ %> disabled="disabled" <%} %> onChange="selectChange(1);">
 | 
						|
		   		<%=Para.getQj(getPara,sj)%>            					
 | 
						|
			</select> <font color="#ff0000">*</font>
 | 
						|
		</td>
 | 
						|
	    </tr>
 | 
						|
	    <tr bgcolor="#FFFFFF">
 | 
						|
		<td class="cell1" style="line-height: 35px;">所属单位</td>
 | 
						|
		<td class="cell2">
 | 
						|
			<select class='aselect' name="school" setValue="<%=school%>">
 | 
						|
		   <%if(sj.equals("0930")){ %>
 | 
						|
		    	<%=Para.getXx1(getPara, sj)%>      
 | 
						|
		    <%}else { %>
 | 
						|
		     	<%=Para.getXx(getPara, qj)%>      
 | 
						|
		      		<%} %>	           					
 | 
						|
			</select> <font color="#ff0000">*</font>
 | 
						|
		</td>		
 | 
						|
		<td class="cell1">下属部门</td>
 | 
						|
		<td class="cell2" >
 | 
						|
   			<input type="text"  name="pary" > <font color="#ff0000">* (如果无下属部门,请填写"无部门")</font>
 | 
						|
		</td>
 | 
						|
		</tr>
 | 
						|
	   <tr bgcolor="#FFFFFF">
 | 
						|
	   	<td class="cell1">培训人员</td>
 | 
						|
		<td class="cell2" >
 | 
						|
   			<input type="text" style="color: red;" name="trainName" > <font color="#ff0000">*</font>
 | 
						|
		</td>
 | 
						|
		<td class="cell1" style="line-height: 35px;">培训类型</td>
 | 
						|
		<td class="cell2">
 | 
						|
				<select class='aselect' name="trainType" value="<%=trainType%>">    <font color="#ff0000">*</font>     					
 | 
						|
		   	<%
 | 
						|
			if (trainType.equals("")){
 | 
						|
			out.println(Para.getTrainType(getPara, "TRAINTYPE"));
 | 
						|
			if (!trainType.equals("")){
 | 
						|
			%>
 | 
						|
			<script>
 | 
						|
			form1.trainType.value='<%=trainType%>';
 | 
						|
			</script>
 | 
						|
			<%	
 | 
						|
			}
 | 
						|
			}else{
 | 
						|
			out.println(getPara.getSParaFilter("td_s_static","data_code","dataname","type_code","trainType","data_code",trainType));
 | 
						|
			}
 | 
						|
			%>          					
 | 
						|
			</select> <font color="#ff0000">*</font>
 | 
						|
		</td>		
 | 
						|
		
 | 
						|
	    </tr>
 | 
						|
	    <tr bgcolor="#FFFFFF">
 | 
						|
	    <td class="cell1">培训对象</td>
 | 
						|
		<td class="cell2">
 | 
						|
			<select class='aselect' name="trainSubject" value="<%=trainSubject%>">         					
 | 
						|
		   	<%
 | 
						|
			if (trainSubject.equals("")){
 | 
						|
			out.println(Para.getTrainType(getPara, "TRAINSUBJECT"));
 | 
						|
			if (!trainSubject.equals("")){
 | 
						|
			%>
 | 
						|
			<script>
 | 
						|
			form1.trainSubject.value='<%=trainSubject%>';
 | 
						|
			</script>
 | 
						|
			<%	
 | 
						|
			}
 | 
						|
			}else{
 | 
						|
			out.println(getPara.getSParaFilter("td_s_static","data_code","dataname","type_code","trainSubject","data_code",trainSubject));
 | 
						|
			}
 | 
						|
			%>          					
 | 
						|
			</select> <font color="#ff0000">*</font>
 | 
						|
		</td>
 | 
						|
		<td class="cell1" style="line-height: 35px;">培训开始日期</td>
 | 
						|
		<td class="cell2">
 | 
						|
             	<input type="text" name="trainTime" value="<%=date%>"  readonly="readonly" onclick="fPopCalendar(trainTime,trainTime);return true;"/>
 | 
						|
             	<font color="#ff0000">*</font>
 | 
						|
		</td>
 | 
						|
		
 | 
						|
		</tr>
 | 
						|
		<tr bgcolor="#FFFFFF">
 | 
						|
		<td class="cell1" style="line-height: 35px;">培训结束日期</td>
 | 
						|
		<td class="cell2">
 | 
						|
		  	<input type="text" name="trainTimeend" id="trainingEndDate"  readonly="readonly"  onclick="initDatepicker()" >
 | 
						|
			<font color="#ff0000">*</font>
 | 
						|
		</td>
 | 
						|
		<td class="cell1" >培训地点</td>
 | 
						|
		<td class="cell2"  >
 | 
						|
             		<input type="text" name="trainAddress" maxlength="40" value="<%=trainAddress %>" />
 | 
						|
	<font color="#ff0000">*</font>
 | 
						|
		</td>
 | 
						|
	    </tr>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
	 </td>
 | 
						|
  </tr>
 | 
						|
</table>
 | 
						|
	<table width="99%" align="center">
 | 
						|
		<tr align="center">
 | 
						|
		<td><input  border="0"  type="image"  src="../../../images1/bc1.png" alt="保存" onclick=" return check('addTrain');"/>  
 | 
						|
	  <a href="javascript:history.go(-1)"><img src="../../../images1/fh.png" alt="返回" border="0" /></a>
 | 
						|
		</td>
 | 
						|
		</tr>
 | 
						|
	</table>	
 | 
						|
<%@include file="/foot.jsp"%>
 | 
						|
</form>
 | 
						|
</body>
 | 
						|
</html> |