DocumentTypeManage.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:5k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
  3. <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
  4. <%
  5. Request m_request = new Request(request);
  6. int iSysDirID = m_request.GetInt("SysDirID");
  7. Vector vt = DocumentTypeManager.getBySysDirIDRecord(iSysDirID);
  8. %>
  9. <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  12. <title>文档类型管理-- GForce OA 2.0</title>
  13. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  14. <script language="JavaScript" src="/js/changestyle.js"></script>
  15. <script language="JavaScript" type="text/javascript">
  16. function CheckAddDocumentType()
  17. {
  18.     if(document.AddDocumentType.TypeName.value=='')
  19.     {
  20.         alert("请输入文档类型名称!");
  21.         document.AddDocumentType.TypeName.focus();
  22.         return false;
  23.     }
  24. }
  25. </script>
  26. </head>
  27. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  28. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  29.     <tr>
  30.         <td align="center" valign="top"><p>&nbsp;</p>
  31.             <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#000000" style="">
  32.                 <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  33.                     <th width="3%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  34.                     <th width="6%" nowrap><font color="#000000">序号</font></th>
  35.                     <th width="40%" nowrap><font color="#000000">文档类型名称</font></th>
  36.                     <th width="11%" nowrap><font color="#000000">添加</font></th>
  37.                     <th width="11%" nowrap><font color="#000000">修改</font></th>
  38.                     <th width="12%" nowrap><font color="#000000">删除</font></th>
  39.                 </tr>
  40.                 <%
  41. for(int i=0;i<vt.size();i++)
  42. {
  43.     String strID = ((Vector)vt.get(i)).get(0).toString();
  44.     if(i % 2 == 0)
  45.         out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
  46.     else
  47.         out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
  48.     out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
  49.     out.println("<td align="right" valign="middle">" + (i+1) + "</td>");
  50.     out.println("<td align="left" valign="middle" nowrap onclick="openeditwindow('DocFieldsManage1.jsp?DocTypeID=" + strID + "')" title="在此单击查看、修改该文档类型的字段名称">" + ((Vector)vt.get(i)).get(1).toString() + "</td>");
  51.     out.println("<td align="center" valign="middle" nowrap>&nbsp;</td>");
  52.     out.println("<td align="center" valign="middle" nowrap><a href="EditDocumentType.jsp?SysDirID="+iSysDirID+"&ID=" + strID + "">修改</a></td>");
  53.     out.println("<td align="center" valign="middle" nowrap><a href="DelDocumentType.jsp?SysDirID="+iSysDirID+"&ID=" + strID + "" onclick="return confirm('您确实要删除该文档类型吗?\n删除该类型之前必须删除该类型所有相关文档,\n否则会出错,您是否继续?');">删除</a></td>");
  54.     out.println("</tr>");
  55. }
  56. %>
  57.                 <form name="AddDocumentType" action="AddDocumentTypeAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return CheckAddDocumentType();">
  58.                     <tr bgcolor="<%=m_session.GetString("TitleColor")%>">
  59.                         <th align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  60.                         <th align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  61.                         <th align="left" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">
  62.                             <input name="TypeName" type="text" maxlength="60"></th>
  63.                             <input name="SysDirID" type="hidden" Value="<%=iSysDirID%>"></th>
  64.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">
  65.                             <input type="submit" value="添加"></th>
  66.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  67.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  68.                     </tr>
  69.                 </form>
  70.             </table>
  71.         </td>
  72.     </tr>
  73. </table>
  74. </body>
  75. </html>