EditCahier.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:17k
源码类别:
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 intCahierID = m_request.GetInt("ID");
- if(intCahierID < 1)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("请选择正确的会议室,修改失败!");
- history.back();
- </script>
- <%
- }
- else
- {
- Vector vt = CahierManager.getRecordByID(intCahierID);
- 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 checkEditCahier()
- {
- if(document.EditCahier.MeetingName.value == "")
- {
- alert("请输入会议主题!");
- document.EditCahier.MeetingName.focus();
- return false;
- }
- /*
- if(document.EditCahier.SummaryTitle.value == "")
- {
- alert("请输入纪要标题!");
- document.EditCahier.SummaryTitle.focus();
- return false;
- }
- */
- if(!isDate(document.EditCahier.StartTime.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.EditCahier.StartTime.focus();
- return false;
- }
- if(!isDate(document.EditCahier.EndTime.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.EditCahier.EndTime.focus();
- return false;
- }
- document.EditCahier.StartTime.value += " " + document.EditCahier.StartTimeHour.options[document.EditCahier.StartTimeHour.selectedIndex].text + ":" +
- document.EditCahier.StartTimeMinute.options[document.EditCahier.StartTimeMinute.selectedIndex].text + ":00";
- document.EditCahier.EndTime.value += " " + document.EditCahier.EndTimeHour.options[document.EditCahier.EndTimeHour.selectedIndex].text + ":" +
- document.EditCahier.EndTimeMinute.options[document.EditCahier.EndTimeMinute.selectedIndex].text + ":00";
- for(var i=0;i<document.EditCahier.AccessoriesList.length;i++)
- {
- if(document.EditCahier.AccessoriesList.options[i].value.length>1)
- {
- document.EditCahier.AccessoriesNames.value += "," + document.EditCahier.AccessoriesList.options[i].text;
- document.EditCahier.AccessoriesURLs.value += "," + document.EditCahier.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>
- <form name="EditCahier" action="EditCahierAction.jsp" method="post" onSubmit="javascript:return checkEditCahier();">
- <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 vtApply = BoardroomApplyManager.getRecordByApplyed(Integer.parseInt(((Vector)vt.get(0)).get(1).toString()));
- if (vtApply.size() > 0)
- {
- for (int i = 0; i < vtApply.size(); i++)
- {
- if (((Vector)vtApply.get(i)).get(0).toString().equalsIgnoreCase(((Vector)vt.get(0)).get(1).toString()))
- out.println("<option value="" + ((Vector)vtApply.get(i)).get(0).toString() + "" selected>" + ((Vector)vtApply.get(i)).get(1).toString() + "</option>");else
- out.println("<option value="" + ((Vector)vtApply.get(i)).get(0).toString() + "">" + ((Vector)vtApply.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">
- <%
- Vector vtBoardroom = BoardroomManager.getAllRecord();
- if (vtBoardroom.size() > 0)
- {
- for (int i = 0; i < vtBoardroom.size(); i++)
- {
- if (((Vector)vtBoardroom.get(i)).get(0).toString().equalsIgnoreCase(((Vector)vt.get(0)).get(8).toString()))
- out.println("<option value="" + ((Vector)vtBoardroom.get(i)).get(0).toString() + "" selected>" + ((Vector)vtBoardroom.get(i)).get(1).toString() + "</option>");else
- out.println("<option value="" + ((Vector)vtBoardroom.get(i)).get(0).toString() + "">" + ((Vector)vtBoardroom.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" value="<%=((Vector)vt.get(0)).get(2).toString()%>">
- </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" value="<%=((Vector)vt.get(0)).get(3).toString()%>">
- </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" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(4).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">
- <%out.println("<option selected>" + StringNew.GetDateString(((Vector)vt.get(0)).get(4).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">
- <%out.println("<option selected>" + StringNew.GetDateString(((Vector)vt.get(0)).get(4).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="15%" align="right" valign="middle"><font color="#0A0A0A">结束时间:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="EndTime" type="text" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(5).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">
- <%out.println("<option selected>" + StringNew.GetDateString(((Vector)vt.get(0)).get(5).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">
- <%out.println("<option selected>" + StringNew.GetDateString(((Vector)vt.get(0)).get(5).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="15%" align="right" valign="middle"><font color="#0A0A0A">主持人:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="Compere" type="text" value="<%=((Vector)vt.get(0)).get(6).toString()%>" 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%;"><%=((Vector)vt.get(0)).get(9).toString()%></textarea>
- <input name="NoteUserID" type="hidden" value="<%=((Vector)vt.get(0)).get(10).toString()%>">
- </td>
- <td width="5%" align="left" valign="middle" nowrap>
- <a href="" onclick="GetUserNames(document.EditCahier.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"><%=((Vector)vt.get(0)).get(7).toString()%></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.EditCahier.AllowableDepartIDs,this);" style="width:100%;"><%=DepartmentManager.getDepartNamesByIDs(((Vector)vt.get(0)).get(14).toString())%></textarea>
- <input name="AllowableDepartIDs" type="hidden" value="<%=((Vector)vt.get(0)).get(14).toString()%>">
- </td>
- <td width="5%" align="left" valign="middle" nowrap>
- <a href="" onclick="GetDepartIDAndNames(document.EditCahier.AllowableDepartIDs, document.EditCahier.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.EditCahier.AllowableUserIDs,this);" style="width:100%;"><%=UserManager.getPersonnelNamesByUserIDs(((Vector)vt.get(0)).get(13).toString())%></textarea>
- <input name="AllowableUserIDs" type="hidden" value="<%=((Vector)vt.get(0)).get(13).toString()%>">
- </td>
- <td width="5%" align="left" valign="middle" nowrap>
- <a href="" onclick="GetUserIDAndNames(document.EditCahier.AllowableUserIDs,document.EditCahier.AllowableUserNames);return false;" title="选择员工"><img src="/images/couple.gif" border="0"></a>
- </td>
- </tr>
- <tr>
- <td width="15%" align="right" valign="middle">附 件:</td>
- <td valign="middle" align="left">
- <table width="100%" border="0" cellspacing="0">
- <tr>
- <td style="width:100%;" align="left">
- <select name="AccessoriesList" size="4" multiple style="width:100%;">
- <%
- Vector vArticle = ArticleAttManager.getAttInfo(intCahierID,"CahierInfo");
- if (vArticle.size() > 0)
- {
- for (int j = 0;j < vArticle.size();j++)
- {
- out.println("<option value="" + ((Vector)vArticle.get(j)).get(2).toString() + "">" + ((Vector)vArticle.get(j)).get(1).toString() + "</option>");
- }
- }
- %>
- </select>
- </td>
- <td width="50%" align="left" valign="top">
- <%
- if (vArticle.size() > 0)
- {
- for (int j = 0;j < vArticle.size();j++)
- {
- out.println("<a href="" + ((Vector)vArticle.get(j)).get(2).toString() + "" target="_blank">" + ((Vector)vArticle.get(j)).get(1).toString() + "</a><br>");
- }
- }
- %>
- </td>
- <td width="15%" align="center" valign="middle">
- <input type="button" onClick="AddAccessories(document.EditCahier.AccessoriesList);" value="新增附件"><br>
- <input type="button" onClick="DelAccessories(document.EditCahier.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" value="<%=((Vector)vt.get(0)).get(11).toString()%>">
- </td>
- </tr>
- -->
- <tr>
- <td width="15%" align="right" valign="middle"><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"><%=((Vector)vt.get(0)).get(12).toString()%></textarea>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td colspan="3" align="left" valign="middle" nowrap> </td>
- <input name="ID" type="hidden" value="<%=((Vector)vt.get(0)).get(0).toString()%>">
- </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="window.location='CahierManage.jsp';">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>
- <%
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
- history.back();
- </script>
- <%
- }
- }
- %>