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

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 iPactID = m_request.GetInt("ID");
  7. int intUserID = m_session.GetInt("UserID");
  8. if(iPactID <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 = PactManager.getRecordByID(iPactID);
  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="EditPact" action="EditPactAction.jsp" method="post" onSubmit="javascript:return checkEditPact();">
  43. <tr>
  44.             <td width="20%" align="right" valign="middle"><font color="#0A0A0A">合同编号:</font></td>
  45.             <td width="80%" colspan="3" align="left" valign="middle" nowrap>
  46.             <%=((Vector)vt.get(0)).get(1).toString()%>
  47.           </tr>
  48. <tr>
  49.             <td width="18%" align="right" valign="middle"><font color="#0A0A0A">信托资金:</font></td>
  50.             <td width="82%" colspan="3" align="left" valign="middle" nowrap>
  51.             <%=((Vector)vt.get(0)).get(2).toString()%>
  52.           </tr>
  53. <tr>
  54.             <td width="18%" align="right" valign="middle"><font color="#0A0A0A">合同期限起始时间:</font></td>
  55.             <td width="82%" colspan="3" align="left" valign="middle" nowrap>
  56.             <%=StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"yyyy年MM月dd日")%>
  57.          </tr>
  58. <tr>
  59.             <td width="18%" align="right" valign="middle"><font color="#0A0A0A">合同期限结束时间:</font></td>
  60.             <td width="82%" colspan="3" align="left" valign="middle" nowrap>
  61.             <%=StringNew.GetDateString(((Vector)vt.get(0)).get(4).toString(),"yyyy年MM月dd日")%>
  62.          </tr>
  63. <tr>
  64.             <td width="18%" align="right" valign="middle"><font color="#0A0A0A">甲方名称:</font></td>
  65.             <td width="82%" colspan="3" align="left" valign="middle" nowrap>
  66.             <%=((Vector)vt.get(0)).get(5).toString()%>
  67.           </tr>
  68. <tr>
  69.             <td width="18%" align="right" valign="middle"><font color="#0A0A0A">甲方身份证营业执照:</font></td>
  70.             <td width="82%" colspan="3" align="left" valign="middle" nowrap>
  71.             <%=((Vector)vt.get(0)).get(6).toString()%>
  72.           </tr>
  73. <tr>
  74.             <td width="18%" align="right" valign="middle"><font color="#0A0A0A">甲方法定代表人:</font></td>
  75.             <td width="82%" colspan="3" align="left" valign="middle" nowrap>
  76.             <%=((Vector)vt.get(0)).get(7).toString()%>
  77.           </tr>
  78. <tr>
  79.             <td width="18%" align="right" valign="middle"><font color="#0A0A0A">甲方地址:</font></td>
  80.             <td width="82%" colspan="3" align="left" valign="middle" nowrap>
  81.             <%=((Vector)vt.get(0)).get(8).toString()%>
  82.           </tr>
  83. <tr>
  84.             <td width="18%" align="right" valign="middle"><font color="#0A0A0A">甲方电话:</font></td>
  85.             <td width="82%" colspan="3" align="left" valign="middle" nowrap>
  86.             <%=((Vector)vt.get(0)).get(9).toString()%>
  87.           </tr>
  88. <tr>
  89.             <td width="18%" align="right" valign="middle"><font color="#0A0A0A">甲方代理人:</font></td>
  90.             <td width="82%" colspan="3" align="left" valign="middle" nowrap>
  91.             <%=((Vector)vt.get(0)).get(10).toString()%>
  92.           </tr>
  93. <tr>
  94.             <td width="18%" align="right" valign="middle"><font color="#0A0A0A">甲方签字日期:</font></td>
  95.             <td width="82%" colspan="3" align="left" valign="middle" nowrap>
  96.             <%=StringNew.GetDateString(((Vector)vt.get(0)).get(11).toString(),"yyyy年MM月dd日")%>
  97.           </tr>
  98. <tr>
  99.             <td width="18%" align="right" valign="middle"><font color="#0A0A0A">乙方名称:</font></td>
  100.             <td width="82%" colspan="3" align="left" valign="middle" nowrap>
  101.             <%=((Vector)vt.get(0)).get(12).toString()%>
  102.           </tr>
  103. <tr>
  104.             <td width="18%" align="right" valign="middle"><font color="#0A0A0A">乙方身份证营业执照:</font></td>
  105.             <td width="82%" colspan="3" align="left" valign="middle" nowrap>
  106.             <%=((Vector)vt.get(0)).get(13).toString()%>
  107.           </tr>
  108. <tr>
  109.             <td width="18%" align="right" valign="middle"><font color="#0A0A0A">乙方法定代表人:</font></td>
  110.             <td width="82%" colspan="3" align="left" valign="middle" nowrap>
  111.             <%=((Vector)vt.get(0)).get(14).toString()%>
  112.           </tr>
  113. <tr>
  114.             <td width="18%" align="right" valign="middle"><font color="#0A0A0A">乙方地址:</font></td>
  115.             <td width="82%" colspan="3" align="left" valign="middle" nowrap>
  116.             <%=((Vector)vt.get(0)).get(15).toString()%>
  117.           </tr>
  118. <tr>
  119.             <td width="18%" align="right" valign="middle"><font color="#0A0A0A">乙方电话:</font></td>
  120.             <td width="82%" colspan="3" align="left" valign="middle" nowrap>
  121.             <%=((Vector)vt.get(0)).get(16).toString()%>
  122.           </tr>
  123. <tr>
  124.             <td width="18%" align="right" valign="middle"><font color="#0A0A0A">乙方代理人:</font></td>
  125.             <td width="82%" colspan="3" align="left" valign="middle" nowrap>
  126.             <%=((Vector)vt.get(0)).get(17).toString()%>
  127.           </tr>
  128. <tr>
  129.             <td width="18%" align="right" valign="middle"><font color="#0A0A0A">乙方签字日期:</font></td>
  130.             <td width="82%" colspan="3" align="left" valign="middle" nowrap>
  131.             <%=StringNew.GetDateString(((Vector)vt.get(0)).get(18).toString(),"yyyy年MM月dd日")%>
  132.           </tr>
  133.           <tr>
  134.             <td width="8%" align="right" valign="middle"><font color="#0A0A0A">名 称:</font></td>
  135.             <td width="92%" colspan="3" align="left" valign="middle" nowrap>
  136.             <%=((Vector)vt.get(0)).get(19).toString()%>
  137.           </tr>
  138.           <tr>
  139.             <td align="right" valign="middle">附 件:</td>
  140.                 <td valign="middle" align="left"><table width="100%" border="0" cellspacing="0">
  141. <tr>
  142. <%
  143. Vector vArticle = ArticleAttManager.getAttInfo(Integer.parseInt(((Vector)vt.get(0)).get(0).toString()),"PactInfo");
  144. out.println("<td width="50%" align="left" valign="top">");
  145. if (vArticle.size() > 0)
  146. {
  147. for (int j = 0;j < vArticle.size(); j++)
  148. {
  149. out.println("<a href="" + ((Vector)vArticle.get(j)).get(2).toString() + "" target="_blank">" + ((Vector)vArticle.get(j)).get(1).toString() + "</a><br>");
  150. }
  151. }
  152.   out.println("</td>");
  153. %>
  154.                      <td width="100" align="center" valign="middle">
  155.                     </td>
  156.                   </tr>
  157.                 </table>
  158.   </td>
  159.           </tr>
  160.           <tr>
  161.             <td align="right" valign="middle"><font color="#0A0A0A">增加时间:</font></td>
  162.             <td colspan="3" align="left" valign="middle" nowrap>
  163.             <%=StringNew.GetDateString(((Vector)vt.get(0)).get(21).toString(),"yyyy年MM月dd日HH时")%>
  164.             </td>
  165.           </tr>
  166.           <tr>
  167.             <td align="right" valign="middle"><font color="#0A0A0A">增加用户:</font></td>
  168.             <td colspan="3" align="left" valign="middle" nowrap>
  169.              <%=UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vt.get(0)).get(22).toString()))%>
  170.             </td>
  171.           </tr>
  172.           <tr>
  173.             <td align="right" valign="middle"><font color="#0A0A0A">内 容:</font></td>
  174.             <td colspan="3" align="left" valign="middle" nowrap>
  175.             <%=((Vector)vt.get(0)).get(20).toString()%>
  176.             </td>
  177.           </tr>
  178.           <tr>
  179.             <td align="right" valign="middle">&nbsp;</td>
  180.             <td colspan="3" align="left" valign="middle" nowrap> </td>
  181.           </tr>
  182.           <tr>
  183.             <td align="right" valign="middle">&nbsp;</td>
  184.             <td colspan="3" align="right" valign="middle" nowrap>
  185.               <input type="button" value="关闭" onClick="window.close();">
  186.             </td>
  187.           </tr>
  188.         </table>
  189.        </form>
  190.       </td>
  191.     </tr>
  192. </table>
  193. </body>
  194. </html>
  195. <%
  196. }
  197. else
  198. {
  199. %>
  200. <script language="JavaScript" type="text/JavaScript">
  201. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  202. history.back();
  203. </script>
  204. <%
  205. }
  206. }
  207. %>