EditBoardroomApply.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:11k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <%
- Request m_request = new Request(request);
- int intBoardroomApplyID = m_request.GetInt("ID");
- if(intBoardroomApplyID < 1)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("请选择正确的会议申请,修改失败!");
- history.back();
- </script>
- <%
- }
- else
- {
- Vector vt = BoardroomApplyManager.getRecordByID(intBoardroomApplyID);
- if(vt.size() == 1)
- {
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>会议室管理-- GForce OA 2.0</title>
- <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
- <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
- <script language="JavaScript" src="/js/changestyle.js"></script>
- <script language="JavaScript" type="text/javascript">
- function checkEditBoardroomApply()
- {
- if(document.EditBoardroomApply.Title.value=="")
- {
- alert("请输入会议主题!");
- document.EditBoardroomApply.Title.focus();
- return false;
- }
- if (document.EditBoardroomApply.PersonnelAmount.value != "")
- if(isNaN(parseInt(document.EditBoardroomApply.PersonnelAmount.value,10)))
- {
- alert("请输入正确的参会人数!");
- document.EditBoardroomApply.PersonnelAmount.select();
- document.EditBoardroomApply.PersonnelAmount.focus();
- return false;
- }
- if(document.EditBoardroomApply.PlanStartTime.value.length>0)
- if(!isDate(document.EditBoardroomApply.PlanStartTime.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.EditBoardroomApply.PlanStartTime.focus();
- return false;
- }
- if(document.EditBoardroomApply.PlanEndTime.value.length > 0)
- if(!isDate(document.EditBoardroomApply.PlanEndTime.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.EditBoardroomApply.PlanEndTime.focus();
- return false;
- }
- document.EditBoardroomApply.PlanStartTime.value += " " + document.EditBoardroomApply.StartTimeHour.options[document.EditBoardroomApply.StartTimeHour.selectedIndex].text + ":" +
- document.EditBoardroomApply.StartTimeMinute.options[document.EditBoardroomApply.StartTimeMinute.selectedIndex].text + ":00";
- document.EditBoardroomApply.PlanEndTime.value += " " + document.EditBoardroomApply.EndTimeHour.options[document.EditBoardroomApply.EndTimeHour.selectedIndex].text + ":" +
- document.EditBoardroomApply.EndTimeMinute.options[document.EditBoardroomApply.EndTimeMinute.selectedIndex].text + ":00";
- }
- </script>
- <style type="text/css">
- <!--
- .imgtd {
- border: 1px solid #0A0A0A;
- }
- -->
- </style>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top"><p> </p>
- <form name="EditBoardroomApply" action="EditBoardroomApplyAction.jsp" method="post" onSubmit="javascript:return checkEditBoardroomApply();">
- <table border="0" cellpadding="0" cellspacing="0" width="90%">
- <tr>
- <td width="100" align="right" valign="middle"><font color="#0A0A0A">会议主题:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="ID" type="hidden" value="<%=((Vector)vt.get(0)).get(0).toString()%>">
- <input name="Title" type="text" maxlength="150" size="50" value="<%=((Vector)vt.get(0)).get(1).toString()%>">
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle"><font color="#0A0A0A">参会人数:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="PersonnelAmount" type="text" maxlength="5" size="5" value="<%=((Vector)vt.get(0)).get(11).toString()%>">
- <input name="ApplyTime" type="hidden" value="<%=((Vector)vt.get(0)).get(5).toString()%>">
- <input name="ApplyUserID" type="hidden" value="<%=((Vector)vt.get(0)).get(4).toString()%>">
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle"><font color="#0A0A0A">会 议 室:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <select name="BoardroomID">
- <%
- Vector vBoardroom = BoardroomManager.getAllRecord();
- if (vBoardroom.size() > 0)
- {
- for (int i = 0; i < vBoardroom.size(); i++)
- {
- if (Integer.parseInt(((Vector)vBoardroom.get(i)).get(0).toString()) == (Integer.parseInt(((Vector)vt.get(0)).get(10).toString())))
- out.println("<option value=""+ ((Vector)vBoardroom.get(i)).get(0).toString() +"" selected>"+ ((Vector)vBoardroom.get(i)).get(1).toString() +"</option>");
- else
- out.println("<option value=""+ ((Vector)vBoardroom.get(i)).get(0).toString() +"">"+ ((Vector)vBoardroom.get(i)).get(1).toString() +"</option>");
- }
- }
- %>
- </select>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle"><font color="#0A0A0A">预计开始时间:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <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);">
- <select name="StartTimeHour">
- <option selected><%=StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"HH")%></option>
- <option>00</option>
- <option>01</option>
- <option>02</option>
- <option>03</option>
- <option>04</option>
- <option>05</option>
- <option>06</option>
- <option>07</option>
- <option>08</option>
- <option>09</option>
- <option>10</option>
- <option>11</option>
- <option>12</option>
- <option>13</option>
- <option>14</option>
- <option>15</option>
- <option>16</option>
- <option>17</option>
- <option>18</option>
- <option>19</option>
- <option>20</option>
- <option>21</option>
- <option>22</option>
- <option>23</option>
- </select>点
- <select name="StartTimeMinute">
- <option selected><%=StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"mm")%></option>
- <option>00</option>
- <option>05</option>
- <option>10</option>
- <option>15</option>
- <option>20</option>
- <option>25</option>
- <option>30</option>
- <option>35</option>
- <option>40</option>
- <option>45</option>
- <option>50</option>
- <option>55</option>
- </select>分
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle"><font color="#0A0A0A">预计结束时间:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <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);">
- <select name="EndTimeHour">
- <option selected><%=StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"HH")%></option>
- <option>00</option>
- <option>01</option>
- <option>02</option>
- <option>03</option>
- <option>04</option>
- <option>05</option>
- <option>06</option>
- <option>07</option>
- <option>08</option>
- <option>09</option>
- <option>10</option>
- <option>11</option>
- <option>12</option>
- <option>13</option>
- <option>14</option>
- <option>15</option>
- <option>16</option>
- <option>17</option>
- <option>18</option>
- <option>19</option>
- <option>20</option>
- <option>21</option>
- <option>22</option>
- <option>23</option>
- </select>点
- <select name="EndTimeMinute">
- <option selected><%=StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"mm")%></option>
- <option>00</option>
- <option>05</option>
- <option>10</option>
- <option>15</option>
- <option>20</option>
- <option>25</option>
- <option >30</option>
- <option>35</option>
- <option>40</option>
- <option>45</option>
- <option>50</option>
- <option>55</option>
- </select>分
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td colspan="3" align="left" valign="middle" nowrap> </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td colspan="3" align="left" valign="middle" nowrap> <input type="submit" value="确定">
- <input type="reset" value="重填">
- <input type="button" value="返回" onclick="history.back();">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>
- <%
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
- history.back();
- </script>
- <%
- }
- }
- %>