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
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
<!doctype html>
<html>
<head>
<meta charset="utf-8">
[#include "/business/wechat/include/ewReportHeader.html" /]
</head>
 
<body>
<header class="kltit" style="font-size:1.2rem;"><a href="javascript:history.go(-1);"><span></span></a>健康检查服务报告</header>
<div class="device" id="printDiv" style="padding:0;border:0;">
<table border="0" class="reportTable" id="reportTable">
    <tr class="titleTr">
      <td colspan="12">健康检查服务报告</td>
    </tr>
    [#assign baseInfo = healthInfo.baseInfo/]
    <tr class="nameTr">
      <td width="33%" colspan="4" align="left" valign="bottom" style="padding:1px;">${Constants.CUSTOMER_CONSTANTS}名称:${baseInfo.CUSTOMER_NAME}</td>
      <td width="33%" colspan="4" >&nbsp;</td>
      <td width="33%" colspan="4" style="text-align: right;">编号:${baseInfo.ORDER_CODE}</td>
      </tr>
    
    [#assign engineerNodeInfo = healthInfo.engineerNodeInfo/]
    <tr>
      <td colspan="2" class="tdbg" width="17%">${Constants.UNIT_CONSTANTS}:</td>
      <td colspan="4" width="32%">${baseInfo.SUB_CUSTOMER_NAME}</td>
      <td colspan="2" class="tdbg" width="17%">填报时间:</td>
      <td colspan="4" width="32%">${DateUtil.format("yyyy-MM-dd HH:mm",engineerNodeInfo.ENDTIME)}</td>
    </tr>
   
   
    
     <tr>
      <td colspan="2" class="tdbg">巡检开始时间:</td>
      <td colspan="4">${DateUtil.format("yyyy-MM-dd HH:mm",engineerNodeInfo.CREATETIME)}</td>
      <td colspan="2" class="tdbg">巡检结束时间:</td>
      <td colspan="4">${DateUtil.format("yyyy-MM-dd HH:mm",engineerNodeInfo.DEALTIME)}</td>
    </tr>
    
       <tr>
      <td colspan="2" class="tdbg">巡检工程师:</td>
      <td colspan="4">${engineerNodeInfo.CURRENT_DEALER_NAME}</td>
      <td colspan="2" class="tdbg">联系方式:</td>
      <td colspan="4">${engineerNodeInfo.SJHM}</td>
    </tr>
    
    <tr>
      <td colspan="2" class="tdbg">二级分类</td>
      <td colspan="2" class="tdbg">三级分类</td>
      <td colspan="2" class="tdbg">应检数量</td>
      <td colspan="2" class="tdbg">实检数量</td>
      <td colspan="2" class="tdbg">告警/异常数量</td>
      <td colspan="2" class="tdbg">异常比率</td>
    </tr>
    [#if healthInfo.cateList??&&healthInfo.cateList?size>0]
        [#list healthInfo.cateList as cate]
        <tr>
            <td colspan="2" [#if cate.children??&&cate.children?size>0]rowspan="${cate.children?size}"[/#if]>${cate.name}</td>
            [#if cate.children?size>0]
                [#assign child = cate.children[0]/]
                <td colspan="2">${child.name}</td>
                <td colspan="2">${child.totalnum}</td>
                <td colspan="2">${child.realnum}</td>
                <td colspan="2">${child.warnnum}</td>
                <td colspan="2">${child.warnrate}%</td>
            [#else]
                <td colspan="2" >&nbsp;</td>
                  <td colspan="2" >&nbsp;</td>
                  <td colspan="2" >&nbsp;</td>
                  <td colspan="2" >&nbsp;</td>
                  <td colspan="2" >&nbsp;</td>
                  <td colspan="2" >&nbsp;</td>
            [/#if]
        </tr>
        [#if cate.children?size>1]
        [#list cate.children as child]
        [#if child_index>0]
        <tr>
            <td colspan="2">${child.name}</td>
            <td colspan="2">${child.totalnum}</td>
            <td colspan="2">${child.realnum}</td>
            <td colspan="2">${child.warnnum}</td>
            <td colspan="2">${child.warnrate}%</td>
        </tr>
        [/#if]
        [/#list]
        [/#if]
        [/#list]
    [#else]
    <tr>
        <td colspan="2" >&nbsp;</td>
          <td colspan="2" >&nbsp;</td>
          <td colspan="2" >&nbsp;</td>
          <td colspan="2" >&nbsp;</td>
          <td colspan="2" >&nbsp;</td>
          <td colspan="2" >&nbsp;</td>
    </tr>    
       [/#if]
    <tr>
      <td colspan="2" class="tdbg">指标大类</td>
      <td colspan="4" class="tdbg">指标</td>
      <td colspan="2" class="tdbg">结果</td>
      <td colspan="4" class="tdbg">备注</td>
    </tr>
    [#if healthInfo.commonList??&&healthInfo.commonList?size>0]
        [#list healthInfo.commonList as commonCate]
        <tr>
            <td colspan="2" [#if commonCate.children??&&commonCate.children?size>0]rowspan="${commonCate.children?size}"[/#if]>${commonCate.CATEGORY_NAME}</td>
            [#if commonCate.children?size>0]
                [#assign child = commonCate.children[0]/]
                <td colspan="4">${child.ITEM_NAME}</td>
                <td colspan="2">
                [#if child.RESULT_TYPE==1]
                    正常
                [#elseif child.RESULT_TYPE==2]
                    告警
                [#elseif child.RESULT_TYPE==3]
                    异常
                [/#if]
                </td>
                <td colspan="4">${child.NOTE}</td>
            [#else]
                  <td colspan="4" >&nbsp;</td>
                  <td colspan="2" >&nbsp;</td>
                  <td colspan="4" >&nbsp;</td>
            [/#if]
        </tr>
        [#if commonCate.children?size>1]
        [#list commonCate.children as child]
        [#if child_index>0]
        <tr>
            <td colspan="4">${child.ITEM_NAME}</td>
            <td colspan="2">
            [#if child.RESULT_TYPE==1]
                正常
            [#elseif child.RESULT_TYPE==2]
                告警
            [#elseif child.RESULT_TYPE==3]
                异常
            [/#if]
            </td>
            <td colspan="4">${child.NOTE}</td>
        </tr>
        [/#if]
        [/#list]
        [/#if]
        
        [/#list]
    [#else]
    <tr>
      <td colspan="2">&nbsp;</td>
      <td colspan="4">&nbsp;</td>
      <td colspan="2">&nbsp;</td>
      <td colspan="4">&nbsp;</td>
    </tr>    
    [/#if]
    <tr>
      <td class="tdbg" colspan="12" style="text-align:left">告警/异常配置信息:</td>
    </tr>
    <tr>
      <td class="tdbg" width="8%">序号</td>
      <td colspan="3" class="tdbg">搜索码/设备名称</td>
      <td colspan="4" class="tdbg">存放位置</td>
      <td colspan="4" class="tdbg">告警/异常项说明</td>
    </tr>
    [#if healthInfo.ciList??&&healthInfo.ciList?size>0]
        [#list healthInfo.ciList as ci]
        <tr>
          <td>${ci_index+1}</td>
          <td colspan="3">${ci.SEACHCODE}<br/>${ci.CINAME}</td>
          <td colspan="4">${ci.POSITION}</td>
          <td colspan="4">${ci.ORDER_NOTE}</td>
        </tr>
        [/#list]
    [#else]
    <tr>
      <td>&nbsp;</td>
      <td colspan="3">&nbsp;</td>
      <td colspan="4">&nbsp;</td>
      <td colspan="4">&nbsp;</td>
    </tr>
    [/#if]
    <tr>
      <td class="tdbg" colspan="12" style="text-align:left">关联工单:</td>
    </tr>
    <tr>
      <td width="8%" class="tdbg">序号</td>
      <td colspan="4" class="tdbg">工单名称</td>
      <td colspan="2" class="tdbg">处理状态</td>
      <td colspan="3" class="tdbg">当前节点</td>
      <td colspan="2" class="tdbg">处理人</td>
    </tr>
    [#if healthInfo.linkOrders??&&healthInfo.linkOrders?size>0]
       [#list healthInfo.linkOrders as order]
       <tr>
          <td>${order_index+1}</td>
          <td colspan="4">${order.WFNAME}</td>
          <td colspan="2">
          ${Constants.getWORKFLOW_BASE_WFSTATE_Label(order.WFSTATE)}
          </td>
          <td colspan="3">${order.CURRENT_NODE_NAME}</td>
          <td colspan="2">${order.CURRENT_DEALER_NAME}</td>
        </tr>
       [/#list]
    [#else]
         <tr>
          <td>&nbsp;</td>
          <td colspan="4">&nbsp;</td>
          <td colspan="2">&nbsp;</td>
          <td colspan="3">&nbsp;</td>
          <td colspan="2">&nbsp;</td>
        </tr>
    [/#if]
    
    <tr>
      <td class="tdbg" colspan="12" style="text-align:left">关联附件:</td>
    </tr>
    <tr>
      <td class="tdbg">序号</td>
      <td colspan="3" class="tdbg">附件名称</td>
      <td colspan="2" class="tdbg">大小</td>
      <td colspan="2" class="tdbg">格式</td>
      <td colspan="2" class="tdbg" width="14%">上传人</td>
      <td colspan="2" class="tdbg">上传时间</td>
    </tr>
    [#if healthInfo.fileList??&&healthInfo.fileList?size>0]
        [#list healthInfo.fileList as file]
         <tr>
          <td>${file_index+1}</td>
          <td colspan="3">${file.FILE_NAME}</td>
          <td colspan="2">${file.FILE_SIZE_M}M</td>
          <td colspan="2">${file.FILE_FORMAT}</td>
          <td colspan="2">${file.USER_NAME}</td>
          <td colspan="2">${DateUtil.format("yyyy-MM-dd HH:mm",file.CREATE_TIME)}</td>
        </tr>
        [/#list]
    [#else]
    <tr>
      <td>&nbsp;</td>
      <td colspan="3">&nbsp;</td>
      <td colspan="2">&nbsp;</td>
      <td colspan="2">&nbsp;</td>
      <td colspan="2">&nbsp;</td>
      <td colspan="2">&nbsp;</td>
    </tr>
    [/#if]
    
    
    <tr>
          <td class="nopbot" colspan="12">总体运行情况说明:</td>
       </tr>
      <tr>
          <td class="noptobo" colspan="12">
              [#if baseInfo.CI_RUN_NOTE??]${StringUtil.str2Html(baseInfo.CI_RUN_NOTE)}[/#if]
          </td>
       </tr>
       
    <tr>
          <td class="nopbot" colspan="12">存在的隐患、预防措施及优化建议:</td>
       </tr>
      <tr>
          <td class="noptobo" colspan="12">
              [#if baseInfo.CI_ERROR_NOTE??]${StringUtil.str2Html(baseInfo.CI_ERROR_NOTE)}[/#if]
          </td>
       </tr>
    
    [#assign approveNodeInfo = healthInfo.approveNodeInfo/]
    <tr>
          <td class="nopbot" colspan="12">主管意见:</td>
       </tr>
      <tr>
          <td class="noptobo" colspan="12">
              [#if approveNodeInfo.DEAL_NOTE??]${StringUtil.str2Html(approveNodeInfo.DEAL_NOTE)}[/#if]
          </td>
       </tr>
      
      <tr>
          <td class="noptop" colspan="12">
              主管:${approveNodeInfo.CURRENT_DEALER_NAME}&nbsp;&nbsp;
              时间: ${DateUtil.format("yyyy-MM-dd HH:mm",approveNodeInfo.DEALTIME)}&nbsp;&nbsp;
          </td>  
    </tr>
    
</table>
</div>
 
</body>
</html>