liuxiaolong
2019-05-09 0d1d88cdb668e75ea8609417ac18ae19947e9525
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
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="com.landy.framework.core.util.ContextUtils"%>
<%@ page import="com.landy.framework.core.support.Condition"%>
<%@ page import="com.landy.gum.check.service.ScCheckManager"%>
<%@ page import="com.landy.gum.check.query.XiafaHistoryDetailListQueryItem"%>
<%@ page import="com.landy.gum.check.query.Hi_GetRegionAndErrorSchoolByScchIdQueryItem"%>
<%@ page import="com.landy.gum.check.query.Hi_GetErrorRegionSizesByScchIdQueryItem"%>
<%@ page import="net.sf.json.JSONObject"%>
<%@ page import="java.util.*"%>
<%
    String scchId = request.getParameter("scchId");
    ScCheckManager checkManager = ContextUtils.getBeanOfType(ScCheckManager.class);
     List<XiafaHistoryDetailListQueryItem> list1 = checkManager.findScCheckSubjectListByScchId(scchId);
     List<Hi_GetRegionAndErrorSchoolByScchIdQueryItem> list2 = checkManager.getRegionAndSchoolsByScchId(scchId,false);
     List<Hi_GetErrorRegionSizesByScchIdQueryItem> list3 = checkManager.getErrorRegionSizeByScchId(scchId,false);
     request.setAttribute("datas1", list1);
     request.setAttribute("datas2", list2);
     request.setAttribute("datas3", list3);
 %>
<!DOCTYPE HTML>
<html>
  <head>
    <title>查看详情</title>
    <style type="text/css">
        .allContent{
            width:800px;
            height:460px;
            overflow: scroll;
            overflow-x:hidden;
        }
        .dataTable{  
            margin: 20px;
            border: solid 1px #B4B4B4;  
            border-collapse: collapse;     --折叠样式.  
        }  
        .dataTable tr th{  
            padding-left:4px;  
            height:27px;  
            border: solid 1px #B4B4B4;  
        }  
        .dataTable tr td{  
            text-align:center;
            height:38px;  
            padding:4px;  
            border: solid 1px #B4B4B4;  
        }  
        
        .printDiv{
            height:40px;
            background:rgba(128, 128, 128, 0.07);
        }    
        
        .titleTable{
            width:95%;
            margin: 20px;
        }
        
        .titles{
            font-size:18px;
            font-weight:bold;
            height: 40px;
        }
        .titleTable tr td{
            height:30px;
        }
        
        .dataTable2{
            width:95%;
            margin:50px 20px 60px 20px;
        }
        
        .dataTable3{
            margin: 40px 20px 40px 20px;
            border-collapse: collapse;
        }
        
        .dataTable3 tr td{  
            text-align:center;
            height:18px;  
            padding:4px;  
            border: solid 1px #B4B4B4; 
            width:250px; 
        }  
        .closeButton{
            float: right;
            margin:0px 40px 30px 0px;
            height: 33px;
            width: 60px;
        }
        .remarkLeft{
            float:left;
        }
        .cont_print_daochu{
            float: right;
            margin:8px 40px 2px 0px;
        }
        .cont_print_daochu input{
            height: 25px;
            width: 25px;
        }
        .daochu_cont{
            margin:8px 20px 2px 0px;
        }
    </style>
    <script>
    </script>
  </head>
  <body>
      <div class="" id="">
      
           <form id="exportForm" method="post" target="ExportIframe"  action="">
            <input type="hidden" id="data-json" name="data-json">
            <input type="hidden" id="template-name" name="template-name" value="xiafa_history_detail.ftl">
        </form>
          <jsp:include page="../common/detail_top.jsp"></jsp:include>
        
        <div class="allContent" >
            <div id="_xiafaHistory" class="print-div">
            <%--检查项详情 --%>
            <div class="" id="">
                <table class="titleTable" cellspacing='1' cellpadding='3px'>
                    <tr>
                        <td class="titles" align="center" colspan="4"><span exportWord='text' id="title"></span></td>
                    </tr>
                    <tr>
                        <td class="">开始日期:<span id="beginDate" exportWord='text'></span></td>
                        <td class="">结束日期:<span id="endDate" exportWord='text'></span></td>
                        <td class="" colspan="2">执行周期:<span exportWord='text' id="workDay"></span></td>
                    </tr>
                </table>
                
                <table class="dataTable" id='xiafahistorytable' exportWord='table' cellpadding='0' cellspacing='1' borde=''>
                    <thead>
                        <tr>
                            <th width='10%'>检查项目</th>
                            <th width='20%'>检查内容</th>
                            <th width='10%'>检查方法</th>
                            <th width='10%'>检查方式</th>
                            <th width='5%'>评分</th>
                            <th width='5%'>权重</th>
                            <th width='10%'>存在问题</th>
                        </tr>
                    </thead>
                    <tbody>
                        <c:forEach items="${datas1}" var="data1">
                            <tr>
                                <td name='sccsScsuName' width='10%'>${data1.sccsScsuName}</td>
                                <td name='sccsScsuContent'width='20%'>${data1.sccsScsuContent}</td>
                                <td name='sccsScsuMethod' width='10%'>${data1.sccsScsuMethod}</td>
                                <td name='sccsScsuRequied' width='10%'>${data1.sccsScsuRequied}</td>
                                <td name='sccsScsuScore' width='5%'>${data1.sccsScsuScore}</td>
                                <td name='sccsScsuProportion' width='5%'>${data1.sccsScsuProportion}</td>
                                <td name='scosProblem' width='10%'></td>
                            </tr>
                        </c:forEach>
                        <tr exportWord='no'>
                            <td>检查表备注</td>
                            <td colspan="6"><span exportWord='text' class="remarkLeft" id="remork"></span></td>
                        </tr>
                    </tbody>
                </table>
                
                            
                <table  exportWord='qianzi' exportfrist='ok'  id='qianziList' class="titleTable2" cellspacing='1' cellpadding='3px'>
                        <tr></tr>
                        <tr id="qianzi_tr">
                        </tr>
                </table>
                
                
            </div>
            <%--检查表下发情况 --%>
            <hr/>
            <div class="">
                <table class="titleTable">
                    <tr>
                        <td class="titles" align='center' colspan="4">检查表下发情况</td>
                    </tr>
                    <tr>
                        <td class="">下发学校总数:<span exportWord='text' id="totalCount"></span></td>
                        <td class="">下发成功:<span exportWord='text' id="successCount"></span></td>
                        <td class="">下发失败:<span exportWord='text' id="errorCount"></span></td>
                    </tr>
                </table>
                
                <c:forEach items="${datas3}" var="data3">
                    <table class="dataTable3" cellpadding='0' cellspacing='1' borde=''>
                        <tr>
                            <td style="text-align:left">${data3.regionName} ${data3.size } 所</td>
                            <td style="border:0;"></td>
                        </tr>
                        <c:forEach items="${datas2}" var="data2">
                            <c:if test="${data3.regionName == data2.regionName }">
                                <tr>
                                    <td>${data2.schoolName }</td>
                                    <td style="border:0;text-align:left;">${data2.schiReason }</td> 
                                </tr>
                            </c:if>
                        </c:forEach>
                    </table>
                </c:forEach>
            </div>
            </div>
        </div>
        <div class="">
                <input type="button" class="closeButton" id="close" value="关闭"/>
        <!--     <button class="closeButton" id="close">关闭</button> -->
        </div>
    </div>
  </body>
</html>