📄 monthschedule.jsp
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="cn.com.aheadsoft.recordset.TaskScheduleRecordSet" %>
<%@ page import="cn.com.aheadsoft.business.TaskScheduleBusiness" %>
<%@ page import="cn.com.aheadsoft.util.StringFormat" %>
<%@ page import="cn.com.aheadsoft.util.StringTool" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %>
<jsp:useBean id="userinfo" scope="session" class="cn.com.aheadsoft.util.UserInfo"/>
<jsp:useBean id="upm" scope="session" class="cn.com.aheadsoft.manage.UserPurviewManage"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<link rel="stylesheet" type="text/css" href="/krm/jsp/css/css.css">
<title>任务月安排</title>
<%
int q1 = upm.getUserPopInt(userinfo,"3","8","q");
int i1 = upm.getUserPopInt(userinfo,"3","8","i");
int u1 = upm.getUserPopInt(userinfo,"3","8","u");
int d1 = upm.getUserPopInt(userinfo,"3","8","d");
%>
<%
String thisdate = "";
if(request.getAttribute("thisdate") != null ) {
thisdate = request.getAttribute("thisdate").toString();
}
String thisyear=(String)request.getAttribute("thisyear");
String thismonth=(String)request.getAttribute("thismonth");
String nowDate = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
String yearselect = nowDate.substring(0,4);
String year1 = String.valueOf(Integer.parseInt(yearselect)-1);
String year3 = String.valueOf(Integer.parseInt(yearselect)+1);
String year4 = String.valueOf(Integer.parseInt(yearselect)+2);
%>
<script src="/krm/jsp/jscript/Calendar.js"></script>
<script>
<!--
function update(id,key) {
document.tasktype.TT_ID.value = id;
document.tasktype.TT_Name.value = key;
document.tasktype.status.value = "u";
document.tasktype.TT_Name.focus();
}
function atSubmit(obj){
isOK=false;
lab="";
for(i=0;i<obj.length;i++){
if(obj.elements[i].value!=null && obj.elements[i].value!=""){
isOK=true;
}else{
isOK=false;
lab=obj.elements[i].alt;
obj.elements[i].focus();
break;
}
}
if(!isOK){
alert("您没有填写"+lab+"!请填写后提交。");
return false;
}else{
//obj.submit();
}
}
function atDelete() {
return confirm("您确定要删除吗?");
}
function atChange(){
document.taskschedule.submit();
}
-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<form action="/krm/servlet/taskscheduleservlet" method="post" name="taskschedule" >
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="0" >
<tr height="8">
<td class="trA"> 您的位置:任务管理 >> 我的日程 >><font class="fontcolor"> 月安排</font></td>
</tr>
<tr height="8">
<td></td>
</tr>
<input type="hidden" name="thisdate">
<input type="hidden" name="type" value="m">
<input type="hidden" name="status" value="q">
<tr>
<td align="center" >
<table border="0" width="98%" align="center" class="collapse">
<tr>
<td class="tdA" colspan="9">我的月安排</td>
</tr>
<tr><td align="center" colspan="6" class="common tdC">
<select name="yearNum">
<option value="<%=year1%>" <%if(year1.equals(thisyear)){%> selected <%}%>><%=year1%></option>
<option value="<%=yearselect%>" <%if(yearselect.equals(thisyear)){%> selected <%}%>><%=yearselect%></option>
<option value="<%=year3%>" <%if(year3.equals(thisyear)){%> selected <%}%>><%=year3%></option>
<option value="<%=year4%>" <%if(year4.equals(thisyear)){%> selected <%}%>><%=year4%></option>
</select>年
<select name="monthNum" onChange="javascript:atChange();">
<option value="01" <%if(thismonth.equals("01")){%> selected <%}%>>1</option><option value="02" <%if(thismonth.equals("02")){%> selected <%}%>>2</option>
<option value="03" <%if(thismonth.equals("03")){%> selected <%}%>>3</option><option value="04" <%if(thismonth.equals("04")){%> selected <%}%>>4</option>
<option value="05" <%if(thismonth.equals("05")){%> selected <%}%>>5</option><option value="06" <%if(thismonth.equals("06")){%> selected <%}%>>6</option>
<option value="07" <%if(thismonth.equals("07")){%> selected <%}%>>7</option><option value="08" <%if(thismonth.equals("08")){%> selected <%}%>>8</option>
<option value="09" <%if(thismonth.equals("09")){%> selected <%}%>>9</option><option value="10" <%if(thismonth.equals("10")){%> selected <%}%>>10</option>
<option value="11" <%if(thismonth.equals("11")){%> selected <%}%>>11</option><option value="12"<%if(thismonth.equals("12")){%> selected <%}%>>12</option>
</select>月
</td>
</tr>
<tr>
<td width="5%" class="tdB" align="center">序号</td>
<td width="10%" class="tdB" align="center">日期</td>
<td width="10%" class="tdB" align="center">开始时间</td>
<td width="10%" class="tdB" align="center">结束时间</td>
<td width="55%" class="tdB" align="center">日程</td>
<td width="10%" class="tdB" align="center">操作</td>
</tr>
<%
TaskScheduleRecordSet taskscheduleRs = (TaskScheduleRecordSet)request.getAttribute("taskschedule");
if(taskscheduleRs!=null) {
int num = 1;
while(taskscheduleRs.next()) {
%>
<tr<%
if(num%2==0){
%> class="bgcolor"<%}%>>
<td width="5%" class="common" align="center"><%=num%></td>
<td width="10%" class="common" align="center"><%=StringFormat.Source2GB(taskscheduleRs.getTS_Date())%></td>
<td width="10%" class="common" align="center"><%=StringFormat.Source2GB(taskscheduleRs.getTS_StartTime())%></td>
<td width="10%" class="common" align="center"><%=StringFormat.Source2GB(taskscheduleRs.getTS_EndTime())%></td>
<td width="55%" class="common" align="center"><%=StringFormat.Source2GB(taskscheduleRs.getTS_Name())%></td>
<td width="10%" class="common" align="center"><a href="/krm/servlet/taskscheduleservlet?status=q&type=s&ID=<%=taskscheduleRs.getTS_ID()%>">查看</a>
</td>
</tr>
<%
num++;
}
}
%>
<tr><td colspan="6" class="tdC"> </td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -