📄 myaffair.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<link href="<%=request.getContextPath()%>/Css_file/oa.css" rel="stylesheet" type="text/css" />
<script src="<%=request.getContextPath()%>/Js_file/date.js"></script>
<script>
function setContent(n){
if (n==1){
document.all("flag").value = 1;
document.all("t1").style.display = "block";
document.all("t2").style.display = "none";
document.all('1').bgColor='#00A8FF';
document.all('2').bgColor='#FFFFFF';
}else if(n==2){
document.all("flag").value = 2;
document.all("t1").style.display = "none";
document.all("t2").style.display = "block";
document.all('1').bgColor='#FFFFFF';
document.all('2').bgColor='#00A8FF';
}
}
</script>
<html:html lang="true">
<body>
<table border="1" width="30%" class="myTable">
<tr>
<td bgColor='#00A8FF' id="1" onClick="setContent(1); "><span ><a href="<%=request.getContextPath()%>/affairReq.do?task=myaffair"><strong>我处理的事务</strong></a></span></td>
<td id="2" onClick="setContent(2);"><span ><a href="<%=request.getContextPath()%>/affairReq.do?task=getmyaffair"><strong>我发起的事务</strong></a></span></td>
</tr>
</table>
<div id="t1" style="display: block">
<html:form action="/affairReq" method="post" styleId="form1">
<table width="100%" border="1" cellspacing="0" class="myTable">
<tr class="tableHead">
<td height="27" colspan="6" ><strong>查询条件</strong></td>
</tr>
<tr>
<td colspan="1" align="right" width="107">发起人</td>
<td colspan="2" style="width: 207"><input style="width: 207" type="text" name="reqUsername" value=""/></td>
<td colspan="1" align="right" >紧急程度</td>
<td colspan="2">
<select name="rgrade">
<option value="">请选择</option>
<option value="0" >一般</option>
<option value="1" >重要</option>
<option value="2" >紧急</option>
</select>
</td>
</tr>
<tr>
<td colspan="1" align="right" width="107">环节希望完成时间</td>
<td colspan="5">从
<input style="width: 147" type="text" name="starttime" onclick="setday(this);" readonly="readonly" value=""/>
到
<input style="width: 148" type="text" name="endtime" onclick="setday(this);" readonly="readonly" value=""/>
</td>
</tr>
<tr>
<td height="27" colspan="6">
<input type="hidden" name="task" value="myaffair"/>
<input type="submit" name="Submit" value="查询" onclick="javascript:document.all('flag').value=1"/>
<input type="button" name="Submit2" value="取消" onclick="window.history.back();"/></td>
</tr>
</table>
</html:form>
<table width="100%" border="1" cellspacing="0" class="myTable">
<tr class="tableHead">
<td height="27" align="center" ><strong>事务标题</strong></td>
<td align="center" ><strong>事务类型</strong></td>
<td align="center" ><strong>事务级别</strong></td>
<td align="center" ><strong>本环节希望完成时间</strong></td>
<td align="center" ><strong>操作</strong></td>
</tr>
<c:if test="${requestScope.reqList!=null}">
<c:forEach var="req" items="${requestScope.reqList}">
<c:if test="${req.rtitle==null}">
<tr>
<TD colspan="6" align="center"><a style="color: red ;font-size: 14" >没有您的内容</a></TD>
</tr>
</c:if>
<c:if test="${req.rtitle!=null}">
<tr align="center">
<td>${req.rtitle}</td>
<td>${req.tname}</td>
<c:if test="${req.rgrade==0}"><td>一般</td></c:if>
<c:if test="${req.rgrade==1}"><td>重要</td></c:if>
<c:if test="${req.rgrade==2}"><td>紧急</td></c:if>
<td>${req.rlasttime}</td>
<td><html:link action="/affairReq.do?task=showmyaffair¤tid=${req.currentid}&rqids=${req.rqid}"><strong>查看</strong></html:link>
</td>
<td></td>
</tr>
</c:if>
</c:forEach>
</c:if>
<c:if test="${requestScope.reqList==null}">
<tr>
<TD colspan="6" align="center"><a style="color: red ;font-size: 14" >没有您的内容</a></TD>
</tr>
</c:if>
</table>
${reqpage.pageBar}
</div>
<div id="t2" style="display: none">
<html:form action="/affairReq" method="post" styleId="form1">
<table width="100%" border="1" cellspacing="0" class="myTable">
<tr class="tableHead">
<td height="27" colspan="6" ><strong>查询条件</strong></td>
</tr>
<tr>
<td colspan="1" align="right" >紧急程度</td>
<td colspan="5">
<select name="rgrade">
<option value="">请选择</option>
<option value="0" >一般</option>
<option value="1" >重要</option>
<option value="2" >紧急</option>
</select>
</td>
</tr>
<tr>
<td colspan="1" align="right" width="107">环节希望完成时间</td>
<td colspan="5">从
<input style="width: 147" type="text" name="starttime" onclick="setday(this);" readonly="readonly" value=""/>
到
<input style="width: 148" type="text" name="endtime" onclick="setday(this);" readonly="readonly" value=""/>
</td>
</tr>
<tr>
<td height="27" colspan="6">
<input type="hidden" name="task" value="getmyaffair"/>
<input type="hidden" name="flag" value="2"/>
<input type="submit" name="Submit" value="查询" />
<input type="button" name="Submit2" value="取消" onclick="window.history.back();"/></td>
</tr>
</table>
</html:form>
<table width="100%" border="1" cellspacing="0" class="myTable">
<tr class="tableHead">
<td height="27" align="center" ><strong>事务标题</strong></td>
<td align="center" ><strong>事务类型</strong></td>
<td align="center" ><strong>事务级别</strong></td>
<td align="center" ><strong>事务状态</strong></td>
<td align="center" ><strong>希望总完成时间</strong></td>
<td align="center" ><strong>操作</strong></td>
</tr>
<c:if test="${requestScope.reqLists!=null}">
<c:forEach var="req" items="${requestScope.reqLists}">
<c:if test="${req.rtitle==null}">
<tr>
<TD colspan="6" align="center"><a style="color: red ;font-size: 14" >没有您的内容</a></TD>
</tr>
</c:if>
<c:if test="${req.rtitle!=null}">
<tr align="center">
<td>${req.rtitle}</td>
<td>${req.tname}</td>
<c:if test="${req.rgrade==0}"><td>一般</td></c:if>
<c:if test="${req.rgrade==1}"><td>重要</td></c:if>
<c:if test="${req.rgrade==2}"><td>紧急</td></c:if>
<c:if test="${req.rresult==0}"><td>待办</td></c:if>
<c:if test="${req.rresult==1}"><td>审核中...</td></c:if>
<c:if test="${req.rresult==2}"><td>审核未通过</td></c:if>
<c:if test="${req.rresult==3}"><td>审核通过</td></c:if>
<td>${req.rlasttime}</td>
<td><html:link action="/affairReq.do?task=showmyaffair&rqid=${req.rqid}&rqids=${req.rqid}"><strong>查看</strong></html:link>
</td>
<td></td>
</tr>
</c:if>
</c:forEach>
</c:if>
<c:if test="${requestScope.reqLists==null}">
<tr>
<TD colspan="6" align="center"><a style="color: red ;font-size: 14" >没有您的内容</a></TD>
</tr>
</c:if>
</table>
${reqpage.pageBar}
</div>
<script type="text/javascript">
if(${requestScope.flag != null && requestScope.flag ==2 }){
setContent(2);
}
</script>
<a href="<%=request.getContextPath()%>/login.do?method=main"><strong> 返回首页<strong></a>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -