employee_welfare_manage.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:
电子政务应用
开发平台:
Java
- <%
- /**
- * $RCSfile: employee_welfare_manage.jsp,v $
- * $Revision: 1.0 $
- * $Date: 2001/05/17 20:57:46 $
- * /mainctrl/intranet/hr/employee_welfare_manage
- */
- %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.hr.employer_info.value.*"%>
- <%@ page import="com.vnex.intranet.hr.employer_info.process.*"%>
- <%@ page import="com.vnex.intranet.hr.util.*"%>
- <%@ page import="java.util.*" %>
- <jsp:useBean id="salaryProxyBean" class="com.vnex.intranet.hr.employer_info.proxy.SalaryProxyBean" scope="application" />
- <%
- int emp_id = Integer.parseInt( request.getParameter("emp_id") );
- String emp_name = request.getParameter("emp_name");
- Collection pageColl = new ArrayList();
- Collection pageSetColl = new ArrayList();
- if ( request.getParameter("doSave") != null && request.getParameterValues("emp_id") != null)
- {
- String[] comId = request.getParameterValues("component_id");
- salaryProxyBean.salaryRemove( emp_id, MemberDbTable.WELFARE_TYPE );
- for ( int i=0; i<comId.length; i++ )
- {
- SalaryCountBean ms = new SalaryCountBean();
- ms.setComId( Integer.parseInt( comId[i] ) );
- ms.setEmpId( emp_id );
- ms.setComType( MemberDbTable.WELFARE_TYPE );
- salaryProxyBean.salaryCreate( ms );
- }
- response.sendRedirect("/mainctrl/intranet/hr/salary_set?emp_id="+emp_id+"&emp_name="+emp_name);
- }
- if ( emp_id >0 )
- {
- pageSetColl = salaryProxyBean.salaryFindAll( emp_id, MemberDbTable.WELFARE_TYPE );
- pageColl = salaryProxyBean.comFindAll( MemberDbTable.WELFARE_TYPE );
- }
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff
- topMargin=0 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript" src="/vnex/validate.js"></script>
- <script language="JavaScript" src="/vnex/menu/menu.js">
- /*
- Static Top Menu Script
- By ChunyiYang
- */
- </script>
- <script language="JavaScript" src="/vnex/menu/menucontext.js"></script>
- <script language="JavaScript">
- showToolbar();
- </script>
- <script language="JavaScript">
- function UpdateIt(){
- if (document.all){
- document.all["MainTable"].style.top = document.body.scrollTop;
- setTimeout("UpdateIt()", 200);
- }
- }
- UpdateIt();
- </script>
- <DIV align=center>
- <form name="form1" method="post" action="/mainctrl/intranet/hr/employee_welfare_manage?emp_id=<%= emp_id %>&emp_name=<%= emp_name %>">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <TBODY>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center">
- <br>
- <table width="400" border="0">
- <tr>
- <td align="center"><font class=strong>福利管理</font></td>
- </tr>
- </table>
- <table width="350" border="0">
- <tr>
- <td align="right">
- <input type="button" value="工资管理" name="B32" onClick="location='/mainctrl/intranet/hr/employee_salary_manage?emp_id=<%= emp_id %>&emp_name=<%= emp_name %>'" class=text>
- <input type="button" value="福利管理" name="B4" onClick="location='/mainctrl/intranet/hr/employee_welfare_manage?emp_id=<%= emp_id %>&emp_name=<%= emp_name %>'" class=text>
- <input type="button" value="保险管理" name="B5" onClick="location='/mainctrl/intranet/hr/employee_insurance_manage?emp_id=<%= emp_id %>&emp_name=<%= emp_name %>'" class=text>
- </td>
- </tr>
- </table>
- <span class=iframestyle
- style="OVERFLOW: visible; HEIGHT: 100%">
- <table class=title cellspacing=1 cellpadding=2 width="350" border=0>
- <tr>
- <td bgcolor="#e0e0e0" width="34%" align="center"><font class=strong>姓名:</font></td>
- <td bgcolor="#e0e0e0" colspan="2"><%= emp_name %></td>
- </tr>
- <tr>
- </tr>
- <tr>
- <td bgcolor="#e0e0e0" width="32%" align="center"><font class=strong>福利组成</font></td>
- <td bgcolor="#e0e0e0" width="48%">状态</td>
- <td bgcolor="#e0e0e0" width="20%">选择</td>
- </tr>
- <%
- Iterator iter = pageColl.iterator();
- while ( iter.hasNext() )
- {
- SalaryComponent sc = (SalaryComponent)iter.next();
- %>
- <tr>
- <td bgcolor="#fafafa" width="32%" align="center"><font class=strong><%= sc.getName() %>:</font></td>
- <td bgcolor="#fafafa" width="48%"><% if ( sc.getState() == MemberDbTable.COMPONENT_USE ) out.print("正在使用"); else out.print("暂停使用"); %>
- </td>
- <td bgcolor="#fafafa" width="20%">
- <input type="checkbox" name="component_id" value="<%= sc.getId() %>" checked <% if (sc.getState()==MemberDbTable.COMPONENT_UNUSE ) out.print("disabled"); %> >
- </td>
- </tr>
- <%
- }
- %>
- </table>
- </span>
- <br><br>
- <input type="submit" value="提交" name="B3" class=button>
- <input type="hidden" value="1" name="doSave" class=button>
- <input type="button" value="取消" name="B2" class=button onclick="location='/mainctrl/intranet/hr/salary_set?emp_id=<%= emp_id %>&emp_name=<%= emp_name %>'">
- <br><br>
- <table class=title cellspacing=1 cellpadding=2 width="350" border=0>
- <tr>
- <td bgcolor="#e0e0e0" align="center"><font class=strong>职员当前设置</font></td>
- </tr>
- <%
- Iterator iter1 = pageSetColl.iterator();
- while ( iter1.hasNext() )
- {
- MemberSalary ms = (MemberSalary)iter1.next();
- %>
- <tr>
- <td bgcolor="#fafafa" align="left"><font class=strong><%= ms.getComponent().getName() %></font></td>
- </tr>
- <%
- }
- %>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form></DIV>
- </BODY></HTML>