📄 tj_zhiwu.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;
}
.STYLE1 {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=zhiwu" onsubmit="return che()">
<table width="396" border="0" align="center" cellspacing="0">
<tr>
<td width="88" height="37" bgcolor="#C4DEF6" class="STYLE1"><span class="STYLE1">选择查看部门:</span></td>
<td width="114" bgcolor="#C4DEF6" class="STYLE1"><span class="STYLE1">
<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>
</span></td>
<td width="66" bgcolor="#C4DEF6" class="STYLE1"><input name="Submit2" type="submit" value="查看" /></td>
</tr>
</table>
<logic:present name="dept0" scope="request">
<table width="382" height="90" border="1" align="center" cellspacing="0" bgcolor="#C4DEF6">
<tr align="center">
<td width="91" height="21" bgcolor="#C4DEF6"><span class="STYLE1">技术员(
<logic:iterate id="j0" name="j0" type="pmsys.UserForm" scope="request">
<bean:write name="j0" property="deptno"/>
</logic:iterate>
人)</span></td>
<td width="113" bgcolor="#C4DEF6"><span class="STYLE1">工人(
<logic:iterate id="j1" name="j1" type="pmsys.UserForm" scope="request">
<bean:write name="j1" property="deptno" />
</logic:iterate>
人)</span></td>
<td width="94" bgcolor="#C4DEF6"><span class="STYLE1">厂长(
<logic:iterate id="j2" name="j2" type="pmsys.UserForm" scope="request">
<bean:write name="j2" property="deptno" />
</logic:iterate>
人)</span></td>
<td width="108" bgcolor="#C4DEF6"><span class="STYLE1">副厂长(
<logic:iterate id="j3" name="j3" type="pmsys.UserForm" scope="request">
<bean:write name="j3" property="deptno" />
</logic:iterate>
人)</span></td>
</tr>
<tr>
<td valign="top" bgcolor="#C4DEF6"><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" class="STYLE1"><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" bgcolor="#C4DEF6"><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" class="STYLE1"><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>
<td valign="top" bgcolor="#C4DEF6"><table width="70" border="0" align="center" cellspacing="0" bgcolor="#C4DEF6">
<logic:iterate id="dept2" name="dept2" type="pmsys.UserForm" scope="request">
<tr>
<td valign="top" class="STYLE1"><span class="style2"> <a href='/pmsys/tjtype.do?method=emplist&emp_id=<bean:write name="dept2" property="deptno" />'>
<bean:write name="dept2" property="dname"/>
</a> </span></td>
</tr>
</logic:iterate>
</table></td>
<td valign="top" bgcolor="#C4DEF6"><table width="70" border="0" align="center" cellspacing="0" bgcolor="#C4DEF6">
<logic:iterate id="dept3" name="dept3" type="pmsys.UserForm" scope="request">
<tr>
<td valign="top" class="STYLE1"><span class="style2"> <a href='/pmsys/tjtype.do?method=emplist&emp_id=<bean:write name="dept3" property="deptno" />'>
<bean:write name="dept3" property="dname"/>
</a> </span></td>
</tr>
</logic:iterate>
</table></td>
</tr>
<tr>
<td bgcolor="#C4DEF6" class="STYLE1">全厂总人数:
<bean:write name="count0" /></td>
<td bgcolor="#C4DEF6" class="STYLE1">全厂总人数:
<bean:write name="count1" /></td>
<td bgcolor="#C4DEF6" class="STYLE1">全厂总人数:
<bean:write name="count2" /></td>
<td bgcolor="#C4DEF6" class="STYLE1">全厂总人数:
<bean:write name="count3" /></td>
</tr>
<tr>
<td colspan="2" bgcolor="#C4DEF6" class="STYLE1">当前显示部门:
<bean:write name="dept" /></td>
<td colspan="2" bgcolor="#C4DEF6" class="STYLE1">该部门总人数:
<bean:write name="dept_count" /></td>
</tr>
<tr>
<td colspan="8" align="right" bgcolor="#C4DEF6"><span class="STYLE1">
<a href='/pmsys/picture.do?method=tj_picture_zhiwu&tjdept=<bean:write name="dep_id" />' class="STYLE1">生成图表</a>
<a href='/pmsys/tjtype.do?method=report_date_zhiwu&dept=<bean:write name="dep_id" />' class="style2">导出数据</a> </span></td>
</tr>
</table>
</logic:present>
</form>
<logic:present name="zhiwu_ok" scope="request">
<center>
<span class="style2"><bean:write name="zhiwu_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 + -