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

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. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  7. <title>会议室管理-- GForce OA 2.0</title>
  8. <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
  9. <script language="JavaScript" src="/js/changestyle.js"></script>
  10. <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
  11. <script language="JavaScript" type="text/javascript">
  12. function checkAddCahier()
  13. {
  14.     if(document.AddCahier.MeetingName.value == "")
  15.     {
  16.         alert("请输入会议主题!");
  17.         document.AddCahier.MeetingName.focus();
  18.         return false;
  19.     }
  20.   if(!isDate(document.AddCahier.StartTime.value))
  21.   {
  22.     alert("日期格式错误,请按照“2002-02-18”重新输入!");
  23.     document.AddCahier.StartTime.focus();
  24.     return false;
  25.   }
  26.   if(!isDate(document.AddCahier.EndTime.value))
  27.   {
  28.     alert("日期格式错误,请按照“2002-02-18”重新输入!");
  29.     document.AddCahier.EndTime.focus();
  30.     return false;
  31.   }
  32.   document.AddCahier.StartTime.value += " " + document.AddCahier.StartTimeHour.options[document.AddCahier.StartTimeHour.selectedIndex].text + ":" +
  33.   document.AddCahier.StartTimeMinute.options[document.AddCahier.StartTimeMinute.selectedIndex].text + ":00";
  34.   document.AddCahier.EndTime.value += " " + document.AddCahier.EndTimeHour.options[document.AddCahier.EndTimeHour.selectedIndex].text  + ":" +
  35.   document.AddCahier.EndTimeMinute.options[document.AddCahier.EndTimeMinute.selectedIndex].text  + ":00";
  36.     for(var i=0;i<document.AddCahier.AccessoriesList.length;i++)
  37.     {
  38.       if(document.AddCahier.AccessoriesList.options[i].value.length>1)
  39.       {
  40.         document.AddCahier.AccessoriesNames.value += "," + document.AddCahier.AccessoriesList.options[i].text;
  41.         document.AddCahier.AccessoriesURLs.value += "," + document.AddCahier.AccessoriesList.options[i].value;
  42.       }
  43.     }
  44. }
  45. </script>
  46. <style type="text/css">
  47. <!--
  48. .imgtd {
  49.     border: 1px solid #0A0A0A;
  50. }
  51. -->
  52. </style>
  53. </head>
  54. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  55. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  56.     <tr>
  57.         <td align="center" valign="top"><p>&nbsp;</p><p><strong>新增会议纪要信息</strong></p>
  58. <%
  59. Request m_request = new Request(request);
  60. int intUserID = m_session.GetInt("UserID");
  61. %>
  62.         <form name="AddCahier" action="AddCahierAction.jsp" method="post" onSubmit="javascript:return checkAddCahier();">
  63.         <table border="1" cellpadding="0" cellspacing="0" width="96%">
  64.           <tr>
  65.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">会议申请:</font></td>
  66.             <td colspan="3" align="left" valign="middle" nowrap>
  67.             <select name="BoardroomApplyID">
  68. <%
  69. Vector vt = BoardroomApplyManager.getRecordByApplyed(0);
  70. if (vt.size() > 0)
  71. {
  72.    for (int i = 0; i < vt.size(); i++)
  73.    {
  74.        if (i == 0 )
  75.   out.println("<option value="" + ((Vector)vt.get(i)).get(0).toString() +  "" selected>" + ((Vector)vt.get(i)).get(1).toString() +  "</option>");else
  76.   out.println("<option value="" + ((Vector)vt.get(i)).get(0).toString() +  "">" + ((Vector)vt.get(i)).get(1).toString() +  "</option>");
  77.    }
  78. }
  79. %>
  80.             </select>
  81.             </td>
  82.           </tr>
  83.           <tr>
  84.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">会议室:</font></td>
  85.             <td colspan="3" align="left" valign="middle" nowrap>
  86.             <select name="BoardroomID">
  87. <%
  88. vt = BoardroomManager.getAllRecord();
  89. if (vt.size() > 0)
  90. {
  91.    for (int i = 0; i < vt.size(); i++)
  92.    {
  93.        if (i == 0 )
  94.   out.println("<option value="" + ((Vector)vt.get(i)).get(0).toString() +  "" selected>" + ((Vector)vt.get(i)).get(1).toString() +  "</option>");else
  95.   out.println("<option value="" + ((Vector)vt.get(i)).get(0).toString() +  "">" + ((Vector)vt.get(i)).get(1).toString() +  "</option>");
  96.    }
  97. }
  98. %>
  99.             </select>
  100.             </td>
  101.           </tr>
  102.           <tr>
  103.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">会议编号:</font></td>
  104.             <td colspan="3" align="left" valign="middle" nowrap>
  105.             <input name="MeetingNumber" type="text" maxlength="60" size="20">
  106.             </td>
  107.           </tr>
  108.           <tr>
  109.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">会议主题:</font></td>
  110.             <td colspan="3" align="left" valign="middle" nowrap>
  111.             <input name="MeetingName" type="text" maxlength="60" size="60">
  112.             </td>
  113.           </tr>
  114.           <tr>
  115.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">开始时间:</font></td>
  116.             <td colspan="3" align="left" valign="middle" nowrap>
  117.             <%java.util.Date t_Date = new java.util.Date();%>
  118.             <input name="StartTime" type="text" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="10" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
  119.             <select name="StartTimeHour">
  120.                     <option>00</option>
  121.                     <option>01</option>
  122.                     <option>02</option>
  123.                     <option>03</option>
  124.                     <option>04</option>
  125.                     <option>05</option>
  126.                     <option>06</option>
  127.                     <option>07</option>
  128.                     <option selected>08</option>
  129.                     <option>09</option>
  130.                     <option>10</option>
  131.                     <option>11</option>
  132.                     <option>12</option>
  133.                     <option>13</option>
  134.                     <option>14</option>
  135.                     <option>15</option>
  136.                     <option>16</option>
  137.                     <option>17</option>
  138.                     <option>18</option>
  139.                     <option>19</option>
  140.                     <option>20</option>
  141.                     <option>21</option>
  142.                     <option>22</option>
  143.                     <option>23</option>
  144.                   </select>点
  145.                   <select name="StartTimeMinute">
  146.                     <option selected>00</option>
  147.                     <option>05</option>
  148.                     <option>10</option>
  149.                     <option>15</option>
  150.                     <option>20</option>
  151.                     <option>25</option>
  152.                     <option>30</option>
  153.                     <option>35</option>
  154.                     <option>40</option>
  155.                     <option>45</option>
  156.                     <option>50</option>
  157.                     <option>55</option>
  158.                   </select>分
  159.             </td>
  160.           </tr>
  161.           <tr>
  162.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">结束时间:</font></td>
  163.             <td colspan="3" align="left" valign="middle" nowrap>
  164.             <input name="EndTime" type="text" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="10" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
  165.             <select name="EndTimeHour">
  166.                     <option>00</option>
  167.                     <option>01</option>
  168.                     <option>02</option>
  169.                     <option>03</option>
  170.                     <option>04</option>
  171.                     <option>05</option>
  172.                     <option>06</option>
  173.                     <option>07</option>
  174.                     <option selected>08</option>
  175.                     <option>09</option>
  176.                     <option>10</option>
  177.                     <option>11</option>
  178.                     <option>12</option>
  179.                     <option>13</option>
  180.                     <option>14</option>
  181.                     <option>15</option>
  182.                     <option>16</option>
  183.                     <option>17</option>
  184.                     <option>18</option>
  185.                     <option>19</option>
  186.                     <option>20</option>
  187.                     <option>21</option>
  188.                     <option>22</option>
  189.                     <option>23</option>
  190.                   </select>点
  191.                   <select name="EndTimeMinute">
  192.                     <option>00</option>
  193.                     <option>05</option>
  194.                     <option>10</option>
  195.                     <option>15</option>
  196.                     <option>20</option>
  197.                     <option>25</option>
  198.                     <option selected>30</option>
  199.                     <option>35</option>
  200.                     <option>40</option>
  201.                     <option>45</option>
  202.                     <option>50</option>
  203.                     <option>55</option>
  204.                   </select>分
  205.             </td>
  206.           </tr>
  207.           <tr>
  208.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">主持人:</font></td>
  209.             <td colspan="3" align="left" valign="middle" nowrap>
  210.             <input name="Compere" type="text" maxlength="60" size="20">
  211.             </td>
  212.           </tr>
  213.           <tr>
  214.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">参会人员:</font></td>
  215.             <td colspan="2" align="left" valign="middle" nowrap>
  216.             <textarea name="ConfereeUserID" cols="60" rows="3" ondblclick="GetUserNames(this);" style="width:100%;"></textarea>
  217.             <input name="NoteUserID" type="hidden" value="<%=intUserID%>">
  218.             </td>
  219.             <td width="5%" align="left" valign="middle" nowrap>
  220.             <a href="" onclick="GetUserNames(document.AddCahier.ConfereeUserID);return false;" title="选择员工名称"><img src="/images/couple.gif" border="0"></a>
  221.             </td>
  222.           </tr>
  223.           <tr>
  224.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">会议说明:</font></td>
  225.             <td colspan="3" align="left" valign="middle" nowrap>
  226.             <textarea name="MeetingContent" cols="60" rows="5"></textarea>
  227.             </td>
  228.           </tr>
  229.           <tr>
  230.             <td width="15%" align="right" valign="middle" nowrap><font color="#0A0A0A">允许查看的部门:</font></td>
  231.             <td colspan="2" align="left" valign="middle" nowrap>
  232.               <textarea name="AllowableDepartNames" cols="60" rows="3" readonly="true" onDblClick="GetDepartIDAndNames(document.AddCahier.AllowableDepartIDs,this);" style="width:100%;"></textarea>
  233.               <input name="AllowableDepartIDs" type="hidden" value="">
  234.             </td>
  235.             <td width="5%" align="left" valign="middle" nowrap>
  236.             <a href="" onclick="GetDepartIDAndNames(document.AddCahier.AllowableDepartIDs, document.AddCahier.AllowableDepartNames);return false;" title="选择部门"><img src="/images/couple.gif" border="0"></a>
  237.             </td>
  238.           </tr>
  239.           <tr>
  240.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">允许查看的员工:</font></td>
  241.             <td colspan="2" align="left" valign="middle" nowrap>
  242.             <textarea name="AllowableUserNames" cols="60" rows="3" readonly="true" onDblClick="GetUserIDAndNames(document.AddCahier.AllowableUserIDs,this);" style="width:100%;"></textarea>
  243.             <input name="AllowableUserIDs" type="hidden" value="">
  244.             </td>
  245.             <td width="5%" align="left" valign="middle" nowrap>
  246.             <a href="" onclick="GetUserIDAndNames(document.AddCahier.AllowableUserIDs,document.AddCahier.AllowableUserNames);return false;" title="选择员工"><img src="/images/couple.gif" border="0"></a>
  247.             </td>
  248.           </tr>
  249.           <tr>
  250.             <td align="right" valign="middle">附 件:</td>
  251.             <td valign="middle" align="left" colspan="3">
  252.                <table border="0" cellspacing="0" width="100%">
  253.                 <tr>
  254.                   <td align="left">
  255.                     <select name="AccessoriesList" size="4" multiple style="width:100%;">
  256.                     </select>
  257.                   </td>
  258.                    <td width="15%" align="center" valign="middle">
  259.                     <input type="button" onClick="AddAccessories(document.AddCahier.AccessoriesList);" value="新增附件"><br>
  260.                     <input type="button" onClick="DelAccessories(document.AddCahier.AccessoriesList);" value="删除附件">
  261.                     <input name="AccessoriesNames" type="hidden">
  262.                     <input name="AccessoriesURLs" type="hidden">
  263.                   </td>
  264.                 </tr>
  265.               </table>
  266.             </td>
  267.           </tr>
  268.           <!--
  269.           <tr>
  270.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">纪要主题:</font></td>
  271.             <td colspan="3" align="left" valign="middle" nowrap>
  272.             <input name="SummaryTitle" type="text" maxlength="60" size="71">
  273.             </td>
  274.           </tr>
  275.           -->
  276.           <tr>
  277.             <td width="15%" align="right" valign="middle" nowrap><font color="#0A0A0A">会议纪要:</font></td>
  278.             <td colspan="3" align="left" valign="middle" nowrap>
  279.             <IFRAME ID="WebEditor1" src="/WebEditor/WebEditor.jsp?id=SummaryContent" frameborder="0" scrolling="no" width="550" height="350"></IFRAME>
  280.             <textarea id="SummaryContent" name="SummaryContent" cols="60" rows="15" style="display:none"></textarea>
  281.             </td>
  282.           </tr>
  283.           <tr>
  284.             <td width="15%" align="right" valign="middle">&nbsp;</td>
  285.             <td colspan="3" align="left" valign="middle" nowrap> <input type="submit" value="确定">
  286.               &nbsp;&nbsp;&nbsp; <input type="reset" value="重填"> &nbsp;&nbsp;&nbsp;
  287.               <input type="button" value="返回" onclick="window.location='CahierManage.jsp';">
  288.             </td>
  289.           </tr>
  290.         </table>
  291.        </form>
  292.      </td>
  293.     </tr>
  294. </table>
  295. </body>
  296. </html>