Project_Route_Subtask_Create.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:8k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.workflow.util.WorkFlowType" %>
- <%@ page import="com.vnex.intranet.workflow.projectmanagement.value.PmValueBean" %>
- <jsp:useBean id="pvb" scope="session" class="com.vnex.intranet.workflow.projectmanagement.value.PmValueBean"/>
- <%
- pvb = ( PmValueBean )session.getAttribute( "pvb" );
- String current = new java.sql.Date(System.currentTimeMillis()).toString();
- %>
- <jsp:setProperty name="pvb" property="*" />
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript" src="/vnex/util/validate.js"></script>
- <script language="JavaScript" src="/vnex/intranet/workflow/util/checkSubtask.js"></script>
- <script language="JavaScript" src="/vnex/util/popSelect.js"></script>
- <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
- <script language="JavaScript" >
- function saveSubtask( form, goon )
- {
- selectAll( form.selectedIDList);
- if ( !checkSubtask( form ) )
- return false;
- if( !isEmpty(form.subPlanEndTimeS.value) )
- {
- if(!isVNEXDate(form.subPlanEndTimeS.value))
- {
- alert("最终期限日期非法");
- return false;
- }
- if("<%=current%>" > form.subPlanEndTimeS.value)
- {
- alert("最终期限日期必须在本日之后");
- return false;
- }
- if( !isEmpty("<%= pvb.getPrevPlanEndDateS(1) %>") && ("<%= pvb.getPrevPlanEndDateS(1) %>" > form.subPlanEndTimeS.value))
- {
- alert("最终期限日期必须在以前各个子任务的最终期限以及项目的计划开始日期之后");
- return false;
- }
- if( !isEmpty("<%= pvb.getPlanEndDateS() %>") && ("<%= pvb.getPlanEndDateS() %>" < form.subPlanEndTimeS.value))
- {
- alert("最终期限日期必须在项目的计划结束日期之前");
- return false;
- }
- }
- form.action= "/mainctrl/projectmanagement/subtasksave?flag=<%= request.getParameter("flag") %>&goon=" + goon;
- form.submit();
- }
- function cancleCreateSubtask( myform )
- {
- <%
- if( request.getParameter("flag").equals( "docModify" ) )
- {
- %>
- myform.action= "/mainctrl/projectmanagement/modifyproject?comeback=1&flag=routeModify";
- <%
- }
- else
- {
- %>
- myform.action= "/mainctrl/projectmanagement/createproject";
- <%
- }
- %>
- myform.submit();
- }
- </script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <DIV align=center>
- <form name="form1" method="post">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center">
- <br><!--个人信息开始 -->
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr bgcolor="#fafafa">
- <td bgcolor="#fafafa">
- <table class=title width="600" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td colspan="2" height="15" bgcolor="#666666"><font class="strongw"> <a href="/mainctrl/system/main"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>>><a href="/mainctrl/projectmanagement/projectlist"><font color="#FFFFFF">工程项目管理</font></a>>>
- <font color="#FFFFFF">新建项目子任务</font>
- </font></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="100"> <font class="strong"> 顺序:</font> </td>
- <td width="456" bgcolor="#fafafa"> <% int subtaskNum = pvb.getRoute().getSubtaskNum();%>
- <select name="subStepNo">
- <% for( int i= 1 ; i <= subtaskNum + 1 ; i++ )
- {
- %>
- <option value="<%=i%>" <% if ( i == subtaskNum + 1 ) out.println("selected");%>><%=i%></option>
- <% } %>
- </select>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="100"> <font class="strong"> 子任务标题:</font>
- </td>
- <td width="456">
- <input type="text" name="subTitle" size="24" class="file">
- * (注:带*为必填内容)</td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="100"> <font class="strong"> 执行人: </font>
- </td>
- <td width="456">
- <input type="hidden" name="updated" value="false">
- <input type="hidden" name="tempHidden" value="">
- <select name="selectedIDList" size="4" multiple style="width:200" class="file">
- </select>
- <input type="button" name="Submit1" style="width:70px" value="按部门选择" class="file" onClick="javascript:addList( selectedIDList )">
- <input type="button" name="Submit2" style="width:60px" value="分组选择" class="file" onClick="javascript:addGroupList( selectedIDList )" >
- <input type="button" name="Submit3" value="删除" class="file" onClick="remove(); return false;">
- *
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="100"> <font class="strong"> 类型: </font> </td>
- <td width="456" bgcolor="#e0e0e0">
- <select name="subTypeId">
- <option value= -1 >请选择</option>
- <option value= 1 >审批</option>
- <option value= 2 SELECTED >执行</option>
- <option value= 3 >传阅</option>
- </select> *
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="100"> <font class="strong"> 截止时间:</font> </td>
- <td width="456" bgcolor="#fafafa">
- <input type="text" name="subPlanEndTimeS" readonly size="24" class="file" >
- <img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(subPlanEndTimeS);return false">
- <select name="hourS">
- <vnex:hourTag />
- </select>时
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="100"><font class="strong"> 子任务描述: </font></td>
- <td width="456" bgcolor="#e0e0e0">
- <textarea name="subDescription" cols="59" rows="5"></textarea>
- </td>
- </tr>
- <tr bgcolor="#ffffff" align="center">
- <td colspan="3" height="30">
- <input type="hidden" name="isNew" value="true">
- <input type="button" name="Submit4" style="width:60px" value="继续增加" class="file" onClick="saveSubtask( this.form, 'true' )">
- <input type="button" name="submit5" value="保存" class="file" onClick="saveSubtask( this.form, 'false' )">
- <input type="reset" name="submit6" value="放弃" class="file" onclick="cancleCreateSubtask( this.form )">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form></DIV>
- </BODY></HTML>