AddCahier.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:14k
源码类别:
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); %>
- <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="/js/changestyle.js"></script>
- <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
- <script language="JavaScript" type="text/javascript">
- function checkAddCahier()
- {
- if(document.AddCahier.MeetingName.value == "")
- {
- alert("请输入会议主题!");
- document.AddCahier.MeetingName.focus();
- return false;
- }
- if(!isDate(document.AddCahier.StartTime.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.AddCahier.StartTime.focus();
- return false;
- }
- if(!isDate(document.AddCahier.EndTime.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.AddCahier.EndTime.focus();
- return false;
- }
- document.AddCahier.StartTime.value += " " + document.AddCahier.StartTimeHour.options[document.AddCahier.StartTimeHour.selectedIndex].text + ":" +
- document.AddCahier.StartTimeMinute.options[document.AddCahier.StartTimeMinute.selectedIndex].text + ":00";
- document.AddCahier.EndTime.value += " " + document.AddCahier.EndTimeHour.options[document.AddCahier.EndTimeHour.selectedIndex].text + ":" +
- document.AddCahier.EndTimeMinute.options[document.AddCahier.EndTimeMinute.selectedIndex].text + ":00";
- for(var i=0;i<document.AddCahier.AccessoriesList.length;i++)
- {
- if(document.AddCahier.AccessoriesList.options[i].value.length>1)
- {
- document.AddCahier.AccessoriesNames.value += "," + document.AddCahier.AccessoriesList.options[i].text;
- document.AddCahier.AccessoriesURLs.value += "," + document.AddCahier.AccessoriesList.options[i].value;
- }
- }
- }
- </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><p><strong>新增会议纪要信息</strong></p>
- <%
- Request m_request = new Request(request);
- int intUserID = m_session.GetInt("UserID");
- %>
- <form name="AddCahier" action="AddCahierAction.jsp" method="post" onSubmit="javascript:return checkAddCahier();">
- <table border="1" cellpadding="0" cellspacing="0" width="96%">
- <tr>
- <td width="15%" align="right" valign="middle"><font color="#0A0A0A">会议申请:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <select name="BoardroomApplyID">
- <%
- Vector vt = BoardroomApplyManager.getRecordByApplyed(0);
- if (vt.size() > 0)
- {
- for (int i = 0; i < vt.size(); i++)
- {
- if (i == 0 )
- out.println("<option value="" + ((Vector)vt.get(i)).get(0).toString() + "" selected>" + ((Vector)vt.get(i)).get(1).toString() + "</option>");else
- out.println("<option value="" + ((Vector)vt.get(i)).get(0).toString() + "">" + ((Vector)vt.get(i)).get(1).toString() + "</option>");
- }
- }
- %>
- </select>
- </td>
- </tr>
- <tr>
- <td width="15%" align="right" valign="middle"><font color="#0A0A0A">会议室:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <select name="BoardroomID">
- <%
- vt = BoardroomManager.getAllRecord();
- if (vt.size() > 0)
- {
- for (int i = 0; i < vt.size(); i++)
- {
- if (i == 0 )
- out.println("<option value="" + ((Vector)vt.get(i)).get(0).toString() + "" selected>" + ((Vector)vt.get(i)).get(1).toString() + "</option>");else
- out.println("<option value="" + ((Vector)vt.get(i)).get(0).toString() + "">" + ((Vector)vt.get(i)).get(1).toString() + "</option>");
- }
- }
- %>
- </select>
- </td>
- </tr>
- <tr>
- <td width="15%" align="right" valign="middle"><font color="#0A0A0A">会议编号:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="MeetingNumber" type="text" maxlength="60" size="20">
- </td>
- </tr>
- <tr>
- <td width="15%" align="right" valign="middle"><font color="#0A0A0A">会议主题:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="MeetingName" type="text" maxlength="60" size="60">
- </td>
- </tr>
- <tr>
- <td width="15%" align="right" valign="middle"><font color="#0A0A0A">开始时间:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <%java.util.Date t_Date = new java.util.Date();%>
- <input name="StartTime" type="text" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="10" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
- <select name="StartTimeHour">
- <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 selected>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>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="15%" align="right" valign="middle"><font color="#0A0A0A">结束时间:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="EndTime" type="text" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="10" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
- <select name="EndTimeHour">
- <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 selected>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>00</option>
- <option>05</option>
- <option>10</option>
- <option>15</option>
- <option>20</option>
- <option>25</option>
- <option selected>30</option>
- <option>35</option>
- <option>40</option>
- <option>45</option>
- <option>50</option>
- <option>55</option>
- </select>分
- </td>
- </tr>
- <tr>
- <td width="15%" align="right" valign="middle"><font color="#0A0A0A">主持人:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="Compere" type="text" maxlength="60" size="20">
- </td>
- </tr>
- <tr>
- <td width="15%" align="right" valign="middle"><font color="#0A0A0A">参会人员:</font></td>
- <td colspan="2" align="left" valign="middle" nowrap>
- <textarea name="ConfereeUserID" cols="60" rows="3" ondblclick="GetUserNames(this);" style="width:100%;"></textarea>
- <input name="NoteUserID" type="hidden" value="<%=intUserID%>">
- </td>
- <td width="5%" align="left" valign="middle" nowrap>
- <a href="" onclick="GetUserNames(document.AddCahier.ConfereeUserID);return false;" title="选择员工名称"><img src="/images/couple.gif" border="0"></a>
- </td>
- </tr>
- <tr>
- <td width="15%" align="right" valign="middle"><font color="#0A0A0A">会议说明:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <textarea name="MeetingContent" cols="60" rows="5"></textarea>
- </td>
- </tr>
- <tr>
- <td width="15%" align="right" valign="middle" nowrap><font color="#0A0A0A">允许查看的部门:</font></td>
- <td colspan="2" align="left" valign="middle" nowrap>
- <textarea name="AllowableDepartNames" cols="60" rows="3" readonly="true" onDblClick="GetDepartIDAndNames(document.AddCahier.AllowableDepartIDs,this);" style="width:100%;"></textarea>
- <input name="AllowableDepartIDs" type="hidden" value="">
- </td>
- <td width="5%" align="left" valign="middle" nowrap>
- <a href="" onclick="GetDepartIDAndNames(document.AddCahier.AllowableDepartIDs, document.AddCahier.AllowableDepartNames);return false;" title="选择部门"><img src="/images/couple.gif" border="0"></a>
- </td>
- </tr>
- <tr>
- <td width="15%" align="right" valign="middle"><font color="#0A0A0A">允许查看的员工:</font></td>
- <td colspan="2" align="left" valign="middle" nowrap>
- <textarea name="AllowableUserNames" cols="60" rows="3" readonly="true" onDblClick="GetUserIDAndNames(document.AddCahier.AllowableUserIDs,this);" style="width:100%;"></textarea>
- <input name="AllowableUserIDs" type="hidden" value="">
- </td>
- <td width="5%" align="left" valign="middle" nowrap>
- <a href="" onclick="GetUserIDAndNames(document.AddCahier.AllowableUserIDs,document.AddCahier.AllowableUserNames);return false;" title="选择员工"><img src="/images/couple.gif" border="0"></a>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle">附 件:</td>
- <td valign="middle" align="left" colspan="3">
- <table border="0" cellspacing="0" width="100%">
- <tr>
- <td align="left">
- <select name="AccessoriesList" size="4" multiple style="width:100%;">
- </select>
- </td>
- <td width="15%" align="center" valign="middle">
- <input type="button" onClick="AddAccessories(document.AddCahier.AccessoriesList);" value="新增附件"><br>
- <input type="button" onClick="DelAccessories(document.AddCahier.AccessoriesList);" value="删除附件">
- <input name="AccessoriesNames" type="hidden">
- <input name="AccessoriesURLs" type="hidden">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <!--
- <tr>
- <td width="15%" align="right" valign="middle"><font color="#0A0A0A">纪要主题:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="SummaryTitle" type="text" maxlength="60" size="71">
- </td>
- </tr>
- -->
- <tr>
- <td width="15%" align="right" valign="middle" nowrap><font color="#0A0A0A">会议纪要:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <IFRAME ID="WebEditor1" src="/WebEditor/WebEditor.jsp?id=SummaryContent" frameborder="0" scrolling="no" width="550" height="350"></IFRAME>
- <textarea id="SummaryContent" name="SummaryContent" cols="60" rows="15" style="display:none"></textarea>
- </td>
- </tr>
- <tr>
- <td width="15%" 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="window.location='CahierManage.jsp';">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>