dhz
2022-06-22 4d198cd78684d17c849b0bd7d323894009ca17f5
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>维保方案配置</title>
[#include "/business/pages/include/static.html" /]
</head>
<body>
<div class=" clearfix">
    <div class="nopadding" id="fsmCenter">
        <div class="deal_switch">
            <div class="dls_btn" id="dlsBtn">
                <a class="basicinfo focus"><span><em>日常巡检</em></span></a>
                <a class="basicinfo"><span><em>例行维护</em></span></a>
                <a class="basicinfo"><span><em>健康检查</em></span></a>
            </div>
        </div>
        <form id="myform" action="editItem.html" method="post">
        <input type="hidden" name="ci_id" value="${RequestParameters.id}"/>
        <div class="deal_switch_wrap">
            <div class="deal_switch_con iframecon" style="display:block;">
                <div class="table_basic">
                   <div class="table_basic_info">
                    <div class="tbi_ways" style="margin-left:3%">
                        <em>配置名称:${ci.CINAME}<span></span>SN:${ci.SN_NO}<span></span>存放位置:${ci.POSITION}</em>
                    </div>
                </div>
                   <table id="rc_table" class="display_form" style="width:95%">
                   <tr class="title">
                     <td align="center" width="5%"><input type="checkbox" id="rcSelAll"></td>
                     <td align="center" width="12%">指标名称</td>
                     <td align="center" width="12%">指标说明</td>
                     <td align="center" width="18%">配置分类名称</td>
                     <!-- <td align="center" width="8%">类型</td> -->
                   </tr>
                   [#if rcList??&&rcList?size>0]
                       [#list rcList as item]
                       <tr>
                           <td align="center">
                                   <input name="rcItem" type="checkbox" value="${item.cus_item_id}" [#if item.flag??]checked[/#if]/>
                           </td>
                           <td align="center" title="${item.item_name}">${left(item.item_name,20)}</td>
                           <td align="center" title="${item.item_note}">${left(item.item_note,20)}</td>
                           <td align="center" title="${item.business_name}">${left(item.business_name,50)}</td>
                           <!-- <td align="center">${K_IfTrue(item.item_type==1,'通用','定制')}</td> -->
                       </tr>
                       [/#list]
                   [#else]
                       <tr>
                            <td align="center" colspan="7">无日常巡检指标项</td>
                       </tr>  
                   [/#if]
                </table>
                </div>
               </div>
            <div class="deal_switch_con iframecon" style="display:none;">
                   <div class="table_basic">
                   <div class="table_basic_info">
                    <div class="tbi_ways" style="margin-left:3%">
                        <em>配置名称:${ci.CINAME}<span></span>SN:${ci.SN_NO}<span></span>存放位置:${ci.POSITION}</em>
                    </div>
                </div>
                   <table id="lx_table" class="display_form" style="width:95%">
                   <tr class="title">
                     <td align="center" width="5%"><input type="checkbox" id="lxSelAll"></td>
                     <td align="center" width="12%">指标名称</td>
                     <td align="center" width="12%">指标说明</td>
                     <td align="center" width="18%">配置分类名称</td>
                     <!-- <td align="center" width="8%">类型</td> -->
                   </tr>
                   [#if lxList??&&lxList?size>0]
                       [#list lxList as item]
                       <tr>
                           <td align="center">
                                   <input name="lxItem" type="checkbox" value="${item.cus_item_id}" [#if item.flag??]checked[/#if]/>
                           </td>
                           <td align="center" title="${item.item_name}">${left(item.item_name,20)}</td>
                           <td align="center" title="${item.item_note}">${left(item.item_note,20)}</td>
                           <td align="center" title="${item.business_name}">${left(item.business_name,50)}</td>
                           <!-- <td align="center">${K_IfTrue(item.item_type==1,'通用','定制')}</td> -->
                       </tr>
                       [/#list]
                   [#else]
                       <tr>
                            <td align="center" colspan="7">无例行维护指标项</td>
                       </tr>  
                   [/#if]
                </table>
                </div>
               </div>
            <div class="deal_switch_con iframecon" style="display:none;">
                   <div class="table_basic">
                   <div class="table_basic_info">
                    <div class="tbi_ways" style="margin-left:3%">
                        <em>配置名称:${ci.CINAME}<span></span>SN:${ci.SN_NO}<span></span>存放位置:${ci.POSITION}</em>
                    </div>
                </div>
                   <table id="jk_table" class="display_form" style="width:95%">
                   <tr class="title">
                     <td align="center" width="5%"><input type="checkbox" id="jkSelAll"></td>
                     <td align="center" width="12%">指标名称</td>
                     <td align="center" width="12%">指标说明</td>
                     <td align="center" width="18%">配置分类名称</td>
                     <!-- <td align="center" width="8%">类型</td> -->
                   </tr>
                   [#if jkList??&&jkList?size>0]
                       [#list jkList as item]
                       <tr>
                           <td align="center">
                                   <input name="jkItem" type="checkbox" value="${item.cus_item_id}" [#if item.flag??]checked[/#if]/>
                           </td>
                           <td align="center" title="${item.item_name}">${left(item.item_name,20)}</td>
                           <td align="center" title="${item.item_note}">${left(item.item_note,20)}</td>
                           <td align="center" title="${item.business_name}">${left(item.business_name,50)}</td>
                           <!-- <td align="center">${K_IfTrue(item.item_type==1,'通用','定制')}</td> -->
                       </tr>
                       [/#list]
                   [#else]
                       <tr>
                            <td align="center" colspan="7">无健康检查指标项</td>
                       </tr>  
                   [/#if]
                </table>
                </div>
               </div>
        </div>
        </form>
    </div>
</div>
 
 
<script type="text/javascript">
$(function(){
    
    $("#rcSelAll").click(function(){
        $("#rc_table :checkbox").attr("checked",$("#rcSelAll").is(":checked"));
    });
    
    $("#lxSelAll").click(function(){
        $("#lx_table :checkbox").attr("checked",$("#lxSelAll").is(":checked"));
    });
    
    $("#jkSelAll").click(function(){
        $("#jk_table :checkbox").attr("checked",$("#jkSelAll").is(":checked"));
    });
    
    
    
    $("#dlsBtn>a").click(function() {
        var index = $("#dlsBtn>a").index(this);
        $("#dlsBtn>a").removeClass("focus");
        $(this).addClass("focus");
        
        var $dom = $("div.deal_switch_con:eq("+index+")");
        $("div.deal_switch_con").hide();
        $dom.show();
    })
})
 
function onDialogBtnClick(btnID, dialogID, config){
    if(btnID == "btnSure"){
        $("#myform").submit();
    }
}
</script>
</body>
</html>