employee_salary_index.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:
电子政务应用
开发平台:
Java
- <%
- /**
- * $RCSfile: employee_salary_index.jsp,v $
- * $Revision: 1.0 $
- * $Date: 2001/05/17 20:57:46 $
- * /mainctrl/intranet/hr/salary_component_list
- */
- %>
- <%@ 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" />
- <%
- Collection pageColl = new ArrayList();
- if ( request.getParameter("doRemove") != null && request.getParameterValues("delId") != null)
- {
- String[] idA = request.getParameterValues("delId");
- for ( int i=0; i<idA.length; i++ )
- {
- salaryProxyBean.comRemove( Integer.parseInt(idA[i]) );
- }
- }
- if ( request.getParameter("doCreateAll") != null )
- {
- salaryProxyBean.salaryCreateAllSalary( MemberDbTable.SALARY_TYPE );
- }
- pageColl = salaryProxyBean.comFindAll();
- %>
- <!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=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript" src="/vnex/validate.js"></script>
- <script language="JavaScript" src="/vnex/util/strUtil.js"></script>
- <script language=JavaScript>
- function submitRemove()
- {
- if(form1.delId == null)
- {
- alert("目前没有可供删除的工资项!");
- return false;
- }
- if(!isChecked(form1.delId))
- {
- alert("您没有选择要删除的工资项!");
- return false;
- }
- if ( confirm("你确认要删除您选中的项吗?n如果员工的工资设置中使用了此工资项,则您不能删除此项。") )
- {
- form1.action= "/mainctrl/intranet/hr/salary_component_list?doRemove=1";
- form1.submit();
- }
- else return false;
- }
- function submitCreateAll()
- {
- if ( confirm("你确认要生成所有的职员的工资设置吗?n此项操作将会耗费比较长的时间!") )
- {
- form1.action= "/mainctrl/intranet/hr/salary_component_list?doCreateAll=1";
- form1.submit();
- }
- else return false;
- }
- </script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_hr.js"></script>
- <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
- <DIV align=center>
- <form name="form1" method="post" action="/mainctrl/intranet/hr/salary_component_list">
- <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="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr>
- <td bgcolor="#fafafa">
- <table class=title cellspacing=1 width="600" border=0>
- <tr bgcolor="#666666">
- <td colspan="6"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/hr/main"><font color="#FFFFFF">人力资源</font></a>>>工资项目设置</font></td>
- </tr>
- <tr bgcolor="#FAFAFA">
- <td colspan="6" height="30">
- <input type="button" value="新增" name="B7" onClick="location='/mainctrl/intranet/hr/salary_component_add'" class=text> <input type="submit" value="删除" name="B8" class=text onclick="return submitRemove()"> <input type="button" style="width:85px" value="全部职员生成" name="B3" class=text onclick="return submitCreateAll()">
- </td>
- </tr>
- <tr>
- <td width="7%" align="center"><font class=strong>选择</font></td>
- <td align="center" width="39%"><font class=strong>名称</font></td>
- <td align="center" width="21%"><font class=strong>方式</font></td>
- <td align="center" width="16%"><font class=strong>类型</font></td>
- <td align="center" width="17%"><font class=strong>状态</font></td>
- </tr>
- <%
- String bgcolor = null;
- int color_i = 0;
- Iterator iter = pageColl.iterator();
- while ( iter.hasNext() )
- {
- SalaryComponent sc = (SalaryComponent)iter.next();
- color_i++;
- if( color_i%2==0 )
- {
- bgcolor = "#e0e0e0";
- }
- else
- {
- bgcolor = "#fafafa";
- }
- %>
- <tr bgcolor="<%= bgcolor %>">
- <td width="7%" align="center">
- <input type="checkbox" name="delId" value="<%= sc.getId() %>">
- </td>
- <td width="39%" align="center"><a href="/mainctrl/intranet/hr/salary_component_modify?id=<%= sc.getId() %>"><%= sc.getName() %></a></td>
- <td align="center" width="21%"><% if ( sc.getCalcType() == MemberDbTable.DECREASE_TYPE ) out.print("减项"); else out.print("增项"); %></td>
- <td width="16%" align="center"><% if ( sc.getType() == MemberDbTable.SALARY_TYPE ) out.print("工资"); else if ( sc.getType() == MemberDbTable.INSURANCE_TYPE ) out.print("保险"); else out.print("福利"); %></td>
- <td colspan="2" width="17%" align="center"><% if ( sc.getState() == MemberDbTable.COMPONENT_USE ) out.print("正在使用"); else out.print("暂停使用"); %></td>
- </tr>
- <%
- }
- %>
- <tr>
- <td bgcolor="#E0E0E0" width="7%" align="center">
- <input type="checkbox" name="chkall" value="ON" onclick="CheckAll(this.form)">
- </td>
- <td bgcolor="#E0E0E0" colspan="5"> 全选</td>
- </tr>
- <tr bgcolor="#fafafa">
- <td colspan="6"> 说明:工资项目设置,必须在员工的薪酬设置之前完成,而且一旦完成,设置修改只能修改项目的“名称”和“方式“,其他的项不能被修改;此时不能删除选项,如果添加工资项,则需要对所有员工重新进行工资单生成,但是薪酬设置的数据也会丢失,不建议在薪酬设置完成之后增加工资项。<br> 全部职员生成的作用是:当管理员在设置好所有的工资选项后,点击此功能将会把此中所有可用的工资项分配给所有的职员,然后在员工信息中,可以针对每个职员的薪酬设置进行具体薪酬金额的设置。</td>
- </tr>
- </table>
- </td>
- </tr>
- </table><br>
- <br>
- <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>