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

📄 salary_item_modify.jsp

📁 非常完整的Java开发的网络办公系统
💻 JSP
字号:
<%
/**
 *	$RCSfile: salary_item_modify.jsp,v $
 *	$Revision: 1.0 $
 *	$Date: 2001/05/17 20:57:46 $
 *	/mainctrl/intranet/hr/salary_component_modify
 */
%>
<%@ 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="com.vnex.intranet.util.FieldUtil" %>

<%@ page import="java.util.*" %>

<jsp:useBean id="salaryProxyBean" class="com.vnex.intranet.hr.employer_info.proxy.SalaryProxyBean" scope="application" />
<%
    String tmpStr = request.getParameter("id");
    int id = Integer.parseInt( tmpStr );
    SalaryComponent sc = new SalaryComponent();
    if ( request.getParameter("doModify") != null )
    {
        id = Integer.parseInt( request.getParameter("id") );
        sc.setId( id );
        String name = request.getParameter("name");
        sc.setName( name );
        //修改类型
        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);
        //修改方式
        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);
        sc.setCalcNum(0f);
        salaryProxyBean.comStore( sc );
        response.sendRedirect("/mainctrl/intranet/hr/salary_component_list");
    }
    else
    {
        sc = salaryProxyBean.comFind( id );
    }
%>
<!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_modify">
  <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;修改工资项目</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 maxlength="10" size="24" value="<%= FieldUtil.filterQuotTag(sc.getName()) %>">
                    </td>
                  </tr>
                  <tr> 
                    <td bgcolor="#fafafa" width="13%"><font class=strong>&nbsp;方式:</font></td>
                    <td bgcolor="#fafafa" colspan="2" width="87%"> 
              <%
                if ( sc.getCalcType() == MemberDbTable.DECREASE_TYPE )
                {
              %>
                <input type="radio" name="calcType" value="1" >
                增项  
                <input type="radio" name="calcType" value="-1" checked >
                减项 </td>
              <%
                }
              else
              {
              %>
                <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%"> 
              <%
                if ( sc.getType() == MemberDbTable.SALARY_TYPE )
                {
              %>
                      <input type="radio" name="comType" value="1" checked>
                      工资项 
                      <input type="radio" name="comType" value="2">
                      保险项 
                      <input type="radio" name="comType" value="3">
                      福利项 
              <%
                }
              else if ( sc.getType() == MemberDbTable.INSURANCE_TYPE )
              {
              %>
                      <input type="radio" name="comType" value="1">
                      工资项 
                      <input type="radio" name="comType" value="2" checked>
                      保险项 
                      <input type="radio" name="comType" value="3">
                      福利项 
              <%
              } else{
              %>
                      <input type="radio" name="comType" value="1">
                      工资项 
                      <input type="radio" name="comType" value="2">
                      保险项 
                      <input type="radio" name="comType" value="3" checked>
                      福利项 
              <%
              } 
              %>
              </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"  <% if ( sc.getState() == MemberDbTable.COMPONENT_USE ) out.print("checked"); %> >
                正在使用</td>
                  </tr>
                  <tr bgcolor="#e0e0e0"> 
                    <td colspan="3" align="center" height="30">&nbsp; 
          <input type="hidden" value="1" name="doModify" class=button>
          <input type="hidden" value="<%= id %>" name="id" class=button>
                      <input type="submit" value="保存" name="B7" onClick="return checkdata()" class=text>&nbsp;&nbsp;
                      <input type="reset" value="重置" name="B8" class=text>&nbsp;&nbsp;
                      <input type="button" name="Button3" value="放弃" class="file" onClick="location='/mainctrl/intranet/hr/salary_component_list'">
                    </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 + -