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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>例行维护执行计划</title>
[#include "/business/pages/include/static.html" /]
</head>
 
<body>
 
    <form id="myform" action="${base}/business/pages/remind/itemPlan.html" method="post">
        <input type="hidden" name="customerItemId" value="${customerItemId}" />
        <input type="hidden" name="customerId" value="${customerId}" />
        <input type="hidden" name="subId" value="${subId}" />
         <input type="hidden" value="${RequestParameters.itemId}" name="customer_item_id" />    
        <table class="reportTable tablew">
        <tr class="titleTr">
            <td colspan="32">【${itemName}】执行计划</td>
        </tr>
        <tr>
            <td class="tdbg" rowspan="2" style="width:100px;">月份</td>
            <td class="tdbg" colspan="31">日期</td>
        </tr>
        
        <tr>
            <td class="tdbg">1</td>
            <td class="tdbg">2</td>
            <td class="tdbg">3</td>
            <td class="tdbg">4</td>
            <td class="tdbg">5</td>
            <td class="tdbg">6</td>
            <td class="tdbg">7</td>
            <td class="tdbg">8</td>
            <td class="tdbg">9</td>
            <td class="tdbg">10</td>
            <td class="tdbg">11</td>
            <td class="tdbg">12</td>
            <td class="tdbg">13</td>
            <td class="tdbg">14</td>
            <td class="tdbg">15</td>
            <td class="tdbg">16</td>
            <td class="tdbg">17</td>
            <td class="tdbg">18</td>
            <td class="tdbg">19</td>
            <td class="tdbg">20</td>
            <td class="tdbg">21</td>
            <td class="tdbg">22</td>
            <td class="tdbg">23</td>
            <td class="tdbg">24</td>
            <td class="tdbg">25</td>
            <td class="tdbg">26</td>
            <td class="tdbg">27</td>
            <td class="tdbg">28</td>
            <td class="tdbg">29</td>
            <td class="tdbg">30</td>
            <td class="tdbg">31</td>
        </tr>
         
         
         [#if plans?? && plans?size>0]
             [#list plans as plan]
             <tr>
                 <td>${DateUtil.format("yyyy年MM月",plan.month)}</td>
                 [#if plan.days?? && plan.days?size>0]
                     [#assign dayLen = plan.days?size]
                     [#assign len = 31 - dayLen]
                     [#list plan.days as day]
                             [#if day.showbox==1]
                             <td [#if day.check==1]style="background:#bde5ff;"[/#if]>
                                 <input name="days" type="checkbox" [#if day.check==1]checked="checked"[/#if] [#if day.STATE==2 || day.isUse==2]disabled="disabled"[/#if] value="${day.day}"/>
                             </td>
                             [#else]
                             <td></td>
                             [/#if]
                     [/#list]
                     
                     [#if len!=0]
                         [#list 1..len as index]
                             <td></td>
                         [/#list]
                     [/#if]
                 [/#if]
             </tr>
             [/#list]
         [/#if]
 
    </table>
    </form>
    
    
<script type="text/javascript">
$(function() {
    $.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
                        document.getElementById("myform").target = window.top.openDialog("1","操作",
                         {},
                         {"width":40,"height":40},[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
                         return true;
        }});
        
    $(":checkbox").click(function() {
        var isCheck = $(this).is(":checked");
        if(isCheck) {
            $(this).parent().css("background","#bde5ff");
        } else {
            $(this).parent().css("background","");
        }
    })
})
 
 
function onDialogBtnClick(btnID, dialogID, config){
        if(btnID == "btnSure"){
            window.top.confirmInfo('提示', '确定要提交吗?', function(){
                $("#myform").submit();
            });
        }
    }
 
</script>
    
</body>
</html>