CalendarPlansManage.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="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
  10. <script language="JavaScript" src="/js/changestyle.js"></script>
  11. <script language="JavaScript" type="text/javascript">
  12. function checkAddCalendarPlans()
  13. {
  14.     if(document.addcalendarplans.PlanTitle.value=="")
  15.     {
  16.         alert("请输入计划主题!");
  17.         document.addcalendarplans.PlanTitle.focus();
  18.         return false;
  19.     }
  20.     if(document.addcalendarplans.PlanBeginDate.value!="")
  21.     {
  22.       if(!isDate(document.addcalendarplans.PlanBeginDate.value))
  23.       {
  24.           alert("日期格式错误,请按照“2002-02-18”重新输入!");
  25.           document.addcalendarplans.PlanBeginDate.focus();
  26.           return false;
  27.       }
  28.     }
  29.     if(document.addcalendarplans.PlanEndDate.value!="")
  30.     {
  31.       if(!isDate(document.addcalendarplans.PlanEndDate.value))
  32.       {
  33.           alert("日期格式错误,请按照“2002-02-18”重新输入!");
  34.           document.addcalendarplans.PlanEndDate.focus();
  35.           return false;
  36.       }
  37.     }
  38.     if(document.addcalendarplans.RealBeginDate.value!="")
  39.     {
  40.       if(!isDate(document.addcalendarplans.RealBeginDate.value))
  41.       {
  42.           alert("日期格式错误,请按照“2002-02-18”重新输入!");
  43.           document.addcalendarplans.PlanBeginDate.focus();
  44.           return false;
  45.       }
  46.     }
  47.     if(document.addcalendarplans.RealEndDate.value!="")
  48.     {
  49.       if(!isDate(document.addcalendarplans.RealEndDate.value))
  50.       {
  51.           alert("日期格式错误,请按照“2002-02-18”重新输入!");
  52.           document.addcalendarplans.RealEndDate.focus();
  53.           return false;
  54.       }
  55.     }
  56.     if(!isDate(document.addcalendarplans.AddTime.value))
  57.       {
  58.           alert("日期格式错误,请按照“2002-02-18”重新输入!");
  59.           document.addcalendarplans.AddTime.focus();
  60.           return false;
  61.       }
  62. }
  63. </script>
  64. </head>
  65. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  66.  <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  67.     <tr>
  68.     <td align="center" valign="top">
  69.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  70.         <tr>
  71.           <td height="50" valign="top" background="../images/dy-back.gif">
  72.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  73.               <tr valign="middle">
  74.                 <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
  75.                 <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">日程管理</font></strong></td>
  76.                 <td align="right" nowrap="nowrap" valign="bottom">&nbsp;
  77.                    <!-- 群增<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;-->
  78.                  <!--<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;-->
  79.                   <!-- 修改<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;-->
  80.                   <!-- 删除<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;-->
  81.                   <!-- 查看<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;-->
  82.                   <!-- 组合查询<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;-->
  83.                 </td>
  84.               </tr>
  85.             </table>
  86.           </td>
  87.         </tr>
  88.       </table><br>
  89.      <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  90.     <tr>
  91.         <td align="center" valign="top"><p>&nbsp;</p>
  92. <%
  93. int intUserID = m_session.GetInt("UserID");
  94. Vector vt = CalendarPlansManager.getAllRecord(intUserID);
  95. %>
  96.             <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
  97.                 <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  98.                     <th width="3%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  99.                     <th width="4%" nowrap><font color="#000000">序号</font></th>
  100.                     <th width="40%" nowrap><font color="#000000">计划主题</font></th>
  101.                     <th width="10%" nowrap><font color="#000000">是否完成</font></th>
  102.                     <th width="10%" nowrap><font color="#000000">增加时间</font></th>
  103.                     <th width="11%" nowrap><font color="#000000">修改</font></th>
  104.                     <th width="11%" nowrap><font color="#000000">删除</font></th>
  105.                 </tr>
  106. <%
  107. for(int i=0;i<vt.size();i++)
  108. {
  109.     String strID = ((Vector)vt.get(i)).get(0).toString();
  110.     if(i % 2 == 0)
  111.         out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
  112.     else
  113.         out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
  114.     out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
  115.     out.println("<td align="right" valign="middle">" + (i+1) + "</td>");
  116.     out.println("<td align="left" valign="middle" nowrap title="" + ((Vector)vt.get(i)).get(2).toString() + "" onclick="window.open('CalendarPlansLink.jsp?ID=" + strID + "','_blank','height=280,top=250,left=300,width=300,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes')">" + ((Vector)vt.get(i)).get(2).toString() + "</td>");
  117.     String strFinished;
  118.     if (((Vector)vt.get(i)).get(11).toString().equalsIgnoreCase("true")) {strFinished="完成";} else {strFinished="未完成";}
  119.     out.println("<td align="center" valign="middle" nowrap>"+strFinished+"</td>");
  120.     out.println("<td align="center" valign="middle" nowrap>" + StringNew.GetDateString(((Vector)vt.get(i)).get(4).toString(),"yyyy-MM-dd") + "</td>");
  121.     out.println("<td align="center" valign="middle" nowrap><a href="EditCalendarPlans.jsp?ID=" + strID + "">修改</a></td>");
  122.     out.println("<td align="center" valign="middle" nowrap><a href="DelCalendarPlans.jsp?ID=" + strID + "" onclick="return confirm('您确实要删除该日程计划吗?');">删除</a></td>");
  123.     out.println("</tr>");
  124. }
  125. %>
  126.             </table>
  127.             <form name="addcalendarplans" action="AddCalendarPlansAction.jsp" method="post" onSubmit="javascript:return checkAddCalendarPlans();">
  128.             <table  border="1" cellpadding="1" cellspacing="1" width="90%">
  129.                 <tr>
  130.                     <td align="right" valign="middle" width="14%"><font color="#0A0A0A">计&nbsp;划&nbsp;主&nbsp;题:&nbsp;</font></td>
  131.                     <td align="left" valign="middle" colspan="3" nowrap>
  132.                         <input name="UserID" type="hidden" value="<%=intUserID%>">
  133.                         &nbsp;<input name="PlanTitle" type="text" maxlength="50" size="70">
  134.                     </td>
  135.                 </tr>
  136.                 <tr>
  137.                     <td align="right" valign="middle" width="14%"><font color="#0A0A0A">计&nbsp;划&nbsp;内&nbsp;容:&nbsp;</font></td>
  138.                     <td align="left" valign="middle" colspan="3" nowrap>
  139.                       &nbsp;<textarea name="PlanContent" cols="80" rows="4"></textarea>
  140.                     </td>
  141.                 </tr>
  142.                 <tr>
  143.                     <td align="right" valign="middle" width="14%"><font color="#0A0A0A">增&nbsp;加&nbsp;时&nbsp;间:&nbsp;</font></td>
  144.                     <td align="left" valign="middle" width="35%" nowrap>
  145.                     <%java.util.Date t_Date = new java.util.Date();%>
  146.                     &nbsp;<input name="AddTime" type="text" value="<%=StringNew.GetDateString(t_Date,"yyyy-MM-dd")%>" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="20" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
  147.                    </td>
  148.                     <td align="right" valign="middle" width="14%"><font color="#0A0A0A">重&nbsp;要&nbsp;等&nbsp;级:&nbsp;</font></td>
  149.                     <td align="left" valign="middle" width="35%" nowrap>
  150.                     &nbsp;<select name="ImportLevel" >
  151.                         <option value="1" selected>一级</option>
  152.                         <option value="2" >二级</option>
  153.                         <option value="3" >三级</option>
  154.                         <option value="4" >四级</option>
  155.                         <option value="5" >五级</option>
  156.                     </select>
  157.                     </td>
  158.                 </tr>
  159.                 <tr>
  160.                     <td align="right" valign="middle" width="14%"><font color="#0A0A0A">计划开始时间:&nbsp;</font></td>
  161.                     <td align="left" valign="middle" width="35%" nowrap>
  162.                         &nbsp;<input name="PlanBeginDate" type="text" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="20" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
  163.                    </td>
  164.                    <td align="right" valign="middle" width="14%"><font color="#0A0A0A">计划结束时间:&nbsp;</font></td>
  165.                     <td align="left" valign="middle" width="35%" nowrap>
  166.                         &nbsp;<input name="PlanEndDate" type="text" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="20" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
  167.                    </td>
  168.                 </tr>
  169.                 <tr>
  170.                     <td align="right" valign="middle" width="14%"><font color="#0A0A0A">实际开始时间:&nbsp;</font></td>
  171.                     <td align="left" valign="middle" width="35%" nowrap>
  172.                         &nbsp;<input name="RealBeginDate" type="text" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="20" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
  173.                    </td>
  174.                     <td align="right" valign="middle" width="14%"><font color="#0A0A0A">实际结束时间:&nbsp;</font></td>
  175.                     <td align="left" valign="middle" width="35%" nowrap>
  176.                         &nbsp;<input name="RealEndDate" type="text" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="20" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
  177.                    </td>
  178.                 </tr>
  179.                 <tr>
  180.                     <td align="right" valign="middle" width="14%"><font color="#0A0A0A">提醒时间间隔:&nbsp;</font></td>
  181.                     <td align="left" valign="middle" width="35%" nowrap>
  182.                     &nbsp;<select name="RemindInterval" >
  183.                         <option value="1" selected>一小时</option>
  184.                         <option value="2" >二小时</option>
  185.                         <option value="3" >三小时</option>
  186.                         <option value="4" >四小时</option>
  187.                         <option value="5" >五小时</option>
  188.                         <option value="8" >八小时</option>
  189.                         <option value="10" >十小时</option>
  190.                         <option value="24" >二十四小时</option>
  191.                     </select>
  192.                     </td>
  193.                     <td align="right" valign="middle" width="14%"><font color="#0A0A0A">是否已经完成:&nbsp;</font></td>
  194.                     <td align="left" valign="middle" width="35%" nowrap>
  195.                         &nbsp;<font color="#0A0A0A"><input name="IsFinished" type="radio" value="1">已完成&nbsp; <input name="IsFinished" type="radio" value="0" checked>未完成</font>
  196.                     </td>
  197.                 </tr>
  198.                 <tr>
  199.                     <td align="right" valign="middle" width="14%"><font color="#0A0A0A">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注:&nbsp;</font></td>
  200.                     <td align="left" valign="middle" colspan="3" nowrap>
  201.                       &nbsp;<textarea name="Remark" cols="80" rows="4"></textarea>
  202.                     </td>
  203.                 </tr>
  204.             </table>
  205.             <table border="0" width="90%">
  206.               <tr>
  207.                   <td>&nbsp;
  208.                   </td>
  209.                 </tr>
  210.               <tr>
  211.                     <td align="right" valign="middle">&nbsp;</td>
  212.                     <td align="right" valign="middle" nowrap>
  213.                         <input type="submit" value="添 加" style="background-color: #FFFFFF; border: 1 solid #000000">&nbsp;&nbsp;&nbsp;<input type="reset" value="重 填" style="background-color: #FFFFFF; border: 1 solid #000000">
  214.                     </td>
  215.                 </tr>
  216.             </table>
  217.             </form>
  218.         </td>
  219.     </tr>
  220. </table>
  221. </body>
  222. </html>