📄 excel_locate.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.util.*"
errorPage=""%>
<jsp:directive.page import="org.better.hr.entity.*;" />
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="table.css" type="text/css">
<link rel="stylesheet" type="text/css" media="all"
href="javascript/calendar/calendar-win2k-cold-1.css">
<script type="text/javascript" src="javascript/calendar/cal.js"></script>
<script type="text/javascript" src="javascript/comm/list.js"></script>
<script type="text/javascript">
<%
//将二级机构存入数组
List list1 = (List)request.getAttribute("list_secondkind");
Iterator it = list1.iterator();
out.println("var subcat = new Array("+list1.size()+");");
int i = 0;
while(it.hasNext())
{
ConfigFileSecondKind item = (ConfigFileSecondKind)it.next();
out.println("subcat["+i+"] = [\""+item.getFskId()+
"\", \""+item.getFirstKindName()+"/"+item.getSecondKindName()+
"\",\""+item.getFirstKindName()+
"\",\""+item.getFirstKindName()+"/"+item.getSecondKindName()+
"\"];");
++i;
}
//将三级机构存入数组
list1 = (List)request.getAttribute("list_thirdkind");
it = list1.iterator();
out.println("var subcat1 = new Array("+list1.size()+");");
i = 0;
while(it.hasNext())
{
ConfigFileThirdKind item = (ConfigFileThirdKind)it.next();
out.println("subcat1["+i+"] = [\""+item.getFtkId()+
"\", \""+item.getThirdKindName()+
"\", \""+item.getFirstKindName()+"/"+item.getSecondKindName()+"/"+item.getThirdKindName()+
"\",\""+item.getFirstKindName()+"/"+item.getSecondKindName()+
"\"];");
++i;
}
%>
function selAll(obj)
{
var cho = document.all.choice.value;
if(cho == "全选")
document.all.choice.value = "取消";
else
document.all.choice.value = "全选";
for(var i=0;i<obj.elements.length;i++){
if(obj.elements[i].tagName.toLowerCase()=="input" && obj.elements[i].type=="checkbox"){
if(cho == "全选")
obj.elements[i].checked=true;
else
obj.elements[i].checked=false;
}
}
}
function downExport()
{
document.forms[0].action = document.forms[0].action + "?operate=downExport&method=excel";
document.forms[0].submit();
}
</script>
</head>
<body>
<form action="exportfile.do" method="post">
<table width="100%">
<tr>
<td>
<font color="#0000CC">您正在做的业务是:人力资源--标准数据报表--Excel标准数据报表</font>
</td>
</tr>
<tr>
<td align="right">
<input type="button" value="确定" class="BUTTON_STYLE1" onclick="downExport();">
<input type="button" value="返回" class="BUTTON_STYLE1"
onclick="history.back();">
</td>
</tr>
</table>
<table width="100%" border="1" cellpadding=0 cellspacing=1
bordercolorlight=#848284 bordercolordark=#eeeeee
class="TABLE_STYLE1">
<tr class="TR_STYLE1">
<td class="TD_STYLE1" colspan="4">
请选择要导出的字段
<input type="button" name="choice" value="全选"
class="BUTTON_STYLE1" onclick="selAll(this.form)">
</td>
</tr>
<logic:iterate id="list" name="list" indexId="index">
<html:hidden name="list" property="columnCN" indexed="true"/>
<html:hidden name="list" property="columnEN" indexed="true"/>
<c:if test="${index % 4 == 0}"><tr></c:if>
<td class="TD_STYLE2">
<html:checkbox name="list"
property="checked" indexed="true" >${list.columnCN}</html:checkbox>
</td>
<c:if test="${index % 4 == 3}"></tr></c:if>
</logic:iterate>
</table>
<br>
<table class="TABLE_STYLE1" width="100%">
<tr class="TR_STYLE1">
<td width="16%" class="TD_STYLE1">
请选择员工所在I级机构
</td>
<td width="84%" class="TD_STYLE2">
<html:select styleClass="SELECT_STYLE2" size="5"
property="item.firstKindName" name="exportfileForm"
onchange="changelocation(document.forms[0].elements['item.secondKindName'],document.forms[0].elements['item.firstKindName'].options[document.forms[0].elements['item.firstKindName'].selectedIndex].value)">
<html:option value=""> </html:option>
<logic:iterate id="list" name="list_firstkind"
type="org.better.hr.entity.ConfigFileFirstKind">
<html:option value="${list.firstKindName}">${list.firstKindName}</html:option>
</logic:iterate>
</html:select>
</td>
</tr>
<tr>
<td class="TD_STYLE1">
请选择员工所在II级机构
</td>
<td width="84%" class="TD_STYLE2">
<html:select styleClass="SELECT_STYLE2" size="5"
property="item.secondKindName" name="exportfileForm"
onchange="changelocation1(document.forms[0].elements['item.thirdKindName'],document.forms[0].elements['item.secondKindName'].options[document.forms[0].elements['item.secondKindName'].selectedIndex].value)">
<script language="javascript">
changelocation(document.forms[0].elements["item.secondKindName"],document.forms[0].elements["item.firstKindName"].value)
</script>
</html:select>
</td>
</tr>
<tr class="TR_STYLE1">
<td width="16%" class="TD_STYLE1">
请选择员工所在III级机构
</td>
<td width="84%" class="TD_STYLE2">
<html:select styleClass="SELECT_STYLE2" size="5"
property="item.thirdKindName" name="exportfileForm">
<script language="javascript">
changelocation1(document.forms[0].elements["item.thirdKindName"],document.forms[0].elements["item.secondKindName"].value)
</script>
</html:select>
</td>
</tr>
<tr class="TR_STYLE1">
<td class="TD_STYLE1" width="20%">
请输入建档时间
</td>
<td width="84%" class="TD_STYLE2">
<html:text styleClass="INPUT_STYLE2" property="item.str_startTime" name="exportfileForm"
styleId="date_start" style="width:14% "/>至<html:text styleClass="INPUT_STYLE2" property="item.str_endTime" name="exportfileForm"
styleId="date_end" style="width:14% "/>
(YYYY-MM-DD)
</td>
</tr>
</table>
</form>
</body>
<script type="text/javascript">
Calendar.setup ({inputField : "date_start", ifFormat : "%Y-%m-%d", showsTime : false, button : "date_start", singleClick : true, step : 1});
Calendar.setup ({inputField : "date_end", ifFormat : "%Y-%m-%d", showsTime : false, button : "date_end", singleClick : true, step : 1});
</script>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -