department_training_plan_detail.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:8k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.hr.util.*" %>
- <%@ page import="com.vnex.intranet.hr.value.*" %>
- <%@ page import="com.vnex.intranet.util.*" %>
- <%@ page import="java.util.*"%>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
- <%@ page import="com.vnex.intranet.organization.value.*"%>
- <%@ page import="com.vnex.intranet.organization.proxy.*"%>
- <jsp:useBean id="organizationProxy" scope="Application" class="com.vnex.intranet.organization.proxy.OrganizationProxyBean" />
- <jsp:useBean id="trainingProxy" class="com.vnex.intranet.hr.process.HRTrainingProcessBean" scope="page" />
- <jsp:useBean id="BusinessName" class="com.vnex.intranet.pub.BusinessSession" scope="session" />
- <%
- HRTrainingValueBean tmpHRTrainingValueBean = new HRTrainingValueBean();
- int trainId = Integer.parseInt(request.getParameter("trainId"));
- String pageFlow = HRPayAndTrainingConstant.TRAINMODIFYPAGEFLOW;
- String startDate = "";
- String endDate = "";
- tmpHRTrainingValueBean = trainingProxy.getTraining( trainId );
- tmpHRTrainingValueBean.setPersonsName();
- startDate = tmpHRTrainingValueBean.getTrain_startdate().toString();
- endDate = tmpHRTrainingValueBean.getTrain_enddate().toString();
- startDate = startDate.substring(0, startDate.indexOf(" "));
- endDate = endDate.substring(0, endDate.indexOf(" "));
- String backPage = "/mainctrl/training/main";
- if(request.getParameter("fromEmployeePage") != null)
- backPage = "/mainctrl/training/statistic?emp_id="+request.getParameter("emp_id")+"&fromEmployeePage";
- if(request.getParameter("statistic") != null)
- backPage = "/mainctrl/training/statistic?department_id="+request.getParameter("department_id")+"&person_id="+request.getParameter("person_id")+"&pageFlow&statistic";
- %>
- <!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/menu/dockmenu_hr.js"></script>
- <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
- <script language="JavaScript" src="/vnex/util/strUtil.js"></script>
- <script language="Javascript">
- function modifyTraining(form)
- {
- form.action="/mainctrl/training/maintain?trainId=<%=trainId%>&pageFlow=<%=pageFlow%>";
- form.submit();
- }
- function deleteThis(form)
- {
- if(confirm("是否删除本记录?"))
- {
- form.action="/mainctrl/training/deleteIt?trainId=<%=trainId%>";
- form.submit();
- }
- }
- </script>
- <DIV align=center>
- <form name="maintain" method=POST>
- <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>
- <table class=title cellspacing=1 cellpadding=2 border=0 width="600">
- <tr>
- <td bgcolor="#666666"><font class="strongw">
- <a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>>
- <a href="/mainctrl/hr/main"><font color="#FFFFFF">人力资源</font></a>>>
- <%
- if(request.getParameter("fromEmployeePage") != null)
- {
- %>
- <a href="/mainctrl/intranet/hr/search_result"><font color="#ffffff">员工信息</font></a>>>
- <a href="/mainctrl/training/statistic?fromEmployeePage&emp_id=<%=request.getParameter("emp_id")%>"><font color="#ffffff">培训记录</font></a>>>
- 培训详细信息
- <% }
- else
- {%>
- <a href="/mainctrl/training/main"><font color="#ffffff">员工培训</font></a>>>
- 培训详细信息
- <% }%>
- </font></td>
- </tr>
- </table>
- <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
- <tr bgcolor="#fafafa">
- <td width="26%"><strong> 部门名称:</strong></td>
- <td width="74%"><%=BusinessName.getDeptName()%>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="26%"><strong> 培训主题:</strong></td>
- <td width="74%"><%=FieldUtil.filterScriptTag(tmpHRTrainingValueBean.getTrain_name())%>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="26%"><strong> 主讲:</strong></td>
- <td width="74%"><%=tmpHRTrainingValueBean.getTrain_teacher()%>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="26%"><strong> 地点:</strong></td>
- <td width="74%">
- <%=tmpHRTrainingValueBean.getTrain_address()%>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="26%"><strong> 培训方式:</strong></td>
- <td width="74%"><%=tmpHRTrainingValueBean.getTrain_type()%>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="26%"><strong> 状态:</strong></td>
- <td width="74%">
- <%
- TrainType aTrainType = new TrainType();
- ArrayList typeList1 = aTrainType.getAllEType();
- for (int i = 0;i<typeList1.size() ;i++) {
- aTrainType = ( TrainType )typeList1.get(i);
- if( aTrainType.getTypeId() == tmpHRTrainingValueBean.getDd_train_id() )
- {
- out.println(aTrainType.getTypeName());
- break;
- }
- }
- %>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="26%"><strong> 培训时间:</strong></td>
- <td width="74%">从 <%=startDate%> 至 <%=endDate%>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="26%"><strong> 参加人员:</strong></td>
- <td><%=tmpHRTrainingValueBean.getTrain_persons()%>
- </td>
- </tr>
- <tr bgcolor="#fafafa" align="center" height="30">
- <td colspan="2">
- <%
- if(request.getParameter("statistic") == null)
- {
- if(tmpHRTrainingValueBean.getDd_train_id() != 16 && request.getParameter("fromEmployeePage") == null)
- {
- %>
- <input type="button" value="修改" name="B2" class="text" onclick="modifyTraining(this.form)">
- <% }
- if(request.getParameter("fromEmployeePage") == null)
- {
- %>
- <input type="button" value="删除" name="B4" class="text" onclick="deleteThis(this.form)">
- <% }}%>
- <input type="button" value="返回" name="B3" class="text" onclick="location='<%=backPage%>'">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <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>