<!doctype html>
|
<html>
|
<head>
|
<meta charset="utf-8">
|
<title>值班表</title>
|
[#include "/business/pages/include/static.html" /]
|
<script type="text/javascript">
|
$(function(){
|
$(".monthchooseup").click(function(){
|
$("#changeType").val("1")
|
$("#myform").submit();
|
})
|
|
$(".monthchoosedown").click(function(){
|
$("#changeType").val("2")
|
$("#myform").submit();
|
})
|
|
});
|
</script>
|
</head>
|
|
<body>
|
<form id="myform" action="">
|
<input type="hidden" name="selDate" value="${selDate}"/>
|
<input type="hidden" name="planId" value="${RequestParameters.planId}"/>
|
<input type="hidden" id="changeType" name="changeType""/>
|
</form>
|
|
<div class="monthchoose">
|
<input type="button" value="" class="monthchoosedown" />
|
<input type="button" value="" class="monthchooseup" />
|
${DateUtil.format("yyyy年MM月", selDate)}
|
</div>
|
<div class="monthwrap" id = "data">
|
<div class="tit">日</div>
|
<div class="tit">一</div>
|
<div class="tit">二</div>
|
<div class="tit">三</div>
|
<div class="tit">四</div>
|
<div class="tit">五</div>
|
<div class="tit">六</div>
|
|
|
[#if list??&&list?size>0]
|
[#list list as item]
|
<div [#if item.CUR??]class="cur"[/#if]>
|
<span [#if item.NOT_CUR??]class="monthdatenl"[#else]class="monthdatenl1"[/#if]>${DateUtil.format("dd", item.DUTY_DATE)}</span>
|
<span class="monthevent">
|
[#if item.children??&&item.children?size>0]
|
[#list item.children as user]
|
[#if user.SHIFT_TYPE==4]
|
[#if user.DUTY_NUM==1]
|
白班
|
[#else]
|
夜班
|
[/#if]
|
[#else]
|
${user.DUTY_NUM}
|
[/#if]
|
<a onclick="changePerson('${user.ID}')" style="color: blue;">${user.USER_NAME}</a>
|
<br/>
|
[/#list]
|
[/#if]
|
</span>
|
</div>
|
[/#list]
|
[/#if]
|
</div>
|
<script type="text/javascript">
|
function changePerson(id){
|
var url = "${base}/business/pages/duty/exchangeCustomer.html?planId="+id+"&type=2";
|
window.top.openDialog("1", "选择人员",
|
{},
|
{"width": 45, "height": 85},
|
[{btnId: "btnSure", btnName: "确定", btnStyle: "bluebtn"}],
|
url);
|
}
|
function exchangeTip(planId,userIds,userNames) {
|
var tip='确认保存人员';
|
window.top.confirmInfo('提示', tip,function(){
|
$.post("${base}/business/pages/duty/exchangePerson.html", {"planId":planId,"userIds":userIds,"userNames":userNames},function(data){
|
if(data == "1"){
|
popupTips("操作成功");
|
location.reload();
|
}
|
},"json");
|
})
|
}
|
</script>
|
</body>
|
</html>
|