⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 salary_item_new.jsp

📁 非常完整的Java开发的网络办公系统
💻 JSP
字号:
<%
/**
 *	$RCSfile: salary_item_new.jsp,v $
 *	$Revision: 1.0 $
 *	$Date: 2001/05/17 20:57:46 $
 *	/mainctrl/intranet/hr/salary_component_add
 */
%>
<%@ 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" />
<%
    SalaryComponent sc = new SalaryComponent();
    if ( request.getParameter("doAdd") != null )
    {
        String name = request.getParameter("name");
        sc.setName( name );
        if ( request.getParameter("state") != null && request.getParameter("state").equals("1") )
            sc.setState(MemberDbTable.COMPONENT_USE);
        else
            sc.setState(MemberDbTable.COMPONENT_UNUSE);
        if ( request.getParameter("calcType") != null && request.getParameter("calcType").equals("1") )
            sc.setCalcType(MemberDbTable.INCREASE_TYPE);
        else
            sc.setCalcType(MemberDbTable.DECREASE_TYPE);

        if ( request.getParameter("comType") != null && request.getParameter("comType").equals("1") )
            sc.setType(MemberDbTable.SALARY_TYPE);
        else if ( request.getParameter("comType") != null && request.getParameter("comType").equals("2") )
            sc.setType(MemberDbTable.INSURANCE_TYPE);
        else sc.setType(MemberDbTable.WELFARE_TYPE);


        sc.setCalcNum(0f);
        salaryProxyBean.comCreate( sc );
        response.sendRedirect("/mainctrl/intranet/hr/salary_component_list");
    }
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<jsp:include page="/vnex/page/FORM_HEAD.jsp" />
<script Language="JavaScript" src="/vnex/validate.js"></script>
<script language=JavaScript   >
function checkdata() 
{
    if ( form1.name.value.length < 1 )
    {
        alert("\你必须输入工资项名称!");
        return false;
    }
    if ( isWhitespace(form1.name.value) )
    {
        alert("\你输入的名称不能为空格!");
        return false;
    }
    return true;
}
</script>
<BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
<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_add">
  <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="3"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/hr/main"><font color="#FFFFFF">人力资源</font></a>&gt;&gt;<a href="/mainctrl/intranet/hr/salary_component_list"><font color="#FFFFFF">薪酬项目管理</font></a>&gt;&gt;<a href="#"><font color="#FFFFFF">工资设置</font></a>&gt;&gt;新建工资项目</font></td>
                  </tr>
                  <tr> 
                    <td bgcolor="#e0e0e0" width="13%"><font class=strong>&nbsp;名称:</font></td>
                    <td bgcolor="#e0e0e0" colspan="2" width="87%"> 
                      <input type="text" name="name" class=text size="24" maxlength="10">
                    </td>
                  </tr>
                  <tr> 
                    <td bgcolor="#fafafa" width="13%"><font class=strong>&nbsp;方式:</font></td>
                    <td bgcolor="#fafafa" colspan="2" width="87%"> 
                <input type="radio" name="calcType" value="1" checked>
                增项  
                <input type="radio" name="calcType" value="-1">
                减项 </td>
                  </tr>
                  <tr> 
                    <td bgcolor="#e0e0e0" width="13%"><font class=strong>&nbsp;类型:</font></td>
                    <td bgcolor="#e0e0e0" colspan="2" width="87%"> 
                      <input type="radio" name="comType" value="1" checked>
                      工资项 
                      <input type="radio" name="comType" value="2">
                      保险项 
                      <input type="radio" name="comType" value="3">
                      福利项 
                      </td>
                  </tr>
                  <tr> 
                    <td bgcolor="#fafafa" width="13%"><font class=strong>&nbsp;状态:</font></td>
                    <td bgcolor="#fafafa" colspan="2" width="87%"> 
                      <input type="checkbox" name="state" value="1"  checked>
                      正在使用</td>
                  </tr>
                  <tr bgcolor="#e0e0e0"> 
                    <td colspan="3" align="center" height="30"> 
                      <input type="submit" value="保存" name="B7" onClick="return checkdata()" class=text>&nbsp;&nbsp;<input type="reset" value="重置" name="B82" class=text>&nbsp;&nbsp;<input type="button" value="放弃" name="B8" onClick="location='/mainctrl/intranet/hr/salary_component_list'" class=text>
                         <input type="hidden" value=1 name="doAdd" class=button>
                   </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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -