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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>例行维护执行计划</title>
[#include "/business/pages/include/static.html" /]
[#include "/business/pages/include/print.html" /]
[#include "/component/newupload.html" /]
[#include "/component/DatePicker.html" /]
    [#include "/component/excExport.html" /]
</head>
 
<body class="fullscreen">
[#include "/business/pages/include/header.html" /]
[#assign focusLabel = 'lxwhjhbb']
[#include "/business/pages/include/remindHeader.html" /]
<div class="fs_navpath">
    <h3>当前位置</h3>
    <span></span>
    <a>例行维护</a>
    <span></span>
</div>
    <div class="check_date">
        <div class="year_month">
            <!-- 年份 -->
            <div class="icon_select">
                <a class="mainbtn">
                    <span><em year="${year}" id="yearPanel">${year}年</em></span>
                </a>
                <div class="ins_con">
                    [#if years?? && years?size>0]
                        [#list years as year]
                            <a year="${year}">${year}年</a>
                        [/#list]
                    [/#if]
                </div>
            </div>
            
            <!-- 月 -->
            <div class="ym_month">
                [#list 1..12 as day]
                [#if day<10]
                <a href="javascript:queryReport('0${day}');" [#if mon == ("0"+day)]class="focus"[/#if]>0${day}月</a>
                [#else]
                <a href="javascript:queryReport('${day}');" [#if mon == day]class="focus"[/#if]>${day}月</a>
                [/#if]
                [/#list]
            </div>
        </div>
    </div>
      
      <div class="check_btn clearfix">
        <a class="common close" href="javascript:window.close();"><span>关闭</span></a>
        [@excExp id="printDiv" name="" /]
        <a class="common print" href="javascript:printA4(2,'printDiv');"><span>打印</span></a>
    </div>
      
       <div class="device" id="printDiv" style="padding:0;border:0;">
            
       <table class="reportTable tablew">
        <tr class="titleTr">
            <td colspan="32">${format(month,"yyyy年MM月")}例行维护计划表</td>
        </tr>
        <tr class="nameTr">
            <td colspan="5">${Constants.CUSTOMER_CONSTANTS}名称:${customerName}</td>
        </tr>
        <tr>
            <td class="tdbg" rowspan="2">序号</td>
            <td class="tdbg" rowspan="2">${Constants.UNIT_CONSTANTS}名称</td>
            <td class="tdbg" colspan="${days?size}">${format(month,"yyyy年MM月")}</td>
        </tr>
        
        <tr>
            [#list days as day]
                <td class="tdbg">${DateUtil.format("dd",day)}</td>
            [/#list]
        </tr>
        
        [#if subList?? && subList?size>0]
            [#list subList as sub]
            <tr>
                <td>${sub_index+1}</td>
                <td>${sub.CUSTOMER_NAME}</td>
                [#list sub.isMarkList as mark]
                        [#if mark.yzx != 0 || mark.zjh != 0]
                            <td title="已执行/全部" [#if mark.yzx==mark.zjh]class="go_checking"[#else][#if mark.yzx==0]class="have_checked"[#elseif mark.yzx!=0 && mark.yzx!=0]class="checking"[/#if][/#if]><a href="javascript:showPlan('${mark.day}','${sub.ID}')">${mark.yzx}/${mark.zjh}</a></td>
                        [#else]
                            <td></td>
                        [/#if]
                [/#list]
            </tr>
            [/#list]
        [/#if]
        <tr>
            <td colspan="${days?size+2}" align="left" style="border:none;">
            <b>说明:</b>
                <font class="go_checking">已全部执行</font>
                <font class="checking">有未执行</font>
                <font class="have_checked">全部未执行</font>
            </td>
        </tr>
        
    </table>
    </div>
    
    <script type="text/javascript">
    var customerId = '${customerId}';
    //var projectId = '${projectId}';
    
    function queryReport(mon) {
        var year = $("#yearPanel").attr("year");
        var month = year+mon;
        window.location.href="${base}/business/pages/ciremind/orderdeal/getRemindItemSubTimerTaskData.html?customer_id="+customerId+"&month="+month;
    }
    
    $(function() {
        $(".ins_con>a").click(function() {
            var year = $(this).attr("year");
            $("#yearPanel").attr("year",year);
            $("#yearPanel").text(year+"年");
        });
    })
    
    function showPlan(day,subCustomerId) {
        window.top.openDialog("0","执行计划",
                         {},
                         {"width":85,"height":80},
                         [],
                         "${base}/business/pages/ciremind/orderdeal/remindPlan.html?customerId="+customerId+"&subCustomerId="+subCustomerId+"&day="+day);
    } 
    
    </script>
</body>
</html>