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

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="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
  28. <script language="JavaScript" src="/js/changestyle.js"></script>
  29. <script language="JavaScript" type="text/javascript">
  30. function checkEditBoardroomApply()
  31. {
  32.     if(document.EditBoardroomApply.Title.value=="")
  33.     {
  34.         alert("请输入会议主题!");
  35.         document.EditBoardroomApply.Title.focus();
  36.         return false;
  37.     }
  38.     if (document.EditBoardroomApply.PersonnelAmount.value != "")
  39.     if(isNaN(parseInt(document.EditBoardroomApply.PersonnelAmount.value,10)))
  40.     {
  41.       alert("请输入正确的参会人数!");
  42.       document.EditBoardroomApply.PersonnelAmount.select();
  43.       document.EditBoardroomApply.PersonnelAmount.focus();
  44.       return false;
  45.     }
  46.     if(document.EditBoardroomApply.PlanStartTime.value.length>0)
  47.     if(!isDate(document.EditBoardroomApply.PlanStartTime.value))
  48.     {
  49.       alert("日期格式错误,请按照“2002-02-18”重新输入!");
  50.       document.EditBoardroomApply.PlanStartTime.focus();
  51.       return false;
  52.     }
  53.     if(document.EditBoardroomApply.PlanEndTime.value.length > 0)
  54.     if(!isDate(document.EditBoardroomApply.PlanEndTime.value))
  55.     {
  56.       alert("日期格式错误,请按照“2002-02-18”重新输入!");
  57.       document.EditBoardroomApply.PlanEndTime.focus();
  58.       return false;
  59.     }
  60.     document.EditBoardroomApply.PlanStartTime.value += " " + document.EditBoardroomApply.StartTimeHour.options[document.EditBoardroomApply.StartTimeHour.selectedIndex].text + ":" +
  61.     document.EditBoardroomApply.StartTimeMinute.options[document.EditBoardroomApply.StartTimeMinute.selectedIndex].text + ":00";
  62.     document.EditBoardroomApply.PlanEndTime.value += " " + document.EditBoardroomApply.EndTimeHour.options[document.EditBoardroomApply.EndTimeHour.selectedIndex].text  + ":" +
  63.     document.EditBoardroomApply.EndTimeMinute.options[document.EditBoardroomApply.EndTimeMinute.selectedIndex].text  + ":00";
  64. }
  65. </script>
  66. <style type="text/css">
  67. <!--
  68. .imgtd {
  69.     border: 1px solid #0A0A0A;
  70. }
  71. -->
  72. </style>
  73. </head>
  74. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  75. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  76.      <tr>
  77.         <td align="center" valign="top"><p>&nbsp;</p>
  78.         <form name="EditBoardroomApply" action="EditBoardroomApplyAction.jsp" method="post" onSubmit="javascript:return checkEditBoardroomApply();">
  79.         <table  border="0" cellpadding="0" cellspacing="0" width="90%">
  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.             <input name="ID" type="hidden" value="<%=((Vector)vt.get(0)).get(0).toString()%>">
  84.             <input name="Title" type="text" maxlength="150" size="50" value="<%=((Vector)vt.get(0)).get(1).toString()%>">
  85.             </td>
  86.           </tr>
  87.           <tr>
  88.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">参会人数:</font></td>
  89.             <td colspan="3" align="left" valign="middle" nowrap>
  90.             <input name="PersonnelAmount" type="text" maxlength="5" size="5" value="<%=((Vector)vt.get(0)).get(11).toString()%>">
  91.             <input name="ApplyTime" type="hidden" value="<%=((Vector)vt.get(0)).get(5).toString()%>">
  92.             <input name="ApplyUserID" type="hidden" value="<%=((Vector)vt.get(0)).get(4).toString()%>">
  93.             </td>
  94.           </tr>
  95.           <tr>
  96.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">会 议 室:</font></td>
  97.             <td colspan="3" align="left" valign="middle" nowrap>
  98.             <select name="BoardroomID">
  99. <%
  100. Vector vBoardroom = BoardroomManager.getAllRecord();
  101. if (vBoardroom.size() > 0)
  102. {
  103.    for (int i = 0; i < vBoardroom.size(); i++)
  104.   {
  105.     if (Integer.parseInt(((Vector)vBoardroom.get(i)).get(0).toString()) == (Integer.parseInt(((Vector)vt.get(0)).get(10).toString())))
  106.       out.println("<option value=""+ ((Vector)vBoardroom.get(i)).get(0).toString() +"" selected>"+ ((Vector)vBoardroom.get(i)).get(1).toString() +"</option>");
  107.     else
  108.       out.println("<option value=""+ ((Vector)vBoardroom.get(i)).get(0).toString() +"">"+ ((Vector)vBoardroom.get(i)).get(1).toString() +"</option>");
  109.   }
  110. }
  111. %>
  112.             </select>
  113.             </td>
  114.           </tr>
  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.             <input name="PlanStartTime" type="text" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"yyyy-MM-dd")%>" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="10" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
  119.             <select name="StartTimeHour">
  120.                     <option selected><%=StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"HH")%></option>
  121.                     <option>00</option>
  122.                     <option>01</option>
  123.                     <option>02</option>
  124.                     <option>03</option>
  125.                     <option>04</option>
  126.                     <option>05</option>
  127.                     <option>06</option>
  128.                     <option>07</option>
  129.                     <option>08</option>
  130.                     <option>09</option>
  131.                     <option>10</option>
  132.                     <option>11</option>
  133.                     <option>12</option>
  134.                     <option>13</option>
  135.                     <option>14</option>
  136.                     <option>15</option>
  137.                     <option>16</option>
  138.                     <option>17</option>
  139.                     <option>18</option>
  140.                     <option>19</option>
  141.                     <option>20</option>
  142.                     <option>21</option>
  143.                     <option>22</option>
  144.                     <option>23</option>
  145.                   </select>点
  146.                   <select name="StartTimeMinute">
  147.                     <option selected><%=StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"mm")%></option>
  148.                     <option>00</option>
  149.                     <option>05</option>
  150.                     <option>10</option>
  151.                     <option>15</option>
  152.                     <option>20</option>
  153.                     <option>25</option>
  154.                     <option>30</option>
  155.                     <option>35</option>
  156.                     <option>40</option>
  157.                     <option>45</option>
  158.                     <option>50</option>
  159.                     <option>55</option>
  160.                   </select>分
  161.           </td>
  162.           </tr>
  163.           <tr>
  164.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">预计结束时间:</font></td>
  165.             <td colspan="3" align="left" valign="middle" nowrap>
  166.             <input name="PlanEndTime" type="text" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"yyyy-MM-dd")%>" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="10" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
  167.             <select name="EndTimeHour">
  168.                     <option selected><%=StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"HH")%></option>
  169.                     <option>00</option>
  170.                     <option>01</option>
  171.                     <option>02</option>
  172.                     <option>03</option>
  173.                     <option>04</option>
  174.                     <option>05</option>
  175.                     <option>06</option>
  176.                     <option>07</option>
  177.                     <option>08</option>
  178.                     <option>09</option>
  179.                     <option>10</option>
  180.                     <option>11</option>
  181.                     <option>12</option>
  182.                     <option>13</option>
  183.                     <option>14</option>
  184.                     <option>15</option>
  185.                     <option>16</option>
  186.                     <option>17</option>
  187.                     <option>18</option>
  188.                     <option>19</option>
  189.                     <option>20</option>
  190.                     <option>21</option>
  191.                     <option>22</option>
  192.                     <option>23</option>
  193.                   </select>点
  194.                   <select name="EndTimeMinute">
  195.                     <option selected><%=StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"mm")%></option>
  196.                     <option>00</option>
  197.                     <option>05</option>
  198.                     <option>10</option>
  199.                     <option>15</option>
  200.                     <option>20</option>
  201.                     <option>25</option>
  202.                     <option >30</option>
  203.                     <option>35</option>
  204.                     <option>40</option>
  205.                     <option>45</option>
  206.                     <option>50</option>
  207.                     <option>55</option>
  208.                   </select>分
  209.           </td>
  210.           </tr>
  211.           <tr>
  212.             <td align="right" valign="middle">&nbsp;</td>
  213.             <td colspan="3" align="left" valign="middle" nowrap> </td>
  214.           </tr>
  215.           <tr>
  216.             <td align="right" valign="middle">&nbsp;</td>
  217.             <td colspan="3" align="left" valign="middle" nowrap> <input type="submit" value="确定">
  218.               &nbsp;&nbsp;&nbsp; <input type="reset" value="重填"> &nbsp;&nbsp;&nbsp;
  219.               <input type="button" value="返回" onclick="history.back();">
  220.             </td>
  221.           </tr>
  222.         </table>
  223.         </form>
  224.         </td>
  225.    </tr>
  226. </table>
  227. </body>
  228. </html>
  229. <%
  230. }
  231. else
  232. {
  233. %>
  234. <script language="JavaScript" type="text/JavaScript">
  235. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  236. history.back();
  237. </script>
  238. <%
  239. }
  240. }
  241. %>