Commit 2c467da32b3b0b7b5cb4e5c9584175134f4d05f9

Authored by 潘钊
1 parent 78d1c539

update...

src/main/java/com/bsth/data/pilot80/PilotReport.java
@@ -78,6 +78,12 @@ public class PilotReport { @@ -78,6 +78,12 @@ public class PilotReport {
78 //d80MultiMap.put(d80.getData().getLineId().toString(), d80); 78 //d80MultiMap.put(d80.getData().getLineId().toString(), d80);
79 79
80 String nbbm = BasicData.deviceId2NbbmMap.get(d80.getDeviceId()); 80 String nbbm = BasicData.deviceId2NbbmMap.get(d80.getDeviceId());
  81 + //上报时,在执行的班次
  82 + if(StringUtils.isNotEmpty(nbbm)){
  83 + ScheduleRealInfo sch = dayOfSchedule.executeCurr(nbbm);
  84 + if(null != sch)
  85 + d80.setSchId(sch.getId());
  86 + }
81 //处理 87 //处理
82 switch (d80.getData().getRequestCode()) { 88 switch (d80.getData().getRequestCode()) {
83 //出场请求 89 //出场请求
src/main/java/com/bsth/entity/directive/D80.java
@@ -62,7 +62,17 @@ public class D80 { @@ -62,7 +62,17 @@ public class D80 {
62 private Date handleTime; 62 private Date handleTime;
63 63
64 private String remarks; 64 private String remarks;
65 - 65 +
  66 + private Long schId;
  67 +
  68 + public Long getSchId() {
  69 + return schId;
  70 + }
  71 +
  72 + public void setSchId(Long schId) {
  73 + this.schId = schId;
  74 + }
  75 +
66 @Embeddable 76 @Embeddable
67 public static class D80Data { 77 public static class D80Data {
68 78
src/main/java/com/bsth/service/realcontrol/impl/ScheduleRealInfoServiceImpl.java
@@ -3270,7 +3270,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf @@ -3270,7 +3270,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf
3270 ScheduleRealInfo sch = dayOfSchedule.get(id); 3270 ScheduleRealInfo sch = dayOfSchedule.get(id);
3271 if (sch != null) { 3271 if (sch != null) {
3272 sch.setBcType(bcType); 3272 sch.setBcType(bcType);
3273 - sch.addRemarks(remarks); 3273 + sch.setRemarks(remarks);
3274 rs.put("status", ResponseCode.SUCCESS); 3274 rs.put("status", ResponseCode.SUCCESS);
3275 rs.put("t", sch); 3275 rs.put("t", sch);
3276 3276
src/main/resources/static/real_control_v2/fragments/line_schedule/context_menu/dftz.html
@@ -164,7 +164,7 @@ @@ -164,7 +164,7 @@
164 164
165 $('[name=bcType]', modal).on('change', function(){ 165 $('[name=bcType]', modal).on('change', function(){
166 var type = $(this).val(); 166 var type = $(this).val();
167 - if(sch.bcType != 'normal') 167 + if(sch.bcType == 'in' || sch.bcType == 'out')
168 return; 168 return;
169 169
170 //重置类型,等待调整界面触发刷新事件 170 //重置类型,等待调整界面触发刷新事件
@@ -188,6 +188,18 @@ @@ -188,6 +188,18 @@
188 $(detailModal).trigger('init', {sch: sch, parentModal: modal, _dfsj: $('[name=dfsj]', modal).val()}); 188 $(detailModal).trigger('init', {sch: sch, parentModal: modal, _dfsj: $('[name=dfsj]', modal).val()});
189 }) 189 })
190 }); 190 });
  191 +
  192 + /**
  193 + * 相同选项 也触发 onchange
  194 + */
  195 + $('[name=bcType]', modal).mousedown(function () {
  196 + this.sindex = $(this)[0].selectedIndex;
  197 + $(this)[0].selectedIndex = 0;
  198 + }).mouseout(function () {
  199 + if ($(this)[0].selectedIndex === 0) {
  200 + $(this)[0].selectedIndex = this.sindex;
  201 + }
  202 + });
191 }); 203 });
192 })(); 204 })();
193 </script> 205 </script>
src/main/resources/static/real_control_v2/fragments/line_schedule/context_menu/fcxxwt.html
@@ -267,7 +267,7 @@ @@ -267,7 +267,7 @@
267 267
268 $('select[name=bcType]', modal).on('change', function(){ 268 $('select[name=bcType]', modal).on('change', function(){
269 var type = $(this).val(); 269 var type = $(this).val();
270 - if(sch.bcType != 'normal') 270 + if(sch.bcType == 'in' || sch.bcType == 'out')
271 return; 271 return;
272 272
273 //重置类型,等待调整界面触发刷新事件 273 //重置类型,等待调整界面触发刷新事件
@@ -289,6 +289,18 @@ @@ -289,6 +289,18 @@
289 $(detailModal).trigger('init', {sch: sch, parentModal: modal}); 289 $(detailModal).trigger('init', {sch: sch, parentModal: modal});
290 }) 290 })
291 }); 291 });
  292 +
  293 + /**
  294 + * 相同选项 也触发 onchange
  295 + */
  296 + $('select[name=bcType]', modal).mousedown(function () {
  297 + this.sindex = $(this)[0].selectedIndex;
  298 + $(this)[0].selectedIndex = 0;
  299 + }).mouseout(function () {
  300 + if ($(this)[0].selectedIndex === 0) {
  301 + $(this)[0].selectedIndex = this.sindex;
  302 + }
  303 + });
292 }); 304 });
293 305
294 function validation_s_e_Time(data) { 306 function validation_s_e_Time(data) {
src/main/resources/static/real_control_v2/fragments/line_schedule/sys_mailbox.html
@@ -5,8 +5,9 @@ @@ -5,8 +5,9 @@
5 <h4 class="uk-panel-title">{{data.nbbm}} {{text}}</h4> 5 <h4 class="uk-panel-title">{{data.nbbm}} {{text}}</h4>
6 <code>{{dateStr}}</code> 6 <code>{{dateStr}}</code>
7 <div class="uk-button-group"> 7 <div class="uk-button-group">
8 - <a class="uk-button uk-button-mini uk-button-primary">同意</a>  
9 - <a class="uk-button uk-button-mini reject">不同意</a> 8 + <button class="uk-button uk-button-mini uk-button-primary">同意</button>
  9 + <button class="uk-button uk-button-mini reject">不同意</button>
  10 + <a class="edit_link" data-id="{{schId}}" data-line="{{data.lineId}}" >编辑</a>
10 </div> 11 </div>
11 </div> 12 </div>
12 </div> 13 </div>
src/main/resources/static/real_control_v2/js/main.js
@@ -168,8 +168,8 @@ var disabled_submit_btn = function (form) { @@ -168,8 +168,8 @@ var disabled_submit_btn = function (form) {
168 function showUpdateDescription() { 168 function showUpdateDescription() {
169 //更新说明 169 //更新说明
170 var updateDescription = { 170 var updateDescription = {
171 - date: '2017-11-01',  
172 - text: '<h5>1、修正了XP系统下主页滚动条的显示问题(Windows XP sp3 + chrome 49.0.2623.112)。</h5>' 171 + date: '2017-11-02',
  172 + text: '<h5>1、修正了在放站重复操作时,需要先将班次切回正常班次的问题。</h5><h5>2、驾驶员请求信使上,添加“编辑”链接,可弹出对应班次的发车信息微调框。</h5>'
173 }; 173 };
174 174
175 var storage = window.localStorage 175 var storage = window.localStorage
src/main/resources/static/real_control_v2/js/websocket/sch_websocket.js
@@ -235,8 +235,10 @@ var gb_sch_websocket = (function () { @@ -235,8 +235,10 @@ var gb_sch_websocket = (function () {
235 dl.addClass('relevance-active intimity').find('dd:eq(5)').trigger('click'); 235 dl.addClass('relevance-active intimity').find('dd:eq(5)').trigger('click');
236 }); 236 });
237 237
  238 +
238 //80同意 239 //80同意
239 $(document).on('click', '.sys-mailbox .sys-note-80 .uk-button-primary', function () { 240 $(document).on('click', '.sys-mailbox .sys-note-80 .uk-button-primary', function () {
  241 + $(this).attr('disabled', 'disabled');
240 var panel = $(this).parents('.sys-note-80') 242 var panel = $(this).parents('.sys-note-80')
241 , id = panel.data('id'); 243 , id = panel.data('id');
242 244
@@ -245,6 +247,7 @@ var gb_sch_websocket = (function () { @@ -245,6 +247,7 @@ var gb_sch_websocket = (function () {
245 247
246 //80不同意 248 //80不同意
247 $(document).on('click', '.sys-mailbox .sys-note-80 .uk-button.reject', function () { 249 $(document).on('click', '.sys-mailbox .sys-note-80 .uk-button.reject', function () {
  250 + $(this).attr('disabled', 'disabled');
248 var panel = $(this).parents('.sys-note-80') 251 var panel = $(this).parents('.sys-note-80')
249 , id = panel.data('id'); 252 , id = panel.data('id');
250 253
@@ -329,6 +332,24 @@ var gb_sch_websocket = (function () { @@ -329,6 +332,24 @@ var gb_sch_websocket = (function () {
329 gb_schedule_context_menu.dftz(nextSch); 332 gb_schedule_context_menu.dftz(nextSch);
330 }); 333 });
331 334
  335 + /**
  336 + * 信使 sys-note-80 编辑
  337 + */
  338 + $(document).on('click', '.sys-note-80 .edit_link', function () {
  339 + var id = $(this).data('id'),
  340 + lineCode = $(this).data('line');
  341 +
  342 + var sch = gb_schedule_table.findScheduleByLine(lineCode)[id];
  343 + if(!sch)
  344 + return;
  345 +
  346 + gb_schedule_context_menu.fcxxwt(sch);
  347 + var dl = gb_schedule_table.scroToDl(sch);
  348 + //高亮
  349 + gb_schedule_table.reset_drag_active_all(dl);
  350 + dl.addClass('relevance-active intimity').find('dd:eq(5)').trigger('click');
  351 + });
  352 +
332 return { 353 return {
333 sock: function () { 354 sock: function () {
334 return schSock; 355 return schSock;