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

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 iPactTempletID = m_request.GetInt("ID");
  7. int iPactType = m_request.GetInt("PactType");
  8. if(iPactTempletID <1)
  9. {
  10. %>
  11. <script language="JavaScript" type="text/JavaScript">
  12. alert("请选择正确的合同,修改失败!");
  13. history.back();
  14. </script>
  15. <%
  16. }
  17. else
  18. {
  19. Vector vt = PactTempletManager.getRecordByID(iPactTempletID);
  20. if(vt.size()==1)
  21. {
  22. %>
  23. <html>
  24. <head>
  25. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  26. <title>合同管理-- GForce OA 2.0</title>
  27. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  28. <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
  29. <script language="JavaScript" src="/js/changestyle.js"></script>
  30. <style type="text/css">
  31. <!--
  32. .imgtd {
  33.     border: 1px solid #0A0A0A;
  34. }
  35. -->
  36. </style>
  37. </head>
  38. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  39. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  40.      <tr>
  41.         <td align="center" valign="top"><p>&nbsp;</p>
  42.         <form name="EditPactTemplet" action="EditPactTempletAction.jsp?PactType=<%=iPactType%>" method="post" onSubmit="javascript:return checkEditPactTemplet();">
  43.         <table  border="0" cellpadding="0" cellspacing="0" width="90%">
  44.           <tr>
  45.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">名    称:</font></td>
  46.             <td colspan="3" align="left" valign="middle" nowrap>
  47.             <%=((Vector)vt.get(0)).get(1).toString()%>
  48.             </td>
  49.           </tr>
  50.           <tr>
  51.             <td width="100" align="right" valign="middle">附    件:</td>
  52.                 <td valign="middle" align="left"><table width="100%" border="0" cellspacing="0">
  53. <tr>
  54. <td style="width:100%;" align="left">
  55.                     <select name="AccessoriesList" size="4" multiple style="width:100%;">
  56. <%
  57. Vector vArticle = ArticleAttManager.getAttInfo(iPactTempletID,"PactTempletInfo");
  58. if (vArticle.size() > 0)
  59. {
  60. for (int j = 0;j < vArticle.size();j++)
  61. {
  62. out.println("<option value="" + ((Vector)vArticle.get(j)).get(2).toString() + "">" + ((Vector)vArticle.get(j)).get(1).toString() + "</option>");
  63. }
  64. }
  65. %>
  66.                     </select>
  67.                     </td>
  68.                     <td width="50%" align="left" valign="top">
  69. <%
  70. if (vArticle.size() > 0)
  71. {
  72. for (int j = 0;j < vArticle.size();j++)
  73. {
  74. out.println("<a href="" + ((Vector)vArticle.get(j)).get(2).toString() + "" target="_blank">" + ((Vector)vArticle.get(j)).get(1).toString() + "</a><br>");
  75. }
  76. }
  77. %>
  78.                      </td>
  79.                     <td width="100" align="center" valign="middle">
  80.                     </td>
  81.                   </tr>
  82.                 </table>
  83. </td>
  84.           </tr>
  85.           <tr>
  86.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">内    容:</font></td>
  87.             <td colspan="3" align="left" valign="middle" nowrap>
  88.             <%=((Vector)vt.get(0)).get(2).toString()%>
  89.             </td>
  90.           </tr>
  91.           <tr>
  92.             <td align="right" valign="middle">&nbsp;</td>
  93.             <td colspan="3" align="left" valign="middle" nowrap> </td>
  94.           </tr>
  95.           <tr>
  96.             <td align="right" valign="middle">&nbsp;</td>
  97.             <td colspan="3" align="left" valign="middle" nowrap> </td>
  98.           </tr>         
  99.           <tr>
  100.             <td align="right" valign="middle">&nbsp;</td>
  101.             <td align="right" valign="middle">
  102.               <input type="button" value="关闭" onclick="window.close()">
  103.             </td>
  104.           </tr>
  105.         </table>
  106.         </form>
  107.         </td>
  108.     </tr>
  109. </table>
  110. </body>
  111. </html>
  112. <%
  113. }
  114. else
  115. {
  116. %>
  117. <script language="JavaScript" type="text/JavaScript">
  118. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  119. history.back();
  120. </script>
  121. <%
  122. }
  123. }
  124. %>