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

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 intCahierID = m_request.GetInt("ID");
  7. if(intCahierID < 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 = CahierManager.getRecordByID(intCahierID);
  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 checkEditCahier()
  31. {
  32.     if(document.EditCahier.MeetingName.value == "")
  33.     {
  34.         alert("请输入会议主题!");
  35.         document.EditCahier.MeetingName.focus();
  36.         return false;
  37.     }
  38. /*
  39.     if(document.EditCahier.SummaryTitle.value == "")
  40.     {
  41.         alert("请输入纪要标题!");
  42.         document.EditCahier.SummaryTitle.focus();
  43.         return false;
  44.     }
  45. */
  46.   if(!isDate(document.EditCahier.StartTime.value))
  47.   {
  48.     alert("日期格式错误,请按照“2002-02-18”重新输入!");
  49.     document.EditCahier.StartTime.focus();
  50.     return false;
  51.   }
  52.   if(!isDate(document.EditCahier.EndTime.value))
  53.   {
  54.     alert("日期格式错误,请按照“2002-02-18”重新输入!");
  55.     document.EditCahier.EndTime.focus();
  56.     return false;
  57.   }
  58.   document.EditCahier.StartTime.value += " " + document.EditCahier.StartTimeHour.options[document.EditCahier.StartTimeHour.selectedIndex].text + ":" +
  59.   document.EditCahier.StartTimeMinute.options[document.EditCahier.StartTimeMinute.selectedIndex].text + ":00";
  60.   document.EditCahier.EndTime.value += " " + document.EditCahier.EndTimeHour.options[document.EditCahier.EndTimeHour.selectedIndex].text  + ":" +
  61.   document.EditCahier.EndTimeMinute.options[document.EditCahier.EndTimeMinute.selectedIndex].text  + ":00";
  62.     for(var i=0;i<document.EditCahier.AccessoriesList.length;i++)
  63.     {
  64.       if(document.EditCahier.AccessoriesList.options[i].value.length>1)
  65.       {
  66.         document.EditCahier.AccessoriesNames.value += "," + document.EditCahier.AccessoriesList.options[i].text;
  67.         document.EditCahier.AccessoriesURLs.value += "," + document.EditCahier.AccessoriesList.options[i].value;
  68.       }
  69.     }
  70. }
  71. </script>
  72. <style type="text/css">
  73. <!--
  74. .imgtd {
  75.     border: 1px solid #0A0A0A;
  76. }
  77. -->
  78. </style>
  79. </head>
  80. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  81. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  82.      <tr>
  83.         <td align="center" valign="top"><p>&nbsp;</p><p><strong>修改会议纪要信息</strong></p>
  84.         <form name="EditCahier" action="EditCahierAction.jsp" method="post" onSubmit="javascript:return checkEditCahier();">
  85.         <table  border="1" cellpadding="0" cellspacing="0" width="96%">
  86.           <tr>
  87.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">会议申请:</font></td>
  88.             <td colspan="3" align="left" valign="middle" nowrap>
  89.             <select name="BoardroomApplyID">
  90. <%
  91. Vector vtApply = BoardroomApplyManager.getRecordByApplyed(Integer.parseInt(((Vector)vt.get(0)).get(1).toString()));
  92. if (vtApply.size() > 0)
  93. {
  94.    for (int i = 0; i < vtApply.size(); i++)
  95.    {
  96.    if (((Vector)vtApply.get(i)).get(0).toString().equalsIgnoreCase(((Vector)vt.get(0)).get(1).toString()))
  97.   out.println("<option value="" + ((Vector)vtApply.get(i)).get(0).toString() +  "" selected>" + ((Vector)vtApply.get(i)).get(1).toString() +  "</option>");else
  98.   out.println("<option value="" + ((Vector)vtApply.get(i)).get(0).toString() +  "">" + ((Vector)vtApply.get(i)).get(1).toString() +  "</option>");
  99.    }
  100. }
  101. %>
  102.             </select>
  103.             </td>
  104.           </tr>
  105.           <tr>
  106.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">会议室:</font></td>
  107.             <td colspan="3" align="left" valign="middle" nowrap>
  108.             <select name="BoardroomID">
  109. <%
  110. Vector vtBoardroom = BoardroomManager.getAllRecord();
  111. if (vtBoardroom.size() > 0)
  112. {
  113.    for (int i = 0; i < vtBoardroom.size(); i++)
  114.    {
  115.     if (((Vector)vtBoardroom.get(i)).get(0).toString().equalsIgnoreCase(((Vector)vt.get(0)).get(8).toString()))
  116.      out.println("<option value="" + ((Vector)vtBoardroom.get(i)).get(0).toString() +  "" selected>" + ((Vector)vtBoardroom.get(i)).get(1).toString() +  "</option>");else
  117.      out.println("<option value="" + ((Vector)vtBoardroom.get(i)).get(0).toString() +  "">" + ((Vector)vtBoardroom.get(i)).get(1).toString() +  "</option>");
  118.    }
  119. }
  120. %>
  121.             </select>
  122.             </td>
  123.           </tr>
  124.           <tr>
  125.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">会议编号:</font></td>
  126.             <td colspan="3" align="left" valign="middle" nowrap>
  127.             <input name="MeetingNumber" type="text" maxlength="60" size="20" value="<%=((Vector)vt.get(0)).get(2).toString()%>">
  128.             </td>
  129.           </tr>
  130.           <tr>
  131.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">会议主题:</font></td>
  132.             <td colspan="3" align="left" valign="middle" nowrap>
  133.             <input name="MeetingName" type="text" maxlength="60" size="60" value="<%=((Vector)vt.get(0)).get(3).toString()%>">
  134.             </td>
  135.           </tr>
  136.           <tr>
  137.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">开始时间:</font></td>
  138.             <td colspan="3" align="left" valign="middle" nowrap>
  139.             <%java.util.Date t_Date = new java.util.Date();%>
  140.             <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);">
  141.             <select name="StartTimeHour">
  142.             <%out.println("<option selected>" + StringNew.GetDateString(((Vector)vt.get(0)).get(4).toString(),"HH") + "</option>");%>
  143.                     <option>00</option>
  144.                     <option>01</option>
  145.                     <option>02</option>
  146.                     <option>03</option>
  147.                     <option>04</option>
  148.                     <option>05</option>
  149.                     <option>06</option>
  150.                     <option>07</option>
  151.                     <option>08</option>
  152.                     <option>09</option>
  153.                     <option>10</option>
  154.                     <option>11</option>
  155.                     <option>12</option>
  156.                     <option>13</option>
  157.                     <option>14</option>
  158.                     <option>15</option>
  159.                     <option>16</option>
  160.                     <option>17</option>
  161.                     <option>18</option>
  162.                     <option>19</option>
  163.                     <option>20</option>
  164.                     <option>21</option>
  165.                     <option>22</option>
  166.                     <option>23</option>
  167.                   </select>点
  168.                   <select name="StartTimeMinute">
  169.                   <%out.println("<option selected>" + StringNew.GetDateString(((Vector)vt.get(0)).get(4).toString(),"mm") + "</option>");%>
  170.                     <option>00</option>
  171.                     <option>05</option>
  172.                     <option>10</option>
  173.                     <option>15</option>
  174.                     <option>20</option>
  175.                     <option>25</option>
  176.                     <option>30</option>
  177.                     <option>35</option>
  178.                     <option>40</option>
  179.                     <option>45</option>
  180.                     <option>50</option>
  181.                     <option>55</option>
  182.                   </select>分
  183.             </td>
  184.           </tr>
  185.           <tr>
  186.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">结束时间:</font></td>
  187.             <td colspan="3" align="left" valign="middle" nowrap>
  188.             <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);">
  189.             <select name="EndTimeHour">
  190.             <%out.println("<option selected>" + StringNew.GetDateString(((Vector)vt.get(0)).get(5).toString(),"HH") + "</option>");%>
  191.                     <option>00</option>
  192.                     <option>01</option>
  193.                     <option>02</option>
  194.                     <option>03</option>
  195.                     <option>04</option>
  196.                     <option>05</option>
  197.                     <option>06</option>
  198.                     <option>07</option>
  199.                     <option>08</option>
  200.                     <option>09</option>
  201.                     <option>10</option>
  202.                     <option>11</option>
  203.                     <option>12</option>
  204.                     <option>13</option>
  205.                     <option>14</option>
  206.                     <option>15</option>
  207.                     <option>16</option>
  208.                     <option>17</option>
  209.                     <option>18</option>
  210.                     <option>19</option>
  211.                     <option>20</option>
  212.                     <option>21</option>
  213.                     <option>22</option>
  214.                     <option>23</option>
  215.                   </select>点
  216.                   <select name="EndTimeMinute">
  217.                   <%out.println("<option selected>" + StringNew.GetDateString(((Vector)vt.get(0)).get(5).toString(),"mm") + "</option>");%>
  218.                     <option>00</option>
  219.                     <option>05</option>
  220.                     <option>10</option>
  221.                     <option>15</option>
  222.                     <option>20</option>
  223.                     <option>25</option>
  224.                     <option>30</option>
  225.                     <option>35</option>
  226.                     <option>40</option>
  227.                     <option>45</option>
  228.                     <option>50</option>
  229.                     <option>55</option>
  230.                   </select>分
  231.             </td>
  232.           </tr>
  233.           <tr>
  234.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">主持人:</font></td>
  235.             <td colspan="3" align="left" valign="middle" nowrap>
  236.             <input name="Compere" type="text"  value="<%=((Vector)vt.get(0)).get(6).toString()%>" maxlength="60" size="20">
  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="ConfereeUserID" cols="60" rows="3" ondblclick="GetUserNames(this);" style="width:100%;"><%=((Vector)vt.get(0)).get(9).toString()%></textarea>
  243.             <input name="NoteUserID" type="hidden" value="<%=((Vector)vt.get(0)).get(10).toString()%>">
  244.             </td>
  245.             <td width="5%" align="left" valign="middle" nowrap>
  246.             <a href="" onclick="GetUserNames(document.EditCahier.ConfereeUserID);return false;" title="选择员工名称"><img src="/images/couple.gif" border="0"></a>
  247.             </td>
  248.           </tr>
  249.           <tr>
  250.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">会议说明:</font></td>
  251.             <td colspan="3" align="left" valign="middle" nowrap>
  252.             <textarea name="MeetingContent" cols="60" rows="5"><%=((Vector)vt.get(0)).get(7).toString()%></textarea>
  253.             </td>
  254.           </tr>
  255.           <tr>
  256.             <td width="15%" align="right" valign="middle" nowrap><font color="#0A0A0A">允许查看的部门:</font></td>
  257.             <td colspan="2" align="left" valign="middle" nowrap>
  258.               <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>
  259.               <input name="AllowableDepartIDs" type="hidden" value="<%=((Vector)vt.get(0)).get(14).toString()%>">
  260.             </td>
  261.             <td width="5%" align="left" valign="middle" nowrap>
  262.             <a href="" onclick="GetDepartIDAndNames(document.EditCahier.AllowableDepartIDs, document.EditCahier.AllowableDepartNames);return false;" title="选择部门"><img src="/images/couple.gif" border="0"></a>
  263.             </td>
  264.           </tr>
  265.           <tr>
  266.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">允许查看的员工:</font></td>
  267.             <td colspan="2" align="left" valign="middle" nowrap>
  268.             <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>
  269.             <input name="AllowableUserIDs" type="hidden" value="<%=((Vector)vt.get(0)).get(13).toString()%>">
  270.             </td>
  271.             <td width="5%" align="left" valign="middle" nowrap>
  272.             <a href="" onclick="GetUserIDAndNames(document.EditCahier.AllowableUserIDs,document.EditCahier.AllowableUserNames);return false;" title="选择员工"><img src="/images/couple.gif" border="0"></a>
  273.             </td>
  274.           </tr>
  275.           <tr>
  276.             <td width="15%" align="right" valign="middle">附    件:</td>
  277.                 <td valign="middle" align="left">
  278.                 <table width="100%" border="0" cellspacing="0">
  279.                   <tr>
  280.                     <td style="width:100%;" align="left">
  281.                     <select name="AccessoriesList" size="4" multiple style="width:100%;">
  282. <%
  283. Vector vArticle = ArticleAttManager.getAttInfo(intCahierID,"CahierInfo");
  284. if (vArticle.size() > 0)
  285. {
  286.   for (int j = 0;j < vArticle.size();j++)
  287.   {
  288.     out.println("<option value="" + ((Vector)vArticle.get(j)).get(2).toString() + "">" + ((Vector)vArticle.get(j)).get(1).toString() + "</option>");
  289.   }
  290. }
  291. %>
  292.                     </select>
  293.                     </td>
  294.                     <td width="50%" align="left" valign="top">
  295. <%
  296. if (vArticle.size() > 0)
  297. {
  298.   for (int j = 0;j < vArticle.size();j++)
  299.   {
  300.     out.println("<a href="" + ((Vector)vArticle.get(j)).get(2).toString() + "" target="_blank">" + ((Vector)vArticle.get(j)).get(1).toString() + "</a><br>");
  301.   }
  302. }
  303. %>
  304.                      </td>
  305.                     <td width="15%" align="center" valign="middle">
  306.                       <input type="button" onClick="AddAccessories(document.EditCahier.AccessoriesList);" value="新增附件"><br>
  307.                       <input type="button" onClick="DelAccessories(document.EditCahier.AccessoriesList);" value="删除附件">
  308.                       <input name="AccessoriesNames" type="hidden">
  309.                       <input name="AccessoriesURLs" type="hidden">
  310.                     </td>
  311.                   </tr>
  312.                 </table>
  313.               </td>
  314.           </tr>
  315.           <!--
  316.           <tr>
  317.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">纪要主题:</font></td>
  318.             <td colspan="3" align="left" valign="middle" nowrap>
  319.             <input name="SummaryTitle" type="text" maxlength="60" size="71" value="<%=((Vector)vt.get(0)).get(11).toString()%>">
  320.             </td>
  321.           </tr>
  322.           -->
  323.           <tr>
  324.             <td width="15%" align="right" valign="middle"><font color="#0A0A0A">会议纪要:</font></td>
  325.             <td colspan="3" align="left" valign="middle" nowrap>
  326.             <IFRAME ID="WebEditor1" src="/WebEditor/WebEditor.jsp?id=SummaryContent" frameborder="0" scrolling="no" width="550" height="350"></IFRAME>
  327.             <textarea id="SummaryContent" name="SummaryContent" cols="60" rows="15" style="display:none"><%=((Vector)vt.get(0)).get(12).toString()%></textarea>
  328.             </td>
  329.           </tr>
  330.           <tr>
  331.             <td align="right" valign="middle">&nbsp;</td>
  332.             <td colspan="3" align="left" valign="middle" nowrap> </td>
  333.             <input name="ID" type="hidden" value="<%=((Vector)vt.get(0)).get(0).toString()%>">
  334.           </tr>
  335.           <tr>
  336.             <td align="right" valign="middle">&nbsp;</td>
  337.             <td colspan="3" align="left" valign="middle" nowrap> <input type="submit" value="确定">
  338.               &nbsp;&nbsp;&nbsp; <input type="reset" value="重填"> &nbsp;&nbsp;&nbsp;
  339.               <input type="button" value="返回" onclick="window.location='CahierManage.jsp';">
  340.             </td>
  341.           </tr>
  342.         </table>
  343.         </form>
  344.         </td>
  345.     </tr>
  346. </table>
  347. </body>
  348. </html>
  349. <%
  350. }
  351. else
  352. {
  353. %>
  354. <script language="JavaScript" type="text/JavaScript">
  355. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  356. history.back();
  357. </script>
  358. <%
  359. }
  360. }
  361. %>