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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>配置状态统计表</title>
<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(3,10000,0,"A4");
        
        //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("Zoom",90);       //Excel文件的页面设置:缩放比例
        LODOP.SET_SAVE_MODE("CenterHorizontally",true);//Excel文件的页面设置:页面水平居中
        LODOP.SET_SAVE_MODE("CenterVertically",true); //Excel文件的页面设置:页面垂直居中
        LODOP.SAVE_TO_FILE("配置明细统计表.xls"); 
       }
    </script>
    <style>
    .mytable{
        border-collapse: collapse;
        border-spacing: 0;
    }
    .mytable td{
        padding:5px 10px;
        border:1px solid #ccc;
        color:#666;
        font-size:12px;
        line-height:24px;
    }
    .bgcolor {
        background-color:#f0f0f0;
    }
    </style>
</head>
 
<body class="fullscreen">
[#include "/business/pages/include/printOne.html" /]
<div class="check_btn clearfix" style="margin: 13px 15px 0 0;">
     <!--[if lte IE 9]>
     <a id="export_btn" style="float:right" tableId="reportTable" fn="配置明细统计表">Flash required</a>
     <![endif]-->
     <a class="common export" href="javascript:exportXlsById('reportTable','配置明细统计表');"><span>导出</span></a>
    </div>
<!--         <div style="text-align:center;margin-top:30px;"><h2>配置明细统计表</h2></div> -->
        <div id="printDiv" style="padding:0px;width:100%;height:400px;overflow:auto;margin-top: 20px;">
        [#if ciList?? && ciList?size>0]
<table  border="0" class="reportTable tablew" id="reportTable">
 
    <tr class="titleTr">
            <td colspan="13">配置明细统计表</td>
        </tr>
    <tr class="title" >
        <td class="tdbg" >项目名称</td>
        <td class="tdbg" >子项目名称</td>
        <td class="tdbg" >配置名称</td>
        <td class="tdbg" >搜索代码</td>
<!--         <td class="tdbg" >配置编码</td> -->
        <td class="tdbg" >SN编号</td>
        <td class="tdbg" >责任人</td>
        <td class="tdbg" >负责科室</td>
        <td class="tdbg" >厂商名称</td>
        <td class="tdbg" >集成商名称</td>
        <td class="tdbg" >创建人</td>
        <td class="tdbg" >创建时间</td>
        <td class="tdbg" >存放位置</td>
        <td class="tdbg" >最后更新时间</td>
        <td class="tdbg" >备注</td>
        <td class="tdbg" >购买时间</td>
        <td class="tdbg" >过保时间</td>
        <td class="tdbg" >续保时间</td>
        <td class="tdbg" >续保过保时间</td>
        <td class="tdbg" >状态</td>
        <td class="tdbg" >审计状态</td>
        <td class="tdbg" >审计时间</td>
        <td class="tdbg" >审计人</td>
        [#list props.commonProp as d]
            <td class="tdbg">${d.COLUMNNAME}</td>
        [/#list]
        [#if groupProps?? && groupProps?size>0]
            [#list groupProps as group]
                [#if (group.props?? && group.props?size>0) || (group.props1?? && group.props1?size>0)]
                    [#list group.props1 as d]
                        <td class="tdbg">${group.GROUP_NAME}+${d.COLUMNNAME}</td>
                    [/#list]
                    [#list group.props as d]
                        <td class="tdbg">${group.GROUP_NAME}+${d.COLUMNNAME}</td>
                    [/#list]
                [/#if]
            [/#list]
        [/#if]
    </tr>
    [#list ciList as ci]
        <tr>
            <td>${ci.CUS_NAME}</td>
            <td>${ci.SUB_CUS_NAME}</td>
            <td>${ci.CINAME}</td>
            <td>${ci.SEARCHCODE}</td>
<!--             <td>${ci.CODE}</td> -->
            <td>${ci.SN_NO}</td>
            <td>${ci.ZR_NAME}</td>
            <td>${ci.ZR_DEPT}</td>
            <td>${ci.MFT_NAME}</td>
            <td>${ci.IGT_NAME}</td>
            <td>${ci.CREATE_NAME}</td>
            <td>${DateUtil.format('yyyy-MM-dd',ci.CREATE_TIME)}</td>
            <td>${ci.POSITION}</td>
            <td>${DateUtil.format('yyyy-MM-dd',ci.LAST_UP_TIME)}</td>
            <td>${ci.NOTE}</td>
            <td>${DateUtil.format('yyyy-MM-dd',ci.BUY_TIME)}</td>
            <td>${DateUtil.format('yyyy-MM-dd',ci.GB_TIME)}</td>
            <td>${DateUtil.format('yyyy-MM-dd',ci.XB_TIME)}</td>
            <td>${DateUtil.format('yyyy-MM-dd',ci.XBGB_TIME)}</td>
            <td>
                [#if ci.STATE==0]
                    未启用
                [#elseif ci.STATE==1]
                    正常
                [#elseif ci.STATE==2]
                    废弃
                [#elseif ci.STATE==3]
                    维护中
                [#elseif ci.STATE==4]
                    备用
                [/#if]
            </td>
             <td>
                [#if ci.SJ_STATE==1]
                    匹配
                [#elseif ci.SJ_STATE==2]
                    不匹配
                [#elseif ci.SJ_STATE==3]
                    丢失
                [#elseif ci.SJ_STATE==4]
                    未审计
                [/#if]
            </td>
            <td>${DateUtil.format("yyyy-MM-dd HH:mm:ss",ci.SJ_TIME)}</td>
            <td>${ci.SJ_USER_NAME}</td>
            [#list props.commonProp as d]
                <td>
                [#if d.DATATYPE==1 || d.DATATYPE==2]
                    ${ci.dataAll[d.ID]}
                [/#if]
                [#if d.DATATYPE==4]
                    ${DateUtil.format("yyyy-MM-dd",ci.dataAll[d.ID])}
                [/#if]
                [#if d.DATATYPE==5]    
                    [#if d.DATATYPE==5]
                        [#list d.items as item]
                            [#if item.ID == ci.dataAll[d.ID]]
                                ${item.ITEMVALUE}
                            [/#if]
                        [/#list]
                    [/#if]
                [/#if]
                </td>
            [/#list]
            [#if groupProps?? && groupProps?size>0]
                [#list groupProps as group]
                    [#if (group.props?? && group.props?size>0) || (group.props1?? && group.props1?size>0)]
                        [#list group.props1 as d]  
                               [#if d.DATATYPE==6]
                                   [#if d.items??]
                                      [#list d.items as item]
                                          [#if itemVal?contains(item.ID)]<td>${item.ITEMVALUE}</td>
                                          [#else]
                                          <td></td>
                                          [/#if]
                                      [/#list]
                                  [#else]
                                      <td></td>
                                  [/#if]
                            [#else]
                                <td>${ci.dataAll[d.ID]}</td>
                            [/#if] 
                           [/#list]
                           
                           [#list group.props as d]        
                               [#if d.DATATYPE==6]
                                   [#if d.items??]
                                      [#list d.items as item]
                                          [#if itemVal?contains(item.ID)]<td>${item.ITEMVALUE}</td>
                                          [#else]
                                          <td></td>
                                          [/#if]
                                      [/#list]
                                  [#else]
                                      <td></td>
                                  [/#if]
                            [#else]
                        <td>${ci.dataAll[d.ID]}</td>
                            [/#if] 
                           [/#list]
                           
                    [/#if]
                [/#list]
            [/#if] 
        </tr>
    [/#list]
    [/#if]
</table>
        </div>
</body>
</html>