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

📄 tj_xingbie.jsp

📁 1.员工添加 2.人事调动 3.在职人员管理 4.部门(分厂)管理
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>性别统计</title>
<LINK href="../as_files/style.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
body {
	background-color: #C4DEF6;
}
.style2 {font-size: 12px}
-->
</style></head>
<script language="javascript">
function che(){

  	var a = document.getElementById("tjdept");

	if(a.options[form1.tjdept.selectedIndex].value=="#"){
		alert("请选择一项");
		return false;
	}else {
		return true;
	}
}
  function printsetup(){ 
  // 打印页面设置 
  wb.execwb(8,1); 
  } 
  function printpreview(){ 
  // 打印页面预览      
  wb.execwb(7,1);   } 
  function printit() 
  { 
  if (confirm('确定打印吗?')) { 
  wb.execwb(6,6) 
  } 
  }  
</script>
<body>
<br>
<h3 align="center">性别统计</h3>
<hr />
<form id="form1" name="form1" method="post" action="/pmsys/tjtype.do?method=xingbie" onsubmit="return che()">
<table width="283" border="0" align="center" cellspacing="0">
    <tr>
      <td width="112" height="37"><span class="style2">按部门查看:</span></td>
      <td width="112">
	<select name="tjdept" id="tjdept">
        <option value="#">--请选择-- </option>
	<logic:present name="deptlist" scope="request">
	<logic:iterate id="deptlist" name="deptlist" type="pmsys.UserForm" scope="request">
	<option value='<bean:write name="deptlist" property="deptno"/>' ><bean:write name="deptlist" property="dname"/></option>
	</logic:iterate>
	</logic:present>
      </select>
	  </td>
      <td width="53"><input type="submit" name="Submit2" value="查看" /></td>
    </tr>
  </table>
  <logic:present name="dept0" scope="request">
  <table width="304" height="117" border="1" align="center" cellspacing="0">
    <tr>
      <td width="139"><span class="style2">男(<logic:iterate id="j0" name="j0" type="pmsys.UserForm" scope="request">
	  <bean:write name="j0" property="deptno"/>
	  </logic:iterate>人)</span></td>
      <td width="161"><span class="style2">女(<logic:iterate id="j1" name="j1" type="pmsys.UserForm" scope="request"><bean:write name="j1" property="deptno" /></logic:iterate>人)</span></td>
    </tr>
    <tr>
 <td valign="top">
  <table width="70" border="0" align="center" cellspacing="0" bgcolor="#C4DEF6">
    <logic:iterate id="dept0" name="dept0" type="pmsys.UserForm" scope="request">
    <tr><td valign="top"><span class="style2">
         <a href='/pmsys/tjtype.do?method=emplist&emp_id=<bean:write name="dept0" property="deptno" />'><bean:write name="dept0" property="dname"/></a>
	</span></td>
    </tr>
    </logic:iterate>
  </table> 
</td>
  <td valign="top">
  <table width="70" border="0" align="center" cellspacing="0" bgcolor="#C4DEF6">
    <logic:iterate id="dept1" name="dept1" type="pmsys.UserForm" scope="request">
    <tr><td valign="top"><span class="style2">
         <a href='/pmsys/tjtype.do?method=emplist&emp_id=<bean:write name="dept1" property="deptno" />'><bean:write name="dept1" property="dname"/></a>
	</span></td>
    </tr>
    </logic:iterate>
  </table> 
	  </td>
    </tr>
    <tr>
      <td><span class="style2">全厂总人数:<bean:write name="count0" /></span></td>
      <td><span class="style2">全厂总人数:<bean:write name="count1" /></span></td>
    </tr>
    <tr>
      <td><span class="style2">当前显示部门: <bean:write name="dept" />
          
      </span></td>
      <td><span class="style2">该部门总人数:<bean:write name="dept_count" /></span></td>
    </tr>
    <tr>
      <td class="style2"><a href='/pmsys/picture.do?method=tj_picture_xingbie&tjdept=<bean:write name="dep_id" />' class="style2">生成图表</a></td>
      <td><a href='/pmsys/tjtype.do?method=report_date_sex&dept=<bean:write name="dep_id" />' class="style2">导出数据</a></td>
    </tr>
  </table>

  </logic:present>
</form>
<logic:present name="xingbie_ok" scope="request">
<center>
 <span class="style2"><bean:write name="xingbie_ok" /></span>
</center>
</logic:present>
   <center>
<OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height=0 id=wb name=wb width=0></OBJECT>
<input type="button" name="打印" value="打印"
 onclick="javascript:printit()" />
<input type="button" name=button_setup value="打印页面设置" 
onclick="javascript:printsetup();"> 
<input type="button" name="打印预览" value="打印预览" 
onclick="javascript:printpreview();"> 
</center>
</body>
</html>

⌨️ 快捷键说明

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