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

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 intCahierID = m_request.GetInt("ID");
  7. if(intCahierID < 1)
  8. {
  9. %>
  10. <script language="JavaScript" type="text/JavaScript">
  11. alert("请选择正确的会议纪要!");
  12. history.back();
  13. </script>
  14. <%
  15. }
  16. else
  17. {
  18. Vector vt = CahierManager.getRecordByID(intCahierID);
  19. if(vt.size()==1)
  20. {
  21. %>
  22. <html>
  23. <head>
  24. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  25. <title>会议纪要管理-- GForce OA 2.0</title>
  26. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  27. <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
  28. <script language="JavaScript" src="/js/changestyle.js"></script>
  29. <style type="text/css">
  30. <!--
  31. .imgtd {
  32.     border: 1px solid #0A0A0A;
  33. }
  34. -->
  35. </style>
  36. </head>
  37. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  38. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  39.      <tr>
  40.         <td align="center" valign="top"><p>&nbsp;</p><p><strong>查看会议纪要信息</strong></p>
  41.         <table  border="1" cellpadding="0" cellspacing="0" width="90%">
  42.           <tr>
  43.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">会议申请:</font></td>
  44.             <td colspan="3" align="left" valign="middle" nowrap>
  45. <%
  46. Vector vtApply = BoardroomApplyManager.getRecordByApplyed(Integer.parseInt(((Vector)vt.get(0)).get(1).toString()));
  47. if (vtApply.size() > 0)
  48. {
  49.    for (int i = 0; i < vtApply.size(); i++)
  50.    {
  51.    if (((Vector)vtApply.get(i)).get(0).toString().equalsIgnoreCase(((Vector)vt.get(0)).get(1).toString()))
  52.       out.println(((Vector)vtApply.get(i)).get(1).toString());
  53.    }
  54. }
  55. %>
  56.             </td>
  57.           </tr>
  58.           <tr>
  59.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">会议室:</font></td>
  60.             <td colspan="3" align="left" valign="middle" nowrap>
  61. <%
  62. Vector vtBoardroom = BoardroomManager.getAllRecord();
  63. if (vtBoardroom.size() > 0)
  64. {
  65.    for (int i = 0; i < vtBoardroom.size(); i++)
  66.    {
  67.     if (((Vector)vtBoardroom.get(i)).get(0).toString().equalsIgnoreCase(((Vector)vt.get(0)).get(8).toString()))
  68.      out.println(((Vector)vtBoardroom.get(i)).get(1).toString());
  69.    }
  70. }
  71. %>
  72.             </td>
  73.           </tr>
  74.           <tr>
  75.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">会议编号:</font></td>
  76.             <td colspan="3" align="left" valign="middle" nowrap>
  77.             <%=((Vector)vt.get(0)).get(2).toString()%>
  78.             </td>
  79.           </tr>
  80.           <tr>
  81.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">会议名称:</font></td>
  82.             <td colspan="3" align="left" valign="middle" nowrap>
  83.             <%=((Vector)vt.get(0)).get(3).toString()%>
  84.             </td>
  85.           </tr>
  86.           <tr>
  87.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">开始时间:</font></td>
  88.             <td colspan="3" align="left" valign="middle" nowrap>
  89.             <%java.util.Date t_Date = new java.util.Date();%>
  90.             <%=StringNew.GetDateString(((Vector)vt.get(0)).get(4).toString(),"yyyy年MM月dd日HH时mm分")%>
  91.             </td>
  92.           </tr>
  93.           <tr>
  94.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">结束时间:</font></td>
  95.             <td colspan="3" align="left" valign="middle" nowrap>
  96.             <%=StringNew.GetDateString(((Vector)vt.get(0)).get(4).toString(),"yyyy年MM月dd日HH时mm分")%>
  97.             </td>
  98.           </tr>
  99.           <tr>
  100.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">主持人:</font></td>
  101.             <td colspan="3" align="left" valign="middle" nowrap>
  102.             <%=((Vector)vt.get(0)).get(6).toString()%>
  103.             </td>
  104.           </tr>
  105.           <tr>
  106.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">参会用户:</font></td>
  107.             <td colspan="3" align="left" valign="middle" nowrap>
  108.             <%=((Vector)vt.get(0)).get(9).toString()%>
  109.             </td>
  110.           </tr>
  111.           <tr>
  112.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">会议说明:</font></td>
  113.             <td colspan="3" align="left" valign="middle" nowrap>
  114.             <%=((Vector)vt.get(0)).get(7).toString()%>
  115.             </td>
  116.           </tr>
  117.           <tr>
  118.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">允许查看的部门:</font></td>
  119.             <td colspan="3" align="left" valign="middle" nowrap>
  120.             <%=DepartmentManager.getDepartNamesByIDs(((Vector)vt.get(0)).get(14).toString())%>
  121.             </td>
  122.           </tr>
  123.           <tr>
  124.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">允许查看的员工:</font></td>
  125.             <td colspan="3" align="left" valign="middle" nowrap>
  126.             <%=UserManager.getPersonnelNamesByUserIDs(((Vector)vt.get(0)).get(13).toString())%>
  127.             </td>
  128.           </tr>
  129.           <tr>
  130.             <td width="100" align="right" valign="middle">附    件:</td>
  131.                 <td valign="middle" align="left">
  132. <%
  133. Vector vArticle = ArticleAttManager.getAttInfo(intCahierID,"CahierInfo");
  134. if (vArticle.size() > 0)
  135. {
  136.   for (int j = 0;j < vArticle.size();j++)
  137.   {
  138.     out.println("<a href="" + ((Vector)vArticle.get(j)).get(2).toString() + "" target="_blank">" + ((Vector)vArticle.get(j)).get(1).toString() + "</a><br>");
  139.   }
  140. }
  141. %>&nbsp;
  142.               </td>
  143.           </tr><!--
  144.           <tr>
  145.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">纪要主题:</font></td>
  146.             <td colspan="3" align="left" valign="middle" nowrap>
  147.             <%=((Vector)vt.get(0)).get(11).toString()%>
  148.             </td>
  149.           </tr>-->
  150.           <tr>
  151.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">纪要内容:</font></td>
  152.             <td colspan="3" align="left" valign="middle" nowrap>
  153.       <%=((Vector)vt.get(0)).get(12).toString()%>
  154.             </td>
  155.           </tr>
  156.           <tr>
  157.             <td align="right" valign="middle">&nbsp;</td>
  158.             <td colspan="3" align="right" valign="middle" nowrap>
  159.               <input type="button" value="关闭" onclick="self.close();">
  160.             </td>
  161.           </tr>
  162.         </table>
  163.         </td>
  164.     </tr>
  165. </table>
  166. </body>
  167. </html>
  168. <%
  169. }
  170. else
  171. {
  172. %>
  173. <script language="JavaScript" type="text/JavaScript">
  174. alert("该记录已经被删除或者您没有权限查看此记录!");
  175. history.back();
  176. </script>
  177. <%
  178. }
  179. }
  180. %>