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

📄 trainingplan_modifyplan.jsp

📁 java jsp教程
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import = "com.icss.resourceone.sdk.framework.*"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ page import = "com.icss.cnpc.plan.vo.TrainingPlanInfo"%>
<%@ page import = "com.icss.cnpc.plan.vo.TrainingOrgInfo"%>
<%@ page import = "com.icss.cnpc.project.vo.AttachmentInfo"%>

<%@ page import = "java.util.List"%>
<%@ page import = "java.util.Iterator"%>
<%
	TrainingPlanInfo trainingPlanInfoVo = (TrainingPlanInfo)request.getAttribute("trainingPlanInfo");
	System.out.println("[check]3items in jsp---->"+trainingPlanInfoVo.getTrainingorgLevelId()+"|"+trainingPlanInfoVo.getTrainingmodeid()+"|"+trainingPlanInfoVo.getTrainingtypeId());
	List trainingOrgInfoList = (List)request.getAttribute("trainingOrgInfoList");
	List attachList = (List)request.getAttribute("attachList");
	
	//如果取得trainingPlanInfoVo执行下面的完整页面代码,否则输出没有取得所要修改的计划,请返回
	if(trainingPlanInfoVo != null){
%>
<html>
<head>
<title>培 训 计 划 基 本 信 息</title>
<link rel = "stylesheet" href = "<%=request.getContextPath()%>/css/style.css">
<script type="text/javascript" src="<%=request.getContextPath()%>/common/codeDict.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/common/xtree.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/common/xmlextras.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/common/xloadtree.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/common/common.js"></script>
<script type="text/javascript">
webFXTreeConfig.rootIcon		= "<%=request.getContextPath()%>/images/xp/folder.png";
webFXTreeConfig.openRootIcon	= "<%=request.getContextPath()%>/images/xp/openfolder.png";
webFXTreeConfig.folderIcon		= "<%=request.getContextPath()%>/images/xp/folder.png";
webFXTreeConfig.openFolderIcon= "<%=request.getContextPath()%>/images/xp/openfolder.png";
webFXTreeConfig.fileIcon		= "<%=request.getContextPath()%>/images/xp/file.png";
webFXTreeConfig.lMinusIcon		= "<%=request.getContextPath()%>/images/xp/Lminus.png";
webFXTreeConfig.lPlusIcon		= "<%=request.getContextPath()%>/images/xp/Lplus.png";
webFXTreeConfig.tMinusIcon		= "<%=request.getContextPath()%>/images/xp/Tminus.png";
webFXTreeConfig.tPlusIcon		= "<%=request.getContextPath()%>/images/xp/Tplus.png";
webFXTreeConfig.iIcon			= "<%=request.getContextPath()%>/images/xp/I.png";
webFXTreeConfig.lIcon			= "<%=request.getContextPath()%>/images/xp/L.png";
webFXTreeConfig.tIcon			= "<%=request.getContextPath()%>/images/xp/T.png";
webFXTreeConfig.blankIcon		= "<%=request.getContextPath()%>/images/xp/blank.png";
</script>
</head>
<body background = "<%=request.getContextPath()%>/images/grid.gif" topMargin = "30">
<form name = "form1" action = "">
<input type="hidden" name="originalstate" value="<%=trainingPlanInfoVo.getTrainingstate()%>">
<input type = "hidden" name = "trainingstate">
<input type="hidden" name="attachno">
<input type="hidden" name="attachname">
<input type = "hidden" name = "trainingno" value = "<%=trainingPlanInfoVo.getTrainingno()%>">
<table width = "95%" border = "0" align = "center" cellspacing = "1" cellpadding = "1" bordercolordark = "#003366" bordercolordark = "#dfdfff" bgColor=#b3c4db>
	<tr bgcolor="#a6d0f2" height = "30">
		<th colspan = "4">培 训 计 划 基 本 信 息</th>
	</tr>
	<tr bgColor=#eef4ff height = "30">
		<td colspan = "1" width = "20%" align = "right">培训班名称:<strong><font color="#FF0000">*</font></strong></td>
		<td colspan = "3" width = "80%"><input type = "text" name = "trainingname" value = "<%=trainingPlanInfoVo.getTrainingname()%>" size = "60"></td>

	</tr>
	<tr bgColor=#eef4ff height = "30">
		<td align = "right" width = "20%">主办单位:<strong><font color="#FF0000">*</font></strong></td>
		<td width = "30%"><input type = "text" name = "trainingorg" value = "<%=trainingPlanInfoVo.getTrainingorg()%>" ></td>
		<td align = "right" width = "20%">主办单位级次:<strong><font color="#FF0000">*</font></strong></td>
		<td width = "30%"><input type = "text" name = "trainingOrgLevel" value = "<%=trainingPlanInfoVo.getTrainingorgLevel()%>" readonly><input type = "hidden" name = "trainingorgLevelId" value="<%=trainingPlanInfoVo.getTrainingorgLevelId()%>"><img src="<%=request.getContextPath()%>/images/fuction.gif" width="20" height="15" style="cursor:hand;" onClick="showDiv('TrainingOrgLevelDIV')">
		</td>
	</tr>
	<tr bgColor=#eef4ff height = "30">
		<td align = "right">承办单位:</td>
		<td><input type = "text" name = "undertakeorg" value = "<%=trainingPlanInfoVo.getUndertakeorg() == null ? "" : trainingPlanInfoVo.getUndertakeorg()%>"></td>
		<td align = "right">培训开始时间:<strong><font color="#FF0000">*</font></strong></td>
		<td><input type = "text" name = "begintime" value = "<%=trainingPlanInfoVo.getBegindate()%>" readonly><img src="<%=request.getContextPath()%>/images/calendar.gif" style="cursor:hand;" width="18" height="18" border=0 align="absmiddle" alt="弹出日历下拉菜单" onClick="popUpCalendarDlg(begintime)"></td>
	</tr>
	<tr bgColor=#eef4ff height = "30">
		<td align = "right">培训地点:<strong><font color="#FF0000">*</font></strong></td>
		<td><input type = "text" name = "trainingplace" value = "<%=trainingPlanInfoVo.getTrainingplace()%>"></td>
		<td align = "right">培训结束时间:<strong><font color="#FF0000">*</font></strong></td>
		<td><input type = "text" name = "endtime" value = "<%=trainingPlanInfoVo.getEnddate()%>" readonly><img src="<%=request.getContextPath()%>/images/calendar.gif" style="cursor:hand;" width="18" height="18" border=0 align="absmiddle" alt="弹出日历下拉菜单" onClick="popUpCalendarDlg(endtime)"></td>
	</tr>
	<tr bgColor=#eef4ff height = "30">
		<td align = "right">培训类型:<strong><font color="#FF0000">*</font></strong></td>
		<td><input type = "text" name = "typeThatTrain" value = "<%=trainingPlanInfoVo.getTrainingmode()%>" readonly><input type = "hidden" name = "typeThatTrainId" value="<%=trainingPlanInfoVo.getTrainingmodeid()%>"><img src="<%=request.getContextPath()%>/images/fuction.gif" width="20" height="15" style="cursor:hand;" onClick="showDiv('TypeThatTrainDIV')"></td>
		<td align = "right">计划培训人数:</td>
		<td><input type = "text" name = "expectPersonnumber" value = "<%if(trainingPlanInfoVo.getExpectPersonnumber() == null){%><%}else{%><%=trainingPlanInfoVo.getExpectPersonnumber()%><%}%>" maxlength = "6"></td>
	</tr>
	<tr bgColor=#eef4ff height = "30">
		<td align = "right">培训方式:<strong><font color="#FF0000">*</font></strong></td>
		<td>
			<input type = "text" name = "trainingtype" value = "<%=trainingPlanInfoVo.getTrainingtype()%>" readonly>
			<input type = "hidden" name = "trainingtypeId" value="<%=trainingPlanInfoVo.getTrainingtypeId()%>">
			<img src="<%=request.getContextPath()%>/images/fuction.gif" width="20" height="15" style="cursor:hand;" onClick="showDiv('TrainingtypeDIV')"></td>
		<td align = "right">培训天数:</td>
		<td><input type = "text" name = "trainingdays" value = "<%if(trainingPlanInfoVo.getTrainingdays() == null){%><%}else{%><%=trainingPlanInfoVo.getTrainingdays()%><%}%>" maxlength = "6"></td>
	</tr>
	<tr bgColor=#eef4ff height = "30">
		<td align = "right">培训计划录入人:</td>
		<td><%=trainingPlanInfoVo.getCreatorname()%></td>
		<td></td>
		<td></td>
	</tr>
	<% 
		Organization dept = (Organization) request.getAttribute("dept");
		String deptUUID = (String) request.getAttribute("deptUUID");
	%>
	<tr bgColor=#eef4ff height = "30">
		<td align = "right">计划培训范围:<strong><font color="#FF0000">*</font></strong></td>
		<td colspan = "3"><img src="../images/icon-15.gif" alt="选择计划培训范围" name="unit"width="22" height="15" class="bt1" style="cursor:hand;" onClick="selectAuditingUnit()">
		<span id="trainingScope">
	<%
		for(Iterator iter = trainingOrgInfoList.iterator();iter.hasNext();){
			TrainingOrgInfo trainingOrgInfo = (TrainingOrgInfo)iter.next();
	
	%>
	<span id = "ts_<%=trainingOrgInfo.getTrainedorgno()%>">
		<input name = "traninScopes" type = "hidden" value = "<%=trainingOrgInfo.getTrainedorgno()%>">
		<a href = "#" onClick = "delScope('<%=trainingOrgInfo.getTrainedorgno()%>')">
		<%=trainingOrgInfo.getTrainedorgname()%></a>
	</span>&nbsp;&nbsp;
	<%
		}	
	%>
	</span></td>
	</tr>
	<tr bgColor=#eef4ff>
		<td align = "right">附件上传:</td>
		<td colspan = "3">
		<img src="<%=request.getContextPath()%>/images/fj2.gif" alt="添加附件" name="unit" width="22" height="15" class="bt1" style="cursor:hand;" onClick="addFujian()">
	                &nbsp;&nbsp;&nbsp;<span id="attachSpan">
			<%
                	if(attachList != null && attachList.size() > 0)
									{
										AttachmentInfo vo2 = (AttachmentInfo)attachList.get(0);
										String name = 	vo2.getAttachfilename();
										String attachno = vo2.getAttachmentno().toString();
										if(name!=null)
										{
                %>
                					<script>
                						document.form1.attachno.value="<%=attachno%>";
                						document.form1.attachname.value="<%=name%>";
                					</script>
										<a href="#" onclick="download('<%=attachno%>')" id="filename"><%=name%></a>&nbsp; 
                <%
                		}
									}
                %>
                </span>
		</td>
	</tr>
	<tr bgColor=#eef4ff>
		<td valign = "middle" align = "right">备注:</td>
		<td colspan = "3"><textarea name = "memo" cols = "80" rows = "4"><%=trainingPlanInfoVo.getMemo() == null ? "" : trainingPlanInfoVo.getMemo()%></textarea></td>
	</tr>
</table>
<form>

<center>
	<img src = "<%=request.getContextPath()%>/images/issue.gif" style = "cursor:hand" onClick = "javascript:publishTrainingPlan()">&nbsp;
	<img src = "<%=request.getContextPath()%>/images/save.gif" style = "cursor:hand" onClick = "javascript:saveTrainingPlan()">&nbsp;
	<img src = "<%=request.getContextPath()%>/images/return.gif" style = "cursor:hand" onClick = "javascript:fanhui()">
</center>
</body>
<div id=TypeThatTrainDIV  style="position:absolute;display:none; left:250px; top:177px; width:180px; z-index:901; height: 150px;" onmouseover="this.style.display='block'"  onMouseOut="this.style.display='none'" >
	<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
	  <tr bgcolor="#EEFFF7">
    	<td height="150" valign="top">
			<script>
				var tree = new WebFXLoadTree("培训类型", "<%=request.getContextPath()%>/servlet/TcodeXmlTreeServlet?code=sjpx&codeField=typeThatTrainId&nameField=typeThatTrain&divId=TypeThatTrainDIV");
				document.write(tree);
			</script>
		</td>
	  </tr>
	</table>
</div>
<div id=TrainingOrgLevelDIV style="position:absolute;display:none; left:250px; top:177px; width:180px; z-index:901; height: 150px;" onmouseover="this.style.display='block'"  onMouseOut="this.style.display='none'" >
	<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
	  <tr bgcolor="#EEFFF7">
    	<td height="150" valign="top">
			<script>
				var tree = new WebFXLoadTree("主办单位级次", "<%=request.getContextPath()%>/servlet/TcodeXmlTreeServlet?code=dwjb&codeField=trainingorgLevelId&nameField=trainingOrgLevel&divId=TrainingOrgLevelDIV");
				document.write(tree);
			</script>
		</td>
	  </tr>
	</table>
</div>
<div id=TrainingtypeDIV style="position:absolute;display:none; left:250px; top:177px; width:180px; z-index:901; height: 150px;" onmouseover="this.style.display='block'"  onMouseOut="this.style.display='none'" >
	<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
	  <tr bgcolor="#EEFFF7">
    	<td height="150" valign="top">
			<script>
				var tree = new WebFXLoadTree("培训方式", "<%=request.getContextPath()%>/servlet/TcodeXmlTreeServlet?code=pxfs&codeField=trainingtypeId&nameField=trainingtype&divId=TrainingtypeDIV");
				document.write(tree);
			</script>
		</td>
	  </tr>
	</table>
</div>
</html>
<script language = "javascript">
function addFujian()
{
	wx=450;
	wy=200;
	var fileobj = document.getElementById("filename");
	var fileName = "";
	var attachno = "";
	
	attachno11=document.form1.attachno.value;
	attachname11=document.form1.attachname.value;
	if(attachno11!="")
	{
		attachno=attachno11;
		fileName=attachname11;
	}
	//alert(attachno);
	//alert(fileName);
	urlstr="<%=request.getContextPath()%>/jsp/plan/uploadfile.jsp?"
					+  "attachmenttype=4&filename="+fileName+"&attachno="+attachno;
	x=(window.screen.width-wx)/2;

⌨️ 快捷键说明

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