BoardroomConfirm.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 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">
  41.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  42.         <tr>
  43.           <td height="50" valign="top" background="../images/dy-back.gif">
  44.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  45.               <tr valign="middle">
  46.                 <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
  47.                 <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">新增名片</font></strong></td>
  48.                 <td align="right" nowrap="nowrap" valign="bottom">&nbsp;
  49.                    <!-- 群增<img src="../images/MulAdd.gif" onMouseOver="this.src='../images/MulAdd_a.gif';" onMouseOut="this.src='../images/MulAdd.gif';" border="0" height="22" width="59">&nbsp;-->
  50.                   <!--单增<img src="../images/Single.gif" onMouseOver="this.src='../images/Single_a.gif';" onMouseOut="this.src='../images/Single.gif';" border="0" height="22" width="59">&nbsp;-->
  51.                   <!-- 修改<img src="../images/Update.gif" onMouseOver="this.src='../images/Update_a.gif';" onMouseOut="this.src='../images/Update.gif';" border="0" height="22" width="59">&nbsp;-->
  52.                   <!-- 删除<img src="../images/Del.gif" onMouseOver="this.src='../images/Del_a.gif';" onMouseOut="this.src='../images/Del.gif';" border="0" height="22" width="59">&nbsp;-->
  53.                   <!-- 查看<img src="../images/Query.gif" onMouseOver="this.src='../images/Query_a.gif';" onMouseOut="this.src='../images/Query.gif';" border="0" height="22" width="59">&nbsp;-->
  54.                   <!-- 组合查询<img src="../images/GroupQuery.gif" onMouseOver="this.src='../images/GroupQuery_a.gif';" onMouseOut="this.src='../images/GroupQuery.gif';" border="0" height="22" width="79">&nbsp;-->
  55.                 </td>
  56.               </tr>
  57.             </table>
  58.           </td>
  59.         </tr>
  60.       </table><br>
  61. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  62.      <tr>
  63.         <td align="center" valign="top"><p>&nbsp;</p><p><strong>会议申请审批</strong></p>
  64.         <form name="EditBoardroomApply" action="BoardroomConfirmAction.jsp" method="post" >
  65.         <table  border="0" cellpadding="0" cellspacing="0" width="90%">
  66.           <tr>
  67.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">会议主题:</font></td>
  68.             <td colspan="3" align="left" valign="middle" nowrap>
  69.             <input name="ID" type="hidden" value="<%=((Vector)vt.get(0)).get(0).toString()%>">
  70.       <input type="hidden" name="Title" value="<%=((Vector)vt.get(0)).get(1).toString()%>">
  71.             <%=((Vector)vt.get(0)).get(1).toString()%>
  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.       <input type="hidden" name="PersonnelAmount" value="<%=((Vector)vt.get(0)).get(11).toString()%>">
  78.             <%=((Vector)vt.get(0)).get(11).toString()%>
  79.             </td>
  80.           </tr>
  81.           <tr>
  82.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">会 议 室:</font></td>
  83.             <td colspan="3" align="left" valign="middle" nowrap>
  84.       <input type="hidden" name="BoardroomID" value="<%=((Vector)vt.get(0)).get(10).toString()%>">
  85. <%
  86. Vector vBoardroom = BoardroomManager.getAllRecord();
  87. if (vBoardroom.size() > 0)
  88. {
  89.    for (int i = 0; i < vBoardroom.size(); i++)
  90.   {
  91.     if (Integer.parseInt(((Vector)vBoardroom.get(i)).get(0).toString()) == (Integer.parseInt(((Vector)vt.get(0)).get(10).toString())))
  92.     out.println(((Vector)vBoardroom.get(i)).get(1).toString());
  93.   }
  94. }
  95. %>
  96.             </td>
  97.           </tr>
  98.           <tr>
  99.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">预计开始时间:</font></td>
  100.             <td colspan="3" align="left" valign="middle" nowrap>
  101.       <input type="hidden" name="PlanStartTime" value="<%=((Vector)vt.get(0)).get(2).toString()%>">
  102.             <%=StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"yyyy年MM月dd HH时mm分")%>
  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.       <input type="hidden" name="PlanEndTime" value="<%=((Vector)vt.get(0)).get(3).toString()%>">
  109.             <%=StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"yyyy年MM月dd HH时mm分")%>
  110.           </td>
  111.           </tr>
  112.           <tr>
  113.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">申请人:</font></td>
  114.             <td colspan="3" align="left" valign="middle" nowrap>
  115.              <input type="hidden" name="ApplyUserID" value="<%=((Vector)vt.get(0)).get(4).toString()%>">
  116.        <%=UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vt.get(0)).get(4).toString()))%>
  117.             </td>
  118.           </tr>
  119.           <tr>
  120.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">申请时间:</font></td>
  121.             <td colspan="3" align="left" valign="middle" nowrap>
  122.        <input type="hidden" name="ApplyTime" value="<%=((Vector)vt.get(0)).get(5).toString()%>">
  123.               <%=StringNew.GetDateString(((Vector)vt.get(0)).get(5).toString(),"yyyy年MM月dd HH时mm分")%>
  124.             </td>
  125.           </tr>
  126.            <tr>
  127.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">审批意见:</font></td>
  128.             <td colspan="3" align="left" valign="middle" nowrap>
  129.             <input name="ConfirmUserID" type="hidden" value="<%=intUserID%>">
  130.                 <%java.util.Date t_Date = new java.util.Date();%>
  131.                 <input name="ConfirmTime" type="hidden" value="<%=StringNew.GetDateString(t_Date,"yyyy-MM-dd HH:mm:ss")%>">
  132.              <input type="radio" name="IsConfirmed" value="1" <%=((Vector)vt.get(0)).get(6).toString().equalsIgnoreCase("True")?"checked":""%>>同意
  133.              <input type="radio" name="IsConfirmed" value="0" <%=!((Vector)vt.get(0)).get(6).toString().equalsIgnoreCase("True")?"checked":""%>>不同意
  134.            </td>
  135.           </tr>
  136.           <tr>
  137.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">审批信息:</font></td>
  138.             <td colspan="3" align="left" valign="middle" nowrap>
  139.             <input type="text" name="ConfirmInfo" value="<%=((Vector)vt.get(0)).get(9).toString()%>" size="50">
  140.           </td>
  141.           </tr>
  142.           <%if (!((Vector)vt.get(0)).get(8).toString().equalsIgnoreCase(""))
  143.           {%>
  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.               <%=UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vt.get(0)).get(7).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.               <%=StringNew.GetDateString(((Vector)vt.get(0)).get(8).toString(),"yyyy年MM月dd日 HH时mm分")%>
  154.             </td>
  155.           </tr>
  156.           <%}%>
  157.           <tr>
  158.             <td align="right" valign="middle">&nbsp;</td>
  159.             <td colspan="3" align="left" valign="middle" nowrap> </td>
  160.           </tr>
  161.           <tr>
  162.             <td align="right" valign="middle">&nbsp;</td>
  163.             <td colspan="3" align="center" valign="middle" nowrap>
  164.             <input name="button" type="submit" value="确定">
  165.               &nbsp;&nbsp;&nbsp;
  166.               <input type="button" value="关闭" onClick="window.close();">
  167.             </td>
  168.           </tr>
  169.         </table>
  170.         </form>
  171.         </td>
  172.    </tr>
  173. </table>
  174. </body>
  175. </html>
  176. <%
  177. }
  178. else
  179. {
  180. %>
  181. <script language="JavaScript" type="text/JavaScript">
  182. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  183. history.back();
  184. </script>
  185. <%
  186. }
  187. }
  188. %>