Commit 89dfc861385510b2e2429a7e8df43577d5f90c6e

Authored by 廖磊
1 parent 49257b4c

报表

src/main/java/com/bsth/service/report/impl/ReportServiceImpl.java
@@ -502,9 +502,9 @@ public class ReportServiceImpl implements ReportService{ @@ -502,9 +502,9 @@ public class ReportServiceImpl implements ReportService{
502 String lx1=""; 502 String lx1="";
503 for (int x = 0; x < lists.size(); x++) { 503 for (int x = 0; x < lists.size(); x++) {
504 if(lists.get(x).get("lx").equals("lx0")){ 504 if(lists.get(x).get("lx").equals("lx0")){
505 - lx0=lists.get(x).get("fcsj").toString(); 505 + lx0=lists.get(x).get("fcsj")==null?"0:0":lists.get(x).get("fcsj").toString();
506 }else{ 506 }else{
507 - lx1=lists.get(x).get("fcsj").toString(); 507 + lx1=lists.get(x).get("fcsj")==null?"0:0":lists.get(x).get("fcsj").toString();
508 } 508 }
509 } 509 }
510 510
src/main/resources/static/pages/oil/cylAdd.html
@@ -88,8 +88,6 @@ @@ -88,8 +88,6 @@
88 submitHandler : function(f) { 88 submitHandler : function(f) {
89 var params = form.serializeJSON(); 89 var params = form.serializeJSON();
90 error.hide(); 90 error.hide();
91 - console.log(params);  
92 -  
93 //检查一下用户是否存在 91 //检查一下用户是否存在
94 $get('/cyl/all', {nbbm_eq: params.nbbm}, function(list){ 92 $get('/cyl/all', {nbbm_eq: params.nbbm}, function(list){
95 if(!list || list.length == 0){ 93 if(!list || list.length == 0){
@@ -104,10 +102,6 @@ @@ -104,10 +102,6 @@
104 loadPage('cylList.html'); 102 loadPage('cylList.html');
105 } 103 }
106 }); 104 });
107 - /* $post('/user', params, function(res){  
108 - layer.msg('添加用户成功.');  
109 - loadPage('list.html');  
110 - }); */  
111 } 105 }
112 else 106 else
113 layer.alert('内部编码【' + params.nbbm + '】已存在', {icon: 2, title: '提交被拒绝'}); 107 layer.alert('内部编码【' + params.nbbm + '】已存在', {icon: 2, title: '提交被拒绝'});
src/main/resources/static/pages/oil/cylList.html
@@ -115,7 +115,7 @@ @@ -115,7 +115,7 @@
115 {{obj.updatetime}} 115 {{obj.updatetime}}
116 </td> 116 </td>
117 <td> 117 <td>
118 - <!--<a class="btn btn-sm blue btn-outline" href="edit.html?no={{obj.id}}" data-pjax><i class="fa fa-edit"></i> 编辑</a>--> 118 + <a class="btn btn-sm blue btn-outline" href="edit.html?no={{obj.id}}" data-pjax><i class="fa fa-edit"></i> 编辑</a>
119 </td> 119 </td>
120 </tr> 120 </tr>
121 {{/each}} 121 {{/each}}
@@ -237,11 +237,4 @@ $(function(){ @@ -237,11 +237,4 @@ $(function(){
237 }); 237 });
238 }); 238 });
239 }); 239 });
240 -//改变状态  
241 -function changeEnabled(id,enabled){  
242 - debugger  
243 - $get('/user/changeEnabled',{id:id,enabled:enabled},function(result){  
244 - jsDoQuery(null, true);  
245 - })  
246 -}  
247 </script> 240 </script>
248 \ No newline at end of file 241 \ No newline at end of file
src/main/resources/static/pages/report/timetable/timetable.html
@@ -44,7 +44,7 @@ @@ -44,7 +44,7 @@
44 <div class="portlet-body"> 44 <div class="portlet-body">
45 <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> 45 <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px">
46 <label id="xlxq"></label> 46 <label id="xlxq"></label>
47 - <table class="table table-bordered table-hover table-checkable" style="margin-bottom:5p" id="formsTime1"> 47 + <table class="table table-bordered table-hover table-checkable" style="margin-bottom:5px" id="formsTime1">
48 <thead> 48 <thead>
49 <tr> 49 <tr>
50 <th colspan="10">行车时刻表统计表</th> 50 <th colspan="10">行车时刻表统计表</th>
@@ -160,7 +160,7 @@ @@ -160,7 +160,7 @@
160 <td colspan="5">全日分组行驶时间(区间除外)</td> 160 <td colspan="5">全日分组行驶时间(区间除外)</td>
161 </tr> 161 </tr>
162 <tr> 162 <tr>
163 - <td width="25%" rowspan="2" style="text-align:center;vertical-align:middle;w">分组 时间</td> 163 + <td width="25%" rowspan="2" style="text-align:center;vertical-align:middle;">分组 时间</td>
164 <td width="30%" colspan="2" style="text-align:center;vertical-align:middle;">实驶(分)</td> 164 <td width="30%" colspan="2" style="text-align:center;vertical-align:middle;">实驶(分)</td>
165 <td width="20%" rowspan="2" style="text-align:center;vertical-align:middle;">分圈 时间</td> 165 <td width="20%" rowspan="2" style="text-align:center;vertical-align:middle;">分圈 时间</td>
166 <td width="25%" rowspan="2" style="text-align:center;vertical-align:middle;">车距</td> 166 <td width="25%" rowspan="2" style="text-align:center;vertical-align:middle;">车距</td>
@@ -215,11 +215,11 @@ @@ -215,11 +215,11 @@
215 layer.msg('请选择线路.'); 215 layer.msg('请选择线路.');
216 }else{ 216 }else{
217 $get('/report/tbodyTime1',{line:line,date:date},function(result){ 217 $get('/report/tbodyTime1',{line:line,date:date},function(result){
218 - var tbodyTime1 = template('tbodyTime1',{result}); 218 + var tbodyTime1 = template('tbodyTime1',{map:result});
219 $('#formsTime1 .tbody_time_1').html(tbodyTime1); 219 $('#formsTime1 .tbody_time_1').html(tbodyTime1);
220 }); 220 });
221 $.get('/report/tbodyTime2',{line:line,date:date},function(result){ 221 $.get('/report/tbodyTime2',{line:line,date:date},function(result){
222 - var tbodyTime2 = template('tbodyTime2',{result}); 222 + var tbodyTime2 = template('tbodyTime2',{map:result});
223 $('#formsTime2 .tbody_time_2').html(tbodyTime2); 223 $('#formsTime2 .tbody_time_2').html(tbodyTime2);
224 }); 224 });
225 $.get('/report/tbodyTime3',{line:line,date:date},function(result){ 225 $.get('/report/tbodyTime3',{line:line,date:date},function(result){
@@ -247,23 +247,23 @@ @@ -247,23 +247,23 @@
247 </script> 247 </script>
248 <script type="text/html" id="tbodyTime1"> 248 <script type="text/html" id="tbodyTime1">
249 <tr> 249 <tr>
250 - <td>{{result.pcs}}</td>  
251 - <td>{{result.qcbc}}</td>  
252 - <td>{{result.qjbc}}</td>  
253 - <td>{{result.zqcbc}}</td>  
254 - <td>{{result.zqjbc}}</td>  
255 - <td>{{result.wqcbc}}</td>  
256 - <td>{{result.wqjbc}}</td>  
257 - <td>{{result.zlc}}</td>  
258 - <td>{{result.yylc}}</td>  
259 - <td>{{result.kslc}}</td> 250 + <td>{{map.pcs}}</td>
  251 + <td>{{map.qcbc}}</td>
  252 + <td>{{map.qjbc}}</td>
  253 + <td>{{map.zqcbc}}</td>
  254 + <td>{{map.zqjbc}}</td>
  255 + <td>{{map.wqcbc}}</td>
  256 + <td>{{map.wqjbc}}</td>
  257 + <td>{{map.zlc}}</td>
  258 + <td>{{map.yylc}}</td>
  259 + <td>{{map.kslc}}</td>
260 </tr> 260 </tr>
261 </script> 261 </script>
262 262
263 <script type="text/html" id="tbodyTime2"> 263 <script type="text/html" id="tbodyTime2">
264 <tr> 264 <tr>
265 - <td align="center">{{result.yysj}}</td>  
266 - <td align="center">{{result.yycs}}</td> 265 + <td align="center">{{map.yysj}}</td>
  266 + <td align="center">{{map.yycs}}</td>
267 </tr> 267 </tr>
268 </script> 268 </script>
269 269