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

📄 project_create_select.jsp

📁 非常完整的Java开发的网络办公系统
💻 JSP
字号:
<%@ taglib uri="/vnex.tld" prefix="vnex" %>
<%@ taglib uri="/vnex_workflow.tld" prefix="vnex_workflow" %>
<%@ page errorPage="/vnex/ErrorPage.jsp" %>
<%@ page import="com.vnex.intranet.pub.BusinessSession"%>
<%@ page import="com.vnex.intranet.workflow.util.*"%>
<%@ page import="com.vnex.intranet.workflow.pub.value.*"%>
<%@ page import="com.vnex.intranet.workflow.pub.value.SubTaskValueBean" %>
<%@ page import="com.vnex.intranet.workflow.projectmanagement.value.PmValueBean" %>
<%@ page import="com.vnex.intranet.util.*"%>
<%@ page import="java.util.*"%>

<jsp:useBean id="routeProxy" scope="application" class="com.vnex.intranet.workflow.route.proxy.RouteProxyBean" />
<jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
<jsp:useBean id="routeInfo" scope="page" class="com.vnex.intranet.workflow.pub.value.RouteValueBean" />
<jsp:useBean id="pvb" scope="session" class="com.vnex.intranet.workflow.projectmanagement.value.PmValueBean"/>

<%            
    pvb = new PmValueBean();
    ArrayList subtasks = new ArrayList(); 
    int templateId = 0;
    int iCheck = 1;
    if ( request.getParameter("check")!=null  )
        iCheck = Integer.parseInt(request.getParameter("check"));
        
    if( request.getParameter("templateId") !=null && iCheck < 3 )
    {
        if( iCheck == 1 )
            templateId = Integer.parseInt(request.getParameter("templateId"));
        else if( iCheck == 2 )
            templateId = Integer.parseInt(request.getParameter("templateId2"));
        if ( templateId!= -1 ) 
        {  
            routeInfo = routeProxy.getRouteDetails( templateId );
            subtasks = routeInfo.getSubtaskList();
        }
    }
    pvb.setRoute( routeInfo );
    pvb.setTitle( routeInfo.getRouteName() );
    pvb.setDescription( routeInfo.getDescription() );
    pvb.setFiles( routeInfo.getRouteFiles() );
    
    session.setAttribute( "pvb", pvb );        
%>

<!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>
function getRoute(form,iCheck)
{
   form.action="/mainctrl/projectmanagement/createselect?check=" + iCheck;
   form.submit();
}

function create(form)
{
   if( check( form ) )
   {
       form.action="/mainctrl/projectmanagement/createproject";
       form.submit();
   }
}

function check(form)
{
   if( form.R1[0].checked && form.templateId.value == -1 )
   {
      alert("请选择标准工作流模板.");
      return false;
   }  
   
   if( form.R1[1].checked && form.templateId2.value == -1 )
   {
      alert("请选择个人工作流模板.");
      return false;
   }  
   
   return true;
}

</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 bgcolor="#666666"> 
                    <td colspan="2" height="15"><font class="strongw">&nbsp;<a href="/mainctrl/system/main"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>&gt;&gt;<a href="/mainctrl/projectmanagement/projectlist"><font color="#FFFFFF">工程项目管理</font></a>&gt;&gt;<font color="#FFFFFF">项目路径选择</font> 
                      </font></td>
                  </tr>
                  <tr bgcolor="#fafafa"> 
                    <td colspan="2" height="30">&nbsp; 
                      <input type="button" name="Submit" style="width:60px" value="创建项目" class="file" onClick="create( this.form )">&nbsp;&nbsp;
                      <input type="reset" name="Submit2" value="放弃" class="file" onClick="location='/mainctrl/projectmanagement/projectlist'">
                    </td>
                  </tr>
                  <tr bgcolor="#e0e0e0"> 
                    <td width="169"> 
                      <input type="radio" value=1 
                      <% if( iCheck == 1 ) { %>checked
                      <%}%>
                      name=R1>
                      <font  class="strong"> 选择标准工作流模板:</font></td>
                    <td width="418"> 
                      <select name="templateId" onChange="getRoute( this.form, 1 )"> 
                        <option value= -1 selected>请选择</option>                                            
                        <vnex_workflow:routeList routeType="<%=WorkFlowType.TEMPLATE_TYPE_COMMON%>" workflowType="<%=WorkFlowType.PROJECT %>"  >       
                           <vnex:items select='<%= String.valueOf( templateId )  %>'>
                             <option value="<vnex_workflow:routeAttribute attribute='route_id' />" <vnex_workflow:routeAttribute attribute='isSelected' /> >
                                <vnex_workflow:routeAttribute attribute="route_name" />
                             </option>
                           </vnex:items>
                        </vnex_workflow:routeList>
                        </select>
                      </select>
                    </td>
                  </tr>
                  <tr bgcolor="#fafafa"> 
                    <td width="169"> 
                      <input type="radio" value=2 
                       <% if( iCheck == 2 ) { %>checked
                      <%}%>
                      name=R1>
                      <font  class="strong"> 选择个人工作流模板:</font></td>
                    <td width="418"> 
                      <select name="templateId2" onChange="getRoute( this.form, 2 )">
                        <option value= -1 selected>请选择</option>
                        <vnex_workflow:routeList routeType="<%=WorkFlowType.TEMPLATE_TYPE_PERSONAL%>" workflowType="<%=WorkFlowType.PROJECT %>" PersonId="<%= BusinessName.getEmpId() %>" >       
                           <vnex:items select='<%= String.valueOf( templateId ) %>'>
                             <option value="<vnex_workflow:routeAttribute attribute='route_id' />"  <vnex_workflow:routeAttribute attribute='isSelected' />>
                                    <vnex_workflow:routeAttribute attribute="route_name" />
                             </option>
                           </vnex:items>
                        </vnex_workflow:routeList>
                      </select>
                    </td>
                  </tr>
                  <tr bgcolor="#e0e0e0"> 
                    <td width="169"> 
                      <input type="radio" value=3 name=R1 onClick="getRoute( this.form, 3 )"
                      <% if( iCheck == 3 ) { %>checked
                      <%}%>
                       >
                      <font  class="strong">新建项目管理路径</font></td>
                    <td width="418"> </td>
                  </tr>
                </table>
                <table border="0" cellspacing="1" cellpadding="2" width="600" class=title>
                  <tr class="table_row_title"> 
                    <td width="13%" align="center" nowrap><font  class="strong">顺序</font></td>
                    <td width="36%" align="center" nowrap><font  class="strong">子任务名称</font></td>
                    <td width="28%" align="center" nowrap><font  class="strong">执行者</font></td>
                    <td width="23%" align="center" nowrap><font  class="strong">角色</font></td>
                  </tr>
        
                  <vnex_workflow:subtaskList routevalue="<%=routeInfo %>">                       
                     <vnex:items> 
                  <tr bgcolor="<vnex:itemsColor />"> 
                    <td width="13%" align="center" ><vnex_workflow:subtaskAttribute attribute="subtask_stepNo"/></td>
                    <td width="36%" align="center"><vnex_workflow:subtaskAttribute attribute="subtask_name" /></td>
                    <td width="28%"> 
                        <div align="center"><vnex_workflow:subtaskAttribute attribute="executor_names" /></div>
                    </td>
                    <td width="23%"> 
                        <div align="center"><vnex_workflow:subtaskAttribute attribute="subtask_type" /></div>
                    </td>
                  </tr>

                  </vnex:items> 
                 </vnex_workflow:subtaskList> 
                </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>

⌨️ 快捷键说明

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