📄 trainingplan_addnewplan.jsp
字号:
<%@ page contentType="text/html;charset=GBK" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ page import=" java.util.* "%>
<%@ page import="com.icss.j2ee.util.PageScrollUtil" %>
<%@ page import="com.icss.j2ee.util.StringUtil" %>
<%@ page import="com.icss.cnpc.project.vo.DocInfo"%>
<%@ page import="com.icss.cnpc.plan.vo.AuditedOrgInfo"%>
<%@ page import="com.icss.cnpc.project.vo.DocAttachmentInfo"%>
<%@ page import="com.icss.resourceone.sdk.framework.Context" %>
<%@ page import="com.icss.resourceone.sdk.framework.Person" %>
<%@ page import = "com.icss.cnpc.util.UserUtil" %>
<%
Person personInfo = Context.getInstance().getCurrentPerson();
List attachList = (List)request.getAttribute("attachList");
%>
<html>
<head>
<title>添加培训信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<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 = "" method="post" >
<input type="hidden" name="attachno">
<input type="hidden" name="attachname">
<input type = "hidden" name = "trainingstate">
<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 = "" 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 = "" ></td>
<td align = "right" width = "20%">主办单位级次:<strong><font color="#FF0000">*</font></strong></td>
<td width = "30%">
<input type = "text" name = "trainingOrgLevel" value = "" readonly>
<input type = "hidden" name = "trainingorgLevelId">
<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 = ""></td>
<td align = "right">培训开始时间:<strong><font color="#FF0000">*</font></strong></td>
<td><input type = "text" name = "begintime" value = "" 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 = ""></td>
<td align = "right">培训结束时间:<strong><font color="#FF0000">*</font></strong></td>
<td><input type = "text" name = "endtime" value = "" 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 = "" readonly>
<input type = "hidden" name = "typeThatTrainId">
<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 = "" 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 = "" readonly>
<input type = "hidden" name = "trainingtypeId">
<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 = "" maxlength = "6"></td>
</tr>
<tr bgColor=#eef4ff height = "30">
<td align = "right">培训计划录入人:</td>
<td><%=personInfo.getFullName()%></td>
<td></td>
<td></td>
</tr>
<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"></span>
</td>
</tr>
<tr bgColor=#eef4ff>
<td align = "right">附件上传:</td>
<td colspan = "3">
<%
if(attachList != null && attachList.size() > 0)
{
DocAttachmentInfo vo2 = (DocAttachmentInfo)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>
<%
}
}
%>
<img src="<%=request.getContextPath()%>/images/fj2.gif" alt="添加附件" name="unit" width="22" height="15" class="bt1" style="cursor:hand;" onClick="addFujian()">
<span id="attachSpan"></span>
</td>
</tr>
<tr bgColor=#eef4ff>
<td valign = "middle" align = "right">备注:</td>
<td colspan = "3"><textarea name = "memo" cols = "80" rows = "4"></textarea></td>
</tr>
</table>
</form>
<center>
<img src = "<%=request.getContextPath()%>/images/issue.gif" style = "cursor:hand" onClick = "javascript:publishTrainingPlan()">
<img src = "<%=request.getContextPath()%>/images/save.gif" style = "cursor:hand" onClick = "javascript:saveTrainingPlan()">
</center>
</body>
</html>
<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>
<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;
}
urlstr="<%=request.getContextPath()%>/jsp/plan/uploadfile.jsp?"
+ "attachmenttype=4&filename="+fileName+"&attachno="+attachno;
x=(window.screen.width-wx)/2;
y=(window.screen.height-wy)/2;
wposition=",left="+x+",top="+y;
window.open(urlstr,"上传报告文档","width="+wx+",height="+wy+",scrollbars=no,status=no"+wposition);
}
function download(attachno)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -