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

📄 adjustplan_modify.jsp

📁 java jsp教程
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<!-- /jsp/plan/AdjustPlan_Modify.jsp, by sq, 2005-09-10 -->

<!--描述:调整计划页面

调用:
AdjustPlan_SubmitServlet
传入参数PlanInfo,包括人员信息TeammemberList

接收:
PlanInfo(计划详细信息)

显示控制:
1。起草人和审计单位不能修改
2。将已知的计划元素写入对应位置

校验:
1.非空交验参看页面红色星号标记
2.项目组人名不重复

对应Demo页面:plan_biangeng2.html -->



<%@ page  contentType="text/html;charset=gb2312" %>
<%@ page import=" java.util.* "%>
<%@ page import=" com.icss.resourceone.sdk.framework.*" %>
<%@ page import="com.icss.cnpc.util.*" %>
<%@ page import="com.icss.cnpc.plan.vo.*" %>

<% 
	String root = request.getContextPath();
	PlanInfo plan = (PlanInfo) request.getAttribute("plan");
	
	Person person = (Person) request.getAttribute("person");
	Organization org = (Organization) request.getAttribute("org");
	String cDeptUuid = (String) request.getAttribute("cDeptUuid");
%>

<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 text=#000000 leftMargin=0 background=<%=root%>/images/grid.gif topMargin=0>
<form name="form1" method="post" >
  <TABLE cellSpacing=0 borderColorDark=#dfdfff cellPadding=0
			width="100%" height="98%" align=center bordercolorlight="#003366"
			border=0>
    <br>
      <TR align="center" valign="middle">
        <TD height="143" bgColor=#F7FAFF><TABLE cellSpacing=1 borderColorDark="#dfdfff" cellPadding=2
										width="90%" align=center bgColor=#b3c4db
										borderColorLight="#003366" border=0>
            <TBODY>
              <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">计划编号</td>
				<td colspan="3" width="32%"  height=30 align="left"  bgColor=#eef4ff class="unnamed1" ><input type="hidden" name="planCode" value="<%=plan.getPlanno()%>"><%=plan.getPlanno()%></td>
			</tr>
              <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="<%=plan.getPlanname()%>" size="76">
              <span class="unnamed1"><strong></strong></span>                <div align="right"></div>              </TR>
              <TR>
                    <TD  height=25 align="right"  bgColor=#eef4ff class="unnamed1" >审计单位:<strong><font color="#FF0000">*</font></strong> </TD>
					<% TeammemberInfo jhfz = (TeammemberInfo) request.getAttribute("jhfzVO");
					 %>
                <TD width="32%"  height=10 align="left" bgColor=#eef4ff ><input type="hidden" name="auditingOrgId" value="<%=plan.getAuditingdeptcode()%>">
                  <input type="text" name="auditingOrgName" value="<%=plan.getAuditingdeptname()%>" readonly="">
                  <img src="<%=root%>/images/icon-15.gif" alt="选择被审计单位" name="unit" width="22" height="15" class="bt1" style="cursor:hand;" onClick="selectAuditingUnit('<%=cDeptUuid%>')"></td> 
                <TD width="14%"  height=10 align="left" bgColor=#eef4ff ><div align="right"><span class="unnamed1">计划类别:<strong><font color="#FF0000">*</font></strong></span>              
                </div>
                <TD width="39%"  height=10 align="left" bgColor=#eef4ff ><input type="hidden" name="jhlbCode" value="<%=plan.getPlantypeid()%>"><input name="jhlb" type="text" class="bt2" style="background:white" value="<%=plan.getPlantypename()%>" 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" value="<%=plan.getProjecttypeid()%>"><input name="xmlb" type="text" id="xmlb" value="<%=plan.getProjecttypename()%>" size="25" 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 >
				<%
					String abroad=plan.getIsabroad();
					if(abroad==null)
						abroad="1";
				%>
					<select name="isabroad" style="width:130 ">
	                  <option value="1" <%if(abroad.equals("1")){%>selected<%}%>>国内</option>
    	              <option value="0" <%if(abroad.equals("0")){%>selected<%}%>>境外</option>
	                </select>
				</td>
			  </TR>
              <TR>
                <TD  height=25 align="right"  bgColor=#eef4ff class="unnamed1" ><DIV align=right>项目级别:<strong><font color="#FF0000">*</font></strong></DIV></TD>
                <TD  height=10 align="left" bgColor=#eef4ff ><input type="hidden" name="xmjbCode" value="<%=plan.getProjectlevelid()%>"><input name="xmjb" type="text" readonly="" size="10" value="<%=plan.getProjectlevelname()%>">
                  <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">计划开始时间:<font color="#FF0000">*</font></strong> </strong></span>              
                </div>
                  <TD  height=10 align="left" bgColor=#eef4ff ><input name="begintime" type="text" class="bt2" value="<%=plan.getBegaintime()%>" 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>
				<% Double auditCost = plan.getAuditingcost(); 
					String cost = "";
					if (auditCost != null) 
						cost = DataFormat.formatDouble(auditCost, "0.00");
					Integer planDays = plan.getPlandays();
					String days = "";
					if (planDays != null) 
						days = planDays.toString();
				%>
                <TD  height=10 align="left" bgColor=#eef4ff ><input name="planCost" type="text" value="<%=cost%>" 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="<%=plan.getEndtime()%>" 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="<%=plan.getCreatedeptcode()%>"><input type="hidden" name="createdeptname" value="<%=plan.getCreatedeptname()%>"> <%=plan.getCreatedeptname()%> </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="<%=days%>" size="10">                
		      </TR>
              <TR>
                <TD  height=25 align="right"  bgColor=#eef4ff class="unnamed1" >计划审核人:<strong><font color="#FF0000">*</font></strong></TD>
				<% TeammemberInfo jhsh = (TeammemberInfo) request.getAttribute("jhshVO");
					 %>
                <TD  height=10 align="left" bgColor=#eef4ff id="" >
				<span id="jhsh"> <% if (jhsh != null) { %> <span id='personSpan_<%=jhsh.getPersonid()%>'><input name='puuid_jhsh' type='hidden' value="<%=jhsh.getPersonid()%>" ><%=jhsh.getPersonname()%></span>&nbsp;<%}%></span></td>
                <TD  height=10 align="left" bgColor=#eef4ff ><div align="right">计划录入人:</div>
				<TD  height=10 align="left" bgColor=#eef4ff  ><input type="hidden" name="creatorid" value="<%=plan.getCreatorid()%>">
				  <input type="hidden" name="creatorname" value="<%=plan.getCreatorname()%>">
				  <%=plan.getCreatorname()%> 
			  </TR>
             
              <TR>
                <TD  height=25 align="right"  bgColor=#eef4ff class="unnamed1" >审计组长:</TD>
				<% TeammemberInfo sjzz = (TeammemberInfo) request.getAttribute("sjzzVO");
					 %>
                <TD  height=10 align="left" bgColor=#eef4ff  >
                	<img src="<%=root%>/images/edit.gif" style="cursor:hand" alt="添加参会人,点击名字则将其从名单中删除" onClick="_AddPerson('sjzz')">
				 <span id="sjzz"><% if (sjzz != null) { %> <span id='personSpan_<%=sjzz.getPersonid()%>'><input name='puuid_sjzz' type='hidden' value="<%=sjzz.getPersonid()%>" extName='sjzz'><a href="javascript:_delPersons(' <%=sjzz.getPersonid()%>','sjzz')"><%=sjzz.getPersonname()%></a></span>&nbsp;<%}%></span>
					
                <TD  height=10 align="left" bgColor=#eef4ff ><div align="right">
                  <div align="right">计划审批人:<span class="unnamed1"><strong><font color="#FF0000">*</font></strong></span> </div>
                  <% TeammemberInfo jhsp = (TeammemberInfo) request.getAttribute("jhspVO");
					 %>
</div>
				<TD  height=10 align="left" bgColor=#eef4ff  ><span id="jhsp">
				<% if (jhsp != null) { %>
                <span id='personSpan_<%=jhsp.getPersonid()%>'>
                <input name='puuid_jhsp' type='hidden' value="<%=jhsp.getPersonid()%>" >
                <%=jhsp.getPersonname()%></span>&nbsp;
                <%}%>
				</span>                 
              </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 ><img src="<%=root%>/images/edit.gif" style="cursor:hand" alt="添加参会人,点击名字则将其从名单中删除" onClick="_AddPerson('jhfz')"><% if (jhfz != null) { %><span id="jhfz"><span id='personSpan_<%=jhfz.getPersonid()%>'><input name='puuid_jhfz' type='hidden' value="<%=jhfz.getPersonid()%>" ><a href="javascript:_delPersons(' <%=jhfz.getPersonid()%>','jhfz')"><%=jhfz.getPersonname()%></a></span>&nbsp;</span><%}%>  </td>
				<TD  height=25 align="right"  bgColor=#eef4ff class="unnamed1" ><div align="right">审计主审:</div>
			    <% TeammemberInfo sjzs = (TeammemberInfo) request.getAttribute("sjzsVO");
					 %></td>
				<TD  height=25 align="right"  bgColor=#eef4ff class="unnamed1" ><div align="left"><img src="<%=root%>/images/edit.gif" style="cursor:hand" alt="添加参会人,点击名字则将其从名单中删除" onClick="_AddPerson('sjzs')"> <span id="sjzs">
				  <% if (sjzs != null) { %>
                  <span id='personSpan_<%=sjzs.getPersonid()%>'>
                  <input name='puuid_sjzs' type='hidden' value="<%=sjzs.getPersonid()%>" extName='sjzs'>
                  <a href="javascript:_delPersons(' <%=sjzs.getPersonid()%>','sjzs')"><%=sjzs.getPersonname()%></a></span>&nbsp;
                  <%}%>
				</span> </div></td>
              </TR>
              <TR>
                <TD  height=25 align="right"  bgColor=#eef4ff class="unnamed1" >项目组组员:</TD>
				<% List members = (List) request.getAttribute("members"); %>
                <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">
					<%
						for (Iterator iter = members.iterator(); iter.hasNext();) {
						TeammemberInfo xmzy = (TeammemberInfo)iter.next();
						if (xmzy != null) { %>
		<span id='personSpan_<%=xmzy.getPersonid()%>'><input name='puuid_xmzy' type='hidden' value="<%=xmzy.getPersonid()%>" extName='xmzy'><a href="javascript:_delPersons(' <%=xmzy.getPersonid()%>','xmzy')"><%=xmzy.getPersonname()%></a></span>&nbsp;
						
					<% }} %>
					</span>
                </td>
              </TR>
			  <tr> <TD  height=25 align="right"  bgColor=#eef4ff class="unnamed1" >被审计单位:<strong><font color="#FF0000">*</font></strong><strong></strong></TD>
			  <% List auditedOrgs = plan.getAuditedOrgList(); 
			  	if (auditedOrgs == null) 
					auditedOrgs = new ArrayList();
			
			   %>
                <TD colspan="3" height=10 align="left" bgColor=#eef4ff ><span id="auditedOrgImg"><img src="<%=root%>/images/icon-15.gif" alt="选择被审计单位" name="unit"  class="bt1" style="cursor:hand;" onClick="selectUnit()"> </span>
				<span id="auditedOrgs">
				<% for (Iterator iter = auditedOrgs.iterator();iter.hasNext();) { 
						AuditedOrgInfo orgVO = (AuditedOrgInfo) iter.next();
						if (orgVO != null) {
						
				%>
				<span id=auditedOrgSpan_<%=orgVO.getAuditedorgid()%>><input name='auditedOrgUuid' type='hidden' value="<%=orgVO.getAuditedorgid()%>"><input name="auditedOrgName" type="hidden" value="<%=orgVO.getAuditedorgname()%>"><a href="javascript:_delAuditedUnit( '<%=orgVO.getAuditedorgid()%>')"><%=orgVO.getAuditedorgname()%></a></span>&nbsp;
				<% }} %>
				</span></td>     
                </tr>
              <TR>
                <TD  height=25 align="right"  bgColor=#eef4ff class="unnamed1" >备注:</TD>
				<% String memo = plan.getMemo();
					if (memo == null) 
						memo = "";
				%>
                <TD  height=10 align="left" bgColor=#eef4ff  colspan="3"><textarea name="memo" cols="80" rows="5"><%=memo%></textarea>
              </TR>
            </TABLE></TD>
      </TR>
      <TR align="center" valign="top">
        <TD bgColor=#F7FAFF>
        <br>
	  		<img src="<%=root%>/images/submitbiangeng.gif" style="cursor:hand" align="absmiddle" alt="上报" onClick="_submitChanges();">
&nbsp;&nbsp;&nbsp;			    &nbsp;&nbsp;&nbsp; 
	  	        <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>

⌨️ 快捷键说明

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