Commit 644c5f632e9e1441db12d09b52052c2c1a15c316
Merge branch 'minhang' of
http://222.66.0.204:8090/panzhaov5/bsth_control into minhang
Showing
46 changed files
with
2491 additions
and
213 deletions
src/main/java/com/bsth/Application.java
| ... | ... | @@ -17,7 +17,7 @@ import java.util.concurrent.ScheduledExecutorService; |
| 17 | 17 | @SpringBootApplication |
| 18 | 18 | public class Application extends SpringBootServletInitializer { |
| 19 | 19 | |
| 20 | - public static ScheduledExecutorService mainServices = Executors.newScheduledThreadPool(16); | |
| 20 | + public static ScheduledExecutorService mainServices = Executors.newScheduledThreadPool(17); | |
| 21 | 21 | |
| 22 | 22 | @Override |
| 23 | 23 | protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { | ... | ... |
src/main/java/com/bsth/XDApplication.java
| ... | ... | @@ -9,6 +9,7 @@ import com.bsth.data.gpsdata.thread.GpsDataLoaderThread; |
| 9 | 9 | import com.bsth.data.gpsdata.thread.OfflineMonitorThread; |
| 10 | 10 | import com.bsth.data.msg_queue.DirectivePushQueue; |
| 11 | 11 | import com.bsth.data.msg_queue.WebSocketPushQueue; |
| 12 | +import com.bsth.data.schedule.auto_exec.AutoExecScanThread; | |
| 12 | 13 | import com.bsth.data.schedule.edit_logs.SeiPstThread; |
| 13 | 14 | import com.bsth.data.schedule.late_adjust.ScheduleLateThread; |
| 14 | 15 | import com.bsth.data.schedule.signal.SchSiginUpdateDBThread; |
| ... | ... | @@ -64,6 +65,8 @@ public class XDApplication implements CommandLineRunner { |
| 64 | 65 | SampleTimeDataLoader sampleTimeDataLoader; |
| 65 | 66 | @Autowired |
| 66 | 67 | SchSiginUpdateDBThread schSiginUpdateDBThread; |
| 68 | + @Autowired | |
| 69 | + AutoExecScanThread autoExecScanThread; | |
| 67 | 70 | |
| 68 | 71 | private static long timeDiff; |
| 69 | 72 | private static long timeDiffTraffic; |
| ... | ... | @@ -111,6 +114,8 @@ public class XDApplication implements CommandLineRunner { |
| 111 | 114 | //sexec.scheduleWithFixedDelay(gpsDataLoader, 30, 2, TimeUnit.SECONDS); |
| 112 | 115 | //实际排班更新线程 |
| 113 | 116 | //sexec.scheduleWithFixedDelay(scheduleRefreshThread, 15, 240, TimeUnit.SECONDS); |
| 117 | + //sexec.scheduleWithFixedDelay(autoExecScanThread, 100, 50, TimeUnit.SECONDS);//班次自动执行 | |
| 118 | + //WebSocketPushQueue.start();//消息队列 -webSocket ,推送至线调web页面的 | |
| 114 | 119 | //实际排班延迟入库线程 |
| 115 | 120 | //sexec.scheduleWithFixedDelay(schedulePstThread, 60, 15, TimeUnit.SECONDS); |
| 116 | 121 | //班次修正日志延迟入库 |
| ... | ... | @@ -137,6 +142,7 @@ public class XDApplication implements CommandLineRunner { |
| 137 | 142 | sexec.scheduleWithFixedDelay(threadMonotor, 240, 60, TimeUnit.SECONDS);//线程监听(防止重要的线程阻塞、异常结束。以及部分主备切换工作) |
| 138 | 143 | sexec.scheduleWithFixedDelay(sampleTimeDataLoader, 140, 120 * 60, TimeUnit.SECONDS);//到离站预测需要的站点间耗时数据 |
| 139 | 144 | sexec.scheduleWithFixedDelay(basicDataLoader, 2, 2, TimeUnit.HOURS);//基础数据更新 |
| 145 | + sexec.scheduleWithFixedDelay(autoExecScanThread, 160, 50, TimeUnit.SECONDS);//班次自动执行 | |
| 140 | 146 | DirectivePushQueue.start();//消息队列 -指令,系统下发的 |
| 141 | 147 | WebSocketPushQueue.start();//消息队列 -webSocket ,推送至线调web页面的 |
| 142 | 148 | ... | ... |
src/main/java/com/bsth/controller/realcontrol/LineConfigController.java
| ... | ... | @@ -116,4 +116,9 @@ public class LineConfigController extends BaseController<LineConfig, Integer>{ |
| 116 | 116 | public Map<String, Object> parkAndStationSet(@RequestParam Map<String, String> map){ |
| 117 | 117 | return lineConfigService.parkAndStationSet(map); |
| 118 | 118 | } |
| 119 | + | |
| 120 | + @RequestMapping(value = "/setAutoExec", method = RequestMethod.POST) | |
| 121 | + public Map<String, Object> setAutoExec(@RequestParam Map<String, String> map){ | |
| 122 | + return lineConfigService.setAutoExec(map); | |
| 123 | + } | |
| 119 | 124 | } | ... | ... |
src/main/java/com/bsth/controller/realcontrol/ScheduleRealInfoController.java
| ... | ... | @@ -549,9 +549,9 @@ public class ScheduleRealInfoController extends BaseController<ScheduleRealInfo, |
| 549 | 549 | public List<String> dateArray(@RequestParam(defaultValue = "0") int c){ |
| 550 | 550 | List<String> rs = new ArrayList<>(); |
| 551 | 551 | |
| 552 | - long t = new Date().getTime(); | |
| 552 | + long t = System.currentTimeMillis(); | |
| 553 | 553 | if(c != 1) |
| 554 | - t -= ONE_DAY - (1000 * 60 * 60 * 2); | |
| 554 | + t -= (ONE_DAY + (1000 * 60 * 60 * 2)); | |
| 555 | 555 | for(int i = 0; i < 3; i ++){ |
| 556 | 556 | rs.add(fmtyyyyMMdd.print(t)); |
| 557 | 557 | t -= ONE_DAY; | ... | ... |
src/main/java/com/bsth/controller/realcontrol/summary/DestroySituationController.java
0 → 100644
| 1 | +package com.bsth.controller.realcontrol.summary; | |
| 2 | + | |
| 3 | +import com.bsth.controller.BaseController; | |
| 4 | +import com.bsth.data.summary.entity.DestroySituation; | |
| 5 | +import org.springframework.web.bind.annotation.RequestMapping; | |
| 6 | +import org.springframework.web.bind.annotation.RestController; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * Created by panzhao on 2017/11/1. | |
| 10 | + */ | |
| 11 | +@RestController | |
| 12 | +@RequestMapping("/summary/destroy_detail") | |
| 13 | +public class DestroySituationController extends BaseController<DestroySituation, Long> { | |
| 14 | +} | ... | ... |
src/main/java/com/bsth/data/schedule/auto_exec/AutoExecScanThread.java
0 → 100644
| 1 | +package com.bsth.data.schedule.auto_exec; | |
| 2 | + | |
| 3 | +import com.bsth.data.LineConfigData; | |
| 4 | +import com.bsth.data.schedule.DayOfSchedule; | |
| 5 | +import com.bsth.entity.realcontrol.LineConfig; | |
| 6 | +import com.bsth.entity.realcontrol.ScheduleRealInfo; | |
| 7 | +import org.slf4j.Logger; | |
| 8 | +import org.slf4j.LoggerFactory; | |
| 9 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 10 | +import org.springframework.stereotype.Component; | |
| 11 | + | |
| 12 | +import java.util.ArrayList; | |
| 13 | +import java.util.Collection; | |
| 14 | +import java.util.List; | |
| 15 | + | |
| 16 | +/** | |
| 17 | + * 班次自动执行扫描线程 | |
| 18 | + * Created by panzhao on 2017/10/31. | |
| 19 | + */ | |
| 20 | +@Component | |
| 21 | +public class AutoExecScanThread extends Thread{ | |
| 22 | + | |
| 23 | + | |
| 24 | + @Autowired | |
| 25 | + LineConfigData lineConfigData; | |
| 26 | + | |
| 27 | + @Autowired | |
| 28 | + DayOfSchedule dayOfSchedule; | |
| 29 | + | |
| 30 | + @Autowired | |
| 31 | + RealScheduleAutoExecHandler realScheduleAutoExecHandler; | |
| 32 | + | |
| 33 | + Logger logger = LoggerFactory.getLogger(this.getClass()); | |
| 34 | + | |
| 35 | + @Override | |
| 36 | + public void run() { | |
| 37 | + try{ | |
| 38 | + //要自动执行的线路 | |
| 39 | + List<String> autos = new ArrayList<>(); | |
| 40 | + Collection<LineConfig> lcs = lineConfigData.getAll(); | |
| 41 | + | |
| 42 | + for(LineConfig config : lcs){ | |
| 43 | + if(config.isAutoExec()){ | |
| 44 | + autos.add(config.getLine().getLineCode()); | |
| 45 | + } | |
| 46 | + } | |
| 47 | + | |
| 48 | + if(autos.size()==0) | |
| 49 | + return; | |
| 50 | + List<ScheduleRealInfo> all = new ArrayList<>(dayOfSchedule.findAll()); | |
| 51 | + for(ScheduleRealInfo sch : all){ | |
| 52 | + if(autos.contains(sch.getXlBm())){ | |
| 53 | + realScheduleAutoExecHandler.exec(sch); | |
| 54 | + } | |
| 55 | + } | |
| 56 | + }catch (Exception e){ | |
| 57 | + logger.error("", e); | |
| 58 | + } | |
| 59 | + } | |
| 60 | +} | ... | ... |
src/main/java/com/bsth/data/schedule/auto_exec/RealScheduleAutoExecHandler.java
0 → 100644
| 1 | +package com.bsth.data.schedule.auto_exec; | |
| 2 | + | |
| 3 | +import com.bsth.data.schedule.DayOfSchedule; | |
| 4 | +import com.bsth.entity.realcontrol.ScheduleRealInfo; | |
| 5 | +import com.bsth.websocket.handler.SendUtils; | |
| 6 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 7 | +import org.springframework.stereotype.Component; | |
| 8 | + | |
| 9 | +import java.util.ArrayList; | |
| 10 | +import java.util.List; | |
| 11 | + | |
| 12 | +/** | |
| 13 | + * 实际班次自动执行 | |
| 14 | + * Created by panzhao on 2017/10/31. | |
| 15 | + */ | |
| 16 | +@Component | |
| 17 | +public class RealScheduleAutoExecHandler { | |
| 18 | + | |
| 19 | + @Autowired | |
| 20 | + SendUtils sendUtils; | |
| 21 | + @Autowired | |
| 22 | + DayOfSchedule dayOfSchedule; | |
| 23 | + | |
| 24 | + | |
| 25 | + public void exec(ScheduleRealInfo sch) { | |
| 26 | + boolean flag = false; | |
| 27 | + long t = System.currentTimeMillis(); | |
| 28 | + | |
| 29 | + if (sch.getDfsjT() < t) { | |
| 30 | + sch.setFcsjActualAll(sch.getDfsjT()); | |
| 31 | + flag = true; | |
| 32 | + } | |
| 33 | + | |
| 34 | + if (sch.getZdsjT() < t) { | |
| 35 | + sch.setZdsjActualAll(sch.getZdsjT()); | |
| 36 | + ScheduleRealInfo next = dayOfSchedule.nextByLp(sch); | |
| 37 | + if (null != next) { | |
| 38 | + next.setQdzArrDatesj(sch.getZdsjActual()); | |
| 39 | + | |
| 40 | + List<ScheduleRealInfo> refs = new ArrayList<>(); | |
| 41 | + refs.add(sch); | |
| 42 | + refs.add(next); | |
| 43 | + sendUtils.refreshSch(refs); | |
| 44 | + return; | |
| 45 | + } | |
| 46 | + } | |
| 47 | + | |
| 48 | + if (flag) { | |
| 49 | + sendUtils.refreshSch(sch); | |
| 50 | + } | |
| 51 | + } | |
| 52 | +} | ... | ... |
src/main/java/com/bsth/data/summary/entity/DestroySituation.java
0 → 100644
| 1 | +package com.bsth.data.summary.entity; | |
| 2 | + | |
| 3 | +import javax.persistence.Entity; | |
| 4 | +import javax.persistence.Id; | |
| 5 | +import javax.persistence.Table; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * 烂班情况 | |
| 9 | + * Created by panzhao on 2017/10/31. | |
| 10 | + */ | |
| 11 | +@Entity | |
| 12 | +@Table(name = "z_calc_destroy_detail") | |
| 13 | +public class DestroySituation { | |
| 14 | + | |
| 15 | + @Id | |
| 16 | + private Long id; | |
| 17 | + | |
| 18 | + private String rq; | |
| 19 | + | |
| 20 | + private String gsBm; | |
| 21 | + | |
| 22 | + private String fgsBm; | |
| 23 | + | |
| 24 | + private String lineCode; | |
| 25 | + | |
| 26 | + private String lineName; | |
| 27 | + | |
| 28 | + private String nbbm; | |
| 29 | + | |
| 30 | + private String jGh; | |
| 31 | + | |
| 32 | + private String sGh; | |
| 33 | + | |
| 34 | + private String reason; | |
| 35 | + | |
| 36 | + private int size; | |
| 37 | + | |
| 38 | + private Double mileage; | |
| 39 | + | |
| 40 | + private Long t; | |
| 41 | + | |
| 42 | + private String remark; | |
| 43 | + | |
| 44 | + private String idsStr; | |
| 45 | + | |
| 46 | + public Long getId() { | |
| 47 | + return id; | |
| 48 | + } | |
| 49 | + | |
| 50 | + public void setId(Long id) { | |
| 51 | + this.id = id; | |
| 52 | + } | |
| 53 | + | |
| 54 | + public String getRq() { | |
| 55 | + return rq; | |
| 56 | + } | |
| 57 | + | |
| 58 | + public void setRq(String rq) { | |
| 59 | + this.rq = rq; | |
| 60 | + } | |
| 61 | + | |
| 62 | + public String getLineCode() { | |
| 63 | + return lineCode; | |
| 64 | + } | |
| 65 | + | |
| 66 | + public void setLineCode(String lineCode) { | |
| 67 | + this.lineCode = lineCode; | |
| 68 | + } | |
| 69 | + | |
| 70 | + public String getLineName() { | |
| 71 | + return lineName; | |
| 72 | + } | |
| 73 | + | |
| 74 | + public void setLineName(String lineName) { | |
| 75 | + this.lineName = lineName; | |
| 76 | + } | |
| 77 | + | |
| 78 | + public String getNbbm() { | |
| 79 | + return nbbm; | |
| 80 | + } | |
| 81 | + | |
| 82 | + public void setNbbm(String nbbm) { | |
| 83 | + this.nbbm = nbbm; | |
| 84 | + } | |
| 85 | + | |
| 86 | + public String getjGh() { | |
| 87 | + return jGh; | |
| 88 | + } | |
| 89 | + | |
| 90 | + public void setjGh(String jGh) { | |
| 91 | + this.jGh = jGh; | |
| 92 | + } | |
| 93 | + | |
| 94 | + public String getsGh() { | |
| 95 | + return sGh; | |
| 96 | + } | |
| 97 | + | |
| 98 | + public void setsGh(String sGh) { | |
| 99 | + this.sGh = sGh; | |
| 100 | + } | |
| 101 | + | |
| 102 | + public String getReason() { | |
| 103 | + return reason; | |
| 104 | + } | |
| 105 | + | |
| 106 | + public void setReason(String reason) { | |
| 107 | + this.reason = reason; | |
| 108 | + } | |
| 109 | + | |
| 110 | + public int getSize() { | |
| 111 | + return size; | |
| 112 | + } | |
| 113 | + | |
| 114 | + public void setSize(int size) { | |
| 115 | + this.size = size; | |
| 116 | + } | |
| 117 | + | |
| 118 | + public Double getMileage() { | |
| 119 | + return mileage; | |
| 120 | + } | |
| 121 | + | |
| 122 | + public void setMileage(Double mileage) { | |
| 123 | + this.mileage = mileage; | |
| 124 | + } | |
| 125 | + | |
| 126 | + public Long getT() { | |
| 127 | + return t; | |
| 128 | + } | |
| 129 | + | |
| 130 | + public void setT(Long t) { | |
| 131 | + this.t = t; | |
| 132 | + } | |
| 133 | + | |
| 134 | + public String getRemark() { | |
| 135 | + return remark; | |
| 136 | + } | |
| 137 | + | |
| 138 | + public void setRemark(String remark) { | |
| 139 | + this.remark = remark; | |
| 140 | + } | |
| 141 | + | |
| 142 | + public String getIdsStr() { | |
| 143 | + return idsStr; | |
| 144 | + } | |
| 145 | + | |
| 146 | + public void setIdsStr(String idsStr) { | |
| 147 | + this.idsStr = idsStr; | |
| 148 | + } | |
| 149 | + | |
| 150 | + public String getGsBm() { | |
| 151 | + return gsBm; | |
| 152 | + } | |
| 153 | + | |
| 154 | + public void setGsBm(String gsBm) { | |
| 155 | + this.gsBm = gsBm; | |
| 156 | + } | |
| 157 | + | |
| 158 | + public String getFgsBm() { | |
| 159 | + return fgsBm; | |
| 160 | + } | |
| 161 | + | |
| 162 | + public void setFgsBm(String fgsBm) { | |
| 163 | + this.fgsBm = fgsBm; | |
| 164 | + } | |
| 165 | +} | ... | ... |
src/main/java/com/bsth/data/summary/entity/FastAndSlow.java
| ... | ... | @@ -21,6 +21,22 @@ public class FastAndSlow { |
| 21 | 21 | private Long id; |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | + * 驾驶员 | |
| 25 | + */ | |
| 26 | + private String jsy; | |
| 27 | + | |
| 28 | + /** | |
| 29 | + * 车辆自编号 | |
| 30 | + */ | |
| 31 | + private String nbbm; | |
| 32 | + | |
| 33 | + /** | |
| 34 | + * 路牌名称 | |
| 35 | + */ | |
| 36 | + @Column(name = "lp_name") | |
| 37 | + private String lpName; | |
| 38 | + | |
| 39 | + /** | |
| 24 | 40 | * 发车站点 |
| 25 | 41 | */ |
| 26 | 42 | private String stationName; |
| ... | ... | @@ -281,4 +297,28 @@ public class FastAndSlow { |
| 281 | 297 | public boolean isFast() { |
| 282 | 298 | return this.fcsjFast>0 || this.dfsjFast>0 || this.zdsjFast>0 || this.zdsjDfFast>0; |
| 283 | 299 | } |
| 300 | + | |
| 301 | + public String getLpName() { | |
| 302 | + return lpName; | |
| 303 | + } | |
| 304 | + | |
| 305 | + public void setLpName(String lpName) { | |
| 306 | + this.lpName = lpName; | |
| 307 | + } | |
| 308 | + | |
| 309 | + public String getNbbm() { | |
| 310 | + return nbbm; | |
| 311 | + } | |
| 312 | + | |
| 313 | + public void setNbbm(String nbbm) { | |
| 314 | + this.nbbm = nbbm; | |
| 315 | + } | |
| 316 | + | |
| 317 | + public String getJsy() { | |
| 318 | + return jsy; | |
| 319 | + } | |
| 320 | + | |
| 321 | + public void setJsy(String jsy) { | |
| 322 | + this.jsy = jsy; | |
| 323 | + } | |
| 284 | 324 | } |
| 285 | 325 | \ No newline at end of file | ... | ... |
src/main/java/com/bsth/data/summary/repository/DestroySituationRepository.java
0 → 100644
| 1 | +package com.bsth.data.summary.repository; | |
| 2 | + | |
| 3 | +import com.bsth.data.summary.entity.DestroySituation; | |
| 4 | +import com.bsth.repository.BaseRepository; | |
| 5 | +import org.springframework.stereotype.Repository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * Created by panzhao on 2017/11/1. | |
| 9 | + */ | |
| 10 | +@Repository | |
| 11 | +public interface DestroySituationRepository extends BaseRepository<DestroySituation, Long> { | |
| 12 | +} | ... | ... |
src/main/java/com/bsth/data/summary/service/DestroySituationService.java
0 → 100644
| 1 | +package com.bsth.data.summary.service; | |
| 2 | + | |
| 3 | +import com.bsth.data.summary.entity.DestroySituation; | |
| 4 | +import com.bsth.service.BaseService; | |
| 5 | + | |
| 6 | +/** | |
| 7 | + * Created by panzhao on 2017/11/1. | |
| 8 | + */ | |
| 9 | +public interface DestroySituationService extends BaseService<DestroySituation, Long> { | |
| 10 | +} | ... | ... |
src/main/java/com/bsth/data/summary/service/impl/DestroySituationServiceImpl.java
0 → 100644
| 1 | +package com.bsth.data.summary.service.impl; | |
| 2 | + | |
| 3 | +import com.bsth.data.summary.entity.DestroySituation; | |
| 4 | +import com.bsth.data.summary.service.DestroySituationService; | |
| 5 | +import com.bsth.service.impl.BaseServiceImpl; | |
| 6 | +import org.springframework.stereotype.Service; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * Created by panzhao on 2017/11/1. | |
| 10 | + */ | |
| 11 | +@Service | |
| 12 | +public class DestroySituationServiceImpl extends BaseServiceImpl<DestroySituation, Long> implements DestroySituationService { | |
| 13 | +} | ... | ... |
src/main/java/com/bsth/data/summary/service/impl/FastAndSlowServiceImpl.java
| ... | ... | @@ -119,29 +119,33 @@ public class FastAndSlowServiceImpl extends BaseServiceImpl<FastAndSlow, Long> i |
| 119 | 119 | //前4行是表头 |
| 120 | 120 | Row row; |
| 121 | 121 | row = sheet.getRow(0); |
| 122 | - row.getCell(4).setCellValue(list.get(0).getRq()); | |
| 122 | + row.getCell(0).setCellValue(list.get(0).getRq()); | |
| 123 | 123 | row.getCell(13).setCellValue(BasicData.lineCode2NameMap.get(list.get(0).getLineCode())); |
| 124 | 124 | FastAndSlow fas; |
| 125 | 125 | for(int i = 0; i < list.size(); i++){ |
| 126 | 126 | fas = list.get(i); |
| 127 | 127 | row = sheet.createRow(i + 4); |
| 128 | 128 | row.createCell(0).setCellValue(i + 1); |
| 129 | - row.createCell(1).setCellValue(fas.getStationName()); | |
| 130 | - row.createCell(2).setCellValue(fas.getUpDown()); | |
| 131 | - row.createCell(3).setCellValue(fas.getFcsj()); | |
| 132 | - row.createCell(4).setCellValue(fas.getDfsj()); | |
| 133 | - row.createCell(5).setCellValue(fas.getFcsjActual()); | |
| 134 | - row.createCell(6).setCellValue(fas.getFcsjFast()); | |
| 135 | - row.createCell(7).setCellValue(fas.getFcsjSlow()); | |
| 136 | - row.createCell(8).setCellValue(fas.getDfsjFast()); | |
| 137 | - row.createCell(9).setCellValue(fas.getDfsjSlow()); | |
| 138 | - row.createCell(10).setCellValue(fas.getZdsj()); | |
| 139 | - row.createCell(11).setCellValue(fas.getZdsjDf()); | |
| 140 | - row.createCell(12).setCellValue(fas.getZdsjActual()); | |
| 141 | - row.createCell(13).setCellValue(fas.getZdsjFast()); | |
| 142 | - row.createCell(14).setCellValue(fas.getZdsjSlow()); | |
| 143 | - row.createCell(15).setCellValue(fas.getZdsjDfFast()); | |
| 144 | - row.createCell(16).setCellValue(fas.getZdsjDfSlow()); | |
| 129 | + row.createCell(1).setCellValue(fas.getLpName()); | |
| 130 | + row.createCell(2).setCellValue(fas.getNbbm()); | |
| 131 | + row.createCell(3).setCellValue(fas.getJsy()); | |
| 132 | + | |
| 133 | + row.createCell(4).setCellValue(fas.getStationName()); | |
| 134 | + row.createCell(5).setCellValue(fas.getUpDown()); | |
| 135 | + row.createCell(6).setCellValue(fas.getFcsj()); | |
| 136 | + row.createCell(7).setCellValue(fas.getDfsj()); | |
| 137 | + row.createCell(8).setCellValue(fas.getFcsjActual()); | |
| 138 | + row.createCell(9).setCellValue(fas.getFcsjFast()); | |
| 139 | + row.createCell(10).setCellValue(fas.getFcsjSlow()); | |
| 140 | + row.createCell(11).setCellValue(fas.getDfsjFast()); | |
| 141 | + row.createCell(12).setCellValue(fas.getDfsjSlow()); | |
| 142 | + row.createCell(13).setCellValue(fas.getZdsj()); | |
| 143 | + row.createCell(14).setCellValue(fas.getZdsjDf()); | |
| 144 | + row.createCell(15).setCellValue(fas.getZdsjActual()); | |
| 145 | + row.createCell(16).setCellValue(fas.getZdsjFast()); | |
| 146 | + row.createCell(17).setCellValue(fas.getZdsjSlow()); | |
| 147 | + row.createCell(18).setCellValue(fas.getZdsjDfFast()); | |
| 148 | + row.createCell(19).setCellValue(fas.getZdsjDfSlow()); | |
| 145 | 149 | |
| 146 | 150 | if(fas.getUpDown()==0) |
| 147 | 151 | ups.add(fas); |
| ... | ... | @@ -151,28 +155,28 @@ public class FastAndSlowServiceImpl extends BaseServiceImpl<FastAndSlow, Long> i |
| 151 | 155 | //合计 |
| 152 | 156 | int size = list.size(); |
| 153 | 157 | row = sheet.createRow(size + 4); |
| 154 | - row.createCell(1).setCellValue("发车:上行(计划快误点:"+jhfcFast(ups)+" 累计时间:"+jhfcFastTime(ups)+" 待发快误点:"+dffcFast(ups)+" 累计时间:"+dffcFastTime(ups)+") "); | |
| 155 | - row.createCell(9).setCellValue("下行(计划快误点:"+jhfcFast(downs)+" 累计时间:"+jhfcFastTime(downs)+" 待发快误点:"+dffcFast(downs)+" 累计时间:"+dffcFastTime(downs)+")"); | |
| 158 | + row.createCell(2).setCellValue("发车:上行(计划快误点:"+jhfcFast(ups)+" 累计时间:"+jhfcFastTime(ups)+" 待发快误点:"+dffcFast(ups)+" 累计时间:"+dffcFastTime(ups)+") "); | |
| 159 | + row.createCell(12).setCellValue("下行(计划快误点:"+jhfcFast(downs)+" 累计时间:"+jhfcFastTime(downs)+" 待发快误点:"+dffcFast(downs)+" 累计时间:"+dffcFastTime(downs)+")"); | |
| 156 | 160 | row = sheet.createRow(size + 5); |
| 157 | - row.createCell(1).setCellValue("发车:上行(计划慢误点:"+jhfcSlow(ups)+" 累计时间:"+jhfcSlowTime(ups)+" 待发慢误点:"+dffcSlow(ups)+" 累计时间:"+dffcSlowTime(ups)+") "); | |
| 158 | - row.createCell(9).setCellValue("下行(计划慢误点:"+jhfcSlow(downs)+" 累计时间:"+jhfcSlowTime(downs)+" 待发慢误点:"+dffcSlow(downs)+" 累计时间:"+dffcSlowTime(downs)+")"); | |
| 161 | + row.createCell(2).setCellValue("发车:上行(计划慢误点:"+jhfcSlow(ups)+" 累计时间:"+jhfcSlowTime(ups)+" 待发慢误点:"+dffcSlow(ups)+" 累计时间:"+dffcSlowTime(ups)+") "); | |
| 162 | + row.createCell(12).setCellValue("下行(计划慢误点:"+jhfcSlow(downs)+" 累计时间:"+jhfcSlowTime(downs)+" 待发慢误点:"+dffcSlow(downs)+" 累计时间:"+dffcSlowTime(downs)+")"); | |
| 159 | 163 | row = sheet.createRow(size + 6); |
| 160 | - row.createCell(1).setCellValue("到达:上行(计划快误点:"+jhzdFast(ups)+" 累计时间:"+jhzdFastTime(ups)+" 待发快误点:"+dfzdFast(ups)+" 累计时间:"+dfzdFastTime(ups)+") "); | |
| 161 | - row.createCell(9).setCellValue("下行(计划快误点:"+jhzdFast(downs)+" 累计时间:"+jhzdFastTime(downs)+" 待发快误点:"+dfzdFast(downs)+" 累计时间:"+dfzdFastTime(downs)+")"); | |
| 164 | + row.createCell(2).setCellValue("到达:上行(计划快误点:"+jhzdFast(ups)+" 累计时间:"+jhzdFastTime(ups)+" 待发快误点:"+dfzdFast(ups)+" 累计时间:"+dfzdFastTime(ups)+") "); | |
| 165 | + row.createCell(12).setCellValue("下行(计划快误点:"+jhzdFast(downs)+" 累计时间:"+jhzdFastTime(downs)+" 待发快误点:"+dfzdFast(downs)+" 累计时间:"+dfzdFastTime(downs)+")"); | |
| 162 | 166 | row = sheet.createRow(size + 7); |
| 163 | - row.createCell(1).setCellValue("到达:上行(计划慢误点:"+jhzdSlow(ups)+" 累计时间:"+jhzdSlowTime(ups)+" 待发慢误点:"+dfzdSlow(ups)+" 累计时间:"+dfzdSlowTime(ups)+") "); | |
| 164 | - row.createCell(9).setCellValue("下行(计划慢误点:"+jhzdSlow(downs)+" 累计时间:"+jhzdSlowTime(downs)+" 待发慢误点:"+dfzdSlow(downs)+" 累计时间:"+dfzdSlowTime(downs)+")"); | |
| 167 | + row.createCell(2).setCellValue("到达:上行(计划慢误点:"+jhzdSlow(ups)+" 累计时间:"+jhzdSlowTime(ups)+" 待发慢误点:"+dfzdSlow(ups)+" 累计时间:"+dfzdSlowTime(ups)+") "); | |
| 168 | + row.createCell(12).setCellValue("下行(计划慢误点:"+jhzdSlow(downs)+" 累计时间:"+jhzdSlowTime(downs)+" 待发慢误点:"+dfzdSlow(downs)+" 累计时间:"+dfzdSlowTime(downs)+")"); | |
| 165 | 169 | //合并单元格 |
| 166 | - sheet.addMergedRegion(new CellRangeAddress(size + 4, size + 4, 1, 8)); | |
| 167 | - sheet.addMergedRegion(new CellRangeAddress(size + 4, size + 4, 9, 16)); | |
| 168 | - sheet.addMergedRegion(new CellRangeAddress(size + 5, size + 5, 1, 8)); | |
| 169 | - sheet.addMergedRegion(new CellRangeAddress(size + 5, size + 5, 9, 16)); | |
| 170 | - sheet.addMergedRegion(new CellRangeAddress(size + 6, size + 6, 1, 8)); | |
| 171 | - sheet.addMergedRegion(new CellRangeAddress(size + 6, size + 6, 9, 16)); | |
| 172 | - sheet.addMergedRegion(new CellRangeAddress(size + 7, size + 7, 1, 8)); | |
| 173 | - sheet.addMergedRegion(new CellRangeAddress(size + 7, size + 7, 9, 16)); | |
| 174 | - | |
| 175 | - sheet.addMergedRegion(new CellRangeAddress(size + 4, size + 7, 0, 0)); | |
| 170 | + sheet.addMergedRegion(new CellRangeAddress(size + 4, size + 4, 2, 11)); | |
| 171 | + sheet.addMergedRegion(new CellRangeAddress(size + 4, size + 4, 12, 19)); | |
| 172 | + sheet.addMergedRegion(new CellRangeAddress(size + 5, size + 5, 2, 11)); | |
| 173 | + sheet.addMergedRegion(new CellRangeAddress(size + 5, size + 5, 12, 19)); | |
| 174 | + sheet.addMergedRegion(new CellRangeAddress(size + 6, size + 6, 2, 11)); | |
| 175 | + sheet.addMergedRegion(new CellRangeAddress(size + 6, size + 6, 12, 19)); | |
| 176 | + sheet.addMergedRegion(new CellRangeAddress(size + 7, size + 7, 2, 11)); | |
| 177 | + sheet.addMergedRegion(new CellRangeAddress(size + 7, size + 7, 12, 19)); | |
| 178 | + | |
| 179 | + sheet.addMergedRegion(new CellRangeAddress(size + 4, size + 7, 0, 1)); | |
| 176 | 180 | } |
| 177 | 181 | |
| 178 | 182 | private List<FastAndSlow> filterByType(List<FastAndSlow> all, String type) { | ... | ... |
src/main/java/com/bsth/entity/realcontrol/LineConfig.java
| ... | ... | @@ -65,6 +65,8 @@ public class LineConfig { |
| 65 | 65 | /** 原线路回场 */ |
| 66 | 66 | private boolean inParkForSource; |
| 67 | 67 | |
| 68 | + private boolean autoExec; | |
| 69 | + | |
| 68 | 70 | /** |
| 69 | 71 | * 到离站偏移值 |
| 70 | 72 | */ |
| ... | ... | @@ -294,4 +296,12 @@ public class LineConfig { |
| 294 | 296 | public void setLockFirstOutTime(boolean lockFirstOutTime) { |
| 295 | 297 | this.lockFirstOutTime = lockFirstOutTime; |
| 296 | 298 | } |
| 299 | + | |
| 300 | + public boolean isAutoExec() { | |
| 301 | + return autoExec; | |
| 302 | + } | |
| 303 | + | |
| 304 | + public void setAutoExec(boolean autoExec) { | |
| 305 | + this.autoExec = autoExec; | |
| 306 | + } | |
| 297 | 307 | } | ... | ... |
src/main/java/com/bsth/repository/SectionRepository.java
| 1 | 1 | package com.bsth.repository; |
| 2 | 2 | |
| 3 | - | |
| 4 | 3 | import org.springframework.data.jpa.repository.Modifying; |
| 5 | 4 | import org.springframework.data.jpa.repository.Query; |
| 6 | 5 | import org.springframework.stereotype.Repository; |
| ... | ... | @@ -8,6 +7,8 @@ import org.springframework.transaction.annotation.Transactional; |
| 8 | 7 | |
| 9 | 8 | import com.bsth.entity.Section; |
| 10 | 9 | |
| 10 | +import java.util.List; | |
| 11 | + | |
| 11 | 12 | /** |
| 12 | 13 | * |
| 13 | 14 | * @Interface: SectionRepository(路段Repository数据持久层接口) |
| ... | ... | @@ -112,4 +113,8 @@ public interface SectionRepository extends BaseRepository<Section, Integer> { |
| 112 | 113 | Double speedLimit,String descriptions,Integer version,Integer createBy,String createDate, |
| 113 | 114 | |
| 114 | 115 | Integer updateBy,String updateDate); |
| 116 | + | |
| 117 | + @Query(value = "SELECT AsText(s.bsection_vector) as section,r.directions as dir FROM bsth_c_section s left join bsth_c_sectionroute r on s.section_code = r.section_code " + | |
| 118 | + "where r.line = ?1 and directions = ?2 ORDER BY r.directions,r.sectionroute_code ",nativeQuery = true) | |
| 119 | + List<Object[]> getSectionDirByLineId(Integer lineId , Integer directions); | |
| 115 | 120 | } | ... | ... |
src/main/java/com/bsth/service/impl/CarParkServiceImpl.java
| ... | ... | @@ -30,6 +30,10 @@ public class CarParkServiceImpl extends BaseServiceImpl<CarPark, Integer> implem |
| 30 | 30 | try { |
| 31 | 31 | // 停车场编码 |
| 32 | 32 | String parkCode = map.get("parkCode").equals("") ? null : map.get("parkCode").toString(); |
| 33 | + if (!selectTccInfoByCode(map)) { | |
| 34 | + resultMap.put("status", ResponseCode.ERROR); | |
| 35 | + return resultMap; | |
| 36 | + } | |
| 33 | 37 | // 停车场名称 |
| 34 | 38 | String parkName = map.get("parkName").equals("") ? "" : map.get("parkName").toString(); |
| 35 | 39 | // 地理位置(百度坐标集合) | ... | ... |
src/main/java/com/bsth/service/impl/TrafficManageServiceImpl.java
| ... | ... | @@ -19,7 +19,6 @@ import com.bsth.service.TrafficManageService; |
| 19 | 19 | import com.bsth.service.traffic.YgcBasicDataService; |
| 20 | 20 | import com.bsth.util.TimeUtils; |
| 21 | 21 | import com.bsth.util.db.DBUtils_MS; |
| 22 | -import com.bsth.webService.trafficManage.geotool.services.InternalPortType; | |
| 23 | 22 | import com.bsth.webService.trafficManage.org.tempuri.Results; |
| 24 | 23 | import com.bsth.webService.trafficManage.org.tempuri.WebServiceLocator; |
| 25 | 24 | import com.bsth.webService.trafficManage.org.tempuri.WebServiceSoap; |
| ... | ... | @@ -40,6 +39,7 @@ import java.sql.ResultSet; |
| 40 | 39 | import java.text.DecimalFormat; |
| 41 | 40 | import java.text.SimpleDateFormat; |
| 42 | 41 | import java.util.*; |
| 42 | +import java.util.regex.Matcher; | |
| 43 | 43 | import java.util.regex.Pattern; |
| 44 | 44 | |
| 45 | 45 | /** |
| ... | ... | @@ -67,10 +67,16 @@ public class TrafficManageServiceImpl implements TrafficManageService{ |
| 67 | 67 | @Autowired |
| 68 | 68 | private LineRepository lineRepository; |
| 69 | 69 | |
| 70 | + @Autowired | |
| 71 | + private LineInformationRepository lineInformationRepository; | |
| 72 | + | |
| 70 | 73 | // 站点路由repository |
| 71 | 74 | @Autowired |
| 72 | 75 | private StationRouteRepository stationRouteRepository; |
| 73 | 76 | |
| 77 | + @Autowired | |
| 78 | + private SectionRepository sectionRepository; | |
| 79 | + | |
| 74 | 80 | // 车辆repository |
| 75 | 81 | @Autowired |
| 76 | 82 | private CarsRepository carsRepository; |
| ... | ... | @@ -104,8 +110,8 @@ public class TrafficManageServiceImpl implements TrafficManageService{ |
| 104 | 110 | private YgcBasicDataService ygcBasicDataService; |
| 105 | 111 | |
| 106 | 112 | |
| 107 | - // 运管处接口 | |
| 108 | - private InternalPortType portType = null;//new Internal().getInternalHttpSoap11Endpoint(); | |
| 113 | + // 运管处上传接口 | |
| 114 | + private com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap webServiceSoapUp; | |
| 109 | 115 | private WebServiceSoap ssop ; |
| 110 | 116 | { |
| 111 | 117 | try { |
| ... | ... | @@ -127,6 +133,23 @@ public class TrafficManageServiceImpl implements TrafficManageService{ |
| 127 | 133 | private final String userNameOther = "user"; |
| 128 | 134 | // 密码 |
| 129 | 135 | private final String passwordOther = "user"; |
| 136 | + | |
| 137 | + // 用户名 | |
| 138 | + private final String userNameUp = "user"; | |
| 139 | + // 密码 | |
| 140 | + private final String passwordUp = "user"; | |
| 141 | + | |
| 142 | + private synchronized com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap getWebServiceSoapUp(){ | |
| 143 | + try { | |
| 144 | + if(webServiceSoapUp == null){ | |
| 145 | + webServiceSoapUp = new com.bsth.webService.trafficManage.up.org.tempuri.WebServiceLocator().getWebServiceSoap(); | |
| 146 | + } | |
| 147 | + }catch (Exception e){ | |
| 148 | + e.printStackTrace(); | |
| 149 | + }finally { | |
| 150 | + return webServiceSoapUp; | |
| 151 | + } | |
| 152 | + } | |
| 130 | 153 | /** |
| 131 | 154 | * 上传线路信息 |
| 132 | 155 | */ |
| ... | ... | @@ -140,23 +163,38 @@ public class TrafficManageServiceImpl implements TrafficManageService{ |
| 140 | 163 | Map<String,Object> map = new HashMap<>(); |
| 141 | 164 | map.put("lineCode_eq", id); |
| 142 | 165 | Line line ; |
| 166 | + LineInformation lineInformation; | |
| 143 | 167 | line = lineRepository.findOne(new CustomerSpecs<Line>(map)); |
| 144 | 168 | if(line == null){ |
| 145 | 169 | continue; |
| 146 | 170 | } |
| 147 | 171 | List<StationRoute> upStationsList ;// 上行站点路由集 |
| 148 | - List<StationRoute> downStationsList = null;// 下行站点路由集 | |
| 149 | - sBuffer.append("<Data>"); | |
| 150 | - sBuffer.append("<RequestOrg>上海巴士拓华科技发展有限公司</RequestOrg>"); | |
| 151 | - sBuffer.append("<DataList>"); | |
| 172 | + List<StationRoute> downStationsList;// 下行站点路由集 | |
| 173 | + List<Object[]> downPointList;// 下行站点集 | |
| 174 | + List<Object[]> upPointList;// 上行站点集 | |
| 175 | + sBuffer.append("<XLs>"); | |
| 176 | + sBuffer.append("<XL>"); | |
| 152 | 177 | if(BasicData.lineId2ShangHaiCodeMap.get(line.getId()) == null){ |
| 153 | 178 | return result; |
| 154 | 179 | } |
| 155 | - sBuffer.append("<LINE_ID>").append(line.getId()).append("</LINE_ID>"); | |
| 156 | - sBuffer.append("<LINE_CODE>").append(BasicData.lineId2ShangHaiCodeMap.get(line.getId())).append("</LINE_CODE>"); | |
| 157 | - sBuffer.append("<LINE_NAME>").append(line.getName()).append("</LINE_NAME>"); | |
| 180 | + map = new HashMap<>(); | |
| 181 | + map.put("line.id_eq",line.getId()); | |
| 182 | + lineInformation = lineInformationRepository.findOne(new CustomerSpecs<LineInformation>(map)); | |
| 183 | + if(lineInformation == null){ | |
| 184 | + continue; | |
| 185 | + } | |
| 186 | + sBuffer.append("<XLBM>").append(BasicData.lineId2ShangHaiCodeMap.get(line.getId())).append("</XLBM>"); | |
| 187 | + sBuffer.append("<XLMC>").append(line.getName()).append("</XLMC>"); | |
| 188 | + sBuffer.append("<QDZ>").append(line.getStartStationName()).append("</QDZ>"); | |
| 189 | + sBuffer.append("<ZDZ>").append(line.getEndStationName()).append("</ZDZ>"); | |
| 190 | + sBuffer.append("<QZLC>").append(lineInformation.getUpMileage()).append("</QZLC>"); | |
| 191 | + sBuffer.append("<ZQLC>").append(lineInformation.getDownMileage()).append("</ZQLC>"); | |
| 192 | + sBuffer.append("<XLGH>").append(line.getLinePlayType()).append("</XLGH>"); | |
| 193 | + sBuffer.append("<UPDATE_DATE>").append(sdfnyr.format(new Date())).append("</UPDATE_DATE>"); | |
| 194 | + | |
| 158 | 195 | // 循环添加站点信息 |
| 159 | - sBuffer.append("<LineStationList>"); | |
| 196 | + sBuffer.append("<StationList>"); | |
| 197 | + | |
| 160 | 198 | // 先查上行 |
| 161 | 199 | upStationsList = stationRouteRepository.findByLine(line.getLineCode(), 0); |
| 162 | 200 | int startId = 1; |
| ... | ... | @@ -167,25 +205,23 @@ public class TrafficManageServiceImpl implements TrafficManageService{ |
| 167 | 205 | downStationsList = stationRouteRepository.findByLine(line.getLineCode(), 1); |
| 168 | 206 | packagStationXml(downStationsList, sBuffer, startId); |
| 169 | 207 | } |
| 170 | - sBuffer.append("</LineStationList>"); | |
| 208 | + sBuffer.append("</StationList>"); | |
| 171 | 209 | |
| 172 | 210 | // 循环添加站点点位信息 |
| 173 | 211 | sBuffer.append("<LinePointList>"); |
| 212 | + upPointList = sectionRepository.getSectionDirByLineId(line.getId(),0); | |
| 174 | 213 | startId = 1; |
| 175 | - startId = packagStationPointXml(upStationsList, sBuffer, startId); | |
| 214 | + startId = packagStationPointXml(upPointList, sBuffer, startId); | |
| 176 | 215 | // 环线不查下行 |
| 177 | 216 | if(line.getLinePlayType() != 1){ |
| 178 | - packagStationPointXml(downStationsList, sBuffer, startId); | |
| 217 | + downPointList = sectionRepository.getSectionDirByLineId(line.getId(),1); | |
| 218 | + packagStationPointXml(downPointList, sBuffer, startId); | |
| 179 | 219 | } |
| 180 | 220 | sBuffer.append("</LinePointList>"); |
| 181 | - sBuffer.append("</DataList>"); | |
| 182 | - sBuffer.append("</Data>"); | |
| 221 | + sBuffer.append("</XL>"); | |
| 222 | + sBuffer.append("</XLs>"); | |
| 183 | 223 | // 调用上传方法 |
| 184 | - result = ygcBasicDataService.invokeMethod("UpdateBusLineStation",sBuffer.toString()); | |
| 185 | - String str = "ReturnCode"; | |
| 186 | - // 解析返回值 | |
| 187 | - result = result.substring(result.indexOf(str)+str.length()+1,result.lastIndexOf(str)-2); | |
| 188 | - if(result.equals("1")){ | |
| 224 | + if(getWebServiceSoapUp().setXL(userNameUp,passwordUp,sBuffer.toString()).isSuccess()){ | |
| 189 | 225 | result = "success"; |
| 190 | 226 | }else{ |
| 191 | 227 | result = "failure"; |
| ... | ... | @@ -1162,15 +1198,15 @@ public class TrafficManageServiceImpl implements TrafficManageService{ |
| 1162 | 1198 | } |
| 1163 | 1199 | paraMap = packageYgcStationNumParam(srRoute,null); |
| 1164 | 1200 | sBuffer.append("<Station>"); |
| 1165 | - sBuffer.append("<STATION_ID>").append(getYgcStationNumByLineCodeAndDirectionAndStationName(paraMap)).append("</STATION_ID>"); | |
| 1166 | - sBuffer.append("<UPDDOWN>").append(srRoute.getDirections()).append("</UPDDOWN>"); | |
| 1167 | - sBuffer.append("<STATION_NO>").append(i).append("</STATION_NO>"); | |
| 1168 | - sBuffer.append("<STATION_CODE>").append(srRoute.getStationCode()).append("</STATION_CODE>"); | |
| 1169 | - sBuffer.append("<STATION_NAME>").append(srRoute.getStationName()).append("</STATION_NAME>"); | |
| 1170 | - sBuffer.append("<STATION_LON>").append(srRoute.getStation().getgLonx()).append("</STATION_LON>"); | |
| 1171 | - sBuffer.append("<STATION_LAT>").append(srRoute.getStation().getgLaty()).append("</STATION_LAT>"); | |
| 1172 | - sBuffer.append("<STATION_TYPE>").append(zdlx).append("</STATION_TYPE>"); | |
| 1173 | - sBuffer.append("<STATION_DISTANCE>").append(srRoute.getDistances()).append("</STATION_DISTANCE>"); | |
| 1201 | + sBuffer.append("<ZDXH>").append(getYgcStationNumByLineCodeAndDirectionAndStationName(paraMap)).append("</ZDXH>"); | |
| 1202 | + sBuffer.append("<SXX>").append(srRoute.getDirections()).append("</SXX>"); | |
| 1203 | + sBuffer.append("<ZDMC>").append(srRoute.getStationName()).append("</ZDMC>"); | |
| 1204 | + sBuffer.append("<ZDBM>").append(srRoute.getStationCode()).append("</ZDBM>"); | |
| 1205 | + sBuffer.append("<ZDJD>").append(srRoute.getStation().getgLonx()).append("</ZDJD>"); | |
| 1206 | + sBuffer.append("<ZDWD>").append(srRoute.getStation().getgLaty()).append("</ZDWD>"); | |
| 1207 | + sBuffer.append("<ZZ>").append(srRoute.getStation().getAddr() == null ? "" : srRoute.getStation().getAddr()).append("</ZZ>"); | |
| 1208 | + sBuffer.append("<ZDLX>").append(zdlx).append("</ZDLX>"); | |
| 1209 | + sBuffer.append("<ZJLC>").append(srRoute.getDistances()).append("</ZJLC>"); | |
| 1174 | 1210 | sBuffer.append("</Station>"); |
| 1175 | 1211 | startId++; |
| 1176 | 1212 | } |
| ... | ... | @@ -1178,35 +1214,37 @@ public class TrafficManageServiceImpl implements TrafficManageService{ |
| 1178 | 1214 | } |
| 1179 | 1215 | |
| 1180 | 1216 | /** |
| 1181 | - * @param stationsList 站点路由集 | |
| 1217 | + * @param pointList 站点点位集 | |
| 1182 | 1218 | * @param sBuffer sBuffer |
| 1183 | 1219 | * @param startId 站点序号起始ID |
| 1184 | 1220 | * |
| 1185 | 1221 | * @return 站点序号累加后的ID |
| 1186 | 1222 | */ |
| 1187 | - private int packagStationPointXml(List<StationRoute> stationsList,StringBuffer sBuffer,int startId){ | |
| 1188 | - int size = stationsList.size(); | |
| 1189 | - StationRoute srRoute; | |
| 1190 | - HashMap<String,String> paraMap; | |
| 1191 | - String zdlx ;// 站点类型:0:起点站、1:终点站、2:中途站 | |
| 1223 | + private int packagStationPointXml(List<Object[]> pointList,StringBuffer sBuffer,int startId){ | |
| 1224 | + int size = pointList.size(); | |
| 1225 | + Object[] objs; | |
| 1226 | + String bsection,dir,section; | |
| 1227 | + String[] sections ; | |
| 1192 | 1228 | for (int i = 0; i < size; i++) { |
| 1193 | - srRoute = stationsList.get(i); | |
| 1194 | - zdlx = srRoute.getStationMark(); | |
| 1195 | - if(zdlx.equals("B")){ | |
| 1196 | - zdlx = "0"; | |
| 1197 | - }else if(zdlx.equals("E")){ | |
| 1198 | - zdlx = "1"; | |
| 1199 | - }else{ | |
| 1200 | - zdlx = "2"; | |
| 1229 | + objs = pointList.get(i); | |
| 1230 | + bsection = objs[0]+""; | |
| 1231 | + dir = objs[1]+""; | |
| 1232 | + // 取括号内的内容 | |
| 1233 | + Pattern pattern = Pattern.compile("(?<=\\()(.+?)(?=\\))"); | |
| 1234 | + Matcher matcher = pattern.matcher(bsection); | |
| 1235 | + if(matcher.find()){ | |
| 1236 | + sections = matcher.group().split(","); | |
| 1237 | + for (int j = 0 ; j < sections.length ; j ++){ | |
| 1238 | + section = sections[j]; | |
| 1239 | + sBuffer.append("<LinePoint>"); | |
| 1240 | + sBuffer.append("<ZDXH>").append(startId).append("</ZDXH>"); | |
| 1241 | + sBuffer.append("<SXX>").append(dir).append("</SXX>"); | |
| 1242 | + sBuffer.append("<ZDJD>").append(section.split(" ")[0]).append("</ZDJD>"); | |
| 1243 | + sBuffer.append("<ZDWD>").append(section.split(" ")[1]).append("</ZDWD>"); | |
| 1244 | + sBuffer.append("</LinePoint>"); | |
| 1245 | + startId++; | |
| 1246 | + } | |
| 1201 | 1247 | } |
| 1202 | - paraMap = packageYgcStationNumParam(srRoute,null); | |
| 1203 | - sBuffer.append("<Point>"); | |
| 1204 | - sBuffer.append("<POINT_ID>").append(getYgcStationNumByLineCodeAndDirectionAndStationName(paraMap)).append("</POINT_ID>"); | |
| 1205 | - sBuffer.append("<UPDDOWN>").append(srRoute.getDirections()).append("</UPDDOWN>"); | |
| 1206 | - sBuffer.append("<POINTLON>").append(srRoute.getStation().getgLonx()).append("</POINTLON>"); | |
| 1207 | - sBuffer.append("<POINTLAT>").append(srRoute.getStation().getgLaty()).append("</POINTLAT>"); | |
| 1208 | - sBuffer.append("</Point>"); | |
| 1209 | - startId++; | |
| 1210 | 1248 | } |
| 1211 | 1249 | return startId; |
| 1212 | 1250 | } | ... | ... |
src/main/java/com/bsth/service/oil/impl/DlbServiceImpl.java
| ... | ... | @@ -2,33 +2,6 @@ package com.bsth.service.oil.impl; |
| 2 | 2 | |
| 3 | 3 | |
| 4 | 4 | |
| 5 | -import java.sql.ResultSet; | |
| 6 | -import java.sql.SQLException; | |
| 7 | -import java.text.DecimalFormat; | |
| 8 | -import java.text.ParseException; | |
| 9 | -import java.text.SimpleDateFormat; | |
| 10 | -import java.util.ArrayList; | |
| 11 | -import java.util.Calendar; | |
| 12 | -import java.util.Collections; | |
| 13 | -import java.util.Comparator; | |
| 14 | -import java.util.Date; | |
| 15 | -import java.util.HashMap; | |
| 16 | -import java.util.Iterator; | |
| 17 | -import java.util.List; | |
| 18 | -import java.util.Map; | |
| 19 | - | |
| 20 | -import javax.transaction.Transactional; | |
| 21 | - | |
| 22 | -import org.apache.commons.lang3.StringEscapeUtils; | |
| 23 | -import org.slf4j.Logger; | |
| 24 | -import org.slf4j.LoggerFactory; | |
| 25 | -import org.springframework.beans.factory.annotation.Autowired; | |
| 26 | -import org.springframework.data.domain.Sort; | |
| 27 | -import org.springframework.data.domain.Sort.Direction; | |
| 28 | -import org.springframework.jdbc.core.JdbcTemplate; | |
| 29 | -import org.springframework.jdbc.core.RowMapper; | |
| 30 | -import org.springframework.stereotype.Service; | |
| 31 | - | |
| 32 | 5 | import com.alibaba.fastjson.JSONArray; |
| 33 | 6 | import com.alibaba.fastjson.JSONObject; |
| 34 | 7 | import com.bsth.common.ResponseCode; |
| ... | ... | @@ -36,24 +9,34 @@ import com.bsth.data.BasicData; |
| 36 | 9 | import com.bsth.entity.Cars; |
| 37 | 10 | import com.bsth.entity.Line; |
| 38 | 11 | import com.bsth.entity.oil.Cdl; |
| 39 | -import com.bsth.entity.oil.Cyl; | |
| 40 | 12 | import com.bsth.entity.oil.Dlb; |
| 41 | 13 | import com.bsth.entity.oil.Jdl; |
| 42 | -import com.bsth.entity.oil.Ylb; | |
| 43 | 14 | import com.bsth.entity.oil.Ylxxb; |
| 44 | -import com.bsth.entity.search.CustomerSpecs; | |
| 45 | 15 | import com.bsth.repository.CarsRepository; |
| 46 | 16 | import com.bsth.repository.oil.CdlRepository; |
| 47 | -import com.bsth.repository.oil.CylRepository; | |
| 48 | 17 | import com.bsth.repository.oil.DlbRepository; |
| 49 | 18 | import com.bsth.repository.oil.JdlRepository; |
| 50 | -import com.bsth.repository.oil.YlbRepository; | |
| 51 | 19 | import com.bsth.repository.oil.YlxxbRepository; |
| 52 | 20 | import com.bsth.service.impl.BaseServiceImpl; |
| 53 | 21 | import com.bsth.service.oil.DlbService; |
| 54 | 22 | import com.bsth.service.realcontrol.ScheduleRealInfoService; |
| 55 | 23 | import com.bsth.util.Arith; |
| 56 | 24 | import com.bsth.util.BatchSaveUtils; |
| 25 | +import org.apache.commons.lang3.StringEscapeUtils; | |
| 26 | +import org.slf4j.Logger; | |
| 27 | +import org.slf4j.LoggerFactory; | |
| 28 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 29 | +import org.springframework.jdbc.core.JdbcTemplate; | |
| 30 | +import org.springframework.jdbc.core.RowMapper; | |
| 31 | +import org.springframework.stereotype.Service; | |
| 32 | + | |
| 33 | +import javax.transaction.Transactional; | |
| 34 | +import java.sql.ResultSet; | |
| 35 | +import java.sql.SQLException; | |
| 36 | +import java.text.DecimalFormat; | |
| 37 | +import java.text.ParseException; | |
| 38 | +import java.text.SimpleDateFormat; | |
| 39 | +import java.util.*; | |
| 57 | 40 | |
| 58 | 41 | @Service |
| 59 | 42 | public class DlbServiceImpl extends BaseServiceImpl<Dlb,Integer> implements DlbService{ |
| ... | ... | @@ -601,7 +584,6 @@ public class DlbServiceImpl extends BaseServiceImpl<Dlb,Integer> implements DlbS |
| 601 | 584 | }else{ |
| 602 | 585 | t.setUpdatetime(date); |
| 603 | 586 | updateList.add(t); |
| 604 | - ins += t.getId().toString()+","; | |
| 605 | 587 | } |
| 606 | 588 | } |
| 607 | 589 | // repository.save(t); | ... | ... |
src/main/java/com/bsth/service/realcontrol/LineConfigService.java
| ... | ... | @@ -26,4 +26,6 @@ public interface LineConfigService extends BaseService<LineConfig, Integer>{ |
| 26 | 26 | Map<String,Object> parkAndStationSet(Map<String, String> map); |
| 27 | 27 | |
| 28 | 28 | Map<String,Object> findByIdx(String idx); |
| 29 | + | |
| 30 | + Map<String,Object> setAutoExec(Map<String, String> map); | |
| 29 | 31 | } | ... | ... |
src/main/java/com/bsth/service/realcontrol/impl/ChildTaskPlanServiceImpl.java
| 1 | 1 | package com.bsth.service.realcontrol.impl; |
| 2 | 2 | |
| 3 | -import com.alibaba.fastjson.JSON; | |
| 4 | 3 | import com.bsth.common.ResponseCode; |
| 5 | 4 | import com.bsth.data.BasicData; |
| 6 | 5 | import com.bsth.data.Station2ParkBuffer; |
| ... | ... | @@ -61,7 +60,24 @@ public class ChildTaskPlanServiceImpl extends BaseServiceImpl<ChildTaskPlan, Lon |
| 61 | 60 | |
| 62 | 61 | //中途换车出场子任务,级联生成一个主任务,供报表和对外接口计算用 |
| 63 | 62 | if(StringUtils.isNotEmpty(t.getNbbm())){ |
| 64 | - ScheduleRealInfo ccServiceSch = JSON.parseObject(JSON.toJSONString(sch), ScheduleRealInfo.class); | |
| 63 | + ScheduleRealInfo ccServiceSch = new ScheduleRealInfo(); | |
| 64 | + ccServiceSch.setSflj(sch.isSflj()); | |
| 65 | + ccServiceSch.setjGh(sch.getjGh()); | |
| 66 | + ccServiceSch.setjName(sch.getjName()); | |
| 67 | + ccServiceSch.setsGh(sch.getsGh()); | |
| 68 | + ccServiceSch.setsName(sch.getsName()); | |
| 69 | + ccServiceSch.setGsBm(sch.getGsBm()); | |
| 70 | + ccServiceSch.setFgsBm(sch.getFgsBm()); | |
| 71 | + ccServiceSch.setGsName(sch.getGsName()); | |
| 72 | + ccServiceSch.setFgsName(sch.getFgsName()); | |
| 73 | + ccServiceSch.setLpName(sch.getLpName()); | |
| 74 | + ccServiceSch.setXlBm(sch.getXlBm()); | |
| 75 | + ccServiceSch.setXlName(sch.getXlName()); | |
| 76 | + ccServiceSch.setXlDir(sch.getXlDir()); | |
| 77 | + ccServiceSch.setScheduleDate(sch.getScheduleDate()); | |
| 78 | + ccServiceSch.setScheduleDateStr(sch.getScheduleDateStr()); | |
| 79 | + ccServiceSch.setRealExecDate(sch.getRealExecDate()); | |
| 80 | + | |
| 65 | 81 | ccServiceSch.setId(null); |
| 66 | 82 | ccServiceSch.setSpId(null); |
| 67 | 83 | ccServiceSch.setClZbh(t.getNbbm()); | ... | ... |
src/main/java/com/bsth/service/realcontrol/impl/LineConfigServiceImpl.java
| ... | ... | @@ -224,4 +224,25 @@ public class LineConfigServiceImpl extends BaseServiceImpl<LineConfig, Integer> |
| 224 | 224 | } |
| 225 | 225 | return rs; |
| 226 | 226 | } |
| 227 | + | |
| 228 | + @Override | |
| 229 | + public Map<String, Object> setAutoExec(Map<String, String> map) { | |
| 230 | + String lineCode = map.get("lineCode").toString(); | |
| 231 | + boolean autoExec = Boolean.parseBoolean(map.get("autoExec").toString()); | |
| 232 | + | |
| 233 | + Map<String, Object> rs = new HashMap<>(); | |
| 234 | + try { | |
| 235 | + LineConfig conf = lineConfigData.get(lineCode); | |
| 236 | + conf.setAutoExec(autoExec); | |
| 237 | + | |
| 238 | + lineConfigData.set(conf); | |
| 239 | + rs.put("status", ResponseCode.SUCCESS); | |
| 240 | + rs.put("conf", conf); | |
| 241 | + } catch (Exception e) { | |
| 242 | + rs.put("status", ResponseCode.ERROR); | |
| 243 | + rs.put("msg", e.getMessage()); | |
| 244 | + logger.error("", e); | |
| 245 | + } | |
| 246 | + return rs; | |
| 247 | + } | |
| 227 | 248 | } | ... | ... |
src/main/java/com/bsth/service/report/impl/CulateMileageServiceImpl.java
| 1 | 1 | package com.bsth.service.report.impl; |
| 2 | 2 | |
| 3 | -import java.sql.ResultSet; | |
| 4 | -import java.sql.SQLException; | |
| 5 | -import java.text.DecimalFormat; | |
| 6 | -import java.text.ParseException; | |
| 7 | -import java.text.SimpleDateFormat; | |
| 8 | -import java.util.ArrayList; | |
| 9 | -import java.util.Collections; | |
| 10 | -import java.util.HashMap; | |
| 11 | -import java.util.Iterator; | |
| 12 | -import java.util.List; | |
| 13 | -import java.util.Map; | |
| 14 | -import java.util.Set; | |
| 15 | - | |
| 16 | -import org.apache.commons.lang.StringUtils; | |
| 17 | -import org.springframework.beans.factory.annotation.Autowired; | |
| 18 | -import org.springframework.jdbc.core.JdbcTemplate; | |
| 19 | -import org.springframework.jdbc.core.RowMapper; | |
| 20 | -import org.springframework.stereotype.Service; | |
| 21 | - | |
| 22 | -import com.bsth.data.BasicData; | |
| 23 | 3 | import com.bsth.entity.realcontrol.ChildTaskPlan; |
| 24 | 4 | import com.bsth.entity.realcontrol.ScheduleRealInfo; |
| 25 | 5 | import com.bsth.entity.sys.Interval; |
| ... | ... | @@ -27,8 +7,18 @@ import com.bsth.service.report.CulateMileageService; |
| 27 | 7 | import com.bsth.util.Arith; |
| 28 | 8 | import com.bsth.util.ComparableChild; |
| 29 | 9 | import com.bsth.util.ComparableJob; |
| 30 | -import com.bsth.util.ReportUtils; | |
| 31 | -import com.google.common.util.concurrent.AbstractScheduledService.Scheduler; | |
| 10 | +import org.apache.commons.lang.StringUtils; | |
| 11 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 12 | +import org.springframework.jdbc.core.JdbcTemplate; | |
| 13 | +import org.springframework.jdbc.core.RowMapper; | |
| 14 | +import org.springframework.stereotype.Service; | |
| 15 | + | |
| 16 | +import java.sql.ResultSet; | |
| 17 | +import java.sql.SQLException; | |
| 18 | +import java.text.DecimalFormat; | |
| 19 | +import java.text.ParseException; | |
| 20 | +import java.text.SimpleDateFormat; | |
| 21 | +import java.util.*; | |
| 32 | 22 | |
| 33 | 23 | @Service |
| 34 | 24 | public class CulateMileageServiceImpl implements CulateMileageService{ |
| ... | ... | @@ -361,7 +351,7 @@ public class CulateMileageServiceImpl implements CulateMileageService{ |
| 361 | 351 | Iterator<ChildTaskPlan> it = childTaskPlans.iterator(); |
| 362 | 352 | while (it.hasNext()) { |
| 363 | 353 | ChildTaskPlan childTaskPlan = it.next(); |
| 364 | - if(childTaskPlan.getMileageType().equals("service")){ | |
| 354 | + if(childTaskPlan.getMileageType().equals("service") && childTaskPlan.getCcId()==null){ | |
| 365 | 355 | if (!childTaskPlan.isDestroy()) { |
| 366 | 356 | Float jhgl=childTaskPlan.getMileage()==null?0:childTaskPlan.getMileage(); |
| 367 | 357 | ljgl=Arith.add(ljgl,jhgl); | ... | ... |
src/main/java/com/bsth/service/traffic/impl/YgcBasicDataServiceImpl.java
| ... | ... | @@ -45,6 +45,7 @@ public class YgcBasicDataServiceImpl implements YgcBasicDataService{ |
| 45 | 45 | |
| 46 | 46 | private static String IP = "218.242.195.76:9091"; |
| 47 | 47 | private static String downTargetEndpoint = "http://" + IP +"/ygc.TransManager.Basicdown?wsdl"; |
| 48 | + // 此地址作废 | |
| 48 | 49 | private static String upTargetEndpoint = "http://" + IP +"/ygc.TransManager.BasicUpload?wsdl"; |
| 49 | 50 | private static String namespace = "http://service.shygc.com"; |
| 50 | 51 | private static String userName = "admin"; | ... | ... |
src/main/java/com/bsth/webService/trafficManage/up/org/tempuri/Results.java
0 → 100644
| 1 | +/** | |
| 2 | + * Results.java | |
| 3 | + * | |
| 4 | + * This file was auto-generated from WSDL | |
| 5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | |
| 6 | + */ | |
| 7 | + | |
| 8 | +package com.bsth.webService.trafficManage.up.org.tempuri; | |
| 9 | + | |
| 10 | +public class Results implements java.io.Serializable { | |
| 11 | + private boolean success; | |
| 12 | + | |
| 13 | + private java.lang.String message; | |
| 14 | + | |
| 15 | + public Results() { | |
| 16 | + } | |
| 17 | + | |
| 18 | + public Results( | |
| 19 | + boolean success, | |
| 20 | + java.lang.String message) { | |
| 21 | + this.success = success; | |
| 22 | + this.message = message; | |
| 23 | + } | |
| 24 | + | |
| 25 | + | |
| 26 | + /** | |
| 27 | + * Gets the success value for this Results. | |
| 28 | + * | |
| 29 | + * @return success | |
| 30 | + */ | |
| 31 | + public boolean isSuccess() { | |
| 32 | + return success; | |
| 33 | + } | |
| 34 | + | |
| 35 | + | |
| 36 | + /** | |
| 37 | + * Sets the success value for this Results. | |
| 38 | + * | |
| 39 | + * @param success | |
| 40 | + */ | |
| 41 | + public void setSuccess(boolean success) { | |
| 42 | + this.success = success; | |
| 43 | + } | |
| 44 | + | |
| 45 | + | |
| 46 | + /** | |
| 47 | + * Gets the message value for this Results. | |
| 48 | + * | |
| 49 | + * @return message | |
| 50 | + */ | |
| 51 | + public java.lang.String getMessage() { | |
| 52 | + return message; | |
| 53 | + } | |
| 54 | + | |
| 55 | + | |
| 56 | + /** | |
| 57 | + * Sets the message value for this Results. | |
| 58 | + * | |
| 59 | + * @param message | |
| 60 | + */ | |
| 61 | + public void setMessage(java.lang.String message) { | |
| 62 | + this.message = message; | |
| 63 | + } | |
| 64 | + | |
| 65 | + private java.lang.Object __equalsCalc = null; | |
| 66 | + public synchronized boolean equals(java.lang.Object obj) { | |
| 67 | + if (!(obj instanceof Results)) return false; | |
| 68 | + Results other = (Results) obj; | |
| 69 | + if (obj == null) return false; | |
| 70 | + if (this == obj) return true; | |
| 71 | + if (__equalsCalc != null) { | |
| 72 | + return (__equalsCalc == obj); | |
| 73 | + } | |
| 74 | + __equalsCalc = obj; | |
| 75 | + boolean _equals; | |
| 76 | + _equals = true && | |
| 77 | + this.success == other.isSuccess() && | |
| 78 | + ((this.message==null && other.getMessage()==null) || | |
| 79 | + (this.message!=null && | |
| 80 | + this.message.equals(other.getMessage()))); | |
| 81 | + __equalsCalc = null; | |
| 82 | + return _equals; | |
| 83 | + } | |
| 84 | + | |
| 85 | + private boolean __hashCodeCalc = false; | |
| 86 | + public synchronized int hashCode() { | |
| 87 | + if (__hashCodeCalc) { | |
| 88 | + return 0; | |
| 89 | + } | |
| 90 | + __hashCodeCalc = true; | |
| 91 | + int _hashCode = 1; | |
| 92 | + _hashCode += (isSuccess() ? Boolean.TRUE : Boolean.FALSE).hashCode(); | |
| 93 | + if (getMessage() != null) { | |
| 94 | + _hashCode += getMessage().hashCode(); | |
| 95 | + } | |
| 96 | + __hashCodeCalc = false; | |
| 97 | + return _hashCode; | |
| 98 | + } | |
| 99 | + | |
| 100 | + // Type metadata | |
| 101 | + private static org.apache.axis.description.TypeDesc typeDesc = | |
| 102 | + new org.apache.axis.description.TypeDesc(Results.class, true); | |
| 103 | + | |
| 104 | + static { | |
| 105 | + typeDesc.setXmlType(new javax.xml.namespace.QName("http://tempuri.org/", "Results")); | |
| 106 | + org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); | |
| 107 | + elemField.setFieldName("success"); | |
| 108 | + elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "success")); | |
| 109 | + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean")); | |
| 110 | + elemField.setNillable(false); | |
| 111 | + typeDesc.addFieldDesc(elemField); | |
| 112 | + elemField = new org.apache.axis.description.ElementDesc(); | |
| 113 | + elemField.setFieldName("message"); | |
| 114 | + elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "message")); | |
| 115 | + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); | |
| 116 | + elemField.setMinOccurs(0); | |
| 117 | + elemField.setNillable(false); | |
| 118 | + typeDesc.addFieldDesc(elemField); | |
| 119 | + } | |
| 120 | + | |
| 121 | + /** | |
| 122 | + * Return type metadata object | |
| 123 | + */ | |
| 124 | + public static org.apache.axis.description.TypeDesc getTypeDesc() { | |
| 125 | + return typeDesc; | |
| 126 | + } | |
| 127 | + | |
| 128 | + /** | |
| 129 | + * Get Custom Serializer | |
| 130 | + */ | |
| 131 | + public static org.apache.axis.encoding.Serializer getSerializer( | |
| 132 | + java.lang.String mechType, | |
| 133 | + java.lang.Class _javaType, | |
| 134 | + javax.xml.namespace.QName _xmlType) { | |
| 135 | + return | |
| 136 | + new org.apache.axis.encoding.ser.BeanSerializer( | |
| 137 | + _javaType, _xmlType, typeDesc); | |
| 138 | + } | |
| 139 | + | |
| 140 | + /** | |
| 141 | + * Get Custom Deserializer | |
| 142 | + */ | |
| 143 | + public static org.apache.axis.encoding.Deserializer getDeserializer( | |
| 144 | + java.lang.String mechType, | |
| 145 | + java.lang.Class _javaType, | |
| 146 | + javax.xml.namespace.QName _xmlType) { | |
| 147 | + return | |
| 148 | + new org.apache.axis.encoding.ser.BeanDeserializer( | |
| 149 | + _javaType, _xmlType, typeDesc); | |
| 150 | + } | |
| 151 | + | |
| 152 | +} | ... | ... |
src/main/java/com/bsth/webService/trafficManage/up/org/tempuri/WebService.java
0 → 100644
| 1 | +/** | |
| 2 | + * WebService.java | |
| 3 | + * | |
| 4 | + * This file was auto-generated from WSDL | |
| 5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | |
| 6 | + */ | |
| 7 | + | |
| 8 | +package com.bsth.webService.trafficManage.up.org.tempuri; | |
| 9 | + | |
| 10 | +public interface WebService extends javax.xml.rpc.Service { | |
| 11 | + public java.lang.String getWebServiceSoapAddress(); | |
| 12 | + | |
| 13 | + public com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap getWebServiceSoap() throws javax.xml.rpc.ServiceException; | |
| 14 | + | |
| 15 | + public com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap getWebServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException; | |
| 16 | +} | ... | ... |
src/main/java/com/bsth/webService/trafficManage/up/org/tempuri/WebServiceLocator.java
0 → 100644
| 1 | +/** | |
| 2 | + * WebServiceLocator.java | |
| 3 | + * | |
| 4 | + * This file was auto-generated from WSDL | |
| 5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | |
| 6 | + */ | |
| 7 | + | |
| 8 | +package com.bsth.webService.trafficManage.up.org.tempuri; | |
| 9 | + | |
| 10 | +public class WebServiceLocator extends org.apache.axis.client.Service implements com.bsth.webService.trafficManage.up.org.tempuri.WebService { | |
| 11 | + | |
| 12 | + public WebServiceLocator() { | |
| 13 | + } | |
| 14 | + | |
| 15 | + | |
| 16 | + public WebServiceLocator(org.apache.axis.EngineConfiguration config) { | |
| 17 | + super(config); | |
| 18 | + } | |
| 19 | + | |
| 20 | + public WebServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException { | |
| 21 | + super(wsdlLoc, sName); | |
| 22 | + } | |
| 23 | + | |
| 24 | + // Use to get a proxy class for WebServiceSoap | |
| 25 | + private java.lang.String WebServiceSoap_address = "http://218.242.195.76:8411/WebService_test/WebService.asmx"; | |
| 26 | + | |
| 27 | + public java.lang.String getWebServiceSoapAddress() { | |
| 28 | + return WebServiceSoap_address; | |
| 29 | + } | |
| 30 | + | |
| 31 | + // The WSDD service name defaults to the port name. | |
| 32 | + private java.lang.String WebServiceSoapWSDDServiceName = "WebServiceSoap"; | |
| 33 | + | |
| 34 | + public java.lang.String getWebServiceSoapWSDDServiceName() { | |
| 35 | + return WebServiceSoapWSDDServiceName; | |
| 36 | + } | |
| 37 | + | |
| 38 | + public void setWebServiceSoapWSDDServiceName(java.lang.String name) { | |
| 39 | + WebServiceSoapWSDDServiceName = name; | |
| 40 | + } | |
| 41 | + | |
| 42 | + public com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap getWebServiceSoap() throws javax.xml.rpc.ServiceException { | |
| 43 | + java.net.URL endpoint; | |
| 44 | + try { | |
| 45 | + endpoint = new java.net.URL(WebServiceSoap_address); | |
| 46 | + } | |
| 47 | + catch (java.net.MalformedURLException e) { | |
| 48 | + throw new javax.xml.rpc.ServiceException(e); | |
| 49 | + } | |
| 50 | + return getWebServiceSoap(endpoint); | |
| 51 | + } | |
| 52 | + | |
| 53 | + public com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap getWebServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException { | |
| 54 | + try { | |
| 55 | + com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoapStub _stub = new com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoapStub(portAddress, this); | |
| 56 | + _stub.setPortName(getWebServiceSoapWSDDServiceName()); | |
| 57 | + return _stub; | |
| 58 | + } | |
| 59 | + catch (org.apache.axis.AxisFault e) { | |
| 60 | + return null; | |
| 61 | + } | |
| 62 | + } | |
| 63 | + | |
| 64 | + public void setWebServiceSoapEndpointAddress(java.lang.String address) { | |
| 65 | + WebServiceSoap_address = address; | |
| 66 | + } | |
| 67 | + | |
| 68 | + /** | |
| 69 | + * For the given interface, get the stub implementation. | |
| 70 | + * If this service has no port for the given interface, | |
| 71 | + * then ServiceException is thrown. | |
| 72 | + */ | |
| 73 | + public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { | |
| 74 | + try { | |
| 75 | + if (com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap.class.isAssignableFrom(serviceEndpointInterface)) { | |
| 76 | + com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoapStub _stub = new com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoapStub(new java.net.URL(WebServiceSoap_address), this); | |
| 77 | + _stub.setPortName(getWebServiceSoapWSDDServiceName()); | |
| 78 | + return _stub; | |
| 79 | + } | |
| 80 | + } | |
| 81 | + catch (java.lang.Throwable t) { | |
| 82 | + throw new javax.xml.rpc.ServiceException(t); | |
| 83 | + } | |
| 84 | + throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); | |
| 85 | + } | |
| 86 | + | |
| 87 | + /** | |
| 88 | + * For the given interface, get the stub implementation. | |
| 89 | + * If this service has no port for the given interface, | |
| 90 | + * then ServiceException is thrown. | |
| 91 | + */ | |
| 92 | + public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { | |
| 93 | + if (portName == null) { | |
| 94 | + return getPort(serviceEndpointInterface); | |
| 95 | + } | |
| 96 | + java.lang.String inputPortName = portName.getLocalPart(); | |
| 97 | + if ("WebServiceSoap".equals(inputPortName)) { | |
| 98 | + return getWebServiceSoap(); | |
| 99 | + } | |
| 100 | + else { | |
| 101 | + java.rmi.Remote _stub = getPort(serviceEndpointInterface); | |
| 102 | + ((org.apache.axis.client.Stub) _stub).setPortName(portName); | |
| 103 | + return _stub; | |
| 104 | + } | |
| 105 | + } | |
| 106 | + | |
| 107 | + public javax.xml.namespace.QName getServiceName() { | |
| 108 | + return new javax.xml.namespace.QName("http://tempuri.org/", "WebService"); | |
| 109 | + } | |
| 110 | + | |
| 111 | + private java.util.HashSet ports = null; | |
| 112 | + | |
| 113 | + public java.util.Iterator getPorts() { | |
| 114 | + if (ports == null) { | |
| 115 | + ports = new java.util.HashSet(); | |
| 116 | + ports.add(new javax.xml.namespace.QName("http://tempuri.org/", "WebServiceSoap")); | |
| 117 | + } | |
| 118 | + return ports.iterator(); | |
| 119 | + } | |
| 120 | + | |
| 121 | + /** | |
| 122 | + * Set the endpoint address for the specified port name. | |
| 123 | + */ | |
| 124 | + public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { | |
| 125 | + | |
| 126 | +if ("WebServiceSoap".equals(portName)) { | |
| 127 | + setWebServiceSoapEndpointAddress(address); | |
| 128 | + } | |
| 129 | + else | |
| 130 | +{ // Unknown Port Name | |
| 131 | + throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); | |
| 132 | + } | |
| 133 | + } | |
| 134 | + | |
| 135 | + /** | |
| 136 | + * Set the endpoint address for the specified port name. | |
| 137 | + */ | |
| 138 | + public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException { | |
| 139 | + setEndpointAddress(portName.getLocalPart(), address); | |
| 140 | + } | |
| 141 | + | |
| 142 | +} | ... | ... |
src/main/java/com/bsth/webService/trafficManage/up/org/tempuri/WebServiceSoap.java
0 → 100644
| 1 | +/** | |
| 2 | + * WebServiceSoap.java | |
| 3 | + * | |
| 4 | + * This file was auto-generated from WSDL | |
| 5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | |
| 6 | + */ | |
| 7 | + | |
| 8 | +package com.bsth.webService.trafficManage.up.org.tempuri; | |
| 9 | + | |
| 10 | +public interface WebServiceSoap extends java.rmi.Remote { | |
| 11 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setXL(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException; | |
| 12 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setCL(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException; | |
| 13 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setLD(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException; | |
| 14 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setDDRB(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException; | |
| 15 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setJHBC(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException; | |
| 16 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setSKB(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException; | |
| 17 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setSJ(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException; | |
| 18 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setLCYH(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException; | |
| 19 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setXLPC(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException; | |
| 20 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setCS(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException; | |
| 21 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setFZCKGM(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException; | |
| 22 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setJJZD(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException; | |
| 23 | +} | ... | ... |
src/main/java/com/bsth/webService/trafficManage/up/org/tempuri/WebServiceSoapProxy.java
0 → 100644
| 1 | +package com.bsth.webService.trafficManage.up.org.tempuri; | |
| 2 | + | |
| 3 | +public class WebServiceSoapProxy implements com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap { | |
| 4 | + private String _endpoint = null; | |
| 5 | + private com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap webServiceSoap = null; | |
| 6 | + | |
| 7 | + public WebServiceSoapProxy() { | |
| 8 | + _initWebServiceSoapProxy(); | |
| 9 | + } | |
| 10 | + | |
| 11 | + public WebServiceSoapProxy(String endpoint) { | |
| 12 | + _endpoint = endpoint; | |
| 13 | + _initWebServiceSoapProxy(); | |
| 14 | + } | |
| 15 | + | |
| 16 | + private void _initWebServiceSoapProxy() { | |
| 17 | + try { | |
| 18 | + webServiceSoap = (new com.bsth.webService.trafficManage.up.org.tempuri.WebServiceLocator()).getWebServiceSoap(); | |
| 19 | + if (webServiceSoap != null) { | |
| 20 | + if (_endpoint != null) | |
| 21 | + ((javax.xml.rpc.Stub)webServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint); | |
| 22 | + else | |
| 23 | + _endpoint = (String)((javax.xml.rpc.Stub)webServiceSoap)._getProperty("javax.xml.rpc.service.endpoint.address"); | |
| 24 | + } | |
| 25 | + | |
| 26 | + } | |
| 27 | + catch (javax.xml.rpc.ServiceException serviceException) {} | |
| 28 | + } | |
| 29 | + | |
| 30 | + public String getEndpoint() { | |
| 31 | + return _endpoint; | |
| 32 | + } | |
| 33 | + | |
| 34 | + public void setEndpoint(String endpoint) { | |
| 35 | + _endpoint = endpoint; | |
| 36 | + if (webServiceSoap != null) | |
| 37 | + ((javax.xml.rpc.Stub)webServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint); | |
| 38 | + | |
| 39 | + } | |
| 40 | + | |
| 41 | + public com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap getWebServiceSoap() { | |
| 42 | + if (webServiceSoap == null) | |
| 43 | + _initWebServiceSoapProxy(); | |
| 44 | + return webServiceSoap; | |
| 45 | + } | |
| 46 | + | |
| 47 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setXL(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{ | |
| 48 | + if (webServiceSoap == null) | |
| 49 | + _initWebServiceSoapProxy(); | |
| 50 | + return webServiceSoap.setXL(uName, uPass, sXml); | |
| 51 | + } | |
| 52 | + | |
| 53 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setCL(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{ | |
| 54 | + if (webServiceSoap == null) | |
| 55 | + _initWebServiceSoapProxy(); | |
| 56 | + return webServiceSoap.setCL(uName, uPass, sXml); | |
| 57 | + } | |
| 58 | + | |
| 59 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setLD(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{ | |
| 60 | + if (webServiceSoap == null) | |
| 61 | + _initWebServiceSoapProxy(); | |
| 62 | + return webServiceSoap.setLD(uName, uPass, sXml); | |
| 63 | + } | |
| 64 | + | |
| 65 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setDDRB(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{ | |
| 66 | + if (webServiceSoap == null) | |
| 67 | + _initWebServiceSoapProxy(); | |
| 68 | + return webServiceSoap.setDDRB(uName, uPass, sXml); | |
| 69 | + } | |
| 70 | + | |
| 71 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setJHBC(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{ | |
| 72 | + if (webServiceSoap == null) | |
| 73 | + _initWebServiceSoapProxy(); | |
| 74 | + return webServiceSoap.setJHBC(uName, uPass, sXml); | |
| 75 | + } | |
| 76 | + | |
| 77 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setSKB(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{ | |
| 78 | + if (webServiceSoap == null) | |
| 79 | + _initWebServiceSoapProxy(); | |
| 80 | + return webServiceSoap.setSKB(uName, uPass, sXml); | |
| 81 | + } | |
| 82 | + | |
| 83 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setSJ(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{ | |
| 84 | + if (webServiceSoap == null) | |
| 85 | + _initWebServiceSoapProxy(); | |
| 86 | + return webServiceSoap.setSJ(uName, uPass, sXml); | |
| 87 | + } | |
| 88 | + | |
| 89 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setLCYH(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{ | |
| 90 | + if (webServiceSoap == null) | |
| 91 | + _initWebServiceSoapProxy(); | |
| 92 | + return webServiceSoap.setLCYH(uName, uPass, sXml); | |
| 93 | + } | |
| 94 | + | |
| 95 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setXLPC(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{ | |
| 96 | + if (webServiceSoap == null) | |
| 97 | + _initWebServiceSoapProxy(); | |
| 98 | + return webServiceSoap.setXLPC(uName, uPass, sXml); | |
| 99 | + } | |
| 100 | + | |
| 101 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setCS(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{ | |
| 102 | + if (webServiceSoap == null) | |
| 103 | + _initWebServiceSoapProxy(); | |
| 104 | + return webServiceSoap.setCS(uName, uPass, sXml); | |
| 105 | + } | |
| 106 | + | |
| 107 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setFZCKGM(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{ | |
| 108 | + if (webServiceSoap == null) | |
| 109 | + _initWebServiceSoapProxy(); | |
| 110 | + return webServiceSoap.setFZCKGM(uName, uPass, sXml); | |
| 111 | + } | |
| 112 | + | |
| 113 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setJJZD(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{ | |
| 114 | + if (webServiceSoap == null) | |
| 115 | + _initWebServiceSoapProxy(); | |
| 116 | + return webServiceSoap.setJJZD(uName, uPass, sXml); | |
| 117 | + } | |
| 118 | + | |
| 119 | + | |
| 120 | +} | |
| 0 | 121 | \ No newline at end of file | ... | ... |
src/main/java/com/bsth/webService/trafficManage/up/org/tempuri/WebServiceSoapStub.java
0 → 100644
| 1 | +/** | |
| 2 | + * WebServiceSoapStub.java | |
| 3 | + * | |
| 4 | + * This file was auto-generated from WSDL | |
| 5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | |
| 6 | + */ | |
| 7 | + | |
| 8 | +package com.bsth.webService.trafficManage.up.org.tempuri; | |
| 9 | + | |
| 10 | +public class WebServiceSoapStub extends org.apache.axis.client.Stub implements com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap { | |
| 11 | + private java.util.Vector cachedSerClasses = new java.util.Vector(); | |
| 12 | + private java.util.Vector cachedSerQNames = new java.util.Vector(); | |
| 13 | + private java.util.Vector cachedSerFactories = new java.util.Vector(); | |
| 14 | + private java.util.Vector cachedDeserFactories = new java.util.Vector(); | |
| 15 | + | |
| 16 | + static org.apache.axis.description.OperationDesc [] _operations; | |
| 17 | + | |
| 18 | + static { | |
| 19 | + _operations = new org.apache.axis.description.OperationDesc[12]; | |
| 20 | + _initOperationDesc1(); | |
| 21 | + _initOperationDesc2(); | |
| 22 | + } | |
| 23 | + | |
| 24 | + private static void _initOperationDesc1(){ | |
| 25 | + org.apache.axis.description.OperationDesc oper; | |
| 26 | + org.apache.axis.description.ParameterDesc param; | |
| 27 | + oper = new org.apache.axis.description.OperationDesc(); | |
| 28 | + oper.setName("setXL"); | |
| 29 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 30 | + param.setOmittable(true); | |
| 31 | + oper.addParameter(param); | |
| 32 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 33 | + param.setOmittable(true); | |
| 34 | + oper.addParameter(param); | |
| 35 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 36 | + param.setOmittable(true); | |
| 37 | + oper.addParameter(param); | |
| 38 | + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results")); | |
| 39 | + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 40 | + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setXLResult")); | |
| 41 | + oper.setStyle(org.apache.axis.constants.Style.WRAPPED); | |
| 42 | + oper.setUse(org.apache.axis.constants.Use.LITERAL); | |
| 43 | + _operations[0] = oper; | |
| 44 | + | |
| 45 | + oper = new org.apache.axis.description.OperationDesc(); | |
| 46 | + oper.setName("setCL"); | |
| 47 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 48 | + param.setOmittable(true); | |
| 49 | + oper.addParameter(param); | |
| 50 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 51 | + param.setOmittable(true); | |
| 52 | + oper.addParameter(param); | |
| 53 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 54 | + param.setOmittable(true); | |
| 55 | + oper.addParameter(param); | |
| 56 | + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results")); | |
| 57 | + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 58 | + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setCLResult")); | |
| 59 | + oper.setStyle(org.apache.axis.constants.Style.WRAPPED); | |
| 60 | + oper.setUse(org.apache.axis.constants.Use.LITERAL); | |
| 61 | + _operations[1] = oper; | |
| 62 | + | |
| 63 | + oper = new org.apache.axis.description.OperationDesc(); | |
| 64 | + oper.setName("setLD"); | |
| 65 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 66 | + param.setOmittable(true); | |
| 67 | + oper.addParameter(param); | |
| 68 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 69 | + param.setOmittable(true); | |
| 70 | + oper.addParameter(param); | |
| 71 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 72 | + param.setOmittable(true); | |
| 73 | + oper.addParameter(param); | |
| 74 | + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results")); | |
| 75 | + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 76 | + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setLDResult")); | |
| 77 | + oper.setStyle(org.apache.axis.constants.Style.WRAPPED); | |
| 78 | + oper.setUse(org.apache.axis.constants.Use.LITERAL); | |
| 79 | + _operations[2] = oper; | |
| 80 | + | |
| 81 | + oper = new org.apache.axis.description.OperationDesc(); | |
| 82 | + oper.setName("setDDRB"); | |
| 83 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 84 | + param.setOmittable(true); | |
| 85 | + oper.addParameter(param); | |
| 86 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 87 | + param.setOmittable(true); | |
| 88 | + oper.addParameter(param); | |
| 89 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 90 | + param.setOmittable(true); | |
| 91 | + oper.addParameter(param); | |
| 92 | + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results")); | |
| 93 | + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 94 | + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setDDRBResult")); | |
| 95 | + oper.setStyle(org.apache.axis.constants.Style.WRAPPED); | |
| 96 | + oper.setUse(org.apache.axis.constants.Use.LITERAL); | |
| 97 | + _operations[3] = oper; | |
| 98 | + | |
| 99 | + oper = new org.apache.axis.description.OperationDesc(); | |
| 100 | + oper.setName("setJHBC"); | |
| 101 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 102 | + param.setOmittable(true); | |
| 103 | + oper.addParameter(param); | |
| 104 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 105 | + param.setOmittable(true); | |
| 106 | + oper.addParameter(param); | |
| 107 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 108 | + param.setOmittable(true); | |
| 109 | + oper.addParameter(param); | |
| 110 | + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results")); | |
| 111 | + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 112 | + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setJHBCResult")); | |
| 113 | + oper.setStyle(org.apache.axis.constants.Style.WRAPPED); | |
| 114 | + oper.setUse(org.apache.axis.constants.Use.LITERAL); | |
| 115 | + _operations[4] = oper; | |
| 116 | + | |
| 117 | + oper = new org.apache.axis.description.OperationDesc(); | |
| 118 | + oper.setName("setSKB"); | |
| 119 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 120 | + param.setOmittable(true); | |
| 121 | + oper.addParameter(param); | |
| 122 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 123 | + param.setOmittable(true); | |
| 124 | + oper.addParameter(param); | |
| 125 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 126 | + param.setOmittable(true); | |
| 127 | + oper.addParameter(param); | |
| 128 | + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results")); | |
| 129 | + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 130 | + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setSKBResult")); | |
| 131 | + oper.setStyle(org.apache.axis.constants.Style.WRAPPED); | |
| 132 | + oper.setUse(org.apache.axis.constants.Use.LITERAL); | |
| 133 | + _operations[5] = oper; | |
| 134 | + | |
| 135 | + oper = new org.apache.axis.description.OperationDesc(); | |
| 136 | + oper.setName("setSJ"); | |
| 137 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 138 | + param.setOmittable(true); | |
| 139 | + oper.addParameter(param); | |
| 140 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 141 | + param.setOmittable(true); | |
| 142 | + oper.addParameter(param); | |
| 143 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 144 | + param.setOmittable(true); | |
| 145 | + oper.addParameter(param); | |
| 146 | + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results")); | |
| 147 | + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 148 | + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setSJResult")); | |
| 149 | + oper.setStyle(org.apache.axis.constants.Style.WRAPPED); | |
| 150 | + oper.setUse(org.apache.axis.constants.Use.LITERAL); | |
| 151 | + _operations[6] = oper; | |
| 152 | + | |
| 153 | + oper = new org.apache.axis.description.OperationDesc(); | |
| 154 | + oper.setName("setLCYH"); | |
| 155 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 156 | + param.setOmittable(true); | |
| 157 | + oper.addParameter(param); | |
| 158 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 159 | + param.setOmittable(true); | |
| 160 | + oper.addParameter(param); | |
| 161 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 162 | + param.setOmittable(true); | |
| 163 | + oper.addParameter(param); | |
| 164 | + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results")); | |
| 165 | + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 166 | + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setLCYHResult")); | |
| 167 | + oper.setStyle(org.apache.axis.constants.Style.WRAPPED); | |
| 168 | + oper.setUse(org.apache.axis.constants.Use.LITERAL); | |
| 169 | + _operations[7] = oper; | |
| 170 | + | |
| 171 | + oper = new org.apache.axis.description.OperationDesc(); | |
| 172 | + oper.setName("setXLPC"); | |
| 173 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 174 | + param.setOmittable(true); | |
| 175 | + oper.addParameter(param); | |
| 176 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 177 | + param.setOmittable(true); | |
| 178 | + oper.addParameter(param); | |
| 179 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 180 | + param.setOmittable(true); | |
| 181 | + oper.addParameter(param); | |
| 182 | + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results")); | |
| 183 | + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 184 | + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setXLPCResult")); | |
| 185 | + oper.setStyle(org.apache.axis.constants.Style.WRAPPED); | |
| 186 | + oper.setUse(org.apache.axis.constants.Use.LITERAL); | |
| 187 | + _operations[8] = oper; | |
| 188 | + | |
| 189 | + oper = new org.apache.axis.description.OperationDesc(); | |
| 190 | + oper.setName("setCS"); | |
| 191 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 192 | + param.setOmittable(true); | |
| 193 | + oper.addParameter(param); | |
| 194 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 195 | + param.setOmittable(true); | |
| 196 | + oper.addParameter(param); | |
| 197 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 198 | + param.setOmittable(true); | |
| 199 | + oper.addParameter(param); | |
| 200 | + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results")); | |
| 201 | + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 202 | + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setCSResult")); | |
| 203 | + oper.setStyle(org.apache.axis.constants.Style.WRAPPED); | |
| 204 | + oper.setUse(org.apache.axis.constants.Use.LITERAL); | |
| 205 | + _operations[9] = oper; | |
| 206 | + | |
| 207 | + } | |
| 208 | + | |
| 209 | + private static void _initOperationDesc2(){ | |
| 210 | + org.apache.axis.description.OperationDesc oper; | |
| 211 | + org.apache.axis.description.ParameterDesc param; | |
| 212 | + oper = new org.apache.axis.description.OperationDesc(); | |
| 213 | + oper.setName("setFZCKGM"); | |
| 214 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 215 | + param.setOmittable(true); | |
| 216 | + oper.addParameter(param); | |
| 217 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 218 | + param.setOmittable(true); | |
| 219 | + oper.addParameter(param); | |
| 220 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 221 | + param.setOmittable(true); | |
| 222 | + oper.addParameter(param); | |
| 223 | + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results")); | |
| 224 | + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 225 | + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setFZCKGMResult")); | |
| 226 | + oper.setStyle(org.apache.axis.constants.Style.WRAPPED); | |
| 227 | + oper.setUse(org.apache.axis.constants.Use.LITERAL); | |
| 228 | + _operations[10] = oper; | |
| 229 | + | |
| 230 | + oper = new org.apache.axis.description.OperationDesc(); | |
| 231 | + oper.setName("setJJZD"); | |
| 232 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 233 | + param.setOmittable(true); | |
| 234 | + oper.addParameter(param); | |
| 235 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 236 | + param.setOmittable(true); | |
| 237 | + oper.addParameter(param); | |
| 238 | + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); | |
| 239 | + param.setOmittable(true); | |
| 240 | + oper.addParameter(param); | |
| 241 | + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results")); | |
| 242 | + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 243 | + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setJJZDResult")); | |
| 244 | + oper.setStyle(org.apache.axis.constants.Style.WRAPPED); | |
| 245 | + oper.setUse(org.apache.axis.constants.Use.LITERAL); | |
| 246 | + _operations[11] = oper; | |
| 247 | + | |
| 248 | + } | |
| 249 | + | |
| 250 | + public WebServiceSoapStub() throws org.apache.axis.AxisFault { | |
| 251 | + this(null); | |
| 252 | + } | |
| 253 | + | |
| 254 | + public WebServiceSoapStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { | |
| 255 | + this(service); | |
| 256 | + super.cachedEndpoint = endpointURL; | |
| 257 | + } | |
| 258 | + | |
| 259 | + public WebServiceSoapStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { | |
| 260 | + if (service == null) { | |
| 261 | + super.service = new org.apache.axis.client.Service(); | |
| 262 | + } else { | |
| 263 | + super.service = service; | |
| 264 | + } | |
| 265 | + ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2"); | |
| 266 | + java.lang.Class cls; | |
| 267 | + javax.xml.namespace.QName qName; | |
| 268 | + javax.xml.namespace.QName qName2; | |
| 269 | + java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class; | |
| 270 | + java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class; | |
| 271 | + java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class; | |
| 272 | + java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class; | |
| 273 | + java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class; | |
| 274 | + java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class; | |
| 275 | + java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class; | |
| 276 | + java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class; | |
| 277 | + java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class; | |
| 278 | + java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class; | |
| 279 | + qName = new javax.xml.namespace.QName("http://tempuri.org/", "Results"); | |
| 280 | + cachedSerQNames.add(qName); | |
| 281 | + cls = com.bsth.webService.trafficManage.up.org.tempuri.Results.class; | |
| 282 | + cachedSerClasses.add(cls); | |
| 283 | + cachedSerFactories.add(beansf); | |
| 284 | + cachedDeserFactories.add(beandf); | |
| 285 | + | |
| 286 | + } | |
| 287 | + | |
| 288 | + protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException { | |
| 289 | + try { | |
| 290 | + org.apache.axis.client.Call _call = super._createCall(); | |
| 291 | + if (super.maintainSessionSet) { | |
| 292 | + _call.setMaintainSession(super.maintainSession); | |
| 293 | + } | |
| 294 | + if (super.cachedUsername != null) { | |
| 295 | + _call.setUsername(super.cachedUsername); | |
| 296 | + } | |
| 297 | + if (super.cachedPassword != null) { | |
| 298 | + _call.setPassword(super.cachedPassword); | |
| 299 | + } | |
| 300 | + if (super.cachedEndpoint != null) { | |
| 301 | + _call.setTargetEndpointAddress(super.cachedEndpoint); | |
| 302 | + } | |
| 303 | + if (super.cachedTimeout != null) { | |
| 304 | + _call.setTimeout(super.cachedTimeout); | |
| 305 | + } | |
| 306 | + if (super.cachedPortName != null) { | |
| 307 | + _call.setPortName(super.cachedPortName); | |
| 308 | + } | |
| 309 | + java.util.Enumeration keys = super.cachedProperties.keys(); | |
| 310 | + while (keys.hasMoreElements()) { | |
| 311 | + java.lang.String key = (java.lang.String) keys.nextElement(); | |
| 312 | + _call.setProperty(key, super.cachedProperties.get(key)); | |
| 313 | + } | |
| 314 | + // All the type mapping information is registered | |
| 315 | + // when the first call is made. | |
| 316 | + // The type mapping information is actually registered in | |
| 317 | + // the TypeMappingRegistry of the service, which | |
| 318 | + // is the reason why registration is only needed for the first call. | |
| 319 | + synchronized (this) { | |
| 320 | + if (firstCall()) { | |
| 321 | + // must set encoding style before registering serializers | |
| 322 | + _call.setEncodingStyle(null); | |
| 323 | + for (int i = 0; i < cachedSerFactories.size(); ++i) { | |
| 324 | + java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i); | |
| 325 | + javax.xml.namespace.QName qName = | |
| 326 | + (javax.xml.namespace.QName) cachedSerQNames.get(i); | |
| 327 | + java.lang.Object x = cachedSerFactories.get(i); | |
| 328 | + if (x instanceof Class) { | |
| 329 | + java.lang.Class sf = (java.lang.Class) | |
| 330 | + cachedSerFactories.get(i); | |
| 331 | + java.lang.Class df = (java.lang.Class) | |
| 332 | + cachedDeserFactories.get(i); | |
| 333 | + _call.registerTypeMapping(cls, qName, sf, df, false); | |
| 334 | + } | |
| 335 | + else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) { | |
| 336 | + org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory) | |
| 337 | + cachedSerFactories.get(i); | |
| 338 | + org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory) | |
| 339 | + cachedDeserFactories.get(i); | |
| 340 | + _call.registerTypeMapping(cls, qName, sf, df, false); | |
| 341 | + } | |
| 342 | + } | |
| 343 | + } | |
| 344 | + } | |
| 345 | + return _call; | |
| 346 | + } | |
| 347 | + catch (java.lang.Throwable _t) { | |
| 348 | + throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t); | |
| 349 | + } | |
| 350 | + } | |
| 351 | + | |
| 352 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setXL(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException { | |
| 353 | + if (super.cachedEndpoint == null) { | |
| 354 | + throw new org.apache.axis.NoEndPointException(); | |
| 355 | + } | |
| 356 | + org.apache.axis.client.Call _call = createCall(); | |
| 357 | + _call.setOperation(_operations[0]); | |
| 358 | + _call.setUseSOAPAction(true); | |
| 359 | + _call.setSOAPActionURI("http://tempuri.org/setXL"); | |
| 360 | + _call.setEncodingStyle(null); | |
| 361 | + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); | |
| 362 | + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); | |
| 363 | + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); | |
| 364 | + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setXL")); | |
| 365 | + | |
| 366 | + setRequestHeaders(_call); | |
| 367 | + setAttachments(_call); | |
| 368 | + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml}); | |
| 369 | + | |
| 370 | + if (_resp instanceof java.rmi.RemoteException) { | |
| 371 | + throw (java.rmi.RemoteException)_resp; | |
| 372 | + } | |
| 373 | + else { | |
| 374 | + extractAttachments(_call); | |
| 375 | + try { | |
| 376 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp; | |
| 377 | + } catch (java.lang.Exception _exception) { | |
| 378 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 379 | + } | |
| 380 | + } | |
| 381 | + } catch (org.apache.axis.AxisFault axisFaultException) { | |
| 382 | + throw axisFaultException; | |
| 383 | +} | |
| 384 | + } | |
| 385 | + | |
| 386 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setCL(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException { | |
| 387 | + if (super.cachedEndpoint == null) { | |
| 388 | + throw new org.apache.axis.NoEndPointException(); | |
| 389 | + } | |
| 390 | + org.apache.axis.client.Call _call = createCall(); | |
| 391 | + _call.setOperation(_operations[1]); | |
| 392 | + _call.setUseSOAPAction(true); | |
| 393 | + _call.setSOAPActionURI("http://tempuri.org/setCL"); | |
| 394 | + _call.setEncodingStyle(null); | |
| 395 | + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); | |
| 396 | + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); | |
| 397 | + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); | |
| 398 | + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setCL")); | |
| 399 | + | |
| 400 | + setRequestHeaders(_call); | |
| 401 | + setAttachments(_call); | |
| 402 | + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml}); | |
| 403 | + | |
| 404 | + if (_resp instanceof java.rmi.RemoteException) { | |
| 405 | + throw (java.rmi.RemoteException)_resp; | |
| 406 | + } | |
| 407 | + else { | |
| 408 | + extractAttachments(_call); | |
| 409 | + try { | |
| 410 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp; | |
| 411 | + } catch (java.lang.Exception _exception) { | |
| 412 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 413 | + } | |
| 414 | + } | |
| 415 | + } catch (org.apache.axis.AxisFault axisFaultException) { | |
| 416 | + throw axisFaultException; | |
| 417 | +} | |
| 418 | + } | |
| 419 | + | |
| 420 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setLD(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException { | |
| 421 | + if (super.cachedEndpoint == null) { | |
| 422 | + throw new org.apache.axis.NoEndPointException(); | |
| 423 | + } | |
| 424 | + org.apache.axis.client.Call _call = createCall(); | |
| 425 | + _call.setOperation(_operations[2]); | |
| 426 | + _call.setUseSOAPAction(true); | |
| 427 | + _call.setSOAPActionURI("http://tempuri.org/setLD"); | |
| 428 | + _call.setEncodingStyle(null); | |
| 429 | + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); | |
| 430 | + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); | |
| 431 | + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); | |
| 432 | + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setLD")); | |
| 433 | + | |
| 434 | + setRequestHeaders(_call); | |
| 435 | + setAttachments(_call); | |
| 436 | + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml}); | |
| 437 | + | |
| 438 | + if (_resp instanceof java.rmi.RemoteException) { | |
| 439 | + throw (java.rmi.RemoteException)_resp; | |
| 440 | + } | |
| 441 | + else { | |
| 442 | + extractAttachments(_call); | |
| 443 | + try { | |
| 444 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp; | |
| 445 | + } catch (java.lang.Exception _exception) { | |
| 446 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 447 | + } | |
| 448 | + } | |
| 449 | + } catch (org.apache.axis.AxisFault axisFaultException) { | |
| 450 | + throw axisFaultException; | |
| 451 | +} | |
| 452 | + } | |
| 453 | + | |
| 454 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setDDRB(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException { | |
| 455 | + if (super.cachedEndpoint == null) { | |
| 456 | + throw new org.apache.axis.NoEndPointException(); | |
| 457 | + } | |
| 458 | + org.apache.axis.client.Call _call = createCall(); | |
| 459 | + _call.setOperation(_operations[3]); | |
| 460 | + _call.setUseSOAPAction(true); | |
| 461 | + _call.setSOAPActionURI("http://tempuri.org/setDDRB"); | |
| 462 | + _call.setEncodingStyle(null); | |
| 463 | + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); | |
| 464 | + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); | |
| 465 | + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); | |
| 466 | + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setDDRB")); | |
| 467 | + | |
| 468 | + setRequestHeaders(_call); | |
| 469 | + setAttachments(_call); | |
| 470 | + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml}); | |
| 471 | + | |
| 472 | + if (_resp instanceof java.rmi.RemoteException) { | |
| 473 | + throw (java.rmi.RemoteException)_resp; | |
| 474 | + } | |
| 475 | + else { | |
| 476 | + extractAttachments(_call); | |
| 477 | + try { | |
| 478 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp; | |
| 479 | + } catch (java.lang.Exception _exception) { | |
| 480 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 481 | + } | |
| 482 | + } | |
| 483 | + } catch (org.apache.axis.AxisFault axisFaultException) { | |
| 484 | + throw axisFaultException; | |
| 485 | +} | |
| 486 | + } | |
| 487 | + | |
| 488 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setJHBC(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException { | |
| 489 | + if (super.cachedEndpoint == null) { | |
| 490 | + throw new org.apache.axis.NoEndPointException(); | |
| 491 | + } | |
| 492 | + org.apache.axis.client.Call _call = createCall(); | |
| 493 | + _call.setOperation(_operations[4]); | |
| 494 | + _call.setUseSOAPAction(true); | |
| 495 | + _call.setSOAPActionURI("http://tempuri.org/setJHBC"); | |
| 496 | + _call.setEncodingStyle(null); | |
| 497 | + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); | |
| 498 | + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); | |
| 499 | + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); | |
| 500 | + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setJHBC")); | |
| 501 | + | |
| 502 | + setRequestHeaders(_call); | |
| 503 | + setAttachments(_call); | |
| 504 | + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml}); | |
| 505 | + | |
| 506 | + if (_resp instanceof java.rmi.RemoteException) { | |
| 507 | + throw (java.rmi.RemoteException)_resp; | |
| 508 | + } | |
| 509 | + else { | |
| 510 | + extractAttachments(_call); | |
| 511 | + try { | |
| 512 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp; | |
| 513 | + } catch (java.lang.Exception _exception) { | |
| 514 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 515 | + } | |
| 516 | + } | |
| 517 | + } catch (org.apache.axis.AxisFault axisFaultException) { | |
| 518 | + throw axisFaultException; | |
| 519 | +} | |
| 520 | + } | |
| 521 | + | |
| 522 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setSKB(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException { | |
| 523 | + if (super.cachedEndpoint == null) { | |
| 524 | + throw new org.apache.axis.NoEndPointException(); | |
| 525 | + } | |
| 526 | + org.apache.axis.client.Call _call = createCall(); | |
| 527 | + _call.setOperation(_operations[5]); | |
| 528 | + _call.setUseSOAPAction(true); | |
| 529 | + _call.setSOAPActionURI("http://tempuri.org/setSKB"); | |
| 530 | + _call.setEncodingStyle(null); | |
| 531 | + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); | |
| 532 | + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); | |
| 533 | + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); | |
| 534 | + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setSKB")); | |
| 535 | + | |
| 536 | + setRequestHeaders(_call); | |
| 537 | + setAttachments(_call); | |
| 538 | + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml}); | |
| 539 | + | |
| 540 | + if (_resp instanceof java.rmi.RemoteException) { | |
| 541 | + throw (java.rmi.RemoteException)_resp; | |
| 542 | + } | |
| 543 | + else { | |
| 544 | + extractAttachments(_call); | |
| 545 | + try { | |
| 546 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp; | |
| 547 | + } catch (java.lang.Exception _exception) { | |
| 548 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 549 | + } | |
| 550 | + } | |
| 551 | + } catch (org.apache.axis.AxisFault axisFaultException) { | |
| 552 | + throw axisFaultException; | |
| 553 | +} | |
| 554 | + } | |
| 555 | + | |
| 556 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setSJ(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException { | |
| 557 | + if (super.cachedEndpoint == null) { | |
| 558 | + throw new org.apache.axis.NoEndPointException(); | |
| 559 | + } | |
| 560 | + org.apache.axis.client.Call _call = createCall(); | |
| 561 | + _call.setOperation(_operations[6]); | |
| 562 | + _call.setUseSOAPAction(true); | |
| 563 | + _call.setSOAPActionURI("http://tempuri.org/setSJ"); | |
| 564 | + _call.setEncodingStyle(null); | |
| 565 | + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); | |
| 566 | + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); | |
| 567 | + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); | |
| 568 | + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setSJ")); | |
| 569 | + | |
| 570 | + setRequestHeaders(_call); | |
| 571 | + setAttachments(_call); | |
| 572 | + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml}); | |
| 573 | + | |
| 574 | + if (_resp instanceof java.rmi.RemoteException) { | |
| 575 | + throw (java.rmi.RemoteException)_resp; | |
| 576 | + } | |
| 577 | + else { | |
| 578 | + extractAttachments(_call); | |
| 579 | + try { | |
| 580 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp; | |
| 581 | + } catch (java.lang.Exception _exception) { | |
| 582 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 583 | + } | |
| 584 | + } | |
| 585 | + } catch (org.apache.axis.AxisFault axisFaultException) { | |
| 586 | + throw axisFaultException; | |
| 587 | +} | |
| 588 | + } | |
| 589 | + | |
| 590 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setLCYH(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException { | |
| 591 | + if (super.cachedEndpoint == null) { | |
| 592 | + throw new org.apache.axis.NoEndPointException(); | |
| 593 | + } | |
| 594 | + org.apache.axis.client.Call _call = createCall(); | |
| 595 | + _call.setOperation(_operations[7]); | |
| 596 | + _call.setUseSOAPAction(true); | |
| 597 | + _call.setSOAPActionURI("http://tempuri.org/setLCYH"); | |
| 598 | + _call.setEncodingStyle(null); | |
| 599 | + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); | |
| 600 | + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); | |
| 601 | + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); | |
| 602 | + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setLCYH")); | |
| 603 | + | |
| 604 | + setRequestHeaders(_call); | |
| 605 | + setAttachments(_call); | |
| 606 | + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml}); | |
| 607 | + | |
| 608 | + if (_resp instanceof java.rmi.RemoteException) { | |
| 609 | + throw (java.rmi.RemoteException)_resp; | |
| 610 | + } | |
| 611 | + else { | |
| 612 | + extractAttachments(_call); | |
| 613 | + try { | |
| 614 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp; | |
| 615 | + } catch (java.lang.Exception _exception) { | |
| 616 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 617 | + } | |
| 618 | + } | |
| 619 | + } catch (org.apache.axis.AxisFault axisFaultException) { | |
| 620 | + throw axisFaultException; | |
| 621 | +} | |
| 622 | + } | |
| 623 | + | |
| 624 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setXLPC(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException { | |
| 625 | + if (super.cachedEndpoint == null) { | |
| 626 | + throw new org.apache.axis.NoEndPointException(); | |
| 627 | + } | |
| 628 | + org.apache.axis.client.Call _call = createCall(); | |
| 629 | + _call.setOperation(_operations[8]); | |
| 630 | + _call.setUseSOAPAction(true); | |
| 631 | + _call.setSOAPActionURI("http://tempuri.org/setXLPC"); | |
| 632 | + _call.setEncodingStyle(null); | |
| 633 | + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); | |
| 634 | + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); | |
| 635 | + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); | |
| 636 | + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setXLPC")); | |
| 637 | + | |
| 638 | + setRequestHeaders(_call); | |
| 639 | + setAttachments(_call); | |
| 640 | + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml}); | |
| 641 | + | |
| 642 | + if (_resp instanceof java.rmi.RemoteException) { | |
| 643 | + throw (java.rmi.RemoteException)_resp; | |
| 644 | + } | |
| 645 | + else { | |
| 646 | + extractAttachments(_call); | |
| 647 | + try { | |
| 648 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp; | |
| 649 | + } catch (java.lang.Exception _exception) { | |
| 650 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 651 | + } | |
| 652 | + } | |
| 653 | + } catch (org.apache.axis.AxisFault axisFaultException) { | |
| 654 | + throw axisFaultException; | |
| 655 | +} | |
| 656 | + } | |
| 657 | + | |
| 658 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setCS(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException { | |
| 659 | + if (super.cachedEndpoint == null) { | |
| 660 | + throw new org.apache.axis.NoEndPointException(); | |
| 661 | + } | |
| 662 | + org.apache.axis.client.Call _call = createCall(); | |
| 663 | + _call.setOperation(_operations[9]); | |
| 664 | + _call.setUseSOAPAction(true); | |
| 665 | + _call.setSOAPActionURI("http://tempuri.org/setCS"); | |
| 666 | + _call.setEncodingStyle(null); | |
| 667 | + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); | |
| 668 | + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); | |
| 669 | + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); | |
| 670 | + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setCS")); | |
| 671 | + | |
| 672 | + setRequestHeaders(_call); | |
| 673 | + setAttachments(_call); | |
| 674 | + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml}); | |
| 675 | + | |
| 676 | + if (_resp instanceof java.rmi.RemoteException) { | |
| 677 | + throw (java.rmi.RemoteException)_resp; | |
| 678 | + } | |
| 679 | + else { | |
| 680 | + extractAttachments(_call); | |
| 681 | + try { | |
| 682 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp; | |
| 683 | + } catch (java.lang.Exception _exception) { | |
| 684 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 685 | + } | |
| 686 | + } | |
| 687 | + } catch (org.apache.axis.AxisFault axisFaultException) { | |
| 688 | + throw axisFaultException; | |
| 689 | +} | |
| 690 | + } | |
| 691 | + | |
| 692 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setFZCKGM(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException { | |
| 693 | + if (super.cachedEndpoint == null) { | |
| 694 | + throw new org.apache.axis.NoEndPointException(); | |
| 695 | + } | |
| 696 | + org.apache.axis.client.Call _call = createCall(); | |
| 697 | + _call.setOperation(_operations[10]); | |
| 698 | + _call.setUseSOAPAction(true); | |
| 699 | + _call.setSOAPActionURI("http://tempuri.org/setFZCKGM"); | |
| 700 | + _call.setEncodingStyle(null); | |
| 701 | + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); | |
| 702 | + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); | |
| 703 | + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); | |
| 704 | + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setFZCKGM")); | |
| 705 | + | |
| 706 | + setRequestHeaders(_call); | |
| 707 | + setAttachments(_call); | |
| 708 | + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml}); | |
| 709 | + | |
| 710 | + if (_resp instanceof java.rmi.RemoteException) { | |
| 711 | + throw (java.rmi.RemoteException)_resp; | |
| 712 | + } | |
| 713 | + else { | |
| 714 | + extractAttachments(_call); | |
| 715 | + try { | |
| 716 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp; | |
| 717 | + } catch (java.lang.Exception _exception) { | |
| 718 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 719 | + } | |
| 720 | + } | |
| 721 | + } catch (org.apache.axis.AxisFault axisFaultException) { | |
| 722 | + throw axisFaultException; | |
| 723 | +} | |
| 724 | + } | |
| 725 | + | |
| 726 | + public com.bsth.webService.trafficManage.up.org.tempuri.Results setJJZD(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException { | |
| 727 | + if (super.cachedEndpoint == null) { | |
| 728 | + throw new org.apache.axis.NoEndPointException(); | |
| 729 | + } | |
| 730 | + org.apache.axis.client.Call _call = createCall(); | |
| 731 | + _call.setOperation(_operations[11]); | |
| 732 | + _call.setUseSOAPAction(true); | |
| 733 | + _call.setSOAPActionURI("http://tempuri.org/setJJZD"); | |
| 734 | + _call.setEncodingStyle(null); | |
| 735 | + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); | |
| 736 | + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); | |
| 737 | + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); | |
| 738 | + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setJJZD")); | |
| 739 | + | |
| 740 | + setRequestHeaders(_call); | |
| 741 | + setAttachments(_call); | |
| 742 | + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml}); | |
| 743 | + | |
| 744 | + if (_resp instanceof java.rmi.RemoteException) { | |
| 745 | + throw (java.rmi.RemoteException)_resp; | |
| 746 | + } | |
| 747 | + else { | |
| 748 | + extractAttachments(_call); | |
| 749 | + try { | |
| 750 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp; | |
| 751 | + } catch (java.lang.Exception _exception) { | |
| 752 | + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class); | |
| 753 | + } | |
| 754 | + } | |
| 755 | + } catch (org.apache.axis.AxisFault axisFaultException) { | |
| 756 | + throw axisFaultException; | |
| 757 | +} | |
| 758 | + } | |
| 759 | + | |
| 760 | +} | ... | ... |
src/main/resources/application-dev.properties
| ... | ... | @@ -8,9 +8,9 @@ spring.jpa.hibernate.naming_strategy= org.hibernate.cfg.ImprovedNamingStrategy |
| 8 | 8 | spring.jpa.database= MYSQL |
| 9 | 9 | spring.jpa.show-sql= false |
| 10 | 10 | spring.datasource.driver-class-name= com.mysql.jdbc.Driver |
| 11 | -spring.datasource.url= jdbc:mysql://localhost:3306/control?useUnicode=true&characterEncoding=utf-8&useSSL=false | |
| 11 | +spring.datasource.url= jdbc:mysql://localhost:3306/pd_control?useUnicode=true&characterEncoding=utf-8&useSSL=false | |
| 12 | 12 | spring.datasource.username= root |
| 13 | -spring.datasource.password= | |
| 13 | +spring.datasource.password= root | |
| 14 | 14 | #spring.datasource.url= jdbc:mysql://192.168.168.117/pd_control?useUnicode=true&characterEncoding=utf-8&useSSL=false |
| 15 | 15 | #spring.datasource.username= root |
| 16 | 16 | #spring.datasource.password= root | ... | ... |
src/main/resources/fatso/start.js
| ... | ... | @@ -16,7 +16,7 @@ var platform = process.platform; |
| 16 | 16 | var iswin = platform=='win32'; |
| 17 | 17 | var sp = platform=='win32'?'\\':'/'; |
| 18 | 18 | //不参与的目录 |
| 19 | -var excludes = ['scheduleApp', 'trafficManage', 'control', 'permission'+sp+'authorize_all', 'summary', 'report'+sp+'oil'] | |
| 19 | +var excludes = ['scheduleApp', 'trafficManage', 'control', 'permission'+sp+'authorize_all', 'summary', 'history_sch' ,'report'+sp+'oil'] | |
| 20 | 20 | ,ep = new EventProxy() |
| 21 | 21 | ,pName = 'bsth_control' |
| 22 | 22 | ,path = process.cwd() | ... | ... |
src/main/resources/static/pages/base/carpark/js/add-form-wizard.js
| ... | ... | @@ -25,7 +25,7 @@ var FormWizard = function() { |
| 25 | 25 | rules : { |
| 26 | 26 | 'parkNamebooxt' : {required : true,},// 停车场名称 必填项 |
| 27 | 27 | 'parkName' : {required : true,},// 停车场名称 必填项 |
| 28 | - 'parkCode' : {required : true,alnum:true, remote : { | |
| 28 | + 'parkCode' : {required : true,rangelength:[8,8], alnum:true, remote : { | |
| 29 | 29 | type : "get",// 异步发送请求到服务器,验证parkCode |
| 30 | 30 | url : "/carpark/isHaveParkCode",//需要服务器controllor 中提供停车场编码检查的方法 |
| 31 | 31 | cache:false, |
| ... | ... | @@ -40,7 +40,8 @@ var FormWizard = function() { |
| 40 | 40 | 'descriptions' : {maxlength: 200,},// 描述/说明 最大长度200 |
| 41 | 41 | }, |
| 42 | 42 | messages:{ |
| 43 | - 'parkCode':{remote:'停车场编码系统已存在,请您重新输入!',}, | |
| 43 | + 'parkCode':{remote:'停车场编码系统已存在,请您重新输入!', | |
| 44 | + rangelength:'请填写8位长度的编码!'}, | |
| 44 | 45 | }, |
| 45 | 46 | /** |
| 46 | 47 | * 类型:Callback。当未通过验证的表单提交时,可以在该回调函数中处理一些事情。 | ... | ... |
src/main/resources/static/pages/history_sch/edit/history_sch_maintain.html
| 1 | 1 | <div class="uk-modal " id="history-sch-maintain-modal" style=""> |
| 2 | - <div class="uk-modal-dialog" style="width: 95%;"> | |
| 2 | + <div class="uk-modal-dialog" style="width: 95%;margin: 20px auto;"> | |
| 3 | 3 | <a href="" class="uk-modal-close uk-close"></a> |
| 4 | 4 | <div class="uk-modal-header"> |
| 5 | 5 | <h2>历史路单维护</h2> |
| ... | ... | @@ -37,7 +37,7 @@ |
| 37 | 37 | <input type="text" name="jGh_like" placeholder="驾驶员" style="width: 80px;"> |
| 38 | 38 | </div> |
| 39 | 39 | <button class="uk-button">检索</button> |
| 40 | - <a class="add_lp_link" ><i class="uk-icon-plus"></i> 临加路牌</a> | |
| 40 | + <a class="add_lp_link" title="先点击检索后再临加路牌"><i class="uk-icon-plus"></i> 临加路牌</a> | |
| 41 | 41 | </fieldset> |
| 42 | 42 | </form> |
| 43 | 43 | </div> |
| ... | ... | @@ -131,7 +131,7 @@ |
| 131 | 131 | $('.h-s-time', modal).html(tsStr); |
| 132 | 132 | clearLpSelect(); |
| 133 | 133 | //reLoadLp=true; |
| 134 | - jsQuery(); | |
| 134 | + //jsQuery(); | |
| 135 | 135 | }); |
| 136 | 136 | }); |
| 137 | 137 | |
| ... | ... | @@ -176,6 +176,8 @@ |
| 176 | 176 | data.subCompanyId=null; |
| 177 | 177 | var rq = $('.h-s-time li.uk-active', modal).text(); |
| 178 | 178 | data.scheduleDateStr_eq = rq; |
| 179 | + if(!data.xlBm_eq) | |
| 180 | + return notify_err('请选择线路...'); | |
| 179 | 181 | if(data.jGh_like.indexOf('/')!=-1){ |
| 180 | 182 | var jsy=data.jGh_like.split('/'); |
| 181 | 183 | data.jGh_like=jsy[0]; |
| ... | ... | @@ -226,6 +228,9 @@ |
| 226 | 228 | $('.history-sch-wrap', modal).perfectScrollbar('update'); |
| 227 | 229 | |
| 228 | 230 | cb && cb(); |
| 231 | + | |
| 232 | + //初始化依赖数据 | |
| 233 | + gb_data_basic.initData(data.xlBm_eq); | |
| 229 | 234 | }); |
| 230 | 235 | } |
| 231 | 236 | |
| ... | ... | @@ -376,9 +381,10 @@ |
| 376 | 381 | }); |
| 377 | 382 | |
| 378 | 383 | var lpName = '临' + (index + 1); |
| 384 | + var lineSelect = $('[name=xlBm_eq]', modal); | |
| 379 | 385 | var rq = $('.h-s-time li.uk-active', modal).text(), |
| 380 | - lineName = $('.h-s-line li.uk-active', modal).text(), | |
| 381 | - lineCode = $('.h-s-line li.uk-active', modal).data('id'); | |
| 386 | + lineName = lineSelect[0].options[lineSelect[0].selectedIndex].text,//$('.h-s-line li.uk-active', modal).text(), | |
| 387 | + lineCode = lineSelect.val(); | |
| 382 | 388 | |
| 383 | 389 | var sch = { |
| 384 | 390 | scheduleDateStr: rq, |
| ... | ... | @@ -467,6 +473,9 @@ |
| 467 | 473 | } |
| 468 | 474 | $('[name=xlBm_eq]', f).html(opts); |
| 469 | 475 | }); |
| 476 | + | |
| 477 | + $('[name=xlBm_eq]', f).on('change', clearLpSelect); | |
| 478 | + //clearLpSelect | |
| 470 | 479 | })(); |
| 471 | 480 | </script> |
| 472 | 481 | </div> |
| 473 | 482 | \ No newline at end of file | ... | ... |
src/main/resources/static/pages/history_sch/edit/js/data_basic.js
0 → 100644
| 1 | +/* 基础数据管理模块 */ | |
| 2 | + | |
| 3 | +var gb_data_basic = (function () { | |
| 4 | + | |
| 5 | + var allPersonnel; | |
| 6 | + var stationRoutes, lineInformations, codeToLine={}; | |
| 7 | + var ep = EventProxy.create("all_personnel" | |
| 8 | + , function (all_personnel) { | |
| 9 | + allPersonnel = all_personnel; | |
| 10 | + //gb_main_ep.emitLater('data-basic'); | |
| 11 | + }); | |
| 12 | + | |
| 13 | +/* //线路标准信息 | |
| 14 | + gb_common.$get('/lineInformation/line/multi', {lineCodes: line_idx}, function (rs) { | |
| 15 | + var informations = {}; | |
| 16 | + $.each(rs, function () { | |
| 17 | + informations[this.line.lineCode] = this; | |
| 18 | + delete this['line']; | |
| 19 | + }); | |
| 20 | + ep.emit('lineInformations', informations); | |
| 21 | + });*/ | |
| 22 | + | |
| 23 | + //人员信息 | |
| 24 | + loadAllPersonnel(function (data) { | |
| 25 | + ep.emit('all_personnel', data); | |
| 26 | + }); | |
| 27 | + function loadAllPersonnel(cb) { | |
| 28 | + $.get('/personnel/all_py', function (rs) { | |
| 29 | + //转换成自动补全组件需要的数据 | |
| 30 | + var data = [], code; | |
| 31 | + for(var i =0, p; p = rs[i++];){ | |
| 32 | + code = p['workId'].indexOf('-')!=-1?p['workId'].split('-')[1]:p['workId']; | |
| 33 | + data.push({ | |
| 34 | + value: code + '/' + p.name, | |
| 35 | + fullChars: p.fullChars.toUpperCase(), | |
| 36 | + camelChars: p.camelChars.toUpperCase() | |
| 37 | + }); | |
| 38 | + } | |
| 39 | + cb && cb(data); | |
| 40 | + }); | |
| 41 | + } | |
| 42 | + | |
| 43 | + var carparks = {}; | |
| 44 | + //停车场数据 | |
| 45 | + gb_common.$get('/realMap/carParkSpatialData', {}, function (rs) { | |
| 46 | + rs.list.sort(function (a, b) { | |
| 47 | + return a.parkName.localeCompare(b.parkName); | |
| 48 | + }); | |
| 49 | + $.each(rs.list, function () { | |
| 50 | + carparks[this.parkCode] = this; | |
| 51 | + }); | |
| 52 | + }); | |
| 53 | + | |
| 54 | + //车辆数据 | |
| 55 | + var carsArray; | |
| 56 | + $.get('/basic/cars?t=' + Math.random(), function (rs) { | |
| 57 | + carsArray = rs; | |
| 58 | + }); | |
| 59 | + | |
| 60 | + var getCarparkByCode = function (code) { | |
| 61 | + return carparks[code]; | |
| 62 | + }; | |
| 63 | + | |
| 64 | + //line code to name | |
| 65 | + $.get('/basic/lineCode2Name', function (rs) { | |
| 66 | + ep.emit('lineCode2Name', rs); | |
| 67 | + }); | |
| 68 | + | |
| 69 | + var getLineInformation = function (lineCode) { | |
| 70 | + return lineInformations[lineCode]; | |
| 71 | + }; | |
| 72 | + | |
| 73 | + var stationRouteSort = function (a, b) { | |
| 74 | + return a.stationRouteCode - b.stationRouteCode; | |
| 75 | + }; | |
| 76 | + | |
| 77 | + function findLineByCodes(codeArr) { | |
| 78 | + var rs = []; | |
| 79 | + $.each(codeArr, function () { | |
| 80 | + rs.push(codeToLine[this]); | |
| 81 | + }); | |
| 82 | + return rs; | |
| 83 | + } | |
| 84 | + | |
| 85 | + return { | |
| 86 | + getLineInformation: getLineInformation, | |
| 87 | + allInformations: function () { | |
| 88 | + return {}; | |
| 89 | + }, | |
| 90 | + allPersonnel: function () { | |
| 91 | + return allPersonnel; | |
| 92 | + }, | |
| 93 | + getSvgAttr: function (lineCode) { | |
| 94 | + return svgAttrs[lineCode]; | |
| 95 | + }, | |
| 96 | + //刷新员工信息 | |
| 97 | + refreshAllPersonnel: function (cb) { | |
| 98 | + loadAllPersonnel(function (data) { | |
| 99 | + allPersonnel = data; | |
| 100 | + cb && cb(); | |
| 101 | + }); | |
| 102 | + }, | |
| 103 | + carsArray: function () { | |
| 104 | + return carsArray; | |
| 105 | + }, | |
| 106 | + simpleParksArray: function () { | |
| 107 | + var map = {}; | |
| 108 | + for(var code in carparks) | |
| 109 | + map[code] = carparks[code].parkName; | |
| 110 | + return map; | |
| 111 | + }, | |
| 112 | + getLineInformation: getLineInformation, | |
| 113 | + allInformations: function () { | |
| 114 | + return lineInformations; | |
| 115 | + }, | |
| 116 | + stationRoutes: function (lineCode) { | |
| 117 | + return stationRoutes[lineCode] | |
| 118 | + }, | |
| 119 | + remarksMapps: function () { | |
| 120 | + return ""; | |
| 121 | + }, | |
| 122 | + findLineByCodes: findLineByCodes, | |
| 123 | + //初始化依赖数据 | |
| 124 | + initData: function (lineCode) { | |
| 125 | + var ep = EventProxy.create("stationRoutes", "lineInformations", "codeToLineMap", function (routes, informations, _codeToLine) { | |
| 126 | + stationRoutes = routes; | |
| 127 | + lineInformations = informations; | |
| 128 | + codeToLine[_codeToLine.lineCode] = _codeToLine; | |
| 129 | + }); | |
| 130 | + | |
| 131 | + //站点路由 | |
| 132 | + gb_common.$get('/stationroute/multiLine', {lineIds: lineCode}, function (rs) { | |
| 133 | + var list = rs.list; | |
| 134 | + var routeData = gb_common.groupBy(list, 'lineCode'); | |
| 135 | + //排序 | |
| 136 | + for (var lineCode in routeData) { | |
| 137 | + routeData[lineCode].sort(stationRouteSort); | |
| 138 | + } | |
| 139 | + ep.emitLater('stationRoutes', routeData); | |
| 140 | + }); | |
| 141 | + | |
| 142 | + //线路标准信息 | |
| 143 | + gb_common.$get('/lineInformation/line/multi', {lineCodes: lineCode}, function (rs) { | |
| 144 | + var _informations = {}; | |
| 145 | + $.each(rs, function () { | |
| 146 | + _informations[this.line.lineCode] = this; | |
| 147 | + delete this['line']; | |
| 148 | + }); | |
| 149 | + ep.emitLater('lineInformations', _informations); | |
| 150 | + }); | |
| 151 | + | |
| 152 | + //线路基础信息 | |
| 153 | + gb_common.$get('/line/' + lineCode, {}, function (rs) { | |
| 154 | + ep.emitLater('codeToLineMap', rs); | |
| 155 | + }); | |
| 156 | + } | |
| 157 | + }; | |
| 158 | +})(); | ... | ... |
src/main/resources/static/pages/history_sch/edit/main_page.html
| ... | ... | @@ -17,6 +17,8 @@ |
| 17 | 17 | <link rel="stylesheet" href="/pages/history_sch/edit/css/main.css" /> |
| 18 | 18 | <!-- north style --> |
| 19 | 19 | <link rel="stylesheet" href="/real_control_v2/css/north.css" merge="custom_style"/> |
| 20 | + <!-- line style --> | |
| 21 | + <link rel="stylesheet" href="/real_control_v2/css/line_schedule.css" merge="custom_style"/> | |
| 20 | 22 | |
| 21 | 23 | <!-- custom table --> |
| 22 | 24 | <link rel="stylesheet" href="/real_control_v2/css/ct_table.css" merge="custom_style"/> |
| ... | ... | @@ -33,6 +35,10 @@ |
| 33 | 35 | cursor: default; |
| 34 | 36 | user-select: none; |
| 35 | 37 | } |
| 38 | + .uk-modal.ct_move_modal .uk-modal-dialog { | |
| 39 | + position: relative !important; | |
| 40 | + margin: 50px auto !important; | |
| 41 | + } | |
| 36 | 42 | </style> |
| 37 | 43 | </head> |
| 38 | 44 | |
| ... | ... | @@ -63,8 +69,6 @@ |
| 63 | 69 | <script src="/assets/js/d3.min.js"></script> |
| 64 | 70 | <!-- EventProxy --> |
| 65 | 71 | <script src="/assets/js/eventproxy.js"></script> |
| 66 | -<!-- main js --> | |
| 67 | -<script src="/real_control_v2/js/main.js"></script> | |
| 68 | 72 | <!-- uikit core --> |
| 69 | 73 | <script src="/real_control_v2/assets/plugins/uikit-2.27.1/uikit.min.js" merge="uikit_js"></script> |
| 70 | 74 | <script src="/real_control_v2/assets/plugins/uikit-2.27.1/components/notify.min.js" merge="uikit_js"></script> |
| ... | ... | @@ -95,7 +99,10 @@ |
| 95 | 99 | <!-- custom table js --> |
| 96 | 100 | <script src="/real_control_v2/js/utils/ct_table.js" merge="custom_js"></script> |
| 97 | 101 | <script src="/pages/history_sch/edit/js/modal_extend.js" merge="custom_js"></script> |
| 98 | - | |
| 102 | +<!-- 字典相关 --> | |
| 103 | +<script src="/assets/js/dictionary.js" merge="custom_js"></script> | |
| 104 | +<!-- 数据 --> | |
| 105 | +<script src="/pages/history_sch/edit/js/data_basic.js" merge="custom_js"></script> | |
| 99 | 106 | <script> |
| 100 | 107 | |
| 101 | 108 | (function () { |
| ... | ... | @@ -104,6 +111,39 @@ |
| 104 | 111 | bgclose: false |
| 105 | 112 | }); |
| 106 | 113 | })(); |
| 114 | + | |
| 115 | + var notify_err = function (t) { | |
| 116 | + UIkit.notify("<i class='uk-icon-times'></i> " + t, { | |
| 117 | + status: 'danger' | |
| 118 | + }); | |
| 119 | + }; | |
| 120 | + | |
| 121 | + var gb_form_validation_opts = { | |
| 122 | + framework: 'uikit', | |
| 123 | + locale: 'zh_CN', | |
| 124 | + icon: { | |
| 125 | + valid: 'uk-icon-check', | |
| 126 | + invalid: 'uk-icon-times', | |
| 127 | + validating: 'uk-icon-refresh' | |
| 128 | + } | |
| 129 | + }; | |
| 130 | + | |
| 131 | + var disabled_submit_btn = function (form) { | |
| 132 | + var subBtn = $('button[type=submit]', form); | |
| 133 | + if (subBtn) { | |
| 134 | + subBtn.addClass('disabled').attr('disabled', 'disabled'); | |
| 135 | + } | |
| 136 | + }; | |
| 137 | + | |
| 138 | + var notify_succ = function (t) { | |
| 139 | + UIkit.notify("<i class='uk-icon-check'></i> " + t, { | |
| 140 | + status: 'success' | |
| 141 | + }); | |
| 142 | + }; | |
| 143 | + | |
| 144 | + var hide_wait_modal = function () { | |
| 145 | + UIkit.modal('#gb_wait_modal').hide(); | |
| 146 | + }; | |
| 107 | 147 | </script> |
| 108 | 148 | </body> |
| 109 | 149 | </html> |
| 110 | 150 | \ No newline at end of file | ... | ... |
src/main/resources/static/pages/summary/destory_sch_detail/d_s_d_wrap.html
0 → 100644
src/main/resources/static/pages/summary/destory_sch_detail/list.html
0 → 100644
| 1 | +<!DOCTYPE html> | |
| 2 | +<html lang="zh-cn"> | |
| 3 | + | |
| 4 | +<head> | |
| 5 | + <meta charset="UTF-8"> | |
| 6 | + <link rel="stylesheet" href="/assets/plugins/uk3.0/uikit.min.css"/> | |
| 7 | + <link rel="stylesheet" href="/real_control_v2/assets/plugins/perfect-scrollbar/perfect-scrollbar.css" /> | |
| 8 | + <!-- flatpickr --> | |
| 9 | + <link rel="stylesheet" href="/real_control_v2/assets/plugins/flatpickr/flatpickr.min.css"> | |
| 10 | + <style> | |
| 11 | + html,body{ | |
| 12 | + height: 100%; | |
| 13 | + } | |
| 14 | + .ct_page{ | |
| 15 | + padding: 25px 15px; | |
| 16 | + height: 100%; | |
| 17 | + height: calc(100% - 50px); | |
| 18 | + } | |
| 19 | + | |
| 20 | + .ct_cont{ | |
| 21 | + height: calc(100% - 35px); | |
| 22 | + } | |
| 23 | + | |
| 24 | + .ct_cont>div>div.uk-card{ | |
| 25 | + height: 99%; | |
| 26 | + } | |
| 27 | + | |
| 28 | + .loading{ | |
| 29 | + height: 100%; | |
| 30 | + text-align: center; | |
| 31 | + } | |
| 32 | + .loading .uk-spinner{ | |
| 33 | + margin-top: 200px; | |
| 34 | + } | |
| 35 | + .loading circle{ | |
| 36 | + stroke: red; | |
| 37 | + } | |
| 38 | + | |
| 39 | + .ps-container > .ps-scrollbar-x-rail, .ps-container > .ps-scrollbar-y-rail{ | |
| 40 | + opacity: 0.6 !important; | |
| 41 | + padding: 0 !important; | |
| 42 | + } | |
| 43 | + | |
| 44 | + .ct_destroy_sch_table_width th:nth-of-type(1),.ct_destroy_sch_table_width td:nth-of-type(1){ | |
| 45 | + width: 9%; | |
| 46 | + } | |
| 47 | + .ct_destroy_sch_table_width th:nth-of-type(2),.ct_destroy_sch_table_width td:nth-of-type(2){ | |
| 48 | + width: 9%; | |
| 49 | + } | |
| 50 | + .ct_destroy_sch_table_width th:nth-of-type(3),.ct_destroy_sch_table_width td:nth-of-type(3){ | |
| 51 | + width: 9%; | |
| 52 | + } | |
| 53 | + .ct_destroy_sch_table_width th:nth-of-type(4),.ct_destroy_sch_table_width td:nth-of-type(4){ | |
| 54 | + width: 9%; | |
| 55 | + } | |
| 56 | + .ct_destroy_sch_table_width th:nth-of-type(5),.ct_destroy_sch_table_width td:nth-of-type(5){ | |
| 57 | + width: 9%; | |
| 58 | + } | |
| 59 | + .ct_destroy_sch_table_width th:nth-of-type(6),.ct_destroy_sch_table_width td:nth-of-type(6){ | |
| 60 | + width: 9%; | |
| 61 | + } | |
| 62 | + .ct_destroy_sch_table_width th:nth-of-type(7),.ct_destroy_sch_table_width td:nth-of-type(7){ | |
| 63 | + width: 8%; | |
| 64 | + } | |
| 65 | + .ct_destroy_sch_table_width th:nth-of-type(8),.ct_destroy_sch_table_width td:nth-of-type(8){ | |
| 66 | + width: 8%; | |
| 67 | + } | |
| 68 | + .ct_destroy_sch_table_width th:nth-of-type(9),.ct_destroy_sch_table_width td:nth-of-type(9){ | |
| 69 | + width: 8%; | |
| 70 | + } | |
| 71 | + .ct_destroy_sch_table_width th:nth-of-type(10),.ct_destroy_sch_table_width td:nth-of-type(10){ | |
| 72 | + } | |
| 73 | + | |
| 74 | + .ct_search_form_wrap{ | |
| 75 | + border-bottom: 1px solid #e5e5e5; | |
| 76 | + padding: 10px 0 25px 10px; | |
| 77 | + } | |
| 78 | + .ct_search_form_wrap .ct_field{ | |
| 79 | + display: inline-block; | |
| 80 | + margin: 0 5px; | |
| 81 | + } | |
| 82 | + | |
| 83 | + .ct_search_form_wrap .ct_field label{ | |
| 84 | + font-size: 14px; | |
| 85 | + } | |
| 86 | + | |
| 87 | + .ct_search_form_wrap .ct_field input{ | |
| 88 | + width: 110px; | |
| 89 | + } | |
| 90 | + | |
| 91 | + .ct_search_form_wrap .ct_field select{ | |
| 92 | + width: auto; | |
| 93 | + min-width: 100px; | |
| 94 | + } | |
| 95 | + | |
| 96 | + .ct_search_form_wrap .uk-button{ | |
| 97 | + padding: 0 14px; | |
| 98 | + } | |
| 99 | + | |
| 100 | + .ct_search_form_wrap .uk-button i{ | |
| 101 | + vertical-align: middle; | |
| 102 | + margin-top: -2px; | |
| 103 | + margin-right: 7px; | |
| 104 | + } | |
| 105 | + | |
| 106 | + .ct_table_wrap{ | |
| 107 | + font-size: 14px; | |
| 108 | + height: calc(100% - 77px); | |
| 109 | + } | |
| 110 | + | |
| 111 | + .t_body_wrap{ | |
| 112 | + height: calc(100% - 41px); | |
| 113 | + overflow: auto; | |
| 114 | + position: relative; | |
| 115 | + } | |
| 116 | + | |
| 117 | + .ct_field.ct_field_bottom{ | |
| 118 | + vertical-align: bottom; | |
| 119 | + font-size: 12px; | |
| 120 | + margin-left: 0; | |
| 121 | + } | |
| 122 | + </style> | |
| 123 | +</head> | |
| 124 | + | |
| 125 | +<body> | |
| 126 | +<div class="loading"> | |
| 127 | + <div uk-spinner></div> | |
| 128 | +</div> | |
| 129 | +<div class="ct_page" style="display: none;"> | |
| 130 | + <h3 class="uk-heading-line uk-heading-bullet"><span>烂班明细统计</span></h3> | |
| 131 | + <div class="ct_cont" > | |
| 132 | + <div class="ct_search_form_wrap"> | |
| 133 | + <form> | |
| 134 | + <div class="ct_field"> | |
| 135 | + <label>公司: | |
| 136 | + <select class="uk-select" name="gsBm_eq"> | |
| 137 | + </select> | |
| 138 | + </label> | |
| 139 | + </div> | |
| 140 | + <div class="ct_field"> | |
| 141 | + <label>分公司: | |
| 142 | + <select class="uk-select" name="fgsBm_eq"> | |
| 143 | + </select> | |
| 144 | + </label> | |
| 145 | + </div> | |
| 146 | + <div class="ct_field"> | |
| 147 | + <label>线路: | |
| 148 | + <select class="uk-select" name="lineCode_eq"> | |
| 149 | + </select> | |
| 150 | + </label> | |
| 151 | + </div> | |
| 152 | + <div class="ct_field"> | |
| 153 | + <label>日期: | |
| 154 | + <input class="uk-input" name="rq" style="width: 220px;"> | |
| 155 | + </label> | |
| 156 | + </div> | |
| 157 | + <div class="ct_field"> | |
| 158 | + <button class="uk-button uk-button-primary search"><i uk-icon="icon: search"></i>搜索</button> | |
| 159 | + </div> | |
| 160 | + <div class="ct_field ct_field_bottom"> | |
| 161 | + <span uk-icon="icon: question" title="导出功能先等等" uk-tooltip="pos: bottom"></span> | |
| 162 | + </div> | |
| 163 | + </form> | |
| 164 | + </div> | |
| 165 | + <div class="ct_table_wrap day"> | |
| 166 | + <table class="uk-table uk-table-small ct_destroy_sch_table_width" style="margin-bottom: 0;"> | |
| 167 | + <thead> | |
| 168 | + <tr> | |
| 169 | + <th>日期</th> | |
| 170 | + <th>线路</th> | |
| 171 | + <th>车号</th> | |
| 172 | + <th>司机</th> | |
| 173 | + <th>售票员</th> | |
| 174 | + <th>原因</th> | |
| 175 | + <th>班次</th> | |
| 176 | + <th>烂班公里</th> | |
| 177 | + <th>烂班时间</th> | |
| 178 | + <th>备注</th> | |
| 179 | + </tr> | |
| 180 | + </thead> | |
| 181 | + </table> | |
| 182 | + <div class="t_body_wrap"> | |
| 183 | + <table class="uk-table uk-table-divider uk-table-hover uk-table-small ct_destroy_sch_table ct_destroy_sch_table_width"> | |
| 184 | + <tbody> | |
| 185 | + </tbody> | |
| 186 | + </table> | |
| 187 | + </div> | |
| 188 | + </div> | |
| 189 | + </div> | |
| 190 | +</div> | |
| 191 | + | |
| 192 | +<script id="destroy_sch_list_temp" type="text/html"> | |
| 193 | + {{each list as obj i}} | |
| 194 | + <tr> | |
| 195 | + <td>{{obj.rq}}</td> | |
| 196 | + <td>{{obj.lineName}}</td> | |
| 197 | + <td>{{obj.nbbm}}</td> | |
| 198 | + <td>{{obj.jGh}}</td> | |
| 199 | + <td>{{obj.sGh}}</td> | |
| 200 | + <td>{{obj.reason}}</td> | |
| 201 | + <td><a>{{obj.size}}</a></td> | |
| 202 | + <td>{{obj.mileage}}</td> | |
| 203 | + <td>{{obj.timeStr}}</td> | |
| 204 | + <td>{{obj.remark}}</td> | |
| 205 | + </tr> | |
| 206 | + {{/each}} | |
| 207 | +</script> | |
| 208 | + | |
| 209 | +<script src="/metronic_v4.5.4/plugins/jquery.min.js"></script> | |
| 210 | +<script src="/assets/plugins/uk3.0/uikit.min.js"></script> | |
| 211 | +<script src="/assets/plugins/uk3.0/uikit-icons.min.js"></script> | |
| 212 | +<script src="/real_control_v2/assets/plugins/perfect-scrollbar/perfect-scrollbar.jquery.js" ></script> | |
| 213 | +<!-- EventProxy --> | |
| 214 | +<script src="/assets/js/eventproxy.js"></script> | |
| 215 | +<!-- art-template 模版引擎 --> | |
| 216 | +<script src="/assets/plugins/template.js"></script> | |
| 217 | +<script src="/real_control_v2/assets/plugins/moment/moment.min.js"></script> | |
| 218 | +<!-- jquery.serializejson JSON序列化插件 --> | |
| 219 | +<script src="/assets/plugins/jquery.serializejson.js" merge="plugins"></script> | |
| 220 | +<!-- flatpickr --> | |
| 221 | +<script src="/real_control_v2/assets/plugins/flatpickr/flatpickr.min.js" ></script> | |
| 222 | +<script src="/real_control_v2/assets/plugins/flatpickr/l10n/zh.js" ></script> | |
| 223 | +<script> | |
| 224 | + | |
| 225 | + var f = $('form', ''); | |
| 226 | + //var page=0, pageSize=120; | |
| 227 | + | |
| 228 | + var ep = EventProxy.create('query_comps', 'query_lines', function () { | |
| 229 | + $('[name=gsBm_eq]', f).trigger('change');//公司change | |
| 230 | + query(); | |
| 231 | + | |
| 232 | + $('.loading').remove(); | |
| 233 | + $('.ct_page').show(); | |
| 234 | + }); | |
| 235 | + | |
| 236 | + //点击搜索 | |
| 237 | + $('button.search', f).on('click', query); | |
| 238 | + | |
| 239 | + function query() { | |
| 240 | + $('button.search', f).attr('disabled', 'disabled'); | |
| 241 | + var data = f.serializeJSON(); | |
| 242 | + $('.ct_destroy_sch_table tbody').html(''); | |
| 243 | + //开始结束时间 | |
| 244 | + data.rq_ge = data.rq.substr(0, 10); | |
| 245 | + data.rq_le = data.rq.substr(13); | |
| 246 | + data.order='t'; | |
| 247 | + delete data.rq; | |
| 248 | + | |
| 249 | + $.get('/summary/destroy_detail/all', data, function (rs) { | |
| 250 | + $('button.search', f).removeAttr('disabled'); | |
| 251 | + if(!rs || rs.length==0) | |
| 252 | + return UIkit.notification('没有搜索到相关数据!!', 'danger'); | |
| 253 | + $.each(rs, function () { | |
| 254 | + this.timeStr=moment(this.t).format('HH:mm') | |
| 255 | + }); | |
| 256 | + | |
| 257 | + var htmlStr = template('destroy_sch_list_temp', {list: rs}); | |
| 258 | + $('.ct_destroy_sch_table tbody').html(htmlStr); | |
| 259 | + $('.t_body_wrap').perfectScrollbar('update'); | |
| 260 | + }); | |
| 261 | + } | |
| 262 | + | |
| 263 | + | |
| 264 | + //日期选择框 | |
| 265 | + var fs='YYYY-MM-DD' | |
| 266 | + , ets=moment().subtract(1, 'days').format(fs) | |
| 267 | + , sts=moment().subtract(3, 'days').format(fs); | |
| 268 | + flatpickr('.ct_search_form_wrap [name=rq]', { | |
| 269 | + mode: "range", dateFormat: "Y-m-d","locale": "zh", defaultDate: [sts, ets] | |
| 270 | + }); | |
| 271 | + var comps; | |
| 272 | + //构建公司级联下拉框 | |
| 273 | + $.get('/user/companyData', function (rs) { | |
| 274 | + comps = rs; | |
| 275 | + var opts = ''; | |
| 276 | + for(var i=0,obj;obj=comps[i++];){ | |
| 277 | + opts += '<option value="'+obj.companyCode+'">'+obj.companyName+'</option>'; | |
| 278 | + } | |
| 279 | + $('[name=gsBm_eq]', f).html(opts); | |
| 280 | + ep.emit('query_comps'); | |
| 281 | + }); | |
| 282 | + | |
| 283 | + var lineMapps; | |
| 284 | + //加载线路信息 | |
| 285 | + $.get('/line/all', {'destroy_eq': 0}, function (rs) { | |
| 286 | + rs.sort(function (a, b) { | |
| 287 | + return a.name.localeCompare(b.name); | |
| 288 | + }); | |
| 289 | + lineMapps={}; | |
| 290 | + var k; | |
| 291 | + $.each(rs, function () { | |
| 292 | + k = this.company+'_'+this.brancheCompany; | |
| 293 | + if(!lineMapps[k]) | |
| 294 | + lineMapps[k]=[]; | |
| 295 | + lineMapps[k].push(this); | |
| 296 | + }); | |
| 297 | + | |
| 298 | + ep.emit('query_lines'); | |
| 299 | + }); | |
| 300 | + | |
| 301 | + $('[name=gsBm_eq]', f).on('change', function () { | |
| 302 | + var code = $(this).val(), subs=[]; | |
| 303 | + $.each(comps, function () { | |
| 304 | + if(this.companyCode==code) | |
| 305 | + subs=this.children; | |
| 306 | + }); | |
| 307 | + | |
| 308 | + var opts=''; | |
| 309 | + $.each(subs, function () { | |
| 310 | + opts += '<option value="'+this.code+'">'+this.name+'</option>'; | |
| 311 | + }); | |
| 312 | + $('[name=fgsBm_eq]', f).html(opts).trigger('change'); | |
| 313 | + }); | |
| 314 | + | |
| 315 | + $('[name=fgsBm_eq]', f).on('change', function () { | |
| 316 | + var k = $('[name=gsBm_eq]', f).val() + '_' + $(this).val(); | |
| 317 | + var array = lineMapps[k]; | |
| 318 | + var opts = '<option value="">全部</option>'; | |
| 319 | + if(array){ | |
| 320 | + $.each(array, function () { | |
| 321 | + opts += '<option value="'+this.lineCode+'">'+this.name+'</option>'; | |
| 322 | + }); | |
| 323 | + } | |
| 324 | + $('[name=lineCode_eq]', f).html(opts); | |
| 325 | + }); | |
| 326 | + | |
| 327 | + // | |
| 328 | + //滚动条 | |
| 329 | + $('.t_body_wrap').perfectScrollbar({suppressScrollX: true}); | |
| 330 | + | |
| 331 | + $(document).on('submit', 'form', function () { | |
| 332 | + return false; | |
| 333 | + }); | |
| 334 | + | |
| 335 | +</script> | |
| 336 | +</body> | |
| 337 | +</html> | |
| 0 | 338 | \ No newline at end of file | ... | ... |
src/main/resources/static/pages/summary/excel/快慢误点报表.xls
No preview for this file type
src/main/resources/static/pages/summary/fast_and_slow/data.html
| ... | ... | @@ -18,24 +18,30 @@ |
| 18 | 18 | <div class="data_table_wrap head"> |
| 19 | 19 | <table cellspacing="1" class="data_table"> |
| 20 | 20 | <col /> |
| 21 | - <col width="14%"/> | |
| 22 | - <col width="4%"/> | |
| 23 | - <col width="6%"/> | |
| 24 | - <col width="6%"/> | |
| 25 | - <col width="6%"/> | |
| 26 | 21 | <col width="5%"/> |
| 27 | 22 | <col width="5%"/> |
| 28 | 23 | <col width="5%"/> |
| 24 | + <col width="13%"/> | |
| 25 | + <col width="4%"/> | |
| 29 | 26 | <col width="5%"/> |
| 30 | - <col width="6%"/> | |
| 31 | - <col width="6%"/> | |
| 32 | - <col width="6%"/> | |
| 33 | 27 | <col width="5%"/> |
| 34 | 28 | <col width="5%"/> |
| 29 | + <col width="4%"/> | |
| 30 | + <col width="4%"/> | |
| 31 | + <col width="4%"/> | |
| 32 | + <col width="4%"/> | |
| 35 | 33 | <col width="5%"/> |
| 36 | 34 | <col width="5%"/> |
| 35 | + <col width="5%"/> | |
| 36 | + <col width="4%"/> | |
| 37 | + <col width="4%"/> | |
| 38 | + <col width="4%"/> | |
| 39 | + <col width="4%"/> | |
| 37 | 40 | <tr> |
| 38 | 41 | <td rowspan="3">序号</td> |
| 42 | + <td rowspan="3">路牌</td> | |
| 43 | + <td rowspan="3">车辆</td> | |
| 44 | + <td rowspan="3">人员</td> | |
| 39 | 45 | <td rowspan="3">发车站点</td> |
| 40 | 46 | <td rowspan="3">方向</td> |
| 41 | 47 | <td colspan="7">发车时间</td> |
| ... | ... | @@ -70,25 +76,31 @@ |
| 70 | 76 | <div class="data_table_wrap data" id="table_{{k}}"> |
| 71 | 77 | <table cellspacing="1" class="data_table"> |
| 72 | 78 | <col /> |
| 73 | - <col width="14%"/> | |
| 74 | - <col width="4%"/> | |
| 75 | - <col width="6%"/> | |
| 76 | - <col width="6%"/> | |
| 77 | - <col width="6%"/> | |
| 78 | 79 | <col width="5%"/> |
| 79 | 80 | <col width="5%"/> |
| 80 | 81 | <col width="5%"/> |
| 82 | + <col width="13%"/> | |
| 83 | + <col width="4%"/> | |
| 81 | 84 | <col width="5%"/> |
| 82 | - <col width="6%"/> | |
| 83 | - <col width="6%"/> | |
| 84 | - <col width="6%"/> | |
| 85 | 85 | <col width="5%"/> |
| 86 | 86 | <col width="5%"/> |
| 87 | + <col width="4%"/> | |
| 88 | + <col width="4%"/> | |
| 89 | + <col width="4%"/> | |
| 90 | + <col width="4%"/> | |
| 87 | 91 | <col width="5%"/> |
| 88 | 92 | <col width="5%"/> |
| 93 | + <col width="5%"/> | |
| 94 | + <col width="4%"/> | |
| 95 | + <col width="4%"/> | |
| 96 | + <col width="4%"/> | |
| 97 | + <col width="4%"/> | |
| 89 | 98 | {{each listMap[k] as obj i}} |
| 90 | 99 | <tr> |
| 91 | 100 | <td>{{i+1}}</td> |
| 101 | + <td>{{obj.lpName}}</td> | |
| 102 | + <td>{{obj.nbbm}}</td> | |
| 103 | + <td>{{obj.jsy}}</td> | |
| 92 | 104 | <td>{{obj.stationName}}</td> |
| 93 | 105 | <td class="cell_dir_{{obj.upDown}}">{{obj.upDown==0?"上行":"下行"}}</td> |
| 94 | 106 | <td>{{obj.fcsj}}</td> |
| ... | ... | @@ -108,21 +120,21 @@ |
| 108 | 120 | </tr> |
| 109 | 121 | {{/each}} |
| 110 | 122 | <tr> |
| 111 | - <td rowspan="4">合计:</td> | |
| 112 | - <td colspan="8" class="count_col">发车:上行(计划快误点:<a class="c_c_0">{{countMap[k][0]['fast'][0]}}</a> 累计时间:<a class="c_c_0">{{timeCountMap[k][0]['fast'][0]}}</a> 待发快误点:<a class="c_c_0">{{countMap[k][0]['fast'][1]}}</a> 累计时间:<a class="c_c_0">{{timeCountMap[k][0]['fast'][1]}}</a>)</td> | |
| 113 | - <td colspan="8" class="count_col">发车:下行(计划快误点:<a class="c_c_1">{{countMap[k][1]['fast'][0]}}</a> 累计时间:<a class="c_c_1">{{timeCountMap[k][1]['fast'][0]}}</a> 待发快误点:<a class="c_c_1">{{countMap[k][1]['fast'][1]}}</a> 累计时间:<a class="c_c_1">{{timeCountMap[k][1]['fast'][1]}}</a>)</td> | |
| 123 | + <td rowspan="4" colspan="2">合计:</td> | |
| 124 | + <td colspan="9" class="count_col">发车:上行(计划快误点:<a class="c_c_0">{{countMap[k][0]['fast'][0]}}</a> 累计时间:<a class="c_c_0">{{timeCountMap[k][0]['fast'][0]}}</a> 待发快误点:<a class="c_c_0">{{countMap[k][0]['fast'][1]}}</a> 累计时间:<a class="c_c_0">{{timeCountMap[k][0]['fast'][1]}}</a>)</td> | |
| 125 | + <td colspan="9" class="count_col">发车:下行(计划快误点:<a class="c_c_1">{{countMap[k][1]['fast'][0]}}</a> 累计时间:<a class="c_c_1">{{timeCountMap[k][1]['fast'][0]}}</a> 待发快误点:<a class="c_c_1">{{countMap[k][1]['fast'][1]}}</a> 累计时间:<a class="c_c_1">{{timeCountMap[k][1]['fast'][1]}}</a>)</td> | |
| 114 | 126 | </tr> |
| 115 | 127 | <tr> |
| 116 | - <td colspan="8" class="count_col">发车:上行(计划慢误点:<a class="c_c_0">{{countMap[k][0]['slow'][0]}}</a> 累计时间:<a class="c_c_0">{{timeCountMap[k][0]['slow'][0]}}</a> 待发慢误点:<a class="c_c_0">{{countMap[k][0]['slow'][1]}}</a> 累计时间:<a class="c_c_0">{{timeCountMap[k][0]['slow'][1]}}</a>)</td> | |
| 117 | - <td colspan="8" class="count_col">发车:下行(计划慢误点:<a class="c_c_1">{{countMap[k][1]['slow'][0]}}</a> 累计时间:<a class="c_c_1">{{timeCountMap[k][1]['slow'][0]}}</a> 待发慢误点:<a class="c_c_1">{{countMap[k][1]['slow'][1]}}</a> 累计时间:<a class="c_c_1">{{timeCountMap[k][1]['slow'][1]}}</a>)</td> | |
| 128 | + <td colspan="9" class="count_col">发车:上行(计划慢误点:<a class="c_c_0">{{countMap[k][0]['slow'][0]}}</a> 累计时间:<a class="c_c_0">{{timeCountMap[k][0]['slow'][0]}}</a> 待发慢误点:<a class="c_c_0">{{countMap[k][0]['slow'][1]}}</a> 累计时间:<a class="c_c_0">{{timeCountMap[k][0]['slow'][1]}}</a>)</td> | |
| 129 | + <td colspan="9" class="count_col">发车:下行(计划慢误点:<a class="c_c_1">{{countMap[k][1]['slow'][0]}}</a> 累计时间:<a class="c_c_1">{{timeCountMap[k][1]['slow'][0]}}</a> 待发慢误点:<a class="c_c_1">{{countMap[k][1]['slow'][1]}}</a> 累计时间:<a class="c_c_1">{{timeCountMap[k][1]['slow'][1]}}</a>)</td> | |
| 118 | 130 | </tr> |
| 119 | 131 | <tr> |
| 120 | - <td colspan="8" class="count_col">到达:上行(计划快误点:<a class="c_c_0">{{countMap[k][0]['fast'][2]}}</a> 累计时间:<a class="c_c_0">{{timeCountMap[k][0]['fast'][2]}}</a> 待发快误点:<a class="c_c_0">{{countMap[k][0]['fast'][3]}}</a> 累计时间:<a class="c_c_0">{{timeCountMap[k][0]['fast'][3]}}</a>)</td> | |
| 121 | - <td colspan="8" class="count_col">到达:下行(计划快误点:<a class="c_c_1">{{countMap[k][1]['fast'][2]}}</a> 累计时间:<a class="c_c_1">{{timeCountMap[k][1]['fast'][2]}}</a> 待发快误点:<a class="c_c_1">{{countMap[k][1]['fast'][3]}}</a> 累计时间:<a class="c_c_1">{{timeCountMap[k][1]['fast'][3]}}</a>)</td> | |
| 132 | + <td colspan="9" class="count_col">到达:上行(计划快误点:<a class="c_c_0">{{countMap[k][0]['fast'][2]}}</a> 累计时间:<a class="c_c_0">{{timeCountMap[k][0]['fast'][2]}}</a> 待发快误点:<a class="c_c_0">{{countMap[k][0]['fast'][3]}}</a> 累计时间:<a class="c_c_0">{{timeCountMap[k][0]['fast'][3]}}</a>)</td> | |
| 133 | + <td colspan="9" class="count_col">到达:下行(计划快误点:<a class="c_c_1">{{countMap[k][1]['fast'][2]}}</a> 累计时间:<a class="c_c_1">{{timeCountMap[k][1]['fast'][2]}}</a> 待发快误点:<a class="c_c_1">{{countMap[k][1]['fast'][3]}}</a> 累计时间:<a class="c_c_1">{{timeCountMap[k][1]['fast'][3]}}</a>)</td> | |
| 122 | 134 | </tr> |
| 123 | 135 | <tr> |
| 124 | - <td colspan="8" class="count_col">到达:上行(计划慢误点:<a class="c_c_0">{{countMap[k][0]['slow'][2]}}</a> 累计时间:<a class="c_c_0">{{timeCountMap[k][0]['slow'][2]}}</a> 待发慢误点:<a class="c_c_0">{{countMap[k][0]['slow'][3]}}</a> 累计时间:<a class="c_c_0">{{timeCountMap[k][0]['slow'][3]}}</a>)</td> | |
| 125 | - <td colspan="8" class="count_col">到达:下行(计划慢误点:<a class="c_c_1">{{countMap[k][1]['slow'][2]}}</a> 累计时间:<a class="c_c_1">{{timeCountMap[k][1]['slow'][2]}}</a> 待发慢误点:<a class="c_c_1">{{countMap[k][1]['slow'][3]}}</a> 累计时间:<a class="c_c_1">{{timeCountMap[k][1]['slow'][3]}}</a>)</td> | |
| 136 | + <td colspan="9" class="count_col">到达:上行(计划慢误点:<a class="c_c_0">{{countMap[k][0]['slow'][2]}}</a> 累计时间:<a class="c_c_0">{{timeCountMap[k][0]['slow'][2]}}</a> 待发慢误点:<a class="c_c_0">{{countMap[k][0]['slow'][3]}}</a> 累计时间:<a class="c_c_0">{{timeCountMap[k][0]['slow'][3]}}</a>)</td> | |
| 137 | + <td colspan="9" class="count_col">到达:下行(计划慢误点:<a class="c_c_1">{{countMap[k][1]['slow'][2]}}</a> 累计时间:<a class="c_c_1">{{timeCountMap[k][1]['slow'][2]}}</a> 待发慢误点:<a class="c_c_1">{{countMap[k][1]['slow'][3]}}</a> 累计时间:<a class="c_c_1">{{timeCountMap[k][1]['slow'][3]}}</a>)</td> | |
| 126 | 138 | </tr> |
| 127 | 139 | </table> |
| 128 | 140 | </div> | ... | ... |
src/main/resources/static/pages/summary/fast_and_slow/main.html
| ... | ... | @@ -101,10 +101,10 @@ |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | .ct_right_tables{ |
| 104 | - width: calc(100% - 220px); | |
| 104 | + width: calc(100% - 160px); | |
| 105 | 105 | display: inline-block; |
| 106 | 106 | margin-left: 152px; |
| 107 | - padding: 25px; | |
| 107 | + padding: 25px 0; | |
| 108 | 108 | margin-bottom: 18px; |
| 109 | 109 | } |
| 110 | 110 | |
| ... | ... | @@ -157,7 +157,7 @@ |
| 157 | 157 | |
| 158 | 158 | .data_table_wrap.head{ |
| 159 | 159 | position: fixed; |
| 160 | - width: calc(100% - 300px); | |
| 160 | + width: calc(100% - 190px); | |
| 161 | 161 | top: 155px; |
| 162 | 162 | padding-top: 25px; |
| 163 | 163 | background: #fff; | ... | ... |
src/main/resources/static/pages/summary/work_hours/list.html
| ... | ... | @@ -262,8 +262,8 @@ |
| 262 | 262 | } |
| 263 | 263 | |
| 264 | 264 | //日期选择器 |
| 265 | - $('[name=rq_eq]', f).val('2017-10-23'); | |
| 266 | - flatpickr('.ct_search_form_wrap [name=rq_eq]', {"locale": "zh", maxDate: '2017-10-23', minDate: '2017-07-01'}); | |
| 265 | + $('[name=rq_eq]', f).val(moment().subtract(2,'days').format('YYYY-MM-DD')); | |
| 266 | + flatpickr('.ct_search_form_wrap [name=rq_eq]', {"locale": "zh"}); | |
| 267 | 267 | |
| 268 | 268 | var comps; |
| 269 | 269 | //构建公司级联下拉框 | ... | ... |
src/main/resources/static/real_control_v2/fragments/north/nav/history_sch/editor.html
| ... | ... | @@ -186,9 +186,9 @@ |
| 186 | 186 | <a class="uk-button uk-button-success"><i class="uk-icon-pencil-square-o"></i> 添加子任务 <i class="uk-icon-caret-down"></i></a> |
| 187 | 187 | <div class="uk-dropdown" style="text-align: left;"> |
| 188 | 188 | <ul class="uk-nav uk-nav-dropdown child_task_list"> |
| 189 | - <li data-method="add_oil"><a>空驶进出场</a></li> | |
| 189 | + <!--<li data-method="add_oil"><a>空驶进出场</a></li> | |
| 190 | 190 | <li data-method="in_park"><a>进场</a></li> |
| 191 | - <li data-method="out_park"><a>出场</a></li> | |
| 191 | + <li data-method="out_park"><a>出场</a></li>--> | |
| 192 | 192 | <li data-method="other"><a>自定义</a></li> |
| 193 | 193 | </ul> |
| 194 | 194 | </div> | ... | ... |
src/main/resources/static/real_control_v2/fragments/north/nav/history_sch_maintain.html
| ... | ... | @@ -126,20 +126,6 @@ |
| 126 | 126 | $.each(rs, function (i) { |
| 127 | 127 | tsStr += '<li ' + (i == 0 ? 'class="uk-active"' : '') + '><a>' + this + '</a></li>'; |
| 128 | 128 | }); |
| 129 | - //临时放开闵行39路的日期权限 | |
| 130 | - /*if(gb_data_basic.line_idx=='100001'){ | |
| 131 | - var st = moment('2017-08-29', 'YYYY-MM-DD'); | |
| 132 | - var et = moment().format('YYYY-MM-DD'); | |
| 133 | - tsStr = ''; | |
| 134 | - while(true){ | |
| 135 | - var rq = st.format('YYYY-MM-DD'); | |
| 136 | - tsStr += '<li ' + (rq == et ? 'class="uk-active"' : '') + '><a>' + rq + '</a></li>'; | |
| 137 | - st.add(1, 'days'); | |
| 138 | - | |
| 139 | - if(rq == et) | |
| 140 | - break; | |
| 141 | - } | |
| 142 | - }*/ | |
| 143 | 129 | |
| 144 | 130 | $('.h-s-time', modal).html(tsStr); |
| 145 | 131 | ... | ... |
src/main/resources/static/real_control_v2/fragments/north/nav/line_config/line_config.html
| ... | ... | @@ -20,6 +20,7 @@ |
| 20 | 20 | <div class="uk-accordion-content"> |
| 21 | 21 | <ul class="uk-list uk-list-line" id="smooth_scroll_list"> |
| 22 | 22 | <li><a data-href="#schedule_reload_time_panel" >班次更新时间</a></li> |
| 23 | + <li><a data-href="#schedule_auto_exec_panel" >班次自动执行</a></li> | |
| 23 | 24 | <li><a data-href="#out_time_type_panel" >出场时间类型</a></li> |
| 24 | 25 | <li><a data-href="#in_park_source_panel" >原线路回场</a></li> |
| 25 | 26 | <li><a data-href="#buffer_inOut_diff_panel">到站缓冲区设置</a></li> | ... | ... |
src/main/resources/static/real_control_v2/fragments/north/nav/line_config/line_config_entity.html
| ... | ... | @@ -28,6 +28,34 @@ |
| 28 | 28 | <button class="uk-button uk-button-mini" disabled>加载历史GPS恢复到离站</button> |
| 29 | 29 | </div> |
| 30 | 30 | </div> |
| 31 | + | |
| 32 | + <div id="schedule_auto_exec_panel"> | |
| 33 | + <h2 class="btn_title_line"> | |
| 34 | + <a class="uk-link-reset">班次自动执行</a> | |
| 35 | + </h2> | |
| 36 | + <div> | |
| 37 | + <div> | |
| 38 | + <label> | |
| 39 | + <input type="checkbox" id="enableAutoExec"> 启用自动班次执行 | |
| 40 | + </label> | |
| 41 | + </div> | |
| 42 | + <ul class="uk-list"> | |
| 43 | + <li> | |
| 44 | + <small style="color: red;font-size: 14px;">1、 你必须只应该对【无固定走向且无人监管的线路】启用此项。</small> | |
| 45 | + </li> | |
| 46 | + <li> | |
| 47 | + <small>2、启用该选项后,系统将不再依赖相关定位信号来执行班次。</small> | |
| 48 | + </li> | |
| 49 | + <li> | |
| 50 | + <small>3、系统将在合适的时候自动填入实发实达时间,以完善报表。</small> | |
| 51 | + </li> | |
| 52 | + <li> | |
| 53 | + <small>4、系统不会下发班次调度指令。</small> | |
| 54 | + </li> | |
| 55 | + </ul> | |
| 56 | + </div> | |
| 57 | + </div> | |
| 58 | + | |
| 31 | 59 | <div id="out_time_type_panel"> |
| 32 | 60 | <h2 class="btn_title_line"> |
| 33 | 61 | <a class="uk-link-reset">出场时间类型</a> |
| ... | ... | @@ -165,6 +193,7 @@ |
| 165 | 193 | $('#clearRealScheduleBtn', wrap).on('click', clearRealSchedule); |
| 166 | 194 | //重新载入实际排班 |
| 167 | 195 | $('#reLoadRealScheduleBtn', wrap).on('click', reLoadRealSchedule); |
| 196 | + $('#enableAutoExec', wrap).on('click', autoExecFun); | |
| 168 | 197 | }); |
| 169 | 198 | |
| 170 | 199 | function changeTwinsParkAndStation() { |
| ... | ... | @@ -256,6 +285,43 @@ |
| 256 | 285 | $('select[name=twinsPark]', wrap).on('change', changeTwinsParkAndStation); |
| 257 | 286 | $('select[name=twinsStation]', wrap).on('change', changeTwinsParkAndStation); |
| 258 | 287 | } |
| 288 | + | |
| 289 | + /** | |
| 290 | + * 自动执行 | |
| 291 | + */ | |
| 292 | + function autoExecFun(){ | |
| 293 | + var that = this; | |
| 294 | + if(that.checked){ | |
| 295 | + that.checked = false; | |
| 296 | + alt_confirm('<span style="color: red;font-size: 16px;">启用【' + conf.line.name + '】的自动执行功能?</span>', function () { | |
| 297 | + var data = { | |
| 298 | + lineCode: conf.line.lineCode, | |
| 299 | + autoExec: true | |
| 300 | + }; | |
| 301 | + gb_common.$post('/lineConfig/setAutoExec', data, function (rs) { | |
| 302 | + notify_succ('启用成功!'); | |
| 303 | + conf = rs.conf; | |
| 304 | + | |
| 305 | + that.checked = true; | |
| 306 | + }); | |
| 307 | + }, '我确定要将【' + conf.line.name + '】设置为自动执行', true); | |
| 308 | + } | |
| 309 | + else{ | |
| 310 | + that.checked = true; | |
| 311 | + alt_confirm('<span style="color: red;font-size: 16px;">禁用【' + conf.line.name + '】的自动执行功能?</span>', function () { | |
| 312 | + var data = { | |
| 313 | + lineCode: conf.line.lineCode, | |
| 314 | + autoExec: false | |
| 315 | + }; | |
| 316 | + gb_common.$post('/lineConfig/setAutoExec', data, function (rs) { | |
| 317 | + notify_succ('禁用成功!'); | |
| 318 | + conf = rs.conf; | |
| 319 | + | |
| 320 | + that.checked = false; | |
| 321 | + }); | |
| 322 | + }, '我确定要禁用【' + conf.line.name + '】的自动执行', true); | |
| 323 | + } | |
| 324 | + } | |
| 259 | 325 | })(); |
| 260 | 326 | </script> |
| 261 | 327 | </div> |
| 262 | 328 | \ No newline at end of file | ... | ... |
src/main/resources/static/real_control_v2/js/north/toolbar.js
| ... | ... | @@ -149,8 +149,11 @@ var gb_northToolbar = (function () { |
| 149 | 149 | form_scheduleDaily: function () { |
| 150 | 150 | gb_embed_form_hanlde.open_modal_form_fragment('/pages/forms/statement/scheduleDaily.html', '调度日报'); |
| 151 | 151 | }, |
| 152 | + form_jobSummary: function () { | |
| 153 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/forms/statement/jobSummary.html', '工作汇总'); | |
| 154 | + }, | |
| 152 | 155 | form_waybillday: function () { |
| 153 | - gb_embed_form_hanlde.open_modal_form_fragment('/pages/forms/statement/waybillday.html', '行车路单日报表'); | |
| 156 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/mforms/waybilldays/waybillday.html', '行车路单日报表'); | |
| 154 | 157 | }, |
| 155 | 158 | form_inoutstation: function () { |
| 156 | 159 | gb_embed_form_hanlde.open_modal_form_fragment('/pages/report/inoutstation.html', '班次到离站'); |
| ... | ... | @@ -163,10 +166,10 @@ var gb_northToolbar = (function () { |
| 163 | 166 | }, |
| 164 | 167 | form_workDaily: function () { |
| 165 | 168 | gb_embed_form_hanlde.open_modal_form_fragment('/pages/forms/statement/workDaily.html', '营运服务日报表'); |
| 166 | - }, | |
| 167 | - form_peopleCarPlan: function () { | |
| 168 | - gb_embed_form_hanlde.open_modal_form_fragment('/pages/forms/statement/peopleCarPlan.html', '计划车辆班次人员'); | |
| 169 | - }, | |
| 169 | + }/*, | |
| 170 | + form_peopleCarPlan: function () { | |
| 171 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/forms/statement/peopleCarPlan.html', '计划车辆班次人员'); | |
| 172 | + }*/, | |
| 170 | 173 | form_oilListMonth: function () { |
| 171 | 174 | gb_embed_form_hanlde.open_modal_form_fragment('/pages/report/oil/oilListMonth.html', '月存油报表'); |
| 172 | 175 | }, | ... | ... |