Commit fb9ebce6f38986b05ed155493e9f6296cc9a2584
1 parent
2578ee80
更新
Showing
6 changed files
with
929 additions
and
0 deletions
src/main/java/com/bsth/util/TimeUtils.java
0 → 100644
| 1 | +package com.bsth.util; | ||
| 2 | + | ||
| 3 | +public class TimeUtils { | ||
| 4 | + public static String getTimeDifference(String date1,String date2){ | ||
| 5 | + String[] temp1 = date1.split(":"); | ||
| 6 | + String[] temp2 = date2.split(":"); | ||
| 7 | + int m1 = Integer.parseInt(temp1[0])*60; | ||
| 8 | + int s1 = Integer.parseInt(temp1[1]); | ||
| 9 | + int m2 = Integer.parseInt(temp2[0])*60; | ||
| 10 | + int s2 = Integer.parseInt(temp2[1]); | ||
| 11 | + if(date1.compareTo(date2) > 0){ | ||
| 12 | + return ((m1+s1)-(m2+s2))+""; | ||
| 13 | + } else { | ||
| 14 | + return ((m2+s2)-(m1+s1))+""; | ||
| 15 | + } | ||
| 16 | + } | ||
| 17 | +} |
src/main/resources/static/pages/forms/mould/daily.xls
0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/statement/scheduleDaily_minhang.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | + .table-bordered { | ||
| 3 | + border: 1px solid; } | ||
| 4 | + .table-bordered > thead > tr > th, | ||
| 5 | + .table-bordered > thead > tr > td, | ||
| 6 | + .table-bordered > tbody > tr > th, | ||
| 7 | + .table-bordered > tbody > tr > td, | ||
| 8 | + .table-bordered > tfoot > tr > th, | ||
| 9 | + .table-bordered > tfoot > tr > td { | ||
| 10 | + border: 1px solid; } | ||
| 11 | + .table-bordered > thead > tr > th, | ||
| 12 | + .table-bordered > thead > tr > td { | ||
| 13 | + border-bottom-width: 2px; } | ||
| 14 | + | ||
| 15 | + .table > tbody + tbody { | ||
| 16 | + border-top: 1px solid; } | ||
| 17 | +</style> | ||
| 18 | + | ||
| 19 | +<div class="page-head"> | ||
| 20 | + <div class="page-title"> | ||
| 21 | + <h1>调度日报</h1> | ||
| 22 | + </div> | ||
| 23 | +</div> | ||
| 24 | + | ||
| 25 | +<div class="row"> | ||
| 26 | + <div class="col-md-12"> | ||
| 27 | + <div class="portlet light porttlet-fit bordered"> | ||
| 28 | + <div class="portlet-title"> | ||
| 29 | + <form class="form-inline" action=""> | ||
| 30 | + <div style="display: inline-block;"> | ||
| 31 | + <span class="item-label" style="width: 80px;">线路: </span> | ||
| 32 | + <select class="form-control" name="line" id="line" style="width: 180px;"></select> | ||
| 33 | + </div> | ||
| 34 | + <div style="display: inline-block;margin-left: 15px;"> | ||
| 35 | + <span class="item-label" style="width: 80px;">时间: </span> | ||
| 36 | + <input class="form-control" type="text" id="date" style="width: 180px;"/> | ||
| 37 | + </div> | ||
| 38 | + <div class="form-group"> | ||
| 39 | + <input class="btn btn-default" type="button" id="query" value="查询"/> | ||
| 40 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | ||
| 41 | + </div> | ||
| 42 | + </form> | ||
| 43 | + </div> | ||
| 44 | + <div class="portlet-body"> | ||
| 45 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | ||
| 46 | + <table class="table table-bordered table-hover table-checkable" id="forms"> | ||
| 47 | + <thead> | ||
| 48 | + <tr> | ||
| 49 | + <th colspan="40">线路调度日报</th> | ||
| 50 | + </tr> | ||
| 51 | + <tr> | ||
| 52 | + <td rowspan="3">路线别</td> | ||
| 53 | + <td colspan="15">全日营运里程(公里)</td> | ||
| 54 | + <td colspan="15">全日营运班次</td> | ||
| 55 | + <td colspan="9">大间隔情况</td> | ||
| 56 | + </tr> | ||
| 57 | + <tr> | ||
| 58 | + <td rowspan="2">计划</td> | ||
| 59 | + <td rowspan="2">实驶</td> | ||
| 60 | + <td rowspan="2">少驶</td> | ||
| 61 | + <td colspan="11">少驶原因(公里)</td> | ||
| 62 | + <td rowspan="2">临加公里</td> | ||
| 63 | + <td colspan="3">计划班次</td> | ||
| 64 | + <td colspan="3">实际班次</td> | ||
| 65 | + <td colspan="3">临加班次</td> | ||
| 66 | + <td colspan="3">放站班次</td> | ||
| 67 | + <td colspan="3">调头班次</td> | ||
| 68 | + <td colspan="3">发生次数</td> | ||
| 69 | + <td rowspan="2">最大间隔时间(秒)</td> | ||
| 70 | + <td colspan="5" rowspan="2">原因</td> | ||
| 71 | + </tr> | ||
| 72 | + <tr> | ||
| 73 | + <td>路阻</td> | ||
| 74 | + <td>吊慢</td> | ||
| 75 | + <td>故障</td> | ||
| 76 | + <td>纠纷</td> | ||
| 77 | + <td>肇事</td> | ||
| 78 | + <td>缺人</td> | ||
| 79 | + <td>缺车</td> | ||
| 80 | + <td>客稀</td> | ||
| 81 | + <td>气候</td> | ||
| 82 | + <td>援外</td> | ||
| 83 | + <td>其他</td> | ||
| 84 | + <td>全日</td> | ||
| 85 | + <td>6:31~8:30</td> | ||
| 86 | + <td>16:01~18:00</td> | ||
| 87 | + <td>全日</td> | ||
| 88 | + <td>6:31~8:30</td> | ||
| 89 | + <td>16:01~18:00</td> | ||
| 90 | + <td>全日</td> | ||
| 91 | + <td>6:31~8:30</td> | ||
| 92 | + <td>16:01~18:00</td> | ||
| 93 | + <td>全日</td> | ||
| 94 | + <td>6:31~8:30</td> | ||
| 95 | + <td>16:01~18:00</td> | ||
| 96 | + <td>全日</td> | ||
| 97 | + <td>6:31~8:30</td> | ||
| 98 | + <td>16:01~18:00</td> | ||
| 99 | + <td>全日</td> | ||
| 100 | + <td>6:31~8:30</td> | ||
| 101 | + <td>16:01~18:00</td> | ||
| 102 | + </tr> | ||
| 103 | + </thead> | ||
| 104 | + <tr> | ||
| 105 | + <td colspan="40"> </td> | ||
| 106 | + </tr> | ||
| 107 | + <tr> | ||
| 108 | + <td colspan="40">合计</td> | ||
| 109 | + </tr> | ||
| 110 | + <tr> | ||
| 111 | + <td colspan="40"> </td> | ||
| 112 | + </tr> | ||
| 113 | + <tr> | ||
| 114 | + <td colspan="2">班次</td> | ||
| 115 | + <td colspan="2">车号</td> | ||
| 116 | + <td>司早</td> | ||
| 117 | + <td>售早</td> | ||
| 118 | + <td>司晚</td> | ||
| 119 | + <td>售晚</td> | ||
| 120 | + <td colspan="2">班次</td> | ||
| 121 | + <td colspan="2">车号</td> | ||
| 122 | + <td>司早</td> | ||
| 123 | + <td>售早</td> | ||
| 124 | + <td>司晚</td> | ||
| 125 | + <td>售晚</td> | ||
| 126 | + <td colspan="2">班次</td> | ||
| 127 | + <td colspan="2">车号</td> | ||
| 128 | + <td>司早</td> | ||
| 129 | + <td>售早</td> | ||
| 130 | + <td>司晚</td> | ||
| 131 | + <td>售晚</td> | ||
| 132 | + <td colspan="2">班次</td> | ||
| 133 | + <td colspan="2">车号</td> | ||
| 134 | + <td>司早</td> | ||
| 135 | + <td>售早</td> | ||
| 136 | + <td>司晚</td> | ||
| 137 | + <td>售晚</td> | ||
| 138 | + <td colspan="2">班次</td> | ||
| 139 | + <td colspan="2">车号</td> | ||
| 140 | + <td>司早</td> | ||
| 141 | + <td>售早</td> | ||
| 142 | + <td>司晚</td> | ||
| 143 | + <td>售晚</td> | ||
| 144 | + </tr> | ||
| 145 | + <tr> | ||
| 146 | + <td colspan="40"> </td> | ||
| 147 | + </tr> | ||
| 148 | + <tr> | ||
| 149 | + <td rowspan="2">路牌</td> | ||
| 150 | + <td colspan="2" rowspan="2">起点站</td> | ||
| 151 | + <td colspan="4">到达时间</td> | ||
| 152 | + <td colspan="4">发车时间</td> | ||
| 153 | + <td colspan="2" rowspan="2">备注</td> | ||
| 154 | + <td rowspan="2">路牌</td> | ||
| 155 | + <td colspan="2" rowspan="2">起点站</td> | ||
| 156 | + <td colspan="4">到达时间</td> | ||
| 157 | + <td colspan="4">发车时间</td> | ||
| 158 | + <td colspan="2" rowspan="2">备注</td> | ||
| 159 | + <td rowspan="2">路牌</td> | ||
| 160 | + <td colspan="2" rowspan="2">起点站</td> | ||
| 161 | + <td colspan="4">到达时间</td> | ||
| 162 | + <td colspan="4">发车时间</td> | ||
| 163 | + <td colspan="2" rowspan="2">备注</td> | ||
| 164 | + <td> </td> | ||
| 165 | + </tr> | ||
| 166 | + <tr> | ||
| 167 | + <td>应到</td> | ||
| 168 | + <td>实到</td> | ||
| 169 | + <td>快</td> | ||
| 170 | + <td>慢</td> | ||
| 171 | + <td>应发</td> | ||
| 172 | + <td>实发</td> | ||
| 173 | + <td>快</td> | ||
| 174 | + <td>慢</td> | ||
| 175 | + <td>应到</td> | ||
| 176 | + <td>实到</td> | ||
| 177 | + <td>快</td> | ||
| 178 | + <td>慢</td> | ||
| 179 | + <td>应发</td> | ||
| 180 | + <td>实发</td> | ||
| 181 | + <td>快</td> | ||
| 182 | + <td>慢</td> | ||
| 183 | + <td>应到</td> | ||
| 184 | + <td>实到</td> | ||
| 185 | + <td>快</td> | ||
| 186 | + <td>慢</td> | ||
| 187 | + <td>应发</td> | ||
| 188 | + <td>实发</td> | ||
| 189 | + <td>快</td> | ||
| 190 | + <td>慢</td> | ||
| 191 | + <td> </td> | ||
| 192 | + </tr> | ||
| 193 | + <tbody> | ||
| 194 | + | ||
| 195 | + </tbody> | ||
| 196 | + </table> | ||
| 197 | + </div> | ||
| 198 | + </div> | ||
| 199 | + </div> | ||
| 200 | + </div> | ||
| 201 | +</div> | ||
| 202 | + | ||
| 203 | +<script> | ||
| 204 | + $(function(){ | ||
| 205 | + // 关闭左侧栏 | ||
| 206 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 207 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 208 | + | ||
| 209 | + $("#date").datetimepicker({ | ||
| 210 | + format : 'YYYY-MM-DD', | ||
| 211 | + locale : 'zh-cn' | ||
| 212 | + }); | ||
| 213 | + | ||
| 214 | + $('#line').select2({ | ||
| 215 | + ajax: { | ||
| 216 | + url: '/realSchedule/findLine', | ||
| 217 | + dataType: 'json', | ||
| 218 | + delay: 150, | ||
| 219 | + data: function(params){ | ||
| 220 | + return{line: params.term}; | ||
| 221 | + }, | ||
| 222 | + processResults: function (data) { | ||
| 223 | + return { | ||
| 224 | + results: data | ||
| 225 | + }; | ||
| 226 | + }, | ||
| 227 | + cache: true | ||
| 228 | + }, | ||
| 229 | + templateResult: function(repo){ | ||
| 230 | + if (repo.loading) return repo.text; | ||
| 231 | + var h = '<span>'+repo.text+'</span>'; | ||
| 232 | + return h; | ||
| 233 | + }, | ||
| 234 | + escapeMarkup: function (markup) { return markup; }, | ||
| 235 | + minimumInputLength: 1, | ||
| 236 | + templateSelection: function(repo){ | ||
| 237 | + return repo.text; | ||
| 238 | + }, | ||
| 239 | + language: { | ||
| 240 | + noResults: function(){ | ||
| 241 | + return '<span style="color:red;font-size: 12px;">没有搜索到线路!</span>'; | ||
| 242 | + }, | ||
| 243 | + inputTooShort : function(e) { | ||
| 244 | + return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> 输入线路搜索线路</span>'; | ||
| 245 | + }, | ||
| 246 | + searching : function() { | ||
| 247 | + return '<span style="color:gray;font-size: 12px;"> 正在搜索线路...</span>'; | ||
| 248 | + } | ||
| 249 | + } | ||
| 250 | + }); | ||
| 251 | + | ||
| 252 | + //查询 | ||
| 253 | + $("#query").on('click',function(){ | ||
| 254 | + var line = $("#line").val(); | ||
| 255 | + var date = $("#date").val(); | ||
| 256 | + $.get('/realSchedule/scheduleDaily',{line:line,date:date},function(result){ | ||
| 257 | + | ||
| 258 | + }); | ||
| 259 | + }); | ||
| 260 | + }); | ||
| 261 | +</script> | ||
| 262 | +<script type="text/html" id="list_forms"> | ||
| 263 | + {{each list as obj i}} | ||
| 264 | + <tr> | ||
| 265 | + | ||
| 266 | + </tr> | ||
| 267 | + {{/each}} | ||
| 268 | + {{if list.length == 0}} | ||
| 269 | + <tr> | ||
| 270 | + <td colspan="6"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 271 | + </tr> | ||
| 272 | + {{/if}} | ||
| 273 | +</script> | ||
| 0 | \ No newline at end of file | 274 | \ No newline at end of file |
src/main/resources/static/pages/forms/statement/scheduleRealDaily.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | + .table-bordered { | ||
| 3 | + border: 1px solid; } | ||
| 4 | + .table-bordered > thead > tr > th, | ||
| 5 | + .table-bordered > thead > tr > td, | ||
| 6 | + .table-bordered > tbody > tr > th, | ||
| 7 | + .table-bordered > tbody > tr > td, | ||
| 8 | + .table-bordered > tfoot > tr > th, | ||
| 9 | + .table-bordered > tfoot > tr > td { | ||
| 10 | + border: 1px solid; } | ||
| 11 | + .table-bordered > thead > tr > th, | ||
| 12 | + .table-bordered > thead > tr > td { | ||
| 13 | + border-bottom-width: 2px; } | ||
| 14 | + | ||
| 15 | + .table > tbody + tbody { | ||
| 16 | + border-top: 1px solid; } | ||
| 17 | +</style> | ||
| 18 | + | ||
| 19 | +<div class="page-head"> | ||
| 20 | + <div class="page-title"> | ||
| 21 | + <h1>计划实际日报</h1> | ||
| 22 | + </div> | ||
| 23 | +</div> | ||
| 24 | + | ||
| 25 | +<div class="row"> | ||
| 26 | + <div class="col-md-12"> | ||
| 27 | + <div class="portlet light porttlet-fit bordered"> | ||
| 28 | + <div class="portlet-title"> | ||
| 29 | + <form class="form-inline" action=""> | ||
| 30 | + <div style="display: inline-block;"> | ||
| 31 | + <span class="item-label" style="width: 80px;">线路: </span> | ||
| 32 | + <select class="form-control" name="line" id="line" style="width: 180px;"></select> | ||
| 33 | + </div> | ||
| 34 | + <div style="display: inline-block;margin-left: 15px;"> | ||
| 35 | + <span class="item-label" style="width: 80px;">时间: </span> | ||
| 36 | + <input class="form-control" type="text" id="date" style="width: 180px;"/> | ||
| 37 | + </div> | ||
| 38 | + <div class="form-group"> | ||
| 39 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | ||
| 40 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | ||
| 41 | + </div> | ||
| 42 | + </form> | ||
| 43 | + </div> | ||
| 44 | + <div class="portlet-body"> | ||
| 45 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | ||
| 46 | + <table class="table table-bordered table-hover table-checkable" id="forms"> | ||
| 47 | + <thead> | ||
| 48 | + <tr> | ||
| 49 | + <th colspan="7">计划实际日报</th> | ||
| 50 | + </tr> | ||
| 51 | + <tr> | ||
| 52 | + <td>路线:</td> | ||
| 53 | + <td colspan="2"><span id="form_line"> </span></td> | ||
| 54 | + <td>时间:</td> | ||
| 55 | + <td colspan="3"><span id="form_date"> </span></td> | ||
| 56 | + </tr> | ||
| 57 | + <tr> | ||
| 58 | + <td>计划里程</td> | ||
| 59 | + <td>实际计划里程</td> | ||
| 60 | + <td>营运里程</td> | ||
| 61 | + <td>空驶里程</td> | ||
| 62 | + <td>抽减里程</td> | ||
| 63 | + <td>增加里程</td> | ||
| 64 | + <td>总里程</td> | ||
| 65 | + <td>计划班次</td> | ||
| 66 | + <td>实际计划班次</td> | ||
| 67 | + <td>抽减班次</td> | ||
| 68 | + <td>增加班次</td> | ||
| 69 | + <td>实际班次</td> | ||
| 70 | + </tr> | ||
| 71 | + </thead> | ||
| 72 | + <tbody class="scheduleRealDaily"> | ||
| 73 | + | ||
| 74 | + </tbody> | ||
| 75 | + </table> | ||
| 76 | + </div> | ||
| 77 | + </div> | ||
| 78 | + </div> | ||
| 79 | + </div> | ||
| 80 | +</div> | ||
| 81 | + | ||
| 82 | +<script> | ||
| 83 | + $(function(){ | ||
| 84 | + // 关闭左侧栏 | ||
| 85 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 86 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 87 | + | ||
| 88 | + $("#date").datetimepicker({ | ||
| 89 | + format : 'YYYY-MM-DD', | ||
| 90 | + locale : 'zh-cn' | ||
| 91 | + }); | ||
| 92 | + | ||
| 93 | + $('#line').select2({ | ||
| 94 | + ajax: { | ||
| 95 | + url: '/realSchedule/findLine', | ||
| 96 | + dataType: 'json', | ||
| 97 | + delay: 150, | ||
| 98 | + data: function(params){ | ||
| 99 | + return{line: params.term}; | ||
| 100 | + }, | ||
| 101 | + processResults: function (data) { | ||
| 102 | + return { | ||
| 103 | + results: data | ||
| 104 | + }; | ||
| 105 | + }, | ||
| 106 | + cache: true | ||
| 107 | + }, | ||
| 108 | + templateResult: function(repo){ | ||
| 109 | + if (repo.loading) return repo.text; | ||
| 110 | + var h = '<span>'+repo.text+'</span>'; | ||
| 111 | + return h; | ||
| 112 | + }, | ||
| 113 | + escapeMarkup: function (markup) { return markup; }, | ||
| 114 | + minimumInputLength: 1, | ||
| 115 | + templateSelection: function(repo){ | ||
| 116 | + return repo.text; | ||
| 117 | + }, | ||
| 118 | + language: { | ||
| 119 | + noResults: function(){ | ||
| 120 | + return '<span style="color:red;font-size: 12px;">没有搜索到线路!</span>'; | ||
| 121 | + }, | ||
| 122 | + inputTooShort : function(e) { | ||
| 123 | + return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> 输入线路搜索线路</span>'; | ||
| 124 | + }, | ||
| 125 | + searching : function() { | ||
| 126 | + return '<span style="color:gray;font-size: 12px;"> 正在搜索线路...</span>'; | ||
| 127 | + } | ||
| 128 | + } | ||
| 129 | + }); | ||
| 130 | + | ||
| 131 | + var line; | ||
| 132 | + var date; | ||
| 133 | + $("#query").on("click",function(){ | ||
| 134 | + line = $("#line").val(); | ||
| 135 | + date = $("#date").val(); | ||
| 136 | + | ||
| 137 | + }); | ||
| 138 | + }); | ||
| 139 | +</script> | ||
| 140 | +<script type="text/html" id="scheduleRealDaily"> | ||
| 141 | + {{each list as obj i}} | ||
| 142 | + <tr> | ||
| 143 | + <td></td> | ||
| 144 | + </tr> | ||
| 145 | + {{/each}} | ||
| 146 | + {{if list.length == 0}} | ||
| 147 | + <tr> | ||
| 148 | + <td colspan="7"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 149 | + </tr> | ||
| 150 | + {{/if}} | ||
| 151 | +</script> | ||
| 0 | \ No newline at end of file | 152 | \ No newline at end of file |
src/main/resources/static/pages/forms/statement/waybill_minhang.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | + .table-bordered { | ||
| 3 | + border: 1px solid; } | ||
| 4 | + .table-bordered > thead > tr > th, | ||
| 5 | + .table-bordered > thead > tr > td, | ||
| 6 | + .table-bordered > tbody > tr > th, | ||
| 7 | + .table-bordered > tbody > tr > td, | ||
| 8 | + .table-bordered > tfoot > tr > th, | ||
| 9 | + .table-bordered > tfoot > tr > td { | ||
| 10 | + border: 1px solid; } | ||
| 11 | + .table-bordered > thead > tr > th, | ||
| 12 | + .table-bordered > thead > tr > td { | ||
| 13 | + border-bottom-width: 2px; } | ||
| 14 | + | ||
| 15 | + .table > tbody + tbody { | ||
| 16 | + border-top: 1px solid; } | ||
| 17 | +</style> | ||
| 18 | + | ||
| 19 | +<div class="page-head"> | ||
| 20 | + <div class="page-title"> | ||
| 21 | + <h1>行车路单</h1> | ||
| 22 | + </div> | ||
| 23 | +</div> | ||
| 24 | + | ||
| 25 | +<div class="row"> | ||
| 26 | + <div class="col-md-12"> | ||
| 27 | + <div class="portlet light porttlet-fit bordered"> | ||
| 28 | + <div class="portlet-title"> | ||
| 29 | + <form class="form-inline" action=""> | ||
| 30 | + <div style="display: inline-block;"> | ||
| 31 | + <span class="item-label" style="width: 80px;">线路: </span> | ||
| 32 | + <select class="form-control" name="line" id="line" style="width: 180px;"></select> | ||
| 33 | + </div> | ||
| 34 | + <div style="display: inline-block;margin-left: 15px;"> | ||
| 35 | + <span class="item-label" style="width: 80px;">时间: </span> | ||
| 36 | + <input class="form-control" type="text" id="date" style="width: 180px;"/> | ||
| 37 | + </div> | ||
| 38 | + <div class="form-group" style="display: inline-block;margin-left: 15px;"> | ||
| 39 | + <input class="btn btn-default" type="button" id="query" value="查询"/> | ||
| 40 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | ||
| 41 | + <input class="btn btn-default" type="button" id="print" value="打印"/> | ||
| 42 | + <input class="btn btn-default" type="button" id="exportMore" value="批量导出"/> | ||
| 43 | + </div> | ||
| 44 | + </form> | ||
| 45 | + </div> | ||
| 46 | + <div class="portlet-body"> | ||
| 47 | + <div class="row"> | ||
| 48 | + <div class="col-md-3"> | ||
| 49 | + <div class="" style="margin-top: 10px;overflow:auto;height: 860px"> | ||
| 50 | + <table class="table table-bordered table-hover table-checkable pre-scrollable" id="info"> | ||
| 51 | + <thead> | ||
| 52 | + <tr class="hidden"> | ||
| 53 | + <th>人员</th> | ||
| 54 | + <th>自编号</th> | ||
| 55 | + <th>路牌</th> | ||
| 56 | + </tr> | ||
| 57 | + </thead> | ||
| 58 | + <tbody> | ||
| 59 | + | ||
| 60 | + </tbody> | ||
| 61 | + </table> | ||
| 62 | + </div> | ||
| 63 | + </div> | ||
| 64 | + <div class="col-md-9" id="printArea"> | ||
| 65 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | ||
| 66 | + <table class="table table-bordered table-checkable" id="forms"> | ||
| 67 | + <tbody class="ludan_1"> | ||
| 68 | + | ||
| 69 | + </tbody> | ||
| 70 | + <tbody class="ludan_2"> | ||
| 71 | + | ||
| 72 | + </tbody> | ||
| 73 | + <tbody class="ludan_3"> | ||
| 74 | + | ||
| 75 | + </tbody> | ||
| 76 | + <tbody class="ludan_4"> | ||
| 77 | + | ||
| 78 | + </tbody> | ||
| 79 | + </table> | ||
| 80 | + </div> | ||
| 81 | + </div> | ||
| 82 | + </div> | ||
| 83 | + </div> | ||
| 84 | + </div> | ||
| 85 | + </div> | ||
| 86 | +</div> | ||
| 87 | + | ||
| 88 | +<script> | ||
| 89 | + $(function(){ | ||
| 90 | + // 关闭左侧栏 | ||
| 91 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 92 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 93 | + | ||
| 94 | + $("#date").datetimepicker({ | ||
| 95 | + format : 'YYYY-MM-DD', | ||
| 96 | + locale : 'zh-cn' | ||
| 97 | + }); | ||
| 98 | + | ||
| 99 | + $('#line').select2({ | ||
| 100 | + ajax: { | ||
| 101 | + url: '/realSchedule/findLine', | ||
| 102 | + dataType: 'json', | ||
| 103 | + delay: 150, | ||
| 104 | + data: function(params){ | ||
| 105 | + return{line: params.term}; | ||
| 106 | + }, | ||
| 107 | + processResults: function (data) { | ||
| 108 | + return { | ||
| 109 | + results: data | ||
| 110 | + }; | ||
| 111 | + }, | ||
| 112 | + cache: true | ||
| 113 | + }, | ||
| 114 | + templateResult: function(repo){ | ||
| 115 | + if (repo.loading) return repo.text; | ||
| 116 | + var h = '<span>'+repo.text+'</span>'; | ||
| 117 | + return h; | ||
| 118 | + }, | ||
| 119 | + escapeMarkup: function (markup) { return markup; }, | ||
| 120 | + minimumInputLength: 1, | ||
| 121 | + templateSelection: function(repo){ | ||
| 122 | + return repo.text; | ||
| 123 | + }, | ||
| 124 | + language: { | ||
| 125 | + noResults: function(){ | ||
| 126 | + return '<span style="color:red;font-size: 12px;">没有搜索到线路!</span>'; | ||
| 127 | + }, | ||
| 128 | + inputTooShort : function(e) { | ||
| 129 | + return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> 输入线路搜索线路</span>'; | ||
| 130 | + }, | ||
| 131 | + searching : function() { | ||
| 132 | + return '<span style="color:gray;font-size: 12px;"> 正在搜索线路...</span>'; | ||
| 133 | + } | ||
| 134 | + } | ||
| 135 | + }); | ||
| 136 | + | ||
| 137 | + $("#query").on("click",function(){ | ||
| 138 | + var line = $("#line").val(); | ||
| 139 | + var date = $("#date").val(); | ||
| 140 | + $(".hidden").removeClass("hidden"); | ||
| 141 | + $get('/realSchedule/queryUserInfo',{line:line,date:date},function(result){ | ||
| 142 | + // 把数据填充到模版中 | ||
| 143 | + var tbodyHtml = template('list_info',{list:result}); | ||
| 144 | + // 把渲染好的模版html文本追加到表格中 | ||
| 145 | + $('#info tbody').html(tbodyHtml); | ||
| 146 | + }); | ||
| 147 | + }); | ||
| 148 | + | ||
| 149 | + var params = {}; | ||
| 150 | + var jName; | ||
| 151 | + $("#info tbody").on("click","tr",function(){ | ||
| 152 | + $('#forms .ludan_1').html(''); | ||
| 153 | + $('#forms .ludan_2').html(''); | ||
| 154 | + $('#forms .ludan_3').html(''); | ||
| 155 | + $('#forms .ludan_4').html(''); | ||
| 156 | + if($(this).children().size() < 2){ | ||
| 157 | + return; | ||
| 158 | + } | ||
| 159 | + | ||
| 160 | + $(this).children().each(function(index){ | ||
| 161 | + params[index] = $(this).text(); | ||
| 162 | + }); | ||
| 163 | + jName = params[0].split("\\")[0]; | ||
| 164 | + var id = $("#"+params[1]).val(); | ||
| 165 | + $get('/realSchedule/'+id,null,function(result){ | ||
| 166 | + result.scheduleDate = moment(result.scheduleDate).format("YYYY/MM/DD"); | ||
| 167 | + var ludan_1 = template('ludan_1',result); | ||
| 168 | + //var ludan_4 = template('ludan_4',result); | ||
| 169 | + // 把渲染好的模版html文本追加到表格中 | ||
| 170 | + $('#forms .ludan_1').append(ludan_1); | ||
| 171 | + //$('#forms .ludan_4').append(ludan_4); | ||
| 172 | + }); | ||
| 173 | + $get('/realSchedule/queryListWaybill',{jName:jName,clZbh:params[1],lpName:params[2]},function(result){ | ||
| 174 | + getTime(result); | ||
| 175 | + var ludan_2 = template('ludan_2',{list:result}); | ||
| 176 | + // 把渲染好的模版html文本追加到表格中 | ||
| 177 | + $('#forms .ludan_2').append(ludan_2); | ||
| 178 | + }); | ||
| 179 | + $get('/realSchedule/findKMBC',{jName:jName,clZbh:params[1],lpName:params[2]},function(result){ | ||
| 180 | + var ludan_3 = template('ludan_3',result); | ||
| 181 | + $('#forms .ludan_3').append(ludan_3); | ||
| 182 | + }); | ||
| 183 | + | ||
| 184 | + }); | ||
| 185 | + | ||
| 186 | + $("#export").on("click",function(){ | ||
| 187 | + $get('/realSchedule/exportWaybill',{jName:jName,clZbh:params[1],lpName:params[2]},function(result){ | ||
| 188 | + window.open("/downloadFile/download?fileName="+jName); | ||
| 189 | + }); | ||
| 190 | + }); | ||
| 191 | + | ||
| 192 | + $("#print").click(function(){ | ||
| 193 | + $("#printArea").printArea(); | ||
| 194 | + }); | ||
| 195 | + | ||
| 196 | + function getTime(list){ | ||
| 197 | + $.each(list, function(i, obj) { | ||
| 198 | + if(obj.zdsj != null && obj.zdsjActual != null ){ | ||
| 199 | + var zdsjActual = (obj.zdsjActual).split(":"); | ||
| 200 | + var zdsj = (obj.zdsj).split(":"); | ||
| 201 | + if(zdsjActual[0]*60+Number(zdsjActual[1]) > zdsj[0]*60+Number(zdsj[1])){ | ||
| 202 | + obj["slow"] = (zdsjActual[0]*60+Number(zdsjActual[1])) - (zdsj[0]*60+Number(zdsj[1])); | ||
| 203 | + } | ||
| 204 | + else if(zdsjActual[0]*60+Number(zdsjActual[1]) < zdsj[0]*60+Number(zdsj[1])){ | ||
| 205 | + obj["fast"] = (zdsj[0]*60+Number(zdsj[1])) - (zdsjActual[0]*60+Number(zdsjActual[1])); | ||
| 206 | + } | ||
| 207 | + } | ||
| 208 | + }); | ||
| 209 | + } | ||
| 210 | + }); | ||
| 211 | +</script> | ||
| 212 | +<script type="text/html" id="list_info"> | ||
| 213 | + {{each list as obj i}} | ||
| 214 | + <tr> | ||
| 215 | + <td width="45%">{{obj.jName}}\{{obj.jGh}}</td> | ||
| 216 | + <td width="32%">{{obj.clZbh}}</td> | ||
| 217 | + <td width="23%">{{obj.lpName}}<input type="hidden" id="{{obj.clZbh}}" value="{{obj.id}}"></td> | ||
| 218 | + </tr> | ||
| 219 | + {{/each}} | ||
| 220 | + {{if list.length == 0}} | ||
| 221 | + <tr> | ||
| 222 | + <td colspan="3"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 223 | + </tr> | ||
| 224 | + {{/if}} | ||
| 225 | +</script> | ||
| 226 | +<script type="text/html" id="ludan_1"> | ||
| 227 | + <tr> | ||
| 228 | + <td colspan="13">行车路单</td> | ||
| 229 | + </tr> | ||
| 230 | + <tr> | ||
| 231 | + <td colspan="13">路别:{{xlName}} 路牌:{{lpName}} 车号:{{clZbh}} 出场时间:{{fcsjActual}} 到达站名:{{zdzName}} 当班调度: 日期:{{scheduleDate}} 本日耗油: 升</td> | ||
| 232 | + </tr> | ||
| 233 | +<!-- | ||
| 234 | + <tr> | ||
| 235 | + <td rowspan="2">调度章</td> | ||
| 236 | + <td colspan="1"> </td> | ||
| 237 | + <td rowspan="2">早班</td> | ||
| 238 | + <td colspan="1"> </td> | ||
| 239 | + <td rowspan="2">夜班</td> | ||
| 240 | + <td colspan="1"> </td> | ||
| 241 | + <td rowspan="2" colspan="2">交叉</td> | ||
| 242 | + <td colspan="2"> </td> | ||
| 243 | + <td rowspan="2">其他</td> | ||
| 244 | + <td colspan="1"> </td> | ||
| 245 | + <td colspan="1"> </td> | ||
| 246 | + <td colspan="1"> </td> | ||
| 247 | + </tr> | ||
| 248 | + <tr> | ||
| 249 | + <td colspan="1"> </td> | ||
| 250 | + <td colspan="1"> </td> | ||
| 251 | + <td colspan="1"> </td> | ||
| 252 | + <td colspan="2"> </td> | ||
| 253 | + <td colspan="1"> </td> | ||
| 254 | + <td colspan="1"> </td> | ||
| 255 | + <td colspan="1"> </td> | ||
| 256 | + </tr> | ||
| 257 | +--> | ||
| 258 | + <tr> | ||
| 259 | + <td rowspan="2">车次</td> | ||
| 260 | + <td colspan="2">工号</td> | ||
| 261 | + <!-- <td rowspan="2">公里耗油</td> --> | ||
| 262 | + <td colspan="2">起讫站</td> | ||
| 263 | + <td colspan="4">时间</td> | ||
| 264 | + <td colspan="2">误点</td> | ||
| 265 | + <td rowspan="2" width="66px">里程(公里)计划</td> | ||
| 266 | + <td rowspan="2">备注</td> | ||
| 267 | + </tr> | ||
| 268 | + <tr> | ||
| 269 | + <td colspan="1" width="60px">司 机</td> | ||
| 270 | + <td colspan="1" width="60px">售 票</td> | ||
| 271 | + <td colspan="1">起点</td> | ||
| 272 | + <td colspan="1">终点</td> | ||
| 273 | + <td colspan="1">计发</td> | ||
| 274 | + <td colspan="1">实发</td> | ||
| 275 | + <td colspan="1">应到</td> | ||
| 276 | + <td colspan="1">实到</td> | ||
| 277 | + <td colspan="1">快</td> | ||
| 278 | + <td colspan="1">慢</td> | ||
| 279 | + </tr> | ||
| 280 | +</script> | ||
| 281 | +<script type="text/html" id="ludan_2"> | ||
| 282 | + {{each list as obj i}} | ||
| 283 | + <tr> | ||
| 284 | + <td>{{i+1}}</td> | ||
| 285 | + <td>{{obj.jName}}</td> | ||
| 286 | + <td>{{obj.sName}}</td> | ||
| 287 | + <td>{{obj.qdzName}}</td> | ||
| 288 | + <td>{{obj.zdzName}}</td> | ||
| 289 | + <td>{{obj.fcsj}}</td> | ||
| 290 | + <td>{{obj.fcsjActual}}</td> | ||
| 291 | + <td>{{obj.zdsj}}</td> | ||
| 292 | + <td>{{obj.zdsjActual}}</td> | ||
| 293 | + <td>{{obj.fast}}</td> | ||
| 294 | + <td>{{obj.slow}}</td> | ||
| 295 | + <td>{{obj.jhlc}}</td> | ||
| 296 | + <td>{{obj.remarks}}</td> | ||
| 297 | + </tr> | ||
| 298 | + {{/each}} | ||
| 299 | + {{if list.length == 0}} | ||
| 300 | + <tr> | ||
| 301 | + <td colspan="13"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 302 | + </tr> | ||
| 303 | + {{/if}} | ||
| 304 | +</script> | ||
| 305 | +<script type="text/html" id="ludan_3"> | ||
| 306 | + <tr> | ||
| 307 | + <td colspan="2">计划公里</td> | ||
| 308 | + <td>{{jhlc}}</td> | ||
| 309 | + <td>抽减公里</td> | ||
| 310 | + <td>{{remMileage}}</td> | ||
| 311 | + <td colspan="2">增加公里</td> | ||
| 312 | + <td>{{addMileage}}</td> | ||
| 313 | + <td colspan="2">实际计划公里</td> | ||
| 314 | + <td colspan="3">{{jhlc}}</td> | ||
| 315 | + </tr> | ||
| 316 | + <tr> | ||
| 317 | + <td colspan="2">营运公里</td> | ||
| 318 | + <td>{{realMileage}}</td> | ||
| 319 | + <td>空驶公里</td> | ||
| 320 | + <td>{{ksgl}}</td> | ||
| 321 | + <td colspan="2">总公里</td> | ||
| 322 | + <td>{{realMileage}}</td> | ||
| 323 | + <td colspan="2">计划班次</td> | ||
| 324 | + <td colspan="3">{{jhbc}}</td> | ||
| 325 | + </tr> | ||
| 326 | + <tr> | ||
| 327 | + <td colspan="2">抽减班次</td> | ||
| 328 | + <td>{{cjbc}}</td> | ||
| 329 | + <td>增加班次</td> | ||
| 330 | + <td>{{ljbc}}</td> | ||
| 331 | + <td colspan="2">实际计划班次</td> | ||
| 332 | + <td>{{jhbc}}</td> | ||
| 333 | + <td colspan="2">实际班次</td> | ||
| 334 | + <td colspan="3">{{sjbc}}</td> | ||
| 335 | + </tr> | ||
| 336 | +</script> | ||
| 337 | +<script type="text/html" id="ludan_4"> | ||
| 338 | + <tr> | ||
| 339 | + <td colspan="12">认真做好终点项目的例保保修工作,杜绝机械火警事故!</td> | ||
| 340 | + <td>轮胎</td> | ||
| 341 | + <td> </td> | ||
| 342 | + </tr> | ||
| 343 | + <tr> | ||
| 344 | + <td colspan="3">重点例保项目</td> | ||
| 345 | + <td>1</td> | ||
| 346 | + <td>2</td> | ||
| 347 | + <td>3</td> | ||
| 348 | + <td colspan="3">重点例保项目</td> | ||
| 349 | + <td>1</td> | ||
| 350 | + <td>2</td> | ||
| 351 | + <td>3</td> | ||
| 352 | + <td>灭火机</td> | ||
| 353 | + <td> </td> | ||
| 354 | + </tr> | ||
| 355 | + <tr> | ||
| 356 | + <td colspan="3">各类制动</td> | ||
| 357 | + <td> </td> | ||
| 358 | + <td> </td> | ||
| 359 | + <td> </td> | ||
| 360 | + <td colspan="3">各类灯光</td> | ||
| 361 | + <td> </td> | ||
| 362 | + <td> </td> | ||
| 363 | + <td> </td> | ||
| 364 | + <td colspan="2">出场路码表里程</td> | ||
| 365 | + </tr> | ||
| 366 | + <tr> | ||
| 367 | + <td colspan="3">方向机</td> | ||
| 368 | + <td> </td> | ||
| 369 | + <td> </td> | ||
| 370 | + <td> </td> | ||
| 371 | + <td colspan="3">各类仪表</td> | ||
| 372 | + <td> </td> | ||
| 373 | + <td> </td> | ||
| 374 | + <td> </td> | ||
| 375 | + <td colspan="2" rowspan="2"> </td> | ||
| 376 | + </tr> | ||
| 377 | + <tr> | ||
| 378 | + <td colspan="3">欠压报警器</td> | ||
| 379 | + <td> </td> | ||
| 380 | + <td> </td> | ||
| 381 | + <td> </td> | ||
| 382 | + <td colspan="3">各类皮带</td> | ||
| 383 | + <td> </td> | ||
| 384 | + <td> </td> | ||
| 385 | + <td> </td> | ||
| 386 | + </tr> | ||
| 387 | + <tr> | ||
| 388 | + <td colspan="3">发动机清洁及响声</td> | ||
| 389 | + <td> </td> | ||
| 390 | + <td> </td> | ||
| 391 | + <td> </td> | ||
| 392 | + <td colspan="3">油箱及托架</td> | ||
| 393 | + <td> </td> | ||
| 394 | + <td> </td> | ||
| 395 | + <td> </td> | ||
| 396 | + <td colspan="2">出场路码表里程</td> | ||
| 397 | + </tr> | ||
| 398 | + <tr> | ||
| 399 | + <td colspan="3">地盘响声</td> | ||
| 400 | + <td> </td> | ||
| 401 | + <td> </td> | ||
| 402 | + <td> </td> | ||
| 403 | + <td colspan="3">轮胎、半轴螺栓螺母</td> | ||
| 404 | + <td> </td> | ||
| 405 | + <td> </td> | ||
| 406 | + <td> </td> | ||
| 407 | + <td colspan="2" rowspan="3"> </td> | ||
| 408 | + </tr> | ||
| 409 | + <tr> | ||
| 410 | + <td colspan="3">化油器及油路</td> | ||
| 411 | + <td> </td> | ||
| 412 | + <td> </td> | ||
| 413 | + <td> </td> | ||
| 414 | + <td colspan="3">油、电、水、气</td> | ||
| 415 | + <td> </td> | ||
| 416 | + <td> </td> | ||
| 417 | + <td> </td> | ||
| 418 | + </tr> | ||
| 419 | + <tr> | ||
| 420 | + <td colspan="3">进排歧管及排气管</td> | ||
| 421 | + <td> </td> | ||
| 422 | + <td> </td> | ||
| 423 | + <td> </td> | ||
| 424 | + <td colspan="3">内外车身及附件</td> | ||
| 425 | + <td> </td> | ||
| 426 | + <td> </td> | ||
| 427 | + <td> </td> | ||
| 428 | + </tr> | ||
| 429 | + <tr> | ||
| 430 | + <td colspan="14">1 首次出场,2 复使中途,3 某次进场。√正常,ⓧ报修,×尚未报修</td> | ||
| 431 | + </tr> | ||
| 432 | +</script> | ||
| 0 | \ No newline at end of file | 433 | \ No newline at end of file |
src/main/resources/static/pages/permission/user/changePWD.html
0 → 100644
| 1 | +<div class="row"> | ||
| 2 | +<div class="col-md-12"> | ||
| 3 | +<!-- BEGIN VALIDATION STATES--> | ||
| 4 | +<div class="portlet light portlet-fit portlet-form bordered"> | ||
| 5 | +<div class="portlet-body"> | ||
| 6 | + <form action="/user/changePWD" class="form-horizontal" id="changePWD"> | ||
| 7 | + <div class="form-group" style="margin-top: 60px"> | ||
| 8 | + <label class="control-label col-md-5">原始密码: | ||
| 9 | + </label> | ||
| 10 | + <div class="col-md-4"> | ||
| 11 | + <div class="input-icon right"> | ||
| 12 | + <i class="fa"></i> | ||
| 13 | + <input type="password" class="form-control" name="oldPWD" /> </div> | ||
| 14 | + </div> | ||
| 15 | + </div> | ||
| 16 | + <div class="form-group"> | ||
| 17 | + <label class="control-label col-md-5">输入新密码: | ||
| 18 | + </label> | ||
| 19 | + <div class="col-md-4"> | ||
| 20 | + <div class="input-icon right"> | ||
| 21 | + <i class="fa"></i> | ||
| 22 | + <input type="password" class="form-control" name="newPWD" /> </div> | ||
| 23 | + </div> | ||
| 24 | + </div> | ||
| 25 | + <div class="form-group"> | ||
| 26 | + <label class="control-label col-md-5">确认新密码: | ||
| 27 | + </label> | ||
| 28 | + <div class="col-md-4"> | ||
| 29 | + <div class="input-icon right"> | ||
| 30 | + <i class="fa"></i> | ||
| 31 | + <input type="password" class="form-control" name="cnewPWD" /> </div> | ||
| 32 | + </div> | ||
| 33 | + </div> | ||
| 34 | + <div class="form-actions"> | ||
| 35 | + <div class="row"> | ||
| 36 | + <div class="col-md-offset-5 col-md-7"> | ||
| 37 | + <button type="button" id="confirm" class="btn green">确定</button> | ||
| 38 | + <button type="reset" class="btn default">取消</button> | ||
| 39 | + </div> | ||
| 40 | + </div> | ||
| 41 | + </div> | ||
| 42 | + </form> | ||
| 43 | +</div> | ||
| 44 | +</div> | ||
| 45 | +</div> | ||
| 46 | +</div> | ||
| 47 | + | ||
| 48 | +<script> | ||
| 49 | +$(function(){ | ||
| 50 | + $("#confirm").on("click",function(){ | ||
| 51 | + $.get('/user/changePWD',null,function(){ | ||
| 52 | + | ||
| 53 | + }); | ||
| 54 | + }); | ||
| 55 | +}); | ||
| 56 | +</script> | ||
| 0 | \ No newline at end of file | 57 | \ No newline at end of file |