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

📄 deptweeklychecklist.jsp

📁 一个oa系统
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ 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: 10px;
	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()%>/deptweeklymodifypage.do?flag=2&id="+a;
	frm.submit();
}
function query(a){
   //window.open("<%=request.getContextPath()%>/weekly/employee/modifyweekly.jsp?id="+a,"","");
    frm.action = "<%=request.getContextPath()%>/particulardeptweekly.do?id="+a;
	frm.submit();
}
function deptweeklychecklist(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/deptweeklychecklist.do?turnpage=" + page;
	}
}
function deptweeklyquerylist3(a,b,c,d)
{	//alert(b);
	var page = document.getElementById("appointPage").value;
	if(page==""){
	    alert("请输入要跳转的页面数");
	}else if(page!=""&&isNumberString(page,"1234567890")!=1){
	    alert("请输入正确的页面数");
	}else if(page!=""&&page>d){
	    alert("请输入正确的页面数");
	}else if(page!=""&&page<d){
	    alert("请输入正确的页面数");
	}else{	
	     window.location="/oa/deptweeklyquerylist3.do?period="+a+"&keyword="+b+"&department="+c+"&turnpage2=" + 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="730" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<form
					action="<%=request.getContextPath()%>/deptweeklyquerylist2.do"
					name="fr" method="post" style="display:inline">
					<table width="730" border="0" align="center" cellpadding="0"
						cellspacing="1">
						<tr>
							<td colspan="7">&nbsp;
								
							</td>
						</tr>
						<tr>
							<td>
								部门:
							</td>
							<td height="25">
								<select name="department">
									<option value="0">
										请选择
									</option>
									<%
										List departmentlist = (List) request.getAttribute("departmentlist");
										int departmentid = 0;
										departmentid = (Integer) request.getAttribute("department");
										String str = "";
										if (departmentlist != null && departmentlist.size() != 0) {
											for (int i = 0; i < departmentlist.size(); i++) {
												Department ao = (Department) departmentlist.get(i);
												if (departmentid == ao.getId()) {
											str = "selected";
												} else {
											str = "";
												}
									%>
									<option value="<%=ao.getId()%>" <%=str%>>
										<%=ao.getDepartment()%>
									</option>
									<%
										}
										}
									%>
								</select>
							</td>
							<td>
								周报期号:
							</td>
							<td>
								<%
									int period = 0;
									period = (Integer) request.getAttribute("period");
								%>
								<select name="period" id="period">
									<option value="0">
										请选择
									</option>
									<%
										String str2 = "";
										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) {
												str2 = "selected";
											} else {
												str2 = "";
											}
												}
									%>
									<option value="<%=co.getId()%>" <%=str2%>>
										<%=a%>
									</option>
									<%
										}
										}
									%>
								</select>
							</td>
							<%String keyword = "";
							String keyword5 = (String)request.getAttribute("keyword");
							if(keyword5!=null){
							   keyword=keyword5;
							}else{
							  keyword="";
							}	 %>
							<td>
								输入关键字:
								<input type="text" name="keyword" value="<%=keyword %>"/>
							</td>
							<td>
								<input name="Submit3" type="submit" value="查 询" />
							</td>
						</tr>
						<tr>
							<td height="6" colspan="4"></td>
						</tr>
						<tr>
							<td height="1" colspan="7"
								background="<%=request.getContextPath()%>/image/line.gif"></td>
						</tr>
						<tr>
							<td height="6" colspan="4"></td>
						</tr>
						<tr>
							<td height="25" colspan="4">
								提示:关键字查询可输入员工姓名、工作周报状态等关键字
							</td>
						</tr>
						<tr>
							<td height="12" colspan="4">&nbsp;
								
							</td>
						</tr>
					</table>
				</form>
			</tr>
			<tr>
				<td>
					<table width="730" cellpadding="0" cellspacing="0">
						<form action="" method="post" name="fr" style="display:inline">
						<tr>

⌨️ 快捷键说明

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