employee_change_formal_record.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:9k
源码类别:
电子政务应用
开发平台:
Java
- <%
- /**
- * $RCSfile: employee_change_formal_record.jsp,v $
- * $Revision: 1.0 $
- * $Date: 2001/05/17 20:57:46 $
- * /mainctrl/intranet/hr/change_formal_record
- */
- %>
- <%@ 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="hrProxyBean" class="com.vnex.intranet.hr.employer_info.proxy.MemberInfoProxyBean" scope="application" />
- <jsp:useBean id="memberInfoBean" class="com.vnex.intranet.hr.employer_info.value.MemberInfo" scope="session" />
- <jsp:useBean id="formalBean" class="com.vnex.intranet.hr.employer_info.value.FormalInfo" scope="page" />
- <jsp:setProperty name="formalBean" property="*" />
- <%
- boolean isExist = false;
- int emp_id = -1;
- String str = request.getParameter("emp_id");
- if ( str != null )
- {
- emp_id = Integer.parseInt( str );
- formalBean.setEmpId( emp_id );
- }
- //FormalInfoDAO mi = new FormalInfoDAO();
- if ( request.getParameter("doAdd") != null && memberInfoBean.getId() > 0 )
- {
- hrProxyBean.formalInfoCreate( formalBean );
- isExist = true;
- }
- else if ( request.getParameter("doSave") != null && memberInfoBean.getId() > 0 )
- {
- hrProxyBean.formalInfoStore( formalBean );
- isExist = true;
- }
- else
- {
- formalBean = hrProxyBean.formalFind( memberInfoBean.getId() );
- if ( formalBean != null )
- {
- isExist = true;
- session.setAttribute( "formalBean", formalBean );
- }
- }
- %>
- <!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.ownAdvice.value.length > 200 )
- {
- alert("你输入备注信息过多!(<200)");
- form1.ownAdvice.focus();
- return false;
- }
- if ( form1.managerAdvice.value.length > 200 )
- {
- alert("你输入备注信息过多!(<200)");
- form1.managerAdvice.focus();
- return false;
- }
- if ( form1.ceoAdvice.value.length > 200 )
- {
- alert("你输入备注信息过多!(<200)");
- form1.ceoAdvice.focus();
- return false;
- }
- if ( form1.hrAdvice.value.length > 200 )
- {
- alert("你输入备注信息过多!(<200)");
- form1.hrAdvice.focus();
- 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/change_formal_record?emp_id=<%= emp_id %>">
- <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>>><a href="/mainctrl/hr/main"><font color="#FFFFFF">人力资源</font></a>>><a href="/mainctrl/intranet/hr/search_result"><font color="#FFFFFF">员工信息库</font></a>>><a href="/mainctrl/intranet/hr/edit_basic_info?emp_id=<%= emp_id %>"><font color="#FFFFFF">员工信息</font></a>>>员工转正档案记录</font></td>
- </tr>
- <%
- if ( isExist == false )
- {
- %>
- <tr>
- <td bgcolor="#e0e0e0" width="25%"><font class=strong> 姓名:</font></td>
- <td bgcolor="#e0e0e0" colspan="2" width="75%"><%= memberInfoBean.getName() %></td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" width="25%"><font class=strong> 员工试用期总结:</font></td>
- <td bgcolor="#fafafa" colspan="2" width="75%">
- <textarea name="ownAdvice" rows="6" cols="59"></textarea>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="25%"><font class=strong> 试用期部门经理意见:</font></td>
- <td colspan="2" width="75%" bgcolor="#e0e0e0"> <b>
- <textarea name="managerAdvice" rows="6" cols="59"></textarea>
- </b></td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" width="25%"><font class=strong> 试用期总裁意见:</font></td>
- <td bgcolor="#fafafa" colspan="2" width="75%">
- <textarea name="ceoAdvice" rows="6" cols="59"></textarea>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="25%"><font class=strong> 人力资源部转正意见:</font></td>
- <td colspan="2" width="75%">
- <textarea name="hrAdvice" rows="6" cols="59"></textarea>
- </td>
- </tr>
- <tr bgcolor="#FAFAFA" align="center">
- <td colspan="3" height="30">
- <input type="submit" value="保存" name="B1" class=text onClick="return checkdata()">
- <input type="reset" value="重置" name="B2" class=text>
- <input type="button" value="放弃" name="B22" onClick="location='/mainctrl/intranet/hr/search_result'" class=text>
- <input type=hidden name=doAdd value=<%= emp_id %>>
- </td>
- </tr>
- <%
- }
- else
- {
- %>
- <tr>
- <td bgcolor="#e0e0e0" width="25%"><font class=strong> 姓名:</font></td>
- <td bgcolor="#e0e0e0" colspan="2" width="75%"><%= memberInfoBean.getName() %></td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" width="25%"><font class=strong> 员工试用期总结:</font></td>
- <td bgcolor="#fafafa" colspan="2" width="75%">
- <textarea name="ownAdvice" rows="6" cols="59"><%= formalBean.getOwnAdvice() %></textarea>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="25%"><font class=strong> 试用期部门经理意见:</font></td>
- <td colspan="2" width="75%" bgcolor="#e0e0e0"> <b>
- <textarea name="managerAdvice" rows="6" cols="59"><%= formalBean.getManagerAdvice() %></textarea>
- </b></td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" width="25%"><font class=strong> 试用期总裁意见:</font></td>
- <td bgcolor="#fafafa" colspan="2" width="75%">
- <textarea name="ceoAdvice" rows="6" cols="59"><%= formalBean.getCeoAdvice() %></textarea>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="25%"><font class=strong> 人力资源部转正意见:</font></td>
- <td colspan="2" width="75%">
- <textarea name="hrAdvice" rows="6" cols="59"><%= formalBean.getHrAdvice() %></textarea>
- </td>
- </tr>
- <tr bgcolor="#FAFAFA" align="center">
- <td colspan="3" height="30">
- <input type="submit" value="保存" name="B1" class=text onClick="return checkdata()">
- <input type="reset" value="重置" name="B2" class=text>
- <input type="button" value="放弃" name="B22" onClick="location='/mainctrl/intranet/hr/search_result'" class=text>
- <input type=hidden name=doSave value=<%= emp_id %>>
- </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" />
- <input type=hidden name=emp_id value=<%= emp_id %> >
- </form></DIV>
- </BODY></HTML>