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

📄 weeklydeptindex.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,td,th {
	font-size: 12px;
}
body {
	margin-left: 2px;
	margin-top: 5px;
	margin-right: 0px;
	margin-bottom: 0px;
}
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;
		}
.STYLE6 {	font-size: 14px;
	font-weight: bold;
	color: #FFFFFF;
}
-->
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 byperiodanddeptquery(){
    //   var sel = document.getElementById("period").value;
     //  fr.action="<%=request.getContextPath()%>/byperiodquerymodifylist.do?period="+sel+"";
       fr.action="<%=request.getContextPath()%>/byperiodanddeptquerylist.do?";
       fr.submit();      
   }
function check(a){
   //window.open("<%=request.getContextPath()%>/weekly/employee/modifyweekly.jsp?id="+a,"","");
    frm.action = "<%=request.getContextPath()%>/weeklydeptcheckpage.do?id="+a;
	frm.submit();
}
function query(a){
   //window.open("<%=request.getContextPath()%>/weekly/employee/modifyweekly.jsp?id="+a,"","");
    frm.action = "<%=request.getContextPath()%>/particular.do?id="+a;
	frm.submit();
}
function weeklydeptmanagerquerylist(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/weeklydeptmanagerquerylist.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>
	</head>

	<body>
		<form action="" method="post" name="frm" style="display:inline"
			target="_blank"></form>
		<table width="730" border="0" cellpadding="0" cellspacing="0">
			<tr></tr>
			<tr>
				<td>
					<table width="740" cellpadding="0" cellspacing="0">
						<form action="" method="post" name="fr" style="display:inline">
						<tr>
							<td width="684" height="26">
								以下列示的是您部门所有员工工作周报:							</td>
							<td width="96">
								<div align="right">
								  <%
									int period = 0;
									period = (Integer) request.getAttribute("period");
								%>
								    <select name="period" onChange="byperiodanddeptquery()"
									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="4" valign="top">
								<table width="780" border="0" align="left" cellpadding="0"
									cellspacing="1" bordercolor="#000000" bgcolor="#3868f8">
									<tbody>
										<tr>
											<td width="98" height="24" bgcolor="#A4B5E3">
												<div align="center">
													期号
												</div>
											</td>
											<td width="164" bgcolor="#A4B5E3" height="24">
												<div align="center">
													周报填写时间
												</div>
											</td>
											<td width="92" bgcolor="#A4B5E3" height="24">
												<div align="center">
													员工姓名
												</div>
											</td>
											<td width="104" bgcolor="#A4B5E3" height="24">
												<div align="center">
													所属部门
												</div>
											</td>
											<td width="92" bgcolor="#A4B5E3">
												<div align="center">
													状态
												</div>
											</td>
											<td width="149" bgcolor="#A4B5E3" height="24">
												<div align="center">
													操作
												</div>
											</td>
										</tr>
										<%
											List wlist = (List) request.getAttribute("deptquerylist");
											List list2 = (List) request.getAttribute("byperiodanddeptquerylist");
											if (wlist == null) {
												wlist = list2;
											}
											java.text.SimpleDateFormat format = new java.text.SimpleDateFormat(
													"yyyy-MM-dd HH:mm:ss");
											if (wlist != null && wlist.size() != 0) {
												for (int i = 0; i < wlist.size(); i++) {
													Weeklyinput wo = (Weeklyinput) wlist.get(i);
													String departmentname = (String) session
													.getAttribute("departmentname");
										%>
										<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">
													<%=departmentname%>
												</div>
											</td>
											<td bgcolor="#ffffff">
												<div align="center">
													<%=wo.getWhethercheck()%>
												</div>
											</td>
											<td width="149" bgcolor="#ffffff">
												<div align="center">
													<input hidefocus="hideFocus"
														onClick="query('<%=wo.getId()%>')" type="button"
														value="查 看" name="Submit22" />
													&nbsp;
													<input type="button" name="Submit" value="审 核"
														onClick="check('<%=wo.getId()%>')" />
												</div>
											</td>
										</tr>
										<%
											}
											}
										%>
									</tbody>
							  </table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<%
			List list3 = (List) request.getAttribute("deptquerylist");
			String turnpage = (String) request.getAttribute("turnpage");
		%>
		<table width="780" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td bgcolor="#ffffff" colspan="10" height="17">
					<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="/weeklydeptmanagerquerylist.do"
											paramId="currentPage" paramName="pageBean"
											paramProperty="firstPage">首 页</html:link>
									</td>
									<td>
										<html:link page="/weeklydeptmanagerquerylist.do"
											paramId="currentPage" paramName="pageBean"
											paramProperty="upPage"> 上一页</html:link>
									</td>
									<td>
										<html:link page="/weeklydeptmanagerquerylist.do"
											paramId="currentPage" paramName="pageBean"
											paramProperty="downPage">下一页</html:link>
									</td>
									<td>
										<html:link page="/weeklydeptmanagerquerylist.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 weeklydeptmanagerquerylist('<%=turnpage %>'); ">
									</td>

								</tr>
							</table>
						</logic:notEmpty>
						<%
						} else {
						%>
						<%
						}
						%>

					</div>
				</td>
			</tr>
	</table>
	</body>
</html>

⌨️ 快捷键说明

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