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

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