⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 weeklylooklist.jsp

📁 一个oa系统
💻 JSP
字号:
<%@ page language="java" import="java.util.*,com.oa.db.*"
	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"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
	//String use=(String)session.getAttribute("username");System.out.println("use"+use);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>联信OA-周报系统</title>
		<style type="text/css">
<!--
body {
	margin-left: 10px;
	margin-top: 5px;
	margin-right: 0px;
	margin-bottom: 0px;
}
body,td,th {
	font-size: 12px;
}
        a:link {
			color: #000000;
			text-decoration: none;
		}
		a:visited {
			text-decoration: none;
			color: #000000;
		}
		a:hover {
			text-decoration: underline;
			color: #333333;
		}
		a:active {
			text-decoration: none;
			color: #333333;
		}
-->
html,body{

scrollbar-face-color: #f2f2f2; 

scrollbar-highlight-color: #ffffff; 

scrollbar-shadow-color: #999999; 

scrollbar-3dlight-color: #999999; 

scrollbar-arrow-color: #999999; 

scrollbar-track-color: ##FFFFFF; 

scrollbar-darkshadow-color: #ffffff;

}
</style>
		<script language="javascript">
function byperiodquery(){
    //   var sel = document.getElementById("period").value;
     //  fr.action="<%=request.getContextPath()%>/byperiodquerymodifylist.do?period="+sel+"";
       fr.action="<%=request.getContextPath()%>/byperiodquerylooklist.do?";
       fr.submit();      
   }
function look(a){
   //window.open("<%=request.getContextPath()%>/weekly/employee/modifyweekly.jsp?id="+a,"","");
    frm.action = "<%=request.getContextPath()%>/particular.do?id="+a;
	frm.submit();
}
function weeklymodifylist(a)
{	
	var page = document.getElementById("appointPage").value;
	if(page==""){
	    alert("请输入要跳转的页面数");
	}else if(page!=""&&isNumberString(page,"1234567890")!=1){
	    alert("请输入正确的页面数");
	}else if(page!=""&&page>a){
	    alert("请输入正确的页面数");
	}else if(page!=""&&page<a){
	    alert("请输入正确的页面数");
	}else{	
	     window.location="/oa/weeklylooklist.do?turnpage=" + page;
	}
}
function isNumberString (InString,RefString)
	{
		if(InString.length==0) return (false);
		for (Count=0; Count < InString.length; Count++)
		{
			TempChar= InString.substring (Count, Count+1);
			if (RefString.indexOf (TempChar, 0)==-1)  
			return (false);
		}
		return (true);
	}
</script>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>

	<body>
		<form action="" method="post" name="frm" style="display:inline"
			target="_blank"></form>
		<table width="780" height="140" border="0" align="left"
			cellpadding="0" cellspacing="0" bordercolor="#B1C3D9">
			<tbody>
		  <form action="" method="post" name="fr" target="_self"
					style="display:inline">
				<tr>
					<td width="695" height="26">
						以下列示的您的所有的周报:					</td>
					<td width="95">
						<div align="right">
						  <%
							int period = 0;
							period = (Integer) request.getAttribute("period");
						%>
						    <select name="period" onChange="byperiodquery()" id="period">
						      <%
								String str = "";
								List periodlist = (List) request.getAttribute("periodlist");
								if (periodlist != null && periodlist.size() != 0) {
									for (int k = 0; k < periodlist.size(); k++) {
										Weeklycircle co = (Weeklycircle) periodlist.get(k);
										int a = co.getPeriod();
										if (period != 0) {
									if (period == a) {
										str = "selected";
									} else {
										str = "";
									}
										}
							%>
						      <option value="<%=a%>" <%=str%>>
						        第<%=a%>期
					          </option>
						      <%
								}
								}
							%>
					        </select>
				        </div></td>
				</tr>
		  </form>
				<tr>
					<td height="52" colspan="3" valign="top">
						<table cellspacing="1" cellpadding="0" width="790"
							bgcolor="#3868f8" border="0">
							<tbody>
								<tr>
									<td width="114" bgcolor="#A4B5E3" height="24">
										<div align="center">
											期号
										</div>
									</td>
									<td width="186" bgcolor="#A4B5E3" height="24">
										<div align="center">
											周报填写时间
										</div>
									</td>
									<td width="126" bgcolor="#A4B5E3" height="24">
										<div align="center">
											员工姓名
										</div>
									</td>
									<td width="150" bgcolor="#A4B5E3">
										<div align="center">
											状态
										</div>
									</td>
									<td width="124" bgcolor="#A4B5E3" height="24">
										<div align="center">
											操作
										</div>
									</td>
								</tr>
								<%
											java.text.SimpleDateFormat format = new java.text.SimpleDateFormat(
											"yyyy-MM-dd HH:mm:ss");
									List list = null;
									List list2 = null;
									list = (List) request.getAttribute("alllooklist");
									list2 = (List) request.getAttribute("byperiodquerylooklist");

									if (list == null) {
										list = list2;
									}
									if (list != null && list.size() != 0) {
										for (int i = 0; i < list.size(); i++) {
											Weeklyinput wo = (Weeklyinput) list.get(i);
								%>
								<tr>
									<td bgcolor="#ffffff" height="25">
										<div align="center">
											<%=wo.getPeriod()%>
										</div>
									</td>
									<td bgcolor="#ffffff">
										<div align="center">
											<%
														if (wo.getDate() == null || wo.getDate().equals("")
														|| wo.getDate().equals("null")) {
											%>
											<%
											} else {
											%>
											<%=format.format(wo.getDate())%>
											<%
											}
											%>
										</div>
									</td>
									<td bgcolor="#ffffff">
										<div align="center">
											<%=wo.getRealname()%>
										</div>
									</td>
									<td bgcolor="#ffffff">
										<div align="center">
											<%=wo.getWhethercheck()%>
										</div>
									</td>
									<td bgcolor="#ffffff">
										<div align="center">
										 <%if(wo.getWhethercheck()!=null){
                                               if(!wo.getWhethercheck().equals("未提交")){%>
											<input hidefocus="hideFocus"
												onClick="look('<%=wo.getId()%>')" type="button" value="查 看" 
												name="Submit22" />
											<%}else{ %>
											<input hidefocus="hideFocus"
												onClick="look('<%=wo.getId()%>')" type="button" value="查 看" disabled="false"
												name="Submit22" />
										<%}} %>
										</div>
									</td>
								</tr>
								<%
									}
									} else {
								%>
								<tr>
									<td colspan="5" height="25" bgcolor="#FFFFFF">
										<div align="center">
											您搜索的这期周报不存在!
										</div>
									</td>
								</tr>
								<%
								}
								%>
							</tbody>
					  </table>
					</td>
				</tr>
				<%
					List list3 = (List) request.getAttribute("alllooklist");
					String turnpage = (String)request.getAttribute("turnpage");
				%>
				<tr>
					<td bgcolor="#ffffff" colspan="10" height="25">
						<div align="right">
							<%
							if (list3 != null && list3.size() != 0) {
							%>
							<logic:notEmpty name="pageBean">
								<table width="500" border="0" cellspacing="1" cellpadding="0"
									align="right">
									<tr>

										<td>
											<font color="red"><bean:write name="pageBean"
													property="totalRecoder" />
											</font>条记录
										</td>
										<td>
											当前第
											<font color="red"><bean:write name="pageBean"
													property="currentPage" />
											</font>/
											<font color="red"><bean:write name="pageBean"
													property="totalPages" />
											</font>页
										</td>
										<td>
											<html:link page="/weeklylooklist.do" paramId="currentPage"
												paramName="pageBean" paramProperty="firstPage">首 页</html:link>
										</td>
										<td>
											<html:link page="/weeklylooklist.do" paramId="currentPage"
												paramName="pageBean" paramProperty="upPage"> 上一页</html:link>
										</td>
										<td>
											<html:link page="/weeklylooklist.do" paramId="currentPage"
												paramName="pageBean" paramProperty="downPage">下一页</html:link>
										</td>
										<td>
											<html:link page="/weeklylooklist.do" paramId="currentPage"
												paramName="pageBean" paramProperty="lastPage">尾 页</html:link>
										</td>
                                         <td>
											<input type="text" id="appointPage" size="2" value="<%=turnpage %>">页&nbsp;
											<input type="button" value="GO" onClick="return weeklymodifylist('<%=turnpage %>'); ">
										</td>

									</tr>
								</table>
							</logic:notEmpty>
							<%
							} else {
							%>
							<%
							}
							%>
						</div>
					</td>
				</tr>
			</tbody>
	</table>
	</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -