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

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 intBoardroomApplyID = m_request.GetInt("ID");
  7. if(intBoardroomApplyID < 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 = BoardroomApplyManager.getRecordByID(intBoardroomApplyID);
  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="/js/changestyle.js"></script>
  28. <style type="text/css">
  29. <!--
  30. .imgtd {
  31.     border: 1px solid #0A0A0A;
  32. }
  33. -->
  34. </style>
  35. </head>
  36. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  37. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  38.      <tr>
  39.         <td align="center" valign="top"><p>&nbsp;</p><p><strong>会议申请信息</strong></p>
  40.         <form name="EditBoardroomApply" action="EditBoardroomApplyAction.jsp" method="post" >
  41.         <table  border="0" 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.             <input name="ID" type="hidden" value="<%=((Vector)vt.get(0)).get(0).toString()%>">
  46.            <%=((Vector)vt.get(0)).get(1).toString()%>
  47.             </td>
  48.           </tr>
  49.           <tr>
  50.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">预计参会人数:</font></td>
  51.             <td colspan="3" align="left" valign="middle" nowrap>
  52.             <%=((Vector)vt.get(0)).get(11).toString()%>
  53.             </td>
  54.           </tr>
  55.           <tr>
  56.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">会 议 室:</font></td>
  57.             <td colspan="3" align="left" valign="middle" nowrap>
  58. <%
  59. Vector vBoardroom = BoardroomManager.getAllRecord();
  60. if (vBoardroom.size() > 0)
  61. {
  62.    for (int i = 0; i < vBoardroom.size(); i++)
  63.   {
  64.     if (Integer.parseInt(((Vector)vBoardroom.get(i)).get(0).toString()) == (Integer.parseInt(((Vector)vt.get(0)).get(10).toString())))
  65.     {
  66.       out.println(((Vector)vBoardroom.get(i)).get(1).toString());
  67.       break;
  68.     }
  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.               <%=StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"yyyy年MM月dd HH时mm分")%>
  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.             <%=StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"yyyy年MM月dd HH时mm分")%></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.               <%=UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vt.get(0)).get(4).toString()))%>
  89.             </td>
  90.           </tr>
  91.           <tr>
  92.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">申请时间:</font></td>
  93.             <td colspan="3" align="left" valign="middle" nowrap>
  94.             <%=StringNew.GetDateString(((Vector)vt.get(0)).get(5).toString(),"yyyy年MM月dd HH时mm分")%>
  95.             </td>
  96.           </tr>
  97.           <tr>
  98.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">审批状态:</font></td>
  99.             <td colspan="3" align="left" valign="middle" nowrap>
  100.               <%if (!((Vector)vt.get(0)).get(8).toString().equalsIgnoreCase(""))
  101.                 {
  102.                   if (((Vector)vt.get(0)).get(6).toString().equalsIgnoreCase("true"))
  103.                     out.println("<font color="#339900">同意</font>");
  104.                   else
  105.                     out.println("不同意");
  106.                 }
  107.                 else
  108.                 {
  109.                   out.println("未审批");
  110.                 }%>
  111.             </td>
  112.           </tr>
  113.           <%if (!((Vector)vt.get(0)).get(8).toString().equalsIgnoreCase(""))
  114.           {%>
  115.           <tr>
  116.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">审批信息:</font></td>
  117.             <td colspan="3" align="left" valign="middle" nowrap>
  118.               <%=((Vector)vt.get(0)).get(9).toString()%>
  119.             </td>
  120.           </tr>
  121.           <tr>
  122.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">审批人:</font></td>
  123.             <td colspan="3" align="left" valign="middle" nowrap>
  124.               <%=UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vt.get(0)).get(7).toString()))%>
  125.             </td>
  126.           </tr>
  127.           <tr>
  128.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">审批时间:</font></td>
  129.             <td colspan="3" align="left" valign="middle" nowrap>
  130.               <%=StringNew.GetDateString(((Vector)vt.get(0)).get(8).toString(),"yyyy年MM月dd日 HH时mm分")%>
  131.             </td>
  132.           </tr>
  133.           <%}%>
  134.           <tr>
  135.             <td align="right" valign="middle">&nbsp;</td>
  136.             <td colspan="3" align="left" valign="middle" nowrap> </td>
  137.           </tr>
  138.           <tr>
  139.             <td align="right" valign="middle">&nbsp;</td>
  140.             <td colspan="3" align="right" valign="middle" nowrap>
  141.               <input type="button" value="关闭" onclick="window.close();">
  142.             </td>
  143.           </tr>
  144.         </table>
  145.         </form>
  146.         </td>
  147.    </tr>
  148. </table>
  149. </body>
  150. </html>
  151. <%
  152. }
  153. else
  154. {
  155. %>
  156. <script language="JavaScript" type="text/JavaScript">
  157. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  158. history.back();
  159. </script>
  160. <%
  161. }
  162. }
  163. %>