cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!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]
                        &nbsp;&nbsp;<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>