jsp

<%@ 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}&nbsp;员工姓名:${empname}&nbsp;性别 :男 &nbsp;入职日期: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>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值