📄 addnewplan.jsp
字号:
<!--/jsp/plan/AddNewPlan.jsp, by sq, 2005-09-05-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ page contentType="text/html;charset=gb2312" %>
<%@ page import=" java.util.* "%>
<%@ page import=" com.icss.resourceone.sdk.framework.*" %>
<%@ page import="com.icss.cnpc.util.*" %>
<%
String root = request.getContextPath();
String cOrgName = (String) request.getAttribute("cOrgName");
Person person = (Person) request.getAttribute("person");
Organization org = (Organization) request.getAttribute("org");
String cDeptUuid = (String) request.getAttribute("cDeptUuid");
String deptCode = (String) request.getAttribute("currentDeptCode");
String orgCode = (String) request.getAttribute("currentOrgCode");
%>
<!--
描述:添加新培训计划
调用:AddNewPlanServlet1
传入PlanInfo, 包括Plan的基本信息和TeammberInfo的信息
接收:PersonInfo
显示控制:
1.计划录入人和审计单位从PersonInfo中获得
交验:
1.非空交验参看页面红色星号标记
2.项目组人名不重复
对应Demo页面:plan_add1.html -->
<HTML><HEAD><TITLE>添加计划</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<style type="text/css">
<!--
.style1 {font-size: 16px}
.style2 {
font-size: 12px;
font-weight: bold;
}
-->
</style>
<script type="text/javascript" src="<%=root%>/common/codeDict.js"></script>
<script type="text/javascript" src="<%=root%>/common/xtree.js"></script>
<script type="text/javascript" src="<%=root%>/common/xmlextras.js"></script>
<script type="text/javascript" src="<%=root%>/common/xloadtree.js"></script>
<script type="text/javascript" src="<%=root%>/common/common.js"></script>
<script type="text/javascript">
webFXTreeConfig.rootIcon = "<%=root%>/images/xp/folder.png";
webFXTreeConfig.openRootIcon = "<%=root%>/images/xp/openfolder.png";
webFXTreeConfig.folderIcon = "<%=root%>/images/xp/folder.png";
webFXTreeConfig.openFolderIcon= "<%=root%>/images/xp/openfolder.png";
webFXTreeConfig.fileIcon = "<%=root%>/images/xp/file.png";
webFXTreeConfig.lMinusIcon = "<%=root%>/images/xp/Lminus.png";
webFXTreeConfig.lPlusIcon = "<%=root%>/images/xp/Lplus.png";
webFXTreeConfig.tMinusIcon = "<%=root%>/images/xp/Tminus.png";
webFXTreeConfig.tPlusIcon = "<%=root%>/images/xp/Tplus.png";
webFXTreeConfig.iIcon = "<%=root%>/images/xp/I.png";
webFXTreeConfig.lIcon = "<%=root%>/images/xp/L.png";
webFXTreeConfig.tIcon = "<%=root%>/images/xp/T.png";
webFXTreeConfig.blankIcon = "<%=root%>/images/xp/blank.png";
</script>
<BODY onmousemove="" text=#000000 leftMargin=0 topmargin="0" background=<%=root%>/images/grid.gif >
<form name="form1" method="post" >
<TABLE cellSpacing=0 borderColorDark=#dfdfff cellPadding=0
width="100%" height="100%" align=center bordercolorlight="#003366"
border=0>
<TR align="center" valign="top">
<TD height="143" bgColor=#F7FAFF><TABLE cellSpacing=1 borderColorDark="#dfdfff" cellPadding=2
width="90%" align=center bgColor=#b3c4db
borderColorLight="#003366" border=0>
<TBODY>
<br>
<tr bgcolor="#a6d0f2">
<TD height=27 colspan="4" align=left><div align="center" class="unnamed2"><font size="4"><strong>计 划 信 息</strong></font></div></td>
<TR>
<TD width="15%" height=30 align="right" bgColor=#eef4ff class="unnamed1" >项目计划名称:<strong><font color="#FF0000">*</font></strong></TD>
<TD height=30 colspan="3" align="left" bgColor=#eef4ff><input name="planName" type="text" value="" size="76">
<span class="unnamed1"><strong></strong></span> <div align="right"> </div> </TR>
<TR>
<TD height=25 align="right" bgColor=#eef4ff class="unnamed1" ><font title="计划的执行单位">审计单位:<strong><font color="#FF0000">*</font></strong> </TD>
<TD width="32%" height=10 align="left" bgColor=#eef4ff ><input type="hidden" name="auditingOrgId" value="<%=deptCode%>"><input type="text" name="auditingOrgName" value="<%=cOrgName%>" readonly="">
<span id="auditedOrgImg"><%if(!"".equals(deptCode)){%><img src="<%=root%>/images/icon-15.gif" alt="选择审计单位" name="unit" width="22" height="15" class="bt1" style="cursor:hand;" onClick="selectAuditingUnit('<%=cDeptUuid%>')"><%}%></span> </td>
<TD width="14%" height=10 align="left" bgColor=#eef4ff ><div align="right"><span class="unnamed1">计划类别:<strong><font color="#FF0000">*</font></strong><strong></strong></span>
</div>
<TD width="39%" height=10 align="left" bgColor=#eef4ff ><input type="hidden" name="jhlbCode"><input name="jhlb" type="text" class="bt2" style="background:white" value="" size="20" readonly>
<img src="<%=root%>/images/fuction.gif" width="20" height="15" style="cursor:hand;" onClick="showDiv('jhlbdiv')">
</TR>
<TR>
<TD height=25 align="right" bgColor=#eef4ff class="unnamed1" >项目类别:<strong><font color="#FF0000">*</font></strong> </TD>
<TD height=10 align="left" bgColor=#eef4ff ><input type="hidden" name="xmlbCode"><input name="xmlb" type="text" id="xmlb" value="" readonly>
<img src="<%=root%>/images/fuction.gif" width="20" height="15" style="cursor:hand;" onClick="showDiv('xmlbdiv')">
<TD height=10 align="left" bgColor=#eef4ff ><div align="right">是否境外项目:<span class="unnamed1"><strong><font color="#FF0000">*</font></strong></span></div>
<TD height=10 align="left" bgColor=#eef4ff >
<select name="isabroad" style="width:130 ">
<option value="1" selected>国内</option>
<option value="0">境外</option>
</select>
</td>
</TR>
<TR>
<TD height=25 align="right" bgColor=#eef4ff class="unnamed1" ><DIV align=right>项目级别:<strong><font color="#FF0000">*</font></strong><strong></strong></DIV></TD>
<TD height=10 align="left" bgColor=#eef4ff ><input type="hidden" name="xmjbCode"><input name="xmjb" type="text" readonly="" size="10" value="">
<img src="<%=root%>/images/fuction.gif" width="20" height="15" style="cursor:hand;" onClick="showDiv('xmjbdiv')"> <TD height=10 align="left" bgColor=#eef4ff ><div align="right"><span class="unnamed1">计划开始时间:<strong><font color="#FF0000">*</font></strong></span> </div>
<TD height=10 align="left" bgColor=#eef4ff ><input name="begintime" type="text" class="bt2" value="" size="20" readonly style="background:white">
<img src="<%=root%>/images/calendar.gif" style="cursor:hand;" width="18" height="18" border=0 align="absmiddle" alt="弹出日历下拉菜单" onClick="popUpCalendarDlg(begintime)">
</TR>
<TR>
<TD height=25 align="right" bgColor=#eef4ff class="unnamed1" >计划审计费用: </TD>
<TD height=10 align="left" bgColor=#eef4ff ><input name="planCost" type="text" value="" size="10">
元
<TD height=10 align="left" bgColor=#eef4ff ><div align="right">计划结束时间:<span class="unnamed1"><strong><font color="#FF0000">*</font></strong></span> </div>
<TD height=10 align="left" bgColor=#eef4ff ><input name="endtime" type="text" class="bt2" value="" size="20" readonly style="background:white">
<img src="<%=root%>/images/calendar.gif" style="cursor:hand;" width="18" height="18" border=0 align="absmiddle" alt="弹出日历下拉菜单" onClick="popUpCalendarDlg(endtime)">
</TR>
<TR>
<TD height=10 align="left" bgColor=#eef4ff ><div align="right">计划录入单位:</div></td>
<TD height=10 align="left" bgColor=#eef4ff ><input type="hidden" name="createdeptid" value="<%=deptCode%>"><input type="hidden" name="createdeptname" value="<%=org.getName()%>"> <%=org.getName()%> </td>
<TD height=10 align="left" bgColor=#eef4ff ><div align="right">计划工作日:</div>
<TD height=10 align="left" bgColor=#eef4ff ><input name="planDays" type="text" value="" size="10">
</TR>
<TR>
<TD height=25 align="right" bgColor=#eef4ff class="unnamed1" ><font title="计划的录入人">计划录入人:</font></TD>
<TD height=10 align="left" bgColor=#eef4ff id="" ><input type="hidden" name="creatorid" value="<%=person.getUuid()%>">
<input type="hidden" name="creatorname" value="<%=person.getFullName()%>">
<%=person.getFullName()%></td>
<TD height=10 align="left" bgColor=#eef4ff ><div align="right"><font title="审核计划的人">计划审核人:<strong><font color="#FF0000">*</font></strong></div>
<TD height=10 align="left" bgColor=#eef4ff ><img src="<%=root%>/images/edit.gif" style="cursor:hand" alt="添加参会人,点击名字则将其从名单中删除" onClick="_AddPerson('jhsh')">
<span id="jhsh"></span>
</TR>
<TR>
<TD height=25 align="right" bgColor=#eef4ff class="unnamed1" ><font title="审批计划的人">计划审批人:<strong><font color="#FF0000">*</font></strong></TD>
<TD height=10 align="left" bgColor=#eef4ff ><img src="<%=root%>/images/edit.gif" style="cursor:hand" alt="添加参会人,点击名字则将其从名单中删除" onClick="_AddPerson('jhsp')"><span id="jhsp"></span>
<TD height=10 align="left" bgColor=#eef4ff ><div align="right"><span class="unnamed1"><font title="计划审批通过后负责启动计划的人">计划负责人:<strong><font color="#FF0000">*</font></strong></span> </div>
<TD height=10 align="left" bgColor=#eef4ff ><img src="<%=root%>/images/edit.gif" style="cursor:hand" alt="添加参会人,点击名字则将其从名单中删除" onClick="_AddPerson('jhfz')"><span id="jhfz"></span>
</TR>
<TR>
<TD height=25 align="right" bgColor=#eef4ff class="unnamed1" ><font title="执行计划的组长,拥有管理项目、复核底稿、整改底稿等权力">审计组长:</TD>
<TD height=10 align="left" bgColor=#eef4ff ><img src="<%=root%>/images/edit.gif" style="cursor:hand" alt="添加参会人,点击名字则将其从名单中删除" onClick="_AddPerson('sjzz')"> <span id="sjzz"></span></td>
<TD height=25 align="right" bgColor=#eef4ff class="unnamed1" ><span class="unnamed1"><font title="审计项目的主审,可以复核底稿等">审计主审:</span></td>
<TD height=10 align="left" bgColor=#eef4ff ><img src="<%=root%>/images/edit.gif" style="cursor:hand" alt="添加参会人,点击名字则将其从名单中删除" onClick="_AddPerson('sjzs')"> <span id="sjzs"></span></td>
</TR>
<TR>
<TD height=25 align="right" bgColor=#eef4ff class="unnamed1" ><font title="项目组成员,可以添加修改底稿等">项目组组员:</TD>
<TD height=10 align="left" bgColor=#eef4ff colspan="3" >
<img src="<%=root%>/images/edit.gif" style="cursor:hand" alt="添加参会人,点击名字则将其从名单中删除" onClick="_AddPerson('xmzy')">
<span id="xmzy"></span>
</td>
</TR>
<tr> <TD height=25 align="right" bgColor=#eef4ff class="unnamed1" ><font title="该项目的被审计单位,可以为多个">被审计单位:<strong><font color="#FF0000">*</font></strong><strong></strong></TD>
<TD colspan="3" height=10 align="left" bgColor=#eef4ff ><span id="auditedOrgImg"><img src="<%=root%>/images/icon-15.gif" alt="选择被审计单位" name="unit" width="22" height="15" class="bt1" style="cursor:hand;" onClick="selectUnit()"> </span><span id="auditedOrgs"></span></td>
</tr>
<TR>
<TD height=25 align="right" bgColor=#eef4ff class="unnamed1" >备注:</TD>
<TD height=10 align="left" bgColor=#eef4ff colspan="3"><textarea name="memo" cols="80" rows="5"></textarea>
</TR>
</TABLE></TD>
</TR>
<TR align="center" valign="top">
<TD bgColor=#F7FAFF>
<br>
<img src="<%=root%>/images/shangbao.gif" style="cursor:hand" align="absmiddle" alt="上报" onClick="planSubmit();">
<img src="<%=root%>/images/sever.gif" style="cursor:hand" align="absmiddle" alt="保存" onClick="save()">
<img src="<%=root%>/images/return.gif" style="cursor:hand;" align="absmiddle" alt="返回" onClick="fanhui()">
</td>
</tr>
</TABLE>
<div id=jhlbdiv 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=jhlb&codeField=jhlbCode&nameField=jhlb&divId=jhlbdiv");
document.write(tree);
</script>
</td>
</tr>
</table>
</div>
<div id=xmjbdiv 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=xmjb&codeField=xmjbCode&nameField=xmjb&divId=xmjbdiv");
document.write(tree);
</script>
</td>
</tr>
</table>
</div>
<div id=xmlbdiv 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=xmlb&codeField=xmlbCode&nameField=xmlb&divId=xmlbdiv");
document.write(tree);
</script>
</td>
</tr>
</table>
</div>
<input type="hidden" name="type" value="">
<input type="hidden" name="counter" value=0>
<input type="hidden" name="OPERATION">
</form>
</div>
<script>
function selectAuditingUnit(deptUuid) {
wx=400;
wy=300;
urlstr="<%=request.getContextPath()%>/servlet/SelectOrgTreeServlet?type=1&rootUuid=" + deptUuid;
x=(window.screen.width-wx)/2;
y=(window.screen.height-wy)/2;
wposition=",left="+x+",top="+y;
window.open(urlstr,"选择单位","width="+wx+",height="+wy+",status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=yes,menubar=no,"+wposition);
}
function _delAuditedUnit(orguuid) {
if(!confirm("确定要删除吗?"))
return;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -