Project_Route_Subtask_Modify.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:10k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.util.*" %>
- <%@ page import="com.vnex.intranet.workflow.util.WorkFlowType" %>
- <%@ page import="com.vnex.intranet.workflow.pub.value.RouteValueBean" %>
- <%@ page import="com.vnex.intranet.workflow.pub.value.SubTaskValueBean" %>
- <%@ taglib uri="/vnex_workflow.tld" prefix="vnex_workflow" %>
- <%@ page import="com.vnex.intranet.workflow.projectmanagement.value.PmValueBean" %>
- <jsp:useBean id="pvb" scope="session" class="com.vnex.intranet.workflow.projectmanagement.value.PmValueBean"/>
- <jsp:setProperty name="pvb" property="*" />
- <%
- String description = request.getParameter("description");
- if( description == null || description.equals("") )
- {
- pvb.setDescription("");
- }
- SubTaskValueBean subtaskValueBean = pvb.getRoute().getSubtaskDetails( Integer.parseInt( request.getParameter( "subtaskId") ) );
- String current = new java.sql.Date(System.currentTimeMillis()).toString();
- %>
- <!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="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <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();
- }
- </script>
- <DIV align=center>
- <form name="form1" method="post" action="" >
- <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">
- <% int subtaskNum = pvb.getRoute().getSubtaskNum();
- int stepNo = subtaskValueBean.getSubStepNo();
- %>
- <select name="subStepNo">
- <% for( int i= 1 ; i <= subtaskNum ; i++ )
- {
- %>
- <option value="<%=i%>" <% if ( i == stepNo ) out.print("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" value="<%= FieldUtil.filterQuotTag(FieldUtil.filterScriptTag(subtaskValueBean.getSubTitle())) %>">
- * (注:带*为必填内容)</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" multiple style="width:200" class="file">
- <vnex_workflow:executorsList subtaskValueBean='<%=subtaskValueBean %>'>
- <vnex_workflow:items>
- <option value="<vnex_workflow:executorsAttribute attribute='executor_employeeId' />;<vnex_workflow:executorsAttribute attribute='executor_name' />;<vnex_workflow:executorsAttribute attribute='executor_title' />" >
- <vnex_workflow:executorsAttribute attribute="executor_name" />
- <vnex_workflow:executorsAttribute attribute="executor_department"/>
- <vnex_workflow:executorsAttribute attribute="executor_title" />
- </option>
- </vnex_workflow:items> </vnex_workflow:executorsList>
- </select>
- <input type="button" name="Submit1" value="按部门选择" class="file" onClick="javascript:addList( selectedIDList )">
- <input type="button" name="Submit2" value="分组选择" class="file" onClick="javascript:addGroupList( selectedIDList )" >
- <input type="button" name="Submit3" value="删除" class="file" onClick="javascript:remove(); return false;">
- *
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="100"> <font class="strong"> 类型: </font> </td>
- <td width="456">
- <%
- int subType = subtaskValueBean.getSubTypeId();
- %>
- <select name="subTypeId">
- <option value= -1 >请选择</option>
- <option value= 1 <% if ( subType == 1 ) out.println("selected"); %> >审批</option>
- <option value= 2 <% if ( subType == 2 ) out.println("selected"); %> >执行</option>
- <option value= 3 <% if ( subType == 3 ) out.println("selected"); %> >传阅</option>
- </select> *
- </td>
- </tr>
- <input type="hidden" name="subStatusId" value="<%= subtaskValueBean.getSubStatusId() %>">
- <tr bgcolor="#ffffff">
- <td width="100"> <font class="strong"> 截止时间:</font>
- </td>
- <td width="456">
- <input type="text" name="subPlanEndTimeS" readonly size="24" class="file" value="<%=subtaskValueBean.getSubPlanEndDateS() %>">
- <img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(subPlanEndTimeS);return false">
- <select name="hourS">
- <vnex:hourTag hour='<%= (subtaskValueBean.getHourS()>9?"":"0")+subtaskValueBean.getHourS() %>'/>
- </select>时
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="100" bgcolor="#e0e0e0"><font class="strong"> 子任务描述:
- </font></td>
- <td width="456" bgcolor="#e0e0e0">
- <textarea cols="59" rows="5" name="subDescription"><%= FieldUtil.filterQuotTag(FieldUtil.filterScriptTag(subtaskValueBean.getSubDescription())) %></textarea>
- </td>
- </tr>
- <tr bgcolor="#ffffff" align="center">
- <td colspan="3" height="30">
- <input type="hidden" name="subtaskId" value="<%= request.getParameter( "subtaskId")%>">
- <input type="hidden" name="isNew" value="false">
- <input type="button" name="save" value="保存" class="file" onClick="saveSubtask( this.form, 'false' )">
- <input type="button" name="cancle" value="放弃" class="file" onClick="history.back()">
- </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>