WorkflowRoute_List.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:

电子政务应用

开发平台:

Java

  1. <%
  2. /**
  3.  *  $ RCSfile: WorkflowRoute_List.jsp,v $
  4.  *  $ Revision: 1.0 $
  5.  *  $ Date: 2001/05/018 20:18:46 ,created by Shiyong Jian $
  6.  *  $ /mainctrl/template/maintainRoute $
  7.  *
  8.  *  This is the workflow template  list  page.
  9.  *  @author Copyright (c) May. 2001, by VisionNex  Technologies Inc., All Right Reversed.
  10.  */
  11. %>
  12. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  13. <%@ page import="com.vnex.intranet.workflow.pub.value.RouteValueBean" %>
  14. <%@ taglib uri="/vnex_workflow.tld" prefix="vnex_workflow" %>
  15. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  16. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  17. <jsp:useBean id="routeListBean" scope="page" class="com.vnex.intranet.workflow.route.value.RouteListBean" />
  18. <%@ include file= "/vnex/intranet/workflow/template/WorkflowRoute_Navibar_Head.jsp" %>
  19. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  20. <script Language="JavaScript">
  21. function submitForm(act)
  22. {
  23.     if ( act == 'New' )
  24.     {
  25.          document.forms[0].action= '/mainctrl/template/createRoute?flag=newRoute';
  26.          document.forms[0].submit();
  27.     } 
  28.     
  29.     if ( act == 'Delete' ) 
  30.     {
  31.         
  32.         if ( !isChecked( document.forms[0].routeIdList )  ) 
  33.         {
  34.             alert('请选择要删除的模板!');
  35.             return false;
  36.         }     
  37.         if ( confirm("确定删除?") )
  38.         {
  39.             document.forms[0].action= '/mainctrl/template/deleteRoute';
  40.             document.forms[0].submit();
  41.         }
  42.     }
  43.  }
  44. </script>
  45. <script language="JavaScript" src="/vnex/util/validate.js"></script>
  46. <HTML>
  47. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  48. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  49.  
  50. <DIV align=center>
  51. <form name="form1" method="post" action="">
  52.    <TABLE class=outter cellSpacing=0 cellPadding=0 border=0 width="600">
  53.      <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />     
  54.     <TR> 
  55.         <TD colSpan=3 align="center"><br>
  56.          <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  57.             <tr bgcolor="#fafafa"> 
  58.               <td> 
  59.                <table width="600" border="0" cellspacing="0" cellpadding="2">
  60.         
  61.                            <tr bgcolor="#666666"> 
  62.                     <td colspan="2" height="15" bgcolor="#666666">
  63.                     <font class="strongw"><a href="/mainctrl/home/index">
  64.                     <font color="#FFFFFF">首页</font></a>&gt;&gt;
  65.                     <a href="<%=firstLevelLink%>"><font color="#FFFFFF"><%=firstLevelText%></font></a>&gt;&gt;
  66.                     <font color="#FFFFFF"><%=secondLevelText%></font>
  67.                       </td>
  68.                   </tr>                       
  69.                 </table>
  70.                <table class=title cellspacing=1 cellpadding=2 width="100%" border=0>
  71.                   <tr align=left bgcolor="#fafafa"> 
  72.                     <td colspan="4" height="30">
  73.                       &nbsp;&nbsp;<input type="button" name="create" value="新建" class="file" onClick=" submitForm( 'New' ) ">&nbsp;&nbsp;
  74.                       <input type="button" name="delete" value="删除" class="file" onClick=" submitForm( 'Delete' )" ">
  75.                     </td>
  76.                   </tr>
  77.                
  78.                    <tr> 
  79.                     <td colspan="4" bgcolor="#666666"> 
  80.                       
  81.                     </td>
  82.                   </tr>
  83.                   <tr align=middle> 
  84.                     <td width="7%" height="2"><font class="strong">选择 </font></td>
  85.                     <td width="40%" height="2"><font class="strong">标题 </font></td>
  86.                     <td width="23%" height="2"><font class="strong">模板类型</font></td>
  87.                     <td width="30%" height="2"><font class="strong">创建时间</font></td>                    
  88.                   </tr>
  89.                   <vnex_workflow:routeList routetype="<%=routeType%>"  routelistbean="<%=routeListBean %>"  personid="<%=BusinessName.getEmpId() %>"  workflowType= "<%=0 %>" > 
  90.                    <vnex:items paging="true"> 
  91.                   <tr align=middle bgcolor="<vnex:itemsColor />"> 
  92.                     <td align="center" width="7%"> 
  93.                       <input type="checkbox" name="routeIdList" value="<vnex_workflow:routeAttribute attribute='route_id' />">
  94.                     </td>
  95.                     <td width="40%"><a href="/mainctrl/template/modifyRoute?routeId=<vnex_workflow:routeAttribute attribute='route_id' />&flag=modifyRoute" > <vnex_workflow:routeAttribute attribute="route_name" /></a></td>
  96.                     <td width="30%"><vnex_workflow:routeAttribute attribute="route_type" /></td>
  97.                     <td width="30%"><vnex_workflow:routeAttribute attribute="route_creationdate" /></td>
  98.                   </tr>
  99.                    </vnex:items>
  100.                    <tr bgcolor="#e0e0e0">
  101.                     <td align="center" width="7%"> 
  102.                       <input type="checkbox" name="myAll"  onclick="checkAll(this.form.routeIdList, this.form.myAll)" >
  103.                     </td>
  104.                     <td colspan="3" bgcolor="#e0e0e0">
  105.                          &nbsp;&nbsp;全选<br>
  106.                      </td>
  107.                   </tr> 
  108.                    <tr>
  109.                       <td colspan="6" align="left" bgcolor="#fafafa">
  110.                   &nbsp;&nbsp;<vnex:pagingTag pageName="/mainctrl/template/maintainRoute?a" />
  111.                   </td>
  112.                   </tr> 
  113.                   </vnex_workflow:routeList> 
  114.                   
  115.                   </table>
  116.                 </td>
  117.             </tr>
  118.           </table>
  119. <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  120. </TD>
  121.     </TR>
  122.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  123.     </TABLE>
  124.   <BR>
  125.    <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  126. </form></DIV>
  127. </BODY></HTML>