<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<jsp:include page="../script.jsp"></jsp:include>
<style type="text/css">
</style>
<script type="text/javascript">
$(function() {
$(".helper").button();
$(":button").button();
$("#OutSourcing").flexigrid({
singleSelect: true,
showToggleBtn: false,
buttons: [
{name: '添加', bclass: 'flexgrid_edit', onpress : function(com,grid){
window.location.href= "${pageContext.request.contextPath}/employee/${employeeid}/OutSourcingdetail.html";
}},
{separator: true},
{name: '编辑', bclass: 'flexgrid_edit', onpress : function(com,grid){
var i = $('.trSelected',grid).length;
if(i == 1){
var id = $('.trSelected',grid)[0].id.substr(3);
window.location.href= "${pageContext.request.contextPath}/employee/${employeeid}/OutSourcingdetail/" + id + ".html";
}else{
$( "#dialog-confirm" ).dialog('open');
}
}},
{separator: true},
{name: '返回', bclass: 'flexgrid_edit', onpress : function(com,grid){
window.location.href= "${pageContext.request.contextPath}/employee/EmployeeSearch.html";
}},
{separator: true}
]
});
$( "#dialog-confirm" ).dialog({
autoOpen: false,
resizable: false,
height:150,
modal: true,
buttons: {
OK: function() {
$( this ).dialog( "close" );
}
}
});
});
</script>
</head>
<body>
<jsp:include page="../header.jsp"></jsp:include>
<h3>外派信息一览</h3>
员工ID:${employeeid} 员工姓名:${empname} 性别 :男 入职日期:2001/02/02 职位:经理
<table id="OutSourcing" border="0">
<thead>
<tr><th width="60">外派类型</th><th width="150">开始时间</th><th width="150">结束时间</th><th width="130">目的地</th><th width="130">支援部门</th></tr>
</thead>
<tbody>
<c:forEach items="${OutSourcing}" var="item">
<tr id="row<c:out value="${item.outsourcingid}"/>">
<td><c:out value="${item.outtype}"></c:out></td>
<td><fmt:formatDate value="${item.startdate}"/></td>
<td><fmt:formatDate value="${item.enddate}"/></td>
<td><c:out value="${item.destination }"></c:out></td>
<td><c:out value="${item.deptno }"></c:out></td>
</tr>
</c:forEach>
</tbody>
</table>
<div id="dialog-confirm" title="请选择">
<p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>请选择一位员工。</p>
</div>
<jsp:include page="../footer.jsp"></jsp:include>
</body>
</html>