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

📄 retirecenter3.jsp

📁 J2ee开发的 人事管理系统 使用oracle数据库 myeclips平台开发
💻 JSP
字号:
<%@ page language="java" pageEncoding="gb2312"%>
<%@ page import="java.util.*" %>
<%@ page import="com.galaxy.vo.*" %>
<%@ page import="com.galaxy.util.*" %>
<% request.setCharacterEncoding("gb2312"); %>  
<%! String currentPage="1"; //当前显示的页面号%>
<%
 PageHelp pagehelp=new PageHelp();//实例化PageHelp对象pageHelp
 pagehelp=(PageHelp)request.getAttribute("pagehelp");
 List list=pagehelp.getObjectlist();
 if(pagehelp.getCurrentpage()!=0 ){
currentPage=String.valueOf( pagehelp.getCurrentpage());
}
%>


<html>
<script>
function queryItem(){
document.form1.action="PD_DispatchQueryServlet?opflag=query";
document.form1.submit();
}
function retireCK(){
document.form1.action="PD_DispatchQueryServlet?opflag=retireCK";
document.form1.submit();
}
<!-- 翻页操作 -->
function changpage(currentpage){
document.condiform.currentPage.value=currentpage;
document.condiform.opflag.value='detaillist';
document.condiform.flag.value='retire3';
document.condiform.submit();
return false;
}

</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet"  type="text/css" href="../../css/css.css">
<title>无标题文档</title>
</head>
<%
List deptlist=new ArrayList();
deptlist=(ArrayList)request.getAttribute("deptlist");
%>
<body>
<form name="form1" method="post">
<input type="hidden" name="currentPage" value="<%=currentPage%>"/> 
<input type="hidden" name="condition" value="<%=pagehelp.getCondition()%>"/>
<h1 align="center"><strong>离退人员管理</strong> </h1>
  <table class="toBeSetBgColor" width="800"  border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="250" height="25">员工姓名:        <input name="username" type="text" id="username" size="15">      </td>
      <td width="250"> 部门:        
        <select name="dept" id="dept">
        <option value="0">选择部门</option>
        <%if(deptlist!=null){
        for(int i=0;i<deptlist.size();i++){
        DeptInfoVO deptvo=(DeptInfoVO)deptlist.get(i); 
          %>
         <option value="<%=deptvo.getDiId() %>"><%=deptvo.getDiName() %></option>
         <%}} %>
      </select>      </td>
      <td width="100" align="left"><input name="button1" type="button"  id="button" value="  查  询  " onClick="queryItem()"></td>
      <td width="100" align="center"><input name="button2" type="button"  id="button" value="离退参考表" onClick="retireCK()"></td>
    </tr>
  </table>
  <table class="toBeSetBgColor" width="800" border="1" cellspacing="0">
    <tr class="RowHeader">
      <th height="25"> <div align="center">员工姓名</div></th>
      <th ><div align="center">离职原因</div></th>
      <th ><div align="center">离职前部门</div></th>
      <th ><div align="center">离职前职位</div></th>
      <th ><div align="center">离职时间</div></th>
    </tr>
       <%if(list!=null){%>
   <%for(int i=0;i<list.size();i++){
  	ChangeRecordVO changevo=(ChangeRecordVO)list.get(i); %>
   <!--设置输出表格格式和鼠标指向表格时的颜色变化-->
	<tr  <%if(i%2==1){%>class="OddRow"<%}
   		else{%>class="EvenRow"<%} %> onMouseOver="this.style.backgroundColor='white'" 
   			onMouseOut="this.style.backgroundColor=''">
      <td height="25" align="center"><%=changevo.getUserInfo().getUiRealname() %></td>
      <td align="center"><%=changevo.getPcrClass()%></td>
      <td align="center"><%=changevo.getPcrExdept()%></td>
      <td align="center"><%=changevo.getPcrExstudy() %></td>
      <td align="center"><%=changevo.getPcrTime() %></td>
      <%}} %>
    </tr>
  </table>
    </form>
  <form name="condiform" action="PD_DispatchQueryServlet" method="post">
<input type="hidden" name="opflag" value=""/>
<input type="hidden" name="flag" value=""/>
<input type="hidden" name="currentPage" value="<%=currentPage%>"/> 
<input type="hidden" name="condition" value="<%=pagehelp.getCondition()%>"/>
<table align=center border=0 width=90% bordercolorlight=#3399ff
	bordercolordark=#3399ff cellspacing=0 cellpadding=0>	
	<%if(list.size()!=0){ %>
	<tr>		
		<td align=center width=10%  height=25><%=pagehelp.getPagebar()%></td>
	</tr>	
	<%}else{ %>
	<tr>		
		<td align=center width=10%  height=25 >没有符合查询条件的信息</td>
	</tr>
	<%} %>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

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