📄 calendar_create.jsp
字号:
sed = sed + " " + request.getParameter("eHour") + ":" + request.getParameter("eMinute") + ":00";
endDate = TimeStamp.toTimestamp(sed);
}
if(request.getParameter("taskName")!=null)
{
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)
{
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());
if( request.getParameter("attachments")!=null && !request.getParameter("attachments").equals("") )
{
String url = request.getParameter("attachments");
Collection coll = calendarBean.getAttachments();
if(coll != null && coll.size() != 0)
{
Iterator it = coll.iterator();
while( it.hasNext() )
{
String str = (String)it.next();
if( url.equals(str) )
{
SubPathGenerater.deleteFile(root+str);
coll.remove(str);
break;
}
}//end while
}//end if
}
}
%>
<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">
<tr bgcolor="#fafafa">
<td>
<font class="strong"> 主题:</font>
</td>
<td>
<input type="text" name="taskName" class="text" size="24" value="<%= calendarBean.getTaskName()%>"> * (注:带*为必填内容)
</td>
</tr>
<%
startDate = calendarBean.getStartDate();
endDate = calendarBean.getEndDate();
ssd = MyDateFormat.myDate(startDate);
Calendar cd = Calendar.getInstance();
if(startDate!=null)
{
cd = TimeStamp.convertTimestampToCalendar(startDate);
}
sHour = cd.get(Calendar.HOUR_OF_DAY);
sMinute = cd.get(Calendar.MINUTE);
sed = MyDateFormat.myDate(endDate);
if(endDate!=null)
{
cd = TimeStamp.convertTimestampToCalendar(endDate);
}
eHour = cd.get(Calendar.HOUR_OF_DAY);
eMinute = cd.get(Calendar.MINUTE);
%>
<tr bgcolor="#e0e0e0">
<td width="17%"><font class="strong"> 开始时间:</font></td>
<td width="83%">
日期:<input type="text" name="StartDate" class=text size="20" value="<%= ssd%>" readonly> <img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(StartDate);return false">
时刻:
<select name="sHour" size="1">
<%
for(int i=0; i<=23; i++)
{
if( sHour==i )
{
if(i<=9)
{
out.println("<option selected value=0"+i+">"+i+"</option>");
}
else
{
out.println("<option selected value="+i+">"+i+"</option>");
}
}
else
{
if(i<=9)
{
out.println("<option value=0"+i+">"+i+"</option>");
}
else
{
out.println("<option value="+i+">"+i+"</option>");
}
}
}
%>
</select>
:
<select name="sMinute" size="1">
<option value="00" <% if(sMinute==0) out.print("selected"); %>>00</option>
<option value="15" <% if(sMinute==15) out.print("selected"); %>>15</option>
<option value="30" <% if(sMinute==30) out.print("selected"); %>>30</option>
<option value="45" <% if(sMinute==45) out.print("selected"); %>>45</option>
</select> *
</td>
</tr>
<tr bgcolor="#fafafa">
<td width="17%"><font class="strong"> 截止时间:</font></td>
<td width="83%">
日期:<input type="text" name="EndDate" class=text size="20" value="<%= sed%>" readonly> <img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(EndDate);return false">
时刻:
<select name="eHour" size="1">
<%
for(int i=0; i<=23; i++)
{
if( eHour==i )
{
if(i<=9)
{
out.println("<option selected value=0"+i+">"+i+"</option>");
}
else
{
out.println("<option selected value="+i+">"+i+"</option>");
}
}
else
{
if(i<=9)
{
out.println("<option value=0"+i+">"+i+"</option>");
}
else
{
out.println("<option value="+i+">"+i+"</option>");
}
}
}
%>
</select>
:
<select name="eMinute" size="1">
<option value="00" <% if(eMinute==0) out.print("selected"); %>>00</option>
<option value="15" <% if(eMinute==15) out.print("selected"); %>>15</option>
<option value="30" <% if(eMinute==30) out.print("selected"); %>>30</option>
<option value="45" <% if(eMinute==45) out.print("selected"); %>>45</option>
</select> *
</td>
</tr>
<tr bgcolor="#e0e0e0">
<td>
<font class="strong"> 重要度:</font>
</td>
<td>
<select name="taskImport" class="button" size="1">
<%
String str = calendarBean.getTaskImport();
%>
<option <% if( str.equals("不指定") ) out.print("selected"); %>>不指定</option>
<option value="低" <% if( str.equals("低") ) out.print("selected"); %>>低</option>
<option value="中" <% if( str.equals("中") ) out.print("selected"); %>>中</option>
<option value="高" <% if( str.equals("高") ) out.print("selected"); %>>高</option>
</select>
</td>
</tr>
<tr bgcolor="#fafafa">
<td>
<font class="strong"> 公开:</font>
</td>
<td>
<input type="checkbox" name="taskVisible" value="true" <% if( calendarBean.getTaskVisible() ) out.print("checked"); %>>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<td width="17%"><font class="strong"> 详细内容:</font></td>
<td width="83%" >
<div align="left">
<textarea name="taskContent" cols="50" rows="5"><%= calendarBean.getTaskContent()%></textarea>
</div>
</td>
</tr>
<tr bgcolor="#fafafa">
<td width="17%"><font class="strong"> 附件:</font></td>
<td width="83%">
<div align="left">
<select size="3" name="attachments" style="width:300" class="text">
<%
Collection coll = calendarBean.getAttachments();
if(coll != null && coll.size() != 0)
{
Iterator it = coll.iterator();
while( it.hasNext() )
{
str = (String)it.next();
int s = str.lastIndexOf(SubPathGenerater.getSeperator());
String filename = str.substring(s+1);
out.println( "<option value=\""+str+"\">"+filename+"</option>" );
}
}
%>
</select>
<input type="button" value="删除附件" name="B29" class="text" onClick="deleteDoc()" style="width:60px">
</div>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<td width="17%"><font class="strong"> 上传附件:</font></td>
<td width="83%">
<div align="left">
<input type="file" name="file" size="30" class="text">
<input type="button" value="上传" name="B28" class="text" onClick="uploadDoc()">
</div>
</td>
</tr>
<tr align="center" bgcolor="#fafafa">
<td colspan="2" height="30">
<input type="button" name="Submit2" value="保存" onClick="return createTask()" class="text">
<input type="button" name="Reset" value="重置" class="text" onClick="clearr()">
<input type="button" name="Submit121" value="放弃" class="text" onClick="backTask()">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
<%
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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -