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
<!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.getElementById("printDiv").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>${report.TYPE_NAME}</td>
     <td class="device_mtable_tdbg">发生时间</td>
     <td>${DateUtil.format("yyyy-MM-dd HH:mm:ss",report.HAPPEN_TIME)}</td>
     <td align="center" class="device_mtable_tdbg">时间来源</td>
     <td>${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="3"  align="left">${report.FIRST_CATEGORY_NAME}-${report.SECOND_CATEGORY_NAME}-${report.THIRD_CATEGORY_NAME}</td>
     <td align="center" class="device_mtable_tdbg">业务系统</td>
     <td></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 colspan="5"  align="left">
     ${StringUtil.str2Html(report.DESCRIP)}
     </td>
   </tr>
   <tr>
     <td class="device_mtable_tdbg">关闭类型</td>
     <td colspan="5"  align="left">
     ${report.RESOLVE_TYPE_NAME}
     </td>
   </tr>
   
   <tr>
     <td class="device_mtable_tdbg">关闭原因</td>
     <td colspan="5"  align="left">
     ${report.RESOLVE}
     </td>
   </tr>
   
   [#if report.linkIncident?? && report.linkIncident?size>0]
       <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">${report.linkIncident.ORDER_CODE}</td>
               <td colspan="2">${report.linkIncident.NAME}</td>
               <td>${Constants.getmapSC_WORKFLOW_INCIDENT_STATE_Label(report.linkIncident.STATE+"")}</td>
           </tr>
   [/#if]
   
  </table>
  </div>
 
 [/#if]
[#include "/uc/include/foot.html" /]
</body>
</html>