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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>驻场运维事件处理报告</title>
[#include "/business/pages/include/static.html" /]
<link rel="stylesheet" type="text/css" href="${common_static}/static/style/ci/dialog.css"/>
<script language="javascript" src="${common_static}/static/plugins/print/LodopFuncs.js"></script>
 
<script type="text/javascript">
    
    var LODOP; //声明为全局变量 
    function prn1_preview() {
        LODOP=getLodop();
        CreateOneFormPage();
        LODOP.PREVIEW();
    };
    function CreateOneFormPage(){
        LODOP.SET_PRINT_PAGESIZE(1,0,0,"A4");
        LODOP.SET_PRINT_STYLEA(1,"Angle",90);
        
        //LODOP.ADD_PRINT_HTM("1.0cm","0.5cm","RightMargin:0.9cm","BottomMargin:9mm",document.documentElement.innerHTML);
        LODOP.ADD_PRINT_HTM("1.0cm","0.5cm","RightMargin:0.9cm","BottomMargin:9mm",document.getElementById("printDiv").innerHTML);
    };
    
    function saveAsFile(){ 
        LODOP=getLodop();   
        LODOP.PRINT_INIT(""); 
        LODOP.ADD_PRINT_TABLE(100,20,500,80,document.documentElement.innerHTML); 
        LODOP.SET_SAVE_MODE("Orientation",2); //Excel文件的页面设置:横向打印   1-纵向,2-横向;
        LODOP.SET_SAVE_MODE("PaperSize",9);  //Excel文件的页面设置:纸张大小   9-对应A4
        LODOP.SET_SAVE_MODE("Zoom",90);       //Excel文件的页面设置:缩放比例
        LODOP.SET_SAVE_MODE("CenterHorizontally",true);//Excel文件的页面设置:页面水平居中
        LODOP.SET_SAVE_MODE("CenterVertically",true); //Excel文件的页面设置:页面垂直居中
        LODOP.SAVE_TO_FILE("事件处理报告.xls"); 
       }
 
    function onDialogBtnClick(btnID, dialogID, config){//此函数放在子页面
        if(btnID == "btnExport"){
            saveAsFile();
        }
        if(btnID == "btnPrint"){
            prn1_preview();
        }
    }
    </script>
    
    
 
</head>
 
<body class="fullscreen service">
[#include "/uc/include/header.html" /]
 
[#if report?? && report?size>0]
 <div class="check_btn clearfix">
        <a class="common close" href="javascript:window.close();"><span>关闭</span></a>
        <a class="common export" href="javascript:saveAsFile();"><span>导出</span></a>
        <a class="common print" href="javascript:prn1_preview();"><span>打印</span></a>
    </div>
<div class="device" id="printDiv" style="padding:0;border:0;">
<style type="text/css">
        table{
        width:190mm;
        margin:0px auto;
        font-size:12px;
        color:#121212;
        text-align:center;
        border-collapse:collapse;
        }
        table td{
        border:1px solid #888;padding:8px 5px; margin:0;line-height:22px;
        }
        #nameTr{ border:0px; }
        #nameTr td{border:0px; font-size:12px; color:#121212;line-height:20px; }
        
        #titleTr{ border:0px; }
        #titleTr td{ border:0px; font-size:25px;font-face:微软雅黑;}
    </style>
  <table border="0">
  <tr id="titleTr">
  <td colspan="6">驻场运维事件处理报告</td>
  </tr>
  <tr id="nameTr">
      <td colspan="3" align="left">${Constants.CUSTOMER_CONSTANTS}名称:${report.CUSTOMER_NAME}</td>
      <td colspan="3" align="right" nowrap="nowrap">编号:${report.ORDER_CODE}</td>
  </tr>
  <tr>
     <td class="device_mtable_tdbg" width="70px">事件标题</td>
     <td colspan="5" align="left">${report.NAME}</td>
   </tr>
   
   <tr>
     <td class="device_mtable_tdbg">${Constants.UNIT_CONSTANTS}</td>
     <td colspan="5">${report.SUB_CUSTOMER_NAME}</td>
   </tr>
   
  <tr>
     <td class="device_mtable_tdbg">事件类型</td>
     <td width="150px">${report.TYPE_NAME}</td>
     <td class="device_mtable_tdbg"  width="65px">发生时间</td>
     <td width="150px">${DateUtil.format("yyyy-MM-dd HH:mm:ss",report.HAPPEN_TIME)}</td>
     <td align="center" class="device_mtable_tdbg">事件来源</td>
     <td width="150px">${report.SOURCE_NAME}</td>
   </tr>
   
   <tr>
     <td class="device_mtable_tdbg">联系人</td>
     <td>${report.CONTACT_NAME}</td>
     <td class="device_mtable_tdbg">联系方式</td>
     <td>${report.CONTACT_PHONE}</td>
     <td align="center" class="device_mtable_tdbg">申报方式</td>
     <td>${report.CREATE_USER_NAME}</td>
   </tr>
   
   <tr>
     <td class="device_mtable_tdbg">创建时间</td>
     <td>${DateUtil.format("yyyy-MM-dd HH:mm:ss",report.CREATE_TIME)}</td>
     <td class="device_mtable_tdbg">响应时间</td>
     <td>${DateUtil.format("yyyy-MM-dd HH:mm:ss",report.ANSWER_TIME)}</td>
     <td align="center" class="device_mtable_tdbg">完成时间</td>
     <td>${DateUtil.format("yyyy-MM-dd HH:mm:ss",report.RESOLVE_TIME)}</td>
   </tr>
   
   
   <tr>
     <td class="device_mtable_tdbg">是否超时</td>
     <td>[#if report.ANSWER_TIMEOUT==1 || report.DEAL_TIMEOUT==1]超时[#else]未超时[/#if]</td>
     <td class="device_mtable_tdbg">响应耗时</td>
     <td>[#if report.ANSWER_USE_TIME?? && report.ANSWER_USE_TIME!=""]${report.ANSWER_USE_TIME}&nbsp;(分钟)[/#if]</td>
     <td align="center" class="device_mtable_tdbg">处理耗时</td>
     <td>[#if report.DEAL_USE_TIME?? && report.DEAL_USE_TIME!=""]${report.DEAL_USE_TIME}&nbsp;(小时)[/#if]</td>
   </tr>
   
   
   <tr>
     <td class="device_mtable_tdbg">服务目录</td>
     <td colspan="5"  align="left">${report.FIRST_CATEGORY_NAME}-${report.SECOND_CATEGORY_NAME}-${report.THIRD_CATEGORY_NAME}</td>
   </tr>
   
   
   <tr>
     <td class="device_mtable_tdbg">SLA等级</td>
     <td>${report.SLA_NAME}</td>
     <td class="device_mtable_tdbg">影响度</td>
     <td>${report.INFLUENCE_NAME}</td>
     <td align="center" class="device_mtable_tdbg">优先级</td>
     <td>${report.PRIORITY_NAME}</td>
   </tr>
   
   
   <tr>
     <td class="device_mtable_tdbg">工程师</td>
     <td>&nbsp;</td>
     <td class="device_mtable_tdbg">联系方式</td>
     <td>&nbsp;</td>
     <td align="center" class="device_mtable_tdbg">工程师角色</td>
     <td>&nbsp;</td>
   </tr>
   
   
   <tr>
     <td class="device_mtable_tdbg">完成类型</td>
     <td>${report.RESOLVE_TYPE_NAME}</td>
     <td class="device_mtable_tdbg">升级问题</td>
     <td>[#if report.QUESTIONID?? && report.QUESTIONID!=""]已升级[#else]未升级[/#if]</td>
     <td align="center" class="device_mtable_tdbg">总结知识库</td>
     <td>[#if report.KNOWLEDGEID?? && report.KNOWLEDGEID!=""]已总结[#else]未总结[/#if]</td>
   </tr>
   
   <tr>
     <td class="device_mtable_tdbg">事件描述</td>
     <td colspan="5"  align="left">
     ${StringUtil.str2Html(report.DESCRIP)}
     </td>
   </tr>
   <tr>
     <td class="device_mtable_tdbg">解决方案</td>
     <td colspan="5"  align="left">
     ${report.RESOLVE}
     </td>
   </tr>
   <tr>
     <td class="device_mtable_tdbg">优化建议</td>
     <td colspan="5"  align="left">
     ${report.SUGGEST}
     </td>
   </tr>
   
   [#if report.orders?? && report.orders?size>0]
       <tr>
               <td rowspan="${report.orders?size+1}" class="device_mtable_tdbg">关联工单</td>
               <td colspan="2" class="device_mtable_tdbg">工单编号</td>
               <td colspan="2" class="device_mtable_tdbg">工单名称</td>
               <td class="device_mtable_tdbg">工单类型</td>
       </tr>
       [#list report.orders as order]
       <tr>
               <td colspan="2">${order.ORDER_CODE}</td>
               <td colspan="2">${order.WFNAME}</td>
               <td>${Constants.mapWORKFLOW_BUSINESS_TYPE_Label(order.BUSINESSTYPE)}</td>
               </tr>
       [/#list]
   [#else]
          <tr>
               <td rowspan="2" class="device_mtable_tdbg">关联工单</td>
               <td colspan="2" class="device_mtable_tdbg">工单编号</td>
               <td colspan="2" class="device_mtable_tdbg">工单名称</td>
               <td class="device_mtable_tdbg">工单类型</td>
       </tr>
       <tr>
               <td colspan="2">&nbsp;</td>
               <td colspan="2">&nbsp;</td>
               <td>&nbsp;</td>
               </tr>
   [/#if]
   
   
   
   
   [#if report.devices?? && report.devices?size>0]
       <tr>
               <td rowspan="${report.devices?size+1}" class="device_mtable_tdbg">关联配置</td>
               <td colspan="2" class="device_mtable_tdbg">搜索码</td>
               <td colspan="2" class="device_mtable_tdbg">配置名称</td>
               <td class="device_mtable_tdbg">存放位置</td>
       </tr>
       [#list report.devices as device]
       <tr>
               <td colspan="2">${device.SEARCHCODE}</td>
               <td colspan="2">${device.CINAME}</td>
               <td>${device.POSITION}</td>
               </tr>
       [/#list]
   [#else]
          <tr>
               <td rowspan="2" class="device_mtable_tdbg">关联配置</td>
               <td colspan="2" class="device_mtable_tdbg">搜索码</td>
               <td colspan="2" class="device_mtable_tdbg">配置名称</td>
               <td class="device_mtable_tdbg">存放位置</td>
       </tr>
       <tr>
               <td colspan="2">&nbsp;</td>
               <td colspan="2">&nbsp;</td>
               <td>&nbsp;</td>
           </tr>
   [/#if]
   
   
   [#if report.files?? && report.files?size>0]
       <tr>
               <td rowspan="${report.files?size+1}" class="device_mtable_tdbg">关联文档</td>
               <td colspan="2" class="device_mtable_tdbg">文档名称</td>
               <td colspan="2" class="device_mtable_tdbg">大小</td>
               <td class="device_mtable_tdbg">格式</td>
       </tr>
       [#list report.files as file]
       <tr>
               <td colspan="2"><a href="${base}/business/pages/file/downloadFile.html?fileId=${file.ID}">${file.FILE_NAME}</a></td>
               <td colspan="2">${file.FILE_SIZE}K</td>
               <td>${file.FILE_FORMAT}</td>
               </tr>
       [/#list]
   [#else]
          <tr>
               <td rowspan="2" class="device_mtable_tdbg">关联文档</td>
               <td colspan="2" class="device_mtable_tdbg">文档名称</td>
               <td colspan="2" class="device_mtable_tdbg">大小</td>
               <td class="device_mtable_tdbg">格式</td>
       </tr>
       <tr>
               <td colspan="2">&nbsp;</td>
               <td colspan="2">&nbsp;</td>
               <td>&nbsp;</td>
           </tr>
   [/#if]
  </table>
  </div>
 
 [/#if]
[#include "/uc/include/foot.html" /]
</body>
</html>