BoardroomConfirm.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 intBoardroomApplyID = m_request.GetInt("ID");
  7. int intUserID = m_session.GetInt("UserID");
  8. if(intBoardroomApplyID < 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 = BoardroomApplyManager.getRecordByID(intBoardroomApplyID);
  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="/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.         <form name="EditBoardroomApply" action="BoardroomConfirmAction.jsp" method="post" >
  42.         <table  border="0" cellpadding="0" cellspacing="0" width="90%">
  43.           <tr>
  44.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">会议主题:</font></td>
  45.             <td colspan="3" align="left" valign="middle" nowrap>
  46.             <input name="ID" type="hidden" value="<%=((Vector)vt.get(0)).get(0).toString()%>">
  47.       <input type="hidden" name="Title" value="<%=((Vector)vt.get(0)).get(1).toString()%>">
  48.             <%=((Vector)vt.get(0)).get(1).toString()%>
  49.             </td>
  50.           </tr>
  51.           <tr>
  52.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">参会人数:</font></td>
  53.             <td colspan="3" align="left" valign="middle" nowrap>
  54.       <input type="hidden" name="PersonnelAmount" value="<%=((Vector)vt.get(0)).get(11).toString()%>">
  55.             <%=((Vector)vt.get(0)).get(11).toString()%>
  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.       <input type="hidden" name="BoardroomID" value="<%=((Vector)vt.get(0)).get(10).toString()%>">
  62. <%
  63. Vector vBoardroom = BoardroomManager.getAllRecord();
  64. if (vBoardroom.size() > 0)
  65. {
  66.    for (int i = 0; i < vBoardroom.size(); i++)
  67.   {
  68.     if (Integer.parseInt(((Vector)vBoardroom.get(i)).get(0).toString()) == (Integer.parseInt(((Vector)vt.get(0)).get(10).toString())))
  69.     out.println(((Vector)vBoardroom.get(i)).get(1).toString());
  70.   }
  71. }
  72. %>
  73.             </td>
  74.           </tr>
  75.           <tr>
  76.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">预计开始时间:</font></td>
  77.             <td colspan="3" align="left" valign="middle" nowrap>
  78.       <input type="hidden" name="PlanStartTime" value="<%=((Vector)vt.get(0)).get(2).toString()%>">
  79.             <%=StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"yyyy年MM月dd HH时mm分")%>
  80.           </td>
  81.           </tr>
  82.           <tr>
  83.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">预计结束时间:</font></td>
  84.             <td colspan="3" align="left" valign="middle" nowrap>
  85.       <input type="hidden" name="PlanEndTime" value="<%=((Vector)vt.get(0)).get(3).toString()%>">
  86.             <%=StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"yyyy年MM月dd HH时mm分")%>
  87.           </td>
  88.           </tr>
  89.           <tr>
  90.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">申请人:</font></td>
  91.             <td colspan="3" align="left" valign="middle" nowrap>
  92.              <input type="hidden" name="ApplyUserID" value="<%=((Vector)vt.get(0)).get(4).toString()%>">
  93.        <%=UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vt.get(0)).get(4).toString()))%>
  94.             </td>
  95.           </tr>
  96.           <tr>
  97.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">申请时间:</font></td>
  98.             <td colspan="3" align="left" valign="middle" nowrap>
  99.        <input type="hidden" name="ApplyTime" value="<%=((Vector)vt.get(0)).get(5).toString()%>">
  100.               <%=StringNew.GetDateString(((Vector)vt.get(0)).get(5).toString(),"yyyy年MM月dd HH时mm分")%>
  101.             </td>
  102.           </tr>
  103.            <tr>
  104.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">审批意见:</font></td>
  105.             <td colspan="3" align="left" valign="middle" nowrap>
  106.             <input name="ConfirmUserID" type="hidden" value="<%=intUserID%>">
  107.                 <%java.util.Date t_Date = new java.util.Date();%>
  108.                 <input name="ConfirmTime" type="hidden" value="<%=StringNew.GetDateString(t_Date,"yyyy-MM-dd HH:mm:ss")%>">
  109.              <input type="radio" name="IsConfirmed" value="1" <%=((Vector)vt.get(0)).get(6).toString().equalsIgnoreCase("True")?"checked":""%>>同意
  110.              <input type="radio" name="IsConfirmed" value="0" <%=!((Vector)vt.get(0)).get(6).toString().equalsIgnoreCase("True")?"checked":""%>>不同意
  111.            </td>
  112.           </tr>
  113.           <tr>
  114.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">审批信息:</font></td>
  115.             <td colspan="3" align="left" valign="middle" nowrap>
  116.             <input type="text" name="ConfirmInfo" value="<%=((Vector)vt.get(0)).get(9).toString()%>" size="50">
  117.           </td>
  118.           </tr>
  119.           <%if (!((Vector)vt.get(0)).get(8).toString().equalsIgnoreCase(""))
  120.           {%>
  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="center" valign="middle" nowrap>
  141.             <input name="button" type="submit" value="确定">
  142.               &nbsp;&nbsp;&nbsp;
  143.               <input type="button" value="关闭" onClick="window.close();">
  144.             </td>
  145.           </tr>
  146.         </table>
  147.         </form>
  148.         </td>
  149.    </tr>
  150. </table>
  151. </body>
  152. </html>
  153. <%
  154. }
  155. else
  156. {
  157. %>
  158. <script language="JavaScript" type="text/JavaScript">
  159. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  160. history.back();
  161. </script>
  162. <%
  163. }
  164. }
  165. %>