81,094
社区成员
发帖
与我相关
我的任务
分享
function showSelect(value)
{
if(value=="all")
$("selectzg2").style.display = "none";
else
{
$("selectzg2").style.display = "";
var form=document.forms[0];
form.action="/humanres/empstat.shtml?method=zg2Select";
form.submit();
}
}
<select name="selectzg1" id="selectzg1"
style="width:200;display:none"
onchange="changezg(this);showSelect(this.value);">
<option value="all">
全部资格证书
</option>
<c:forEach items="${zgselect1 }" var="zs1">
<option value="${zs1.LETTER_NAME }">
${zs1.LETTER_NAME }
</option>
</c:forEach>
</select>
<select name="selectzg2" id="selectzg2"
style="width:200;display:none" onchange="changezg(this)">
<option value="all">
全部资格证书
</option>
<c:forEach items="${zgselect2 }" var="zs2">
<option value="${zs2.COMP_NAME }">
${zs2.COMP_NAME }
</option>
</c:forEach>
</select>
public zg2Select(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
List zg2 = this.getHanton().getEmployeeDAO().getCompNameByLetter(
this.getSessionComCode(request),
this.getParameter(request, "selectzg1"));
this.setAttribute(request, "zgselect2", zg2);
}
public ActionForward zg2Select(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
List zg2 = this.getHanton().getEmployeeDAO().getCompNameByLetter(
this.getSessionComCode(request),
this.getParameter(request, "selectzg1"));
this.setAttribute(request, "zgselect2", zg2);
List hk = this.getHanton().getDictDAO().getValues("CENSUS_PROPRTY");
List wh = this.getHanton().getDictDAO().getValues("EDUCATE");
List zc = this.getHanton().getEmployeeDAO().getPositionName(
this.getSessionComCode(request));
this.setAttribute(request, "coms", this.getAllComs());
this.setAttribute(request, "comCode", this.getSessionComCode(request));
this.setAttribute(request, "hkselect", hk);
this.setAttribute(request, "whselect", wh);
this.setAttribute(request, "zgselect1", this.getParameter(request, "selectzg1"));
this.setAttribute(request, "zgselect2", zg2);
this.setAttribute(request, "zcselect", zc);
return mapping.findForward("newExport");
}