CalendarPlansManage.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="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
- <script language="JavaScript" src="/js/changestyle.js"></script>
- <script language="JavaScript" type="text/javascript">
- function checkAddCalendarPlans()
- {
- if(document.addcalendarplans.PlanTitle.value=="")
- {
- alert("请输入计划主题!");
- document.addcalendarplans.PlanTitle.focus();
- return false;
- }
- if(document.addcalendarplans.PlanBeginDate.value!="")
- {
- if(!isDate(document.addcalendarplans.PlanBeginDate.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.addcalendarplans.PlanBeginDate.focus();
- return false;
- }
- }
- if(document.addcalendarplans.PlanEndDate.value!="")
- {
- if(!isDate(document.addcalendarplans.PlanEndDate.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.addcalendarplans.PlanEndDate.focus();
- return false;
- }
- }
- if(document.addcalendarplans.RealBeginDate.value!="")
- {
- if(!isDate(document.addcalendarplans.RealBeginDate.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.addcalendarplans.PlanBeginDate.focus();
- return false;
- }
- }
- if(document.addcalendarplans.RealEndDate.value!="")
- {
- if(!isDate(document.addcalendarplans.RealEndDate.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.addcalendarplans.RealEndDate.focus();
- return false;
- }
- }
- if(!isDate(document.addcalendarplans.AddTime.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.addcalendarplans.AddTime.focus();
- return false;
- }
- }
- </script>
- </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">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="50" valign="top" background="../images/dy-back.gif">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr valign="middle">
- <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
- <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">日程管理</font></strong></td>
- <td align="right" nowrap="nowrap" valign="bottom">
- <!-- 群增<img src="../images/MulAdd.gif" onMouseOver="this.src='../images/MulAdd_a.gif';" onMouseOut="this.src='../images/MulAdd.gif';" border="0" height="22" width="59"> -->
- <!--<img src="images/Single.gif" onMouseOver="this.src='../images/Single_a.gif';" onMouseOut="this.src='../images/Single.gif';" border="0" height="22" width="59"> -->
- <!-- 修改<img src="../images/Update.gif" onMouseOver="this.src='../images/Update_a.gif';" onMouseOut="this.src='../images/Update.gif';" border="0" height="22" width="59"> -->
- <!-- 删除<img src="../images/Del.gif" onMouseOver="this.src='../images/Del_a.gif';" onMouseOut="this.src='../images/Del.gif';" border="0" height="22" width="59"> -->
- <!-- 查看<img src="../images/Query.gif" onMouseOver="this.src='../images/Query_a.gif';" onMouseOut="this.src='../images/Query.gif';" border="0" height="22" width="59"> -->
- <!-- 组合查询<img src="../images/GroupQuery.gif" onMouseOver="this.src='../images/GroupQuery_a.gif';" onMouseOut="this.src='../images/GroupQuery.gif';" border="0" height="22" width="79"> -->
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table><br>
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top"><p> </p>
- <%
- int intUserID = m_session.GetInt("UserID");
- Vector vt = CalendarPlansManager.getAllRecord(intUserID);
- %>
- <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
- <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
- <th width="3%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
- <th width="4%" nowrap><font color="#000000">序号</font></th>
- <th width="40%" nowrap><font color="#000000">计划主题</font></th>
- <th width="10%" nowrap><font color="#000000">是否完成</font></th>
- <th width="10%" nowrap><font color="#000000">增加时间</font></th>
- <th width="11%" nowrap><font color="#000000">修改</font></th>
- <th width="11%" nowrap><font color="#000000">删除</font></th>
- </tr>
- <%
- for(int i=0;i<vt.size();i++)
- {
- String strID = ((Vector)vt.get(i)).get(0).toString();
- if(i % 2 == 0)
- out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
- else
- out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
- out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
- out.println("<td align="right" valign="middle">" + (i+1) + "</td>");
- 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>");
- String strFinished;
- if (((Vector)vt.get(i)).get(11).toString().equalsIgnoreCase("true")) {strFinished="完成";} else {strFinished="未完成";}
- out.println("<td align="center" valign="middle" nowrap>"+strFinished+"</td>");
- out.println("<td align="center" valign="middle" nowrap>" + StringNew.GetDateString(((Vector)vt.get(i)).get(4).toString(),"yyyy-MM-dd") + "</td>");
- out.println("<td align="center" valign="middle" nowrap><a href="EditCalendarPlans.jsp?ID=" + strID + "">修改</a></td>");
- out.println("<td align="center" valign="middle" nowrap><a href="DelCalendarPlans.jsp?ID=" + strID + "" onclick="return confirm('您确实要删除该日程计划吗?');">删除</a></td>");
- out.println("</tr>");
- }
- %>
- </table>
- <form name="addcalendarplans" action="AddCalendarPlansAction.jsp" method="post" onSubmit="javascript:return checkAddCalendarPlans();">
- <table border="1" cellpadding="1" cellspacing="1" width="90%">
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">计 划 主 题: </font></td>
- <td align="left" valign="middle" colspan="3" nowrap>
- <input name="UserID" type="hidden" value="<%=intUserID%>">
- <input name="PlanTitle" type="text" maxlength="50" size="70">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">计 划 内 容: </font></td>
- <td align="left" valign="middle" colspan="3" nowrap>
- <textarea name="PlanContent" cols="80" rows="4"></textarea>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">增 加 时 间: </font></td>
- <td align="left" valign="middle" width="35%" nowrap>
- <%java.util.Date t_Date = new java.util.Date();%>
- <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);">
- </td>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">重 要 等 级: </font></td>
- <td align="left" valign="middle" width="35%" nowrap>
- <select name="ImportLevel" >
- <option value="1" selected>一级</option>
- <option value="2" >二级</option>
- <option value="3" >三级</option>
- <option value="4" >四级</option>
- <option value="5" >五级</option>
- </select>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">计划开始时间: </font></td>
- <td align="left" valign="middle" width="35%" nowrap>
- <input name="PlanBeginDate" type="text" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="20" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
- </td>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">计划结束时间: </font></td>
- <td align="left" valign="middle" width="35%" nowrap>
- <input name="PlanEndDate" type="text" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="20" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">实际开始时间: </font></td>
- <td align="left" valign="middle" width="35%" nowrap>
- <input name="RealBeginDate" type="text" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="20" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
- </td>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">实际结束时间: </font></td>
- <td align="left" valign="middle" width="35%" nowrap>
- <input name="RealEndDate" type="text" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="20" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">提醒时间间隔: </font></td>
- <td align="left" valign="middle" width="35%" nowrap>
- <select name="RemindInterval" >
- <option value="1" selected>一小时</option>
- <option value="2" >二小时</option>
- <option value="3" >三小时</option>
- <option value="4" >四小时</option>
- <option value="5" >五小时</option>
- <option value="8" >八小时</option>
- <option value="10" >十小时</option>
- <option value="24" >二十四小时</option>
- </select>
- </td>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">是否已经完成: </font></td>
- <td align="left" valign="middle" width="35%" nowrap>
- <font color="#0A0A0A"><input name="IsFinished" type="radio" value="1">已完成 <input name="IsFinished" type="radio" value="0" checked>未完成</font>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">备 注: </font></td>
- <td align="left" valign="middle" colspan="3" nowrap>
- <textarea name="Remark" cols="80" rows="4"></textarea>
- </td>
- </tr>
- </table>
- <table border="0" width="90%">
- <tr>
- <td>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td align="right" valign="middle" nowrap>
- <input type="submit" value="添 加" style="background-color: #FFFFFF; border: 1 solid #000000"> <input type="reset" value="重 填" style="background-color: #FFFFFF; border: 1 solid #000000">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>