📄 diaryinfotipsearch.jsp
字号:
if(date.equals("31")){
backdate="1";
}else{
backdate=String.valueOf(Integer.parseInt(date)+1);
}
} if(month.equals("4")||month.equals("6")||month.equals("9")||month.equals("11")){
if(date.equals("30")||date.equals("31")){
backdate="1";
}else{
backdate=String.valueOf(Integer.parseInt(date)+1);
}
}
if(month.equals("2")){
if((Integer.parseInt(year)%4==0)||(Integer.parseInt(year)%400==0&&year.substring(2,3)=="00")){
if(date.equals("29")||date.equals("30")||date.equals("31")){
backdate="1";
}else{
backdate=String.valueOf(Integer.parseInt(date)+1);
}
}else{
if(date.equals("28")||date.equals("29")||date.equals("30")||date.equals("31")){
backdate="1";
}else{
backdate=String.valueOf(Integer.parseInt(date)+1);
}
}
}
%>
<input type="button" value="下一日" onmouseover="this.className='button2'" onmouseout="this.className='button1'" class="button1" onClick="document.location.href='/krm/servlet/DiaryInfoTipServlet?year=<%=backyear%>&month=<%=backmonth%>&date=<%=backdate%>&write=betoday&flag=q'" >
</td>
</tr>
</table>
<br>
<table border="0" width="98%" align="center" height="20%" class="collapse">
<tr width="95%">
<td class="tdA" colspan="13" ><div align="center">每日信息</div></td>
</tr>
<tr align="center" >
<td class="tdB" width="7%">日期</td>
<td class="tdB" width="2%" nowrap>姓名</td>
<td class="tdB" width="2%" nowrap>工作</td>
<td class="tdB" width="2%" nowrap>学习</td>
<td class="tdB" width="2%" nowrap>运动</td>
<td class="tdB" width="2%" nowrap>休息</td>
<td class="tdB" width="20%">上午</td>
<td class="tdB" width="20%">下午</td>
<td class="tdB" width="20%">晚上</td>
<td class="tdB" width="18%">备注</td>
<!--<td class="common">详细信息</td> -->
</tr>
<%
/* 得到高层领导每日信息记录 */
diaryInfoTipRecordSet=(DiaryInfoTipRecordSet)request.getAttribute("M_DiaryInfoTipRecordSet");
/* 得到高层领导记录 */
List manageNames=new ArrayList();
manageNames=(List)request.getAttribute("ManageNames");
if(null!=diaryInfoTipRecordSet){
int size=diaryInfoTipRecordSet.size();
String uid=null;
String name=null;
String strTemp=null;
int iPos=0;
//String info="";
for(int i=0;i<size;i++){
diaryInfoTipRecordSet.next();
strTemp=(String)manageNames.get(i);
iPos=strTemp.indexOf('-');
uid=strTemp.substring(0,iPos);
name=strTemp.substring(iPos+1);
String memoInfo=null;
memoInfo=diaryInfoTipRecordSet.getDIT_MemoInfo();
if(memoInfo.length() > 254){
memoInfo = memoInfo.substring(0,254)+".";
}
%>
<tr>
<td align="center" width="7%" class="common" nowrap><%=diaryInfoTipRecordSet.getDIT_WriteDate()%></td>
<td align="center" width="2%" class="common"><%=name%></td>
<td align="center" width="2%" class="common"><%=diaryInfoTipRecordSet.getDIT_WorkTime()%></td>
<td align="center" width="2%" class="common"><%=diaryInfoTipRecordSet.getDIT_StudyTime()%></td>
<td align="center" width="2%" class="common"><%=diaryInfoTipRecordSet.getDIT_SportTime()%></td>
<td align="center" width="2%" class="common"><%=diaryInfoTipRecordSet.getDIT_RestTime()%></td>
<%
if(diaryInfoTipRecordSet.getDIT_Flag().trim().equals("1")){
%>
<td width="20%" class="common"><%=diaryInfoTipRecordSet.getDIT_MorningInfo()%>
</td>
<td width="20%" class="common"><%=diaryInfoTipRecordSet.getDIT_AfternoonInfo()%>
</td>
<td width="20%" class="common"><%=diaryInfoTipRecordSet.getDIT_NightInfo()%>
</td>
<td width="18%" class="common"><%=memoInfo%>
</td>
<%
}
else{
%>
<td width="19%" class="common">
</td>
<td width="19%" class="common">
</td>
<td width="19%" class="common">
</td>
<td width="18%" class="common">
</td>
<%
}
%>
</tr>
<%
;}
}
%>
</table>
<br>
<table border="0" width="98%" align="center" height="20%" class="collapse">
<tr width="95%">
<td class="tdA" colspan="13" ><div align="center">项目实施信息</div></td>
</tr>
<tr >
<td width="10%" align="center" class="tdB">日期</td>
<td width="10%" align="center" class="tdB">项目名称</td>
<td width="10%" align="center" class="tdB">负责人</td>
<td width="10%" align="center" class="tdB">分管领导</td>
<td width="60%" align="center" class="tdB">项目实施概述</td>
</tr>
<%
deProccessRecordSet=(DEProccessRecordSet)request.getAttribute("M_DEProccessRecordSet");//实施过程信息
List managers=new ArrayList();
managers=(List)request.getAttribute("Manager");//分管领导
List info=new ArrayList();
info=(List)request.getAttribute("TaskInfo");//项目信息(包括名称,负责人)
if(null!=deProccessRecordSet){
int size=deProccessRecordSet.size();
String taskTopic="";
String taskManageName="";
int iPos=0;
for(int i=0;i<size;i++){
deProccessRecordSet.next();
String strTemp=info.get(i).toString();
iPos=strTemp.indexOf("-");
taskTopic=strTemp.substring(0,iPos);
taskManageName=strTemp.substring(iPos+1);
%>
<tr >
<td align="center" class="common"><%=deProccessRecordSet.getP_FinishDate()%></td>
<td align="center" class="common"><%=taskTopic%></td>
<td align="center" class="common"><%=taskManageName%></td>
<td align="center" class="common"><%=managers.get(i).toString()%></td>
<td class="common" align="center"><%=deProccessRecordSet.getP_Brief()%></td>
</tr>
<%
;}
}
%>
</table>
<br>
<table border="0" width="98%" align="center" height="20%" class="collapse">
<tr width="95%">
<td class="tdA" colspan="13" ><div align="center">其他信息</div></td>
</tr>
<tr >
<td align="center" class="tdB" width="5%">序号</td>
<td align="center" class="tdB" width="10%">日期</td>
<td align="center" class="tdB" width="60%">内容</td>
<td align="center" class="tdB" width="20%">备注</td>
</tr>
<%
diaryOtherInfoTipRecordSet=(DiaryOtherInfoTipRecordSet)request.getAttribute("M_DiaryOtherInfoTipRecordSet");
if(null!=diaryOtherInfoTipRecordSet){
int size=diaryOtherInfoTipRecordSet.size();
for(int i=0;i<size;i++){
diaryOtherInfoTipRecordSet.next();
%>
<tr>
<td align="center" width="5%" class="common"><%=i+1%></td>
<td align="center" width="10%" class="common"><%=diaryOtherInfoTipRecordSet.getDOIT_WriteDate()%></td>
<td class="common" width="60%" align="center"><%=diaryOtherInfoTipRecordSet.getDOIT_Info()%></td>
<td class="common" width="20%" align="center"><%=diaryOtherInfoTipRecordSet.getDOIT_MemoInfo()%></td>
</tr>
<%
;}
}
%>
</table>
<%//}else{%>
<!--<table border="0" width="100%" align="center" height="20%" class="collapse">
<tr>
<td class="common" align="center">您没有可查看的数据!请与管理员联系</td>
</tr>
</table>-->
<%//}%>
</form>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -