salary_item_new.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:

电子政务应用

开发平台:

Java

  1. <%
  2. /**
  3.  * $RCSfile: salary_item_new.jsp,v $
  4.  * $Revision: 1.0 $
  5.  * $Date: 2001/05/17 20:57:46 $
  6.  * /mainctrl/intranet/hr/salary_component_add
  7.  */
  8. %>
  9. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  10. <%@ page import="com.vnex.intranet.hr.employer_info.value.*"%>
  11. <%@ page import="com.vnex.intranet.hr.employer_info.process.*"%>
  12. <%@ page import="com.vnex.intranet.hr.util.*"%>
  13. <%@ page import="java.util.*" %>
  14. <jsp:useBean id="salaryProxyBean" class="com.vnex.intranet.hr.employer_info.proxy.SalaryProxyBean" scope="application" />
  15. <%
  16.     SalaryComponent sc = new SalaryComponent();
  17.     if ( request.getParameter("doAdd") != null )
  18.     {
  19.         String name = request.getParameter("name");
  20.         sc.setName( name );
  21.         if ( request.getParameter("state") != null && request.getParameter("state").equals("1") )
  22.             sc.setState(MemberDbTable.COMPONENT_USE);
  23.         else
  24.             sc.setState(MemberDbTable.COMPONENT_UNUSE);
  25.         if ( request.getParameter("calcType") != null && request.getParameter("calcType").equals("1") )
  26.             sc.setCalcType(MemberDbTable.INCREASE_TYPE);
  27.         else
  28.             sc.setCalcType(MemberDbTable.DECREASE_TYPE);
  29.         if ( request.getParameter("comType") != null && request.getParameter("comType").equals("1") )
  30.             sc.setType(MemberDbTable.SALARY_TYPE);
  31.         else if ( request.getParameter("comType") != null && request.getParameter("comType").equals("2") )
  32.             sc.setType(MemberDbTable.INSURANCE_TYPE);
  33.         else sc.setType(MemberDbTable.WELFARE_TYPE);
  34.         sc.setCalcNum(0f);
  35.         salaryProxyBean.comCreate( sc );
  36.         response.sendRedirect("/mainctrl/intranet/hr/salary_component_list");
  37.     }
  38. %>
  39. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  40. <HTML>
  41. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  42. <script Language="JavaScript" src="/vnex/validate.js"></script>
  43. <script language=JavaScript   >
  44. function checkdata() 
  45. {
  46.     if ( form1.name.value.length < 1 )
  47.     {
  48.         alert("你必须输入工资项名称!");
  49.         return false;
  50.     }
  51.     if ( isWhitespace(form1.name.value) )
  52.     {
  53.         alert("你输入的名称不能为空格!");
  54.         return false;
  55.     }
  56.     return true;
  57. }
  58. </script>
  59. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  60. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_hr.js"></script>
  61. <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
  62. <DIV align=center>
  63. <form name="form1" method="post" action="/mainctrl/intranet/hr/salary_component_add">
  64.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  65.     <TBODY>
  66.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  67.     <TR> 
  68.         <TD colSpan=3 align="center"> 
  69.           <br>
  70.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  71.             <tr>
  72.               <td bgcolor="#fafafa">
  73.                 <table class=title cellspacing=1 width="600" border=0>
  74.                   <tr bgcolor="#666666"> 
  75.                     <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>
  76.                   </tr>
  77.                   <tr> 
  78.                     <td bgcolor="#e0e0e0" width="13%"><font class=strong>&nbsp;名称:</font></td>
  79.                     <td bgcolor="#e0e0e0" colspan="2" width="87%"> 
  80.                       <input type="text" name="name" class=text size="24" maxlength="10">
  81.                     </td>
  82.                   </tr>
  83.                   <tr> 
  84.                     <td bgcolor="#fafafa" width="13%"><font class=strong>&nbsp;方式:</font></td>
  85.                     <td bgcolor="#fafafa" colspan="2" width="87%"> 
  86.                 <input type="radio" name="calcType" value="1" checked>
  87.                 增项  
  88.                 <input type="radio" name="calcType" value="-1">
  89.                 减项 </td>
  90.                   </tr>
  91.                   <tr> 
  92.                     <td bgcolor="#e0e0e0" width="13%"><font class=strong>&nbsp;类型:</font></td>
  93.                     <td bgcolor="#e0e0e0" colspan="2" width="87%"> 
  94.                       <input type="radio" name="comType" value="1" checked>
  95.                       工资项 
  96.                       <input type="radio" name="comType" value="2">
  97.                       保险项 
  98.                       <input type="radio" name="comType" value="3">
  99.                       福利项 
  100.                       </td>
  101.                   </tr>
  102.                   <tr> 
  103.                     <td bgcolor="#fafafa" width="13%"><font class=strong>&nbsp;状态:</font></td>
  104.                     <td bgcolor="#fafafa" colspan="2" width="87%"> 
  105.                       <input type="checkbox" name="state" value="1"  checked>
  106.                       正在使用</td>
  107.                   </tr>
  108.                   <tr bgcolor="#e0e0e0"> 
  109.                     <td colspan="3" align="center" height="30"> 
  110.                       <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>
  111.                          <input type="hidden" value=1 name="doAdd" class=button>
  112.                    </td>
  113.                   </tr>
  114.                 </table>
  115.             </td>
  116.             </tr>
  117.           </table><br>
  118.           <br>
  119.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  120.         </TD>
  121.     </TR>
  122.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  123.     </TBODY> 
  124.     </TABLE>
  125.   <BR>
  126.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  127.   </form></DIV>
  128. </BODY></HTML>