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

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 intBoardroomID = m_request.GetInt("ID");
  7. if(intBoardroomID < 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 = BoardroomManager.getRecordByID(intBoardroomID);
  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 checkEditBoardroom()
  31. {
  32.     if(document.EditBoardroom.BoardroomName.value=="")
  33.     {
  34.         alert("请输入会议名称!");
  35.         document.EditBoardroom.BoardroomName.focus();
  36.         return false;
  37.     }
  38.     if (document.EditBoardroom.PersonnelAmount.value != "")
  39.     if(isNaN(parseInt(document.EditBoardroom.PersonnelAmount.value,10)))
  40.     {
  41.       alert("请输入正确的容纳人数!");
  42.       document.EditBoardroom.PersonnelAmount.select();
  43.       document.EditBoardroom.PersonnelAmount.focus();
  44.       return false;
  45.     }
  46. }
  47. </script>
  48. <style type="text/css">
  49. <!--
  50. .imgtd {
  51.     border: 1px solid #0A0A0A;
  52. }
  53. -->
  54. </style>
  55. </head>
  56. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  57. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  58.      <tr>
  59.         <td align="center" valign="top"><p>&nbsp;</p>
  60.         <form name="EditBoardroom" action="EditBoardroomAction.jsp" method="post" onSubmit="javascript:return checkEditBoardroom();">
  61.         <table  border="0" cellpadding="0" cellspacing="0" width="90%">
  62.           <tr>
  63.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">会议室编号:</font></td>
  64.             <td colspan="3" align="left" valign="middle" nowrap>
  65.             <input name="ID" type="hidden" value="<%=((Vector)vt.get(0)).get(0).toString()%>">
  66.             <input name="BoardroomNumber" type="text" maxlength="60" size="20" value="<%=((Vector)vt.get(0)).get(2).toString()%>">
  67.             </td>
  68.           </tr>
  69.           <tr>
  70.             <td width="100" align="right" valign="middle"><font color="#0A0A0A">会议室名称:</font></td>
  71.             <td colspan="3" align="left" valign="middle" nowrap>
  72.             <input name="BoardroomName" type="text" maxlength="60" size="20" value="<%=((Vector)vt.get(0)).get(1).toString()%>">
  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 name="Address" type="text" maxlength="60" size="40" value="<%=((Vector)vt.get(0)).get(3).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 name="PersonnelAmount" type="text" maxlength="5" size="5" value="<%=((Vector)vt.get(0)).get(4).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.             <select name="IsUseful">
  91. <%
  92.            String strSel1 = "";
  93.            String strSel2 = "";
  94.           if (((Vector)vt.get(0)).get(5).toString().equalsIgnoreCase("true"))
  95.           strSel1 = "selected"; else
  96.           strSel2 = "selected";
  97. %>
  98.             <option value="1" <%=strSel1%>>可用</option>
  99.             <option value="0" <%=strSel2%>>不可用</option>
  100.             </select>
  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="State" type="text" maxlength="60" size="20" value="<%=((Vector)vt.get(0)).get(6).toString()%>">
  107.             </td>
  108.           </tr>
  109.           <tr>
  110.             <td align="right" valign="middle">&nbsp;</td>
  111.             <td colspan="3" align="left" valign="middle" nowrap> </td>
  112.           </tr>
  113.           <tr>
  114.             <td align="right" valign="middle">&nbsp;</td>
  115.             <td colspan="3" align="left" valign="middle" nowrap> <input type="submit" value="确定">
  116.               &nbsp;&nbsp;&nbsp; <input type="reset" value="重填"> &nbsp;&nbsp;&nbsp;
  117.               <input type="button" value="返回" onclick="window.location='BoardroomManage.jsp';">
  118.             </td>
  119.           </tr>
  120.         </table>
  121.         </form>
  122.         </td>
  123.     </tr>
  124. </table>
  125. </body>
  126. </html>
  127. <%
  128. }
  129. else
  130. {
  131. %>
  132. <script language="JavaScript" type="text/JavaScript">
  133. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  134. history.back();
  135. </script>
  136. <%
  137. }
  138. }
  139. %>