Calendar_detail.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:10k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.calendar.value.*"%>
- <%@ page import="com.vnex.intranet.calendar.proxy.*"%>
- <%@ page import="com.vnex.intranet.util.*"%>
- <%@ page import="java.util.*" %>
- <%@ page import="java.sql.*" %>
- <%@ page import="java.net.*"%>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
- <jsp:useBean id="calendarProxy" class="com.vnex.intranet.calendar.proxy.CalendarProxyBean" scope="application" />
- <jsp:useBean id="calendarBean" class="com.vnex.intranet.calendar.value.CalendarValueBean" scope="page" />
- <%
- int calendarId = 0;
- if(request.getParameter("taskId")!=null && !request.getParameter("taskId").equals(""))
- calendarId = Integer.parseInt(request.getParameter("taskId"));
- calendarBean = calendarProxy.getCalendarDetail(calendarId);
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
- <script language="javascript" src="/vnex/validate.js" ></script>
- <script language=JavaScript>
- function removeTask()
- {
- if(!confirm("是否确定删除?"))
- {
- return false;
- }
- myform.action= "/mainctrl/calendar/removeCalendarSuccess";
- myform.submit();
- }
- function modifyTask()
- {
- myform.action= "/mainctrl/calendar/modifyCalendar?type=0";
- myform.submit();
- }
- function backTask()
- {
- myform.action = "/mainctrl/calendar/getCalendarList?search=ok&back=ok";
- myform.submit();
- }
- </script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <DIV align=center>
- <form name="myform" method="post" action="">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <TBODY>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center" class="iframestyle" valign="top"> <!--菜单开始 -->
- <!--分隔线结束 --> <!--个人信息开始 --> <br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666" class="iframestyle">
- <tr valign="top">
- <td bgcolor="#fafafa">
- <table width="600" border="0" cellspacing="0" cellpadding="0">
- <tr valign="top" bgcolor="#666666">
- <td colspan="2"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>>><a href="/mainctrl/calendar/getCalendarList"><font color="#FFFFFF">日程安排</font></a>>>任务详细信息</font>
- </td>
- </tr>
- <table cellpadding="2" width="100%" cellspacing="1" align="center" class="title">
- <tbody>
- <%
- Timestamp startDate = calendarBean.getStartDate();
- Timestamp endDate = calendarBean.getEndDate();
- Calendar cd = Calendar.getInstance();
- if(startDate!=null)
- {
- cd = TimeStamp.convertTimestampToCalendar(startDate);
- }
- int sYear = cd.get(Calendar.YEAR);
- int sMonth = cd.get(Calendar.MONTH) + 1;
- int sDay = cd.get(Calendar.DAY_OF_MONTH);
- int sHour = cd.get(Calendar.HOUR_OF_DAY);
- int sMinute = cd.get(Calendar.MINUTE);
- if(endDate!=null)
- {
- cd = TimeStamp.convertTimestampToCalendar(endDate);
- }
- int eYear = cd.get(Calendar.YEAR);
- int eMonth = cd.get(Calendar.MONTH) + 1;
- int eDay = cd.get(Calendar.DAY_OF_MONTH);
- int eHour = cd.get(Calendar.HOUR_OF_DAY);
- int eMinute = cd.get(Calendar.MINUTE);
- %>
- <tr bgcolor="#e0e0e0">
- <td width="17%"><font class="strong"> 开始时间:</font></td>
- <td width="83%">
- 日期:<%= sYear%>-<%= sMonth%>-<%= sDay%> 时刻:<%= sHour%>:<% if(sMinute==0) out.print(sMinute+"0"); else out.print(sMinute);%> </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="17%"><font class="strong"> 截止时间:</font></td>
- <td width="83%">日期:<%= eYear%>-<%= eMonth%>-<%= eDay%> 时刻:<%= eHour%>:<% if(eMinute==0) out.print(eMinute+"0"); else out.print(eMinute);%> </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td><font class="strong"> 主题:</font></td>
- <td><%= FieldUtil.filterScriptTag(calendarBean.getTaskName())%></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td><font class="strong"> 重要度:</font></td>
- <td>
- <%
- if(calendarBean.getTaskImport().equals("0"))
- out.print("不指定");
- else if(calendarBean.getTaskImport().equals("1"))
- out.print("低");
- else if(calendarBean.getTaskImport().equals("2"))
- out.print("中");
- else if(calendarBean.getTaskImport().equals("3"))
- out.print("高");
- %>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td><font class="strong"> 公开:</font></td>
- <td><% if(calendarBean.getTaskVisible()) out.print("是"); else out.print("否"); %></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td><font class="strong"> 协作者:</font></td>
- <td><%= calendarBean.getCoadjutant()%></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td><font class="strong"> 详细内容:</font></td>
- <td>
- <div align="left">
- <pre>
- <%= FieldUtil.filterScriptTag(calendarBean.getTaskContent())%>
- </pre>
- </div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td><font class="strong"> 附件:</font></td>
- <td>
- <%
- Collection coll = calendarBean.getAttachments();
- if(coll != null && coll.size() != 0)
- {
- Iterator it = coll.iterator();
- while( it.hasNext() )
- {
- String str = (String)it.next();
- int s = str.lastIndexOf(SubPathGenerater.getSeperator());
- String filename = str.substring(s+1);
- String UTFurl = str.substring(0,s+1)+StringUtil.encode(filename);
- out.println("<a href=""+UTFurl+"" target=_blank>"+filename+"</a><br>");
- }
- }
- %>
- </td>
- </tr>
- <tr align="middle" bgcolor="#fafafa">
- <td colspan="2" height="30">
- <%
- if(request.getParameter("own")!=null && !request.getParameter("own").equals("false"))
- {
- %>
- <input type="button" name="Submit2" value="修改" onClick="return modifyTask()" class="text">
- <input type="button" name="button12" value="删除" onClick="return removeTask()" class="text">
- <input type="button" name="Submit123" value="返回" onClick="backTask()" class="text">
- <%
- }
- else
- {
- %>
- <input type="button" name="Submit2" value="返回" onClick="backTask()" class="text">
- <%
- }
- %>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </table>
- <input type="hidden" name="calendarIds" value="<%= calendarId%>">
- <%
- if(request.getParameter("ssempId")!=null)
- {
- out.println("<input type=hidden name=ssempId value=""+request.getParameter("ssempId")+"">");
- }
- if(request.getParameter("ssStartDate")!=null)
- {
- out.println("<input type=hidden name=ssStartDate value=""+request.getParameter("ssStartDate")+"">");
- }
- if(request.getParameter("ssEndDate")!=null)
- {
- out.println("<input type=hidden name=ssEndDate value=""+request.getParameter("ssEndDate")+"">");
- }
- if(request.getParameter("start")!=null)
- {
- out.println("<input type=hidden name=start value=""+request.getParameter("start")+"">");
- }
- %>
- <!--个人信息结束 -->
- <br>
- <br>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form></DIV>
- </BODY></HTML>