Calendar_modify_success.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:3k
源码类别:
电子政务应用
开发平台:
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.system.loader.ConfigParaLoader"%>
- <%@ page import="com.vnex.intranet.util.*"%>
- <%@ page import="java.util.*" %>
- <%@ page import="java.sql.*" %>
- <jsp:useBean id="calendarProxy" class="com.vnex.intranet.calendar.proxy.CalendarProxyBean" scope="application" />
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <%
- CalendarValueBean calendarBean = ( CalendarValueBean )session.getAttribute( "calendarBean" );
- int sYear = 0;
- int sMonth = 0;
- int sDay = 0;
- int sHour = 0;
- int sMinute = 0;
- int eYear = 0;
- int eMonth = 0;
- int eDay = 0;
- int eHour = 0;
- int eMinute = 0;
- String taskName = null;
- String taskImport = null;
- String taskContent = null;
- String ssd = "";
- String sed = "";
- Timestamp startDate = null;
- Timestamp endDate = null;
- if(request.getParameter("StartDate")!=null && !request.getParameter("StartDate").equals(""))
- {
- ssd = request.getParameter("StartDate");
- ssd = ssd + " " + request.getParameter("sHour") + ":" + request.getParameter("sMinute") + ":00";
- startDate = TimeStamp.toTimestamp(ssd);
- }
- if(request.getParameter("EndDate")!=null && !request.getParameter("EndDate").equals(""))
- {
- sed = request.getParameter("EndDate");
- sed = sed + " " + request.getParameter("eHour") + ":" + request.getParameter("eMinute") + ":00";
- endDate = TimeStamp.toTimestamp(sed);
- }
- if(request.getParameter("taskName")!=null && !request.getParameter("taskName").equals(""))
- {
- taskName = request.getParameter("taskName");
- calendarBean.setTaskName(taskName);
- }
- if(request.getParameter("taskImport")!=null && !request.getParameter("taskImport").equals(""))
- {
- taskImport = request.getParameter("taskImport");
- calendarBean.setTaskImport(taskImport);
- }
- if(request.getParameter("taskContent")!=null && !request.getParameter("taskContent").equals(""))
- {
- taskContent = request.getParameter("taskContent");
- calendarBean.setTaskContent(taskContent);
- }
- if(request.getParameter("taskVisible")!=null && !request.getParameter("taskVisible").equals(""))
- {
- String str = request.getParameter("taskVisible");
- if(str.equals("true"))
- {
- calendarBean.setTaskVisible(true);
- }
- }
- else
- {
- calendarBean.setTaskVisible(false);
- }
- calendarBean.setStartDate(startDate);
- calendarBean.setEndDate(endDate);
- calendarBean.setCreatorId(BusinessName.getEmpId());
- String root = ConfigParaLoader.getParameter("rootUrl");
- Collection dcoll = ( Collection )session.getAttribute( "delCalAtta" );
- if(dcoll != null && dcoll.size() != 0)
- {
- Iterator it = dcoll.iterator();
- while( it.hasNext() )
- {
- String str = (String)it.next();
- SubPathGenerater.deleteFile(root+str);
- }
- }
- session.removeAttribute("delCalAtta");
- calendarProxy.modifyCalendar(calendarBean);
- //response.sendRedirect("/mainctrl/calendar/detailCalendar?own=true");
- %>
- <jsp:forward page="/mainctrl/calendar/detailCalendar?own=true"/>