Commit 47367ea67920a2859b5930cc6c1a51971bed5f99

Authored by 王通
2 parents fb68ef04 105a7390

Merge branch 'lggj' of http://61.169.120.202:8888/panzhaov5/bsth_control into lggj

Showing 120 changed files with 7526 additions and 2415 deletions
src/main/java/com/bsth/controller/lg_travel/RegionConterller.java 0 → 100644
  1 +package com.bsth.controller.lg_travel;
  2 +
  3 +import com.bsth.controller.BaseController;
  4 +import com.bsth.entity.lg_travel.Region;
  5 +import org.springframework.web.bind.annotation.RequestMapping;
  6 +import org.springframework.web.bind.annotation.RestController;
  7 +
  8 +/**
  9 + * 区域
  10 + */
  11 +
  12 +@RestController
  13 +@RequestMapping("region")
  14 +public class RegionConterller extends BaseController<Region, Long> {
  15 +
  16 +
  17 +}
... ...
src/main/java/com/bsth/controller/oil/JdlController.java
... ... @@ -2,21 +2,21 @@ package com.bsth.controller.oil;
2 2  
3 3 import java.io.File;
4 4 import java.util.HashMap;
  5 +import java.util.List;
5 6 import java.util.Map;
6 7  
  8 +import javax.servlet.http.HttpServletResponse;
  9 +
7 10 import org.springframework.beans.factory.annotation.Autowired;
8 11 import org.springframework.web.bind.annotation.RequestMapping;
9 12 import org.springframework.web.bind.annotation.RequestMethod;
10 13 import org.springframework.web.bind.annotation.RequestParam;
11 14 import org.springframework.web.bind.annotation.RestController;
12 15 import org.springframework.web.multipart.MultipartFile;
13   -import org.springframework.web.servlet.ModelAndView;
14 16  
15   -import com.alibaba.fastjson.JSON;
16   -import com.alibaba.fastjson.JSONArray;
17   -import com.alibaba.fastjson.JSONObject;
18 17 import com.bsth.controller.BaseController;
19 18 import com.bsth.entity.oil.Jdl;
  19 +import com.bsth.entity.oil.JdlReception;
20 20 import com.bsth.service.oil.JdlService;
21 21 import com.google.common.io.Files;
22 22  
... ... @@ -46,9 +46,56 @@ public class JdlController extends BaseController&lt;Jdl, Integer&gt; {
46 46 return "{\"result\":" + "\""+result+"\"}";
47 47 }
48 48  
  49 + /** 24年12月工单更新电量导入 */
  50 + @RequestMapping(value = "/uploadFile_2412",method = RequestMethod.POST)
  51 + public String uploadFile_2412(MultipartFile file, String gsbm_, String gsName,
  52 + String fgsbm_, String fgsName) throws Exception{
  53 + File newFile = new File(
  54 + getDataImportClasspath() + File.separator +
  55 + file.getOriginalFilename());
  56 + Files.write(file.getBytes(), newFile);
  57 + String result = jdlService.importExcel_2412(newFile, gsbm_, gsName, fgsbm_, fgsName);
  58 + return "{\"result\":" + "\""+result+"\"}";
  59 + }
  60 +
49 61 @RequestMapping(value = "/query",method = RequestMethod.GET)
50 62 public Map<String, Object> query(@RequestParam Map<String, Object> map) throws Exception{
51 63 return jdlService.query(map);
52 64 }
53 65  
  66 + @RequestMapping(value = "/query_2412",method = RequestMethod.GET)
  67 + public Map<String, Object> query_2412(@RequestParam Map<String, Object> map) throws Exception{
  68 + return jdlService.query_2412(map);
  69 + }
  70 +
  71 + @RequestMapping(value = "/queryJdlReception",method = RequestMethod.GET)
  72 + public List<JdlReception> queryJdlReception(@RequestParam Map<String, Object> map) throws Exception{
  73 + return jdlService.queryJdlReception(map);
  74 + }
  75 +
  76 + @RequestMapping(value = "/queryJdlReceptionBatch",method = RequestMethod.GET)
  77 + public Map<String, Object> queryJdlReceptionBatch(@RequestParam Map<String, Object> map) throws Exception{
  78 + return jdlService.queryJdlReceptionBatch(map);
  79 + }
  80 +
  81 + @RequestMapping(value = "/queryJdlReceptionBatchData",method = RequestMethod.GET)
  82 + public List<JdlReception> queryJdlReceptionBatchData(@RequestParam Map<String, Object> map) throws Exception{
  83 + return jdlService.queryJdlReceptionBatchData(map);
  84 + }
  85 +
  86 + @RequestMapping(value = "/deleteJdlReceptionBatch",method = RequestMethod.POST)
  87 + public Map<String, Object> deleteJdlReceptionBatch(@RequestParam Map<String, Object> map) throws Exception{
  88 + return jdlService.deleteJdlReceptionBatch(map);
  89 + }
  90 +
  91 + @RequestMapping(value = "/updateJdlReceptionBatch",method = RequestMethod.POST)
  92 + public Map<String, Object> updateJdlReceptionBatch(@RequestParam Map<String, Object> map) throws Exception{
  93 + return jdlService.updateJdlReceptionBatch(map);
  94 + }
  95 +
  96 + @RequestMapping(value = "/downloadJdlReceptionImportFile",method = RequestMethod.GET)
  97 + public void downloadJdlReceptionImportFile(@RequestParam Map<String, Object> map, HttpServletResponse response) throws Exception{
  98 + jdlService.downloadJdlReceptionImportFile(map, response);
  99 + }
  100 +
54 101 }
... ...
src/main/java/com/bsth/data/pilot80/PilotReport.java
1 1 package com.bsth.data.pilot80;
2 2  
  3 +import com.alibaba.fastjson.JSON;
3 4 import com.alibaba.fastjson.JSONObject;
4 5 import com.bsth.data.BasicData;
5 6 import com.bsth.data.LineConfigData;
... ... @@ -13,6 +14,7 @@ import com.bsth.entity.realcontrol.LineConfig;
13 14 import com.bsth.entity.realcontrol.ScheduleRealInfo;
14 15 import com.bsth.repository.directive.D80Repository;
15 16 import com.bsth.repository.directive.DC0A4Repository;
  17 +import com.bsth.service.SystemParamService;
16 18 import com.bsth.service.directive.DirectiveService;
17 19 import com.bsth.util.HttpClientUtils;
18 20 import com.bsth.websocket.handler.SendUtils;
... ... @@ -22,7 +24,10 @@ import org.slf4j.LoggerFactory;
22 24 import org.springframework.beans.factory.annotation.Autowired;
23 25 import org.springframework.stereotype.Component;
24 26  
25   -import java.util.*;
  27 +import java.util.ArrayList;
  28 +import java.util.Collection;
  29 +import java.util.Date;
  30 +import java.util.List;
26 31 import java.util.concurrent.ConcurrentHashMap;
27 32  
28 33 /**
... ... @@ -53,6 +58,8 @@ public class PilotReport {
53 58 @Autowired
54 59 GpsStatusManager gpsStatusManager;
55 60  
  61 + @Autowired
  62 + private SystemParamService systemParamService;
56 63 private static ConcurrentHashMap<Integer, D80> d80Maps;
57 64  
58 65 /**
... ... @@ -99,21 +106,11 @@ public class PilotReport {
99 106 }
100 107 break;
101 108 //报警请求
102   - case 0x10:
103   - try {
104   - String url = "http://58.34.52.130:9103/dataDockingApi/accident/saveAccident?";
105   - url = url + "accidentTime=" + new Date().getTime() + "&nbbm=" + nbbm;
106   - logger.info("url===="+url);
107   - String res = HttpClientUtils.get(url).toString();
108   - JSONObject jsonObject = JSONObject.parseObject(res);
109   - if ((int) jsonObject.get("code") == 200) {
110   - logger.info("报警请求成功");
111   - }else {
112   - logger.info("报警请求失败");
113   - }
114   - }catch (Exception e){
115   - logger.info("报警请求异常");
116   - }
  109 + case 0x21:
  110 + case 0x22:
  111 + case 0x23:
  112 + case 0x24:
  113 + yjbj(nbbm,d80);
117 114 break;
118 115 }
119 116  
... ... @@ -129,6 +126,39 @@ public class PilotReport {
129 126 }
130 127 }
131 128  
  129 + public void yjbj(String nbbm,D80 d80){
  130 + try {
  131 + ScheduleRealInfo sch = null;
  132 + if (d80.getSchId() == null){
  133 + logger.info(nbbm+"-----车辆没有班次");
  134 + return;
  135 + }
  136 + if (d80.getData().getStopNo() != null && !d80.getData().getStopNo().equals("")){
  137 + d80.setStationName(BasicData.stationCode2NameMap.get(d80.getData().getStopNo()));
  138 + }
  139 +
  140 + sch = dayOfSchedule.get(d80.getSchId());
  141 + Long nextschid = dayOfSchedule.nextByLp(sch).getId();
  142 + d80.setNextschId(nextschid);
  143 + String url = systemParamService.getValue("url.yjbj")+"dataDockingApi/accident/saveAccident?";
  144 + url = url + "accidentTime=" + new Date().getTime() + "&nbbm=" + nbbm +"&requestCode=" +d80.getData().getRequestCode()
  145 + +"&lineName=" +sch.getXlName()+"&jsy=" +sch.getjGh()+"&jsName=" +sch.getjName()+"&lon=" +d80.getData().getLon()+"&lat="+d80.getData().getLat();
  146 +
  147 + logger.info("url===="+url);
  148 + StringBuilder sb = HttpClientUtils.get(url);
  149 +
  150 +
  151 + JSONObject jsonObject = JSON.parseObject(sb.toString());
  152 + if ((int) jsonObject.get("code") == 200) {
  153 + logger.info("报警请求成功=" + jsonObject.get("msg"));
  154 + }else {
  155 + logger.info("报警请求失败="+ jsonObject.get("msg"));
  156 + }
  157 + }catch (Exception e){
  158 + logger.info("报警请求异常",e);
  159 + }
  160 + }
  161 +
132 162 public void report(DC0_A4 c0a4) {
133 163 String deviceId = c0a4.getData().getDeviceId();
134 164 if (StringUtils.isNotEmpty(deviceId))
... ...
src/main/java/com/bsth/data/zndd/AutomaticSch.java
... ... @@ -29,8 +29,6 @@ import org.springframework.stereotype.Component;
29 29 import java.text.ParseException;
30 30 import java.text.SimpleDateFormat;
31 31 import java.util.*;
32   -import java.util.concurrent.ConcurrentHashMap;
33   -import java.util.concurrent.ConcurrentMap;
34 32 import java.util.regex.Matcher;
35 33 import java.util.regex.Pattern;
36 34  
... ... @@ -62,20 +60,16 @@ public class AutomaticSch {
62 60 @Autowired
63 61 ZnddYuAnService znddYuAnService;
64 62  
65   - Queue<Map> queue = new LinkedList<>();
66   -
67 63 private static SimpleDateFormat sdfHHmm = new SimpleDateFormat("HH:mm");
68 64 SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm");
69 65  
70 66 private static Comparator<ScheduleRealInfo> cpm = new ScheduleComparator.DFSJ2();
71 67 private Map<String,Long> drivreMap =new HashMap<>(); //自动重发map
72   - // 当日60指令缓存
73   - private ConcurrentMap<Integer, D60> d60Map = new ConcurrentHashMap<>();//d60map
74 68  
75   - String urldkl = "http://10.10.200.202:5580/monitor/api/getMonitorInfoByDay?key=1&solt=1111&t=1&dayStr=2024-10-23"; //大间隔接口
  69 + String urldkl = "http://10.10.200.202:5580/monitor/api/getMonitorInfoByDay?key=1&solt=1111&t=1&dayStr=2024-12-04"; //大间隔接口
76 70  
77 71 //http://10.10.200.201:8083/wxk-prod-api/service-api/lggj/schedule/drByInfo 维修接口
78   -
  72 + String urldkls = "http://10.10.200.140:13089/bsth_passengerflow/klbus/currentInsideNum.do"; //满载接口
79 73 private Map<String,Long> SFMAP = new HashMap<>();
80 74  
81 75 //满载
... ... @@ -84,6 +78,9 @@ public class AutomaticSch {
84 78  
85 79 List<ScheduleRealInfo> sr = dayOfSchedule.findByBcType("W9G-041","normal");
86 80 ts(addStationPeople(sr.get(5), "MZ", 0L));//第二种 设备未离线 出站时间内未出站
  81 +
  82 + String chartStr = JSON.toJSONString(sr.get(5));
  83 + logger.info("满载--"+chartStr);
87 84 }
88 85 catch (Exception e){
89 86 logger.error("满载------------------",e);
... ... @@ -109,10 +106,14 @@ public class AutomaticSch {
109 106 if (k == 0 ){
110 107 if(lg.getlGType() == 0){
111 108 ts(ConvertDJK(lg,sch,"FCJG"));
  109 + String chartStr = JSON.toJSONString(sch);
  110 + logger.info("发车大间隔--"+chartStr);
112 111 }
113 112 }else {
114 113 if(lg.getlGType() != 0){
115 114 ts(ConvertDJK(lg,sch,"DJG"));
  115 + String chartStr = JSON.toJSONString(sch);
  116 + logger.info("行车大间隔--"+chartStr);
116 117 }
117 118 }
118 119  
... ... @@ -122,28 +123,6 @@ public class AutomaticSch {
122 123 logger.error("大间隔推送失败------------------",e);
123 124 }
124 125 }
125   - //发现大客流 -> 大客流情况 ->处置大客流
126   - public void Dkl(){
127   - //推送
128   -
129   - try{
130   - Map m = queue.poll();
131   - if (m != null) {
132   - if (Integer.valueOf(m.get("num").toString()) > 15) {
133   - //超过10的时候 判断为大客流
134   - ts(ConvertDKL(m));
135   - }
136   - }
137   -
138   - ScheduleRealInfo sr = dayOfSchedule.findByNbbm("W8A-027").get(0);
139   - ts(addStationPeople(sr, "DKL", 0L));//大客流
140   -
141   -
142   - }catch (Exception e){
143   - logger.error("大客流推送失败------------------",e);
144   - }
145   -
146   - }
147 126  
148 127 //实发未发检测 -- 车辆GPS掉线的情况下,车辆该出站了
149 128 /**
... ... @@ -336,10 +315,9 @@ public class AutomaticSch {
336 315 for (Map m : dzList){
337 316 if (basicData.nbbmCompanyPlateMap.get(prev.getClZbh()) != null && m.get("terminal").equals(basicData.nbbmCompanyPlateMap.get(prev.getClZbh()).replaceAll("-",""))){
338 317 sch.setRemark(m.get("sj").toString());
339   - Gson gson = new Gson();
340   - String chartStr = gson.toJsonTree(sch).toString();
341   - logger.info("误点--"+chartStr);
342 318 ts(addStationPeople(sch, "WD", 0L));
  319 + String chartStr = JSON.toJSONString(sch);
  320 + logger.info("误点--"+chartStr);
343 321 }
344 322 }
345 323 }
... ...
src/main/java/com/bsth/data/zndd/OutEntrance.java
... ... @@ -6,9 +6,11 @@ import com.bsth.common.ResponseCode;
6 6 import com.bsth.data.BasicData;
7 7 import com.bsth.data.schedule.DayOfSchedule;
8 8 import com.bsth.data.schedule.ScheduleComparator;
  9 +import com.bsth.entity.DKLInfo;
9 10 import com.bsth.entity.realcontrol.ScheduleRealInfo;
10 11 import com.bsth.entity.zndd.StationPeopleLogger;
11 12 import com.bsth.entity.zndd.StationSignsLogger;
  13 +import com.bsth.service.DKLInfoService;
12 14 import com.bsth.util.HttpClientUtils;
13 15 import com.bsth.util.SignUtils;
14 16 import com.bsth.websocket.handler.SendUtils;
... ... @@ -17,20 +19,19 @@ import org.slf4j.Logger;
17 19 import org.slf4j.LoggerFactory;
18 20 import org.springframework.beans.factory.annotation.Autowired;
19 21 import org.springframework.beans.factory.annotation.Value;
  22 +import org.springframework.dao.DataAccessException;
  23 +import org.springframework.jdbc.core.JdbcTemplate;
20 24 import org.springframework.scheduling.annotation.Scheduled;
21 25 import org.springframework.web.bind.annotation.*;
  26 +
22 27 import java.io.*;
23 28 import java.nio.file.Files;
24 29 import java.nio.file.Path;
25 30 import java.nio.file.Paths;
26 31 import java.nio.file.StandardCopyOption;
27   -
28   -import java.io.ByteArrayInputStream;
29   -import java.io.File;
30   -import java.io.FileOutputStream;
31   -import java.io.InputStream;
32 32 import java.text.SimpleDateFormat;
33 33 import java.time.Duration;
  34 +import java.time.LocalDateTime;
34 35 import java.time.LocalTime;
35 36 import java.time.format.DateTimeFormatter;
36 37 import java.util.*;
... ... @@ -54,9 +55,8 @@ public class OutEntrance {
54 55  
55 56 @Value("${dc.imgurl}")
56 57 private String imgurl; //存储图片地址
57   -
58   - @Value("${dc.profile}")
59   - private String profile; //存储图片地址*/
  58 +
  59 + private String profile = "profile"; //存储图片地址*/
60 60  
61 61 @Value("${baidu.ak}")
62 62 private String ak; //百度api秘钥*/
... ... @@ -69,6 +69,12 @@ public class OutEntrance {
69 69 @Autowired
70 70 AutomaticSch automaticSch;
71 71  
  72 + @Autowired
  73 + private DKLInfoService dklInfoService;
  74 +
  75 + @Autowired
  76 + JdbcTemplate jdbcTemplate;
  77 +
72 78 //调度屏小程序接口。
73 79 @RequestMapping(value = "/OutCar", method = RequestMethod.POST)
74 80 public Map OutCarOutCar(@RequestParam Map m,@RequestBody StationSignsLogger ssLogger) {
... ... @@ -169,13 +175,27 @@ public class OutEntrance {
169 175 String lineCode = line.get("lineCode").toString();
170 176 String stationCode = line.get("stationCode").toString();
171 177 String dir = line.get("dir").toString();
172   - /*StationRoute stationRoute=BasicData.stationCode2StationMap.get(lineCode+"_"+stationCode);*/
  178 + imgMap.put(lineCode+"_"+dir,img);
  179 + DKLInfo dklInfo =new DKLInfo();
  180 + dklInfo.setLineCode(stationCode);
  181 + String lineName=BasicData.lineCode2NameMap.get(lineCode);
  182 + String stationName=BasicData.stationCode2NameMap.get(lineCode+"_"+dir+"_"+stationCode);
  183 + dklInfo.setLineName(lineName);
  184 + dklInfo.setStationCode(stationCode);
  185 + dklInfo.setStationName(stationName);
  186 + dklInfo.setNum(Integer.parseInt(num));
  187 + dklInfo.setUpDown(dir);
  188 + dklInfo.setImage(img);
  189 + dklInfoService.save(dklInfo);
  190 + if(Integer.parseInt(num)<count){
  191 + continue;
  192 + }
173 193 Map m = new HashMap();
174 194 m.put("image", img);
175 195 m.put("stationCode", stationCode);
176 196 m.put("lineCode", lineCode);
177   - m.put("stationName",BasicData.stationCode2NameMap.get(lineCode+"_"+dir+"_"+stationCode));
178   - m.put("lineName",BasicData.lineCode2NameMap.get(lineCode));
  197 + m.put("stationName",stationName);
  198 + m.put("lineName",lineName);
179 199 m.put("num",num);
180 200 m.put("xlDir",dir);
181 201 List<ScheduleRealInfo> srList=dayOfSchedule.findByLineAndUpDown(lineCode,Integer.parseInt(dir));
... ... @@ -319,7 +339,7 @@ public class OutEntrance {
319 339 destfile.mkdirs();
320 340 }
321 341 //文件新名称
322   - String fileNameNew = AutomaticSch.UUID()+ ".png";
  342 + String fileNameNew = System.currentTimeMillis()+"_"+AutomaticSch.UUID()+ ".png";
323 343 File f = new File(destfile.getAbsoluteFile() + File.separator + fileNameNew);
324 344 // 将字符串转换成二进制,用于显示图片
325 345 // 将上面生成的图片格式字符串 imgStr,还原成图片显示
... ... @@ -397,7 +417,9 @@ public class OutEntrance {
397 417 @Scheduled(cron = "0 0 0 * * ?")
398 418 public void clearImg(){
399 419 try {
400   - File folder=new File(imgurl+"/avat");
  420 + LocalDateTime date =LocalDateTime.now().minusDays(7);
  421 + String[] d=date.format(DateTimeFormatter.ofPattern("yyyy-MM-dd")).split("-");
  422 + File folder=new File(imgurl+"/avat/"+d[0]+"/"+d[1]+"/"+d[2]);
401 423 delete(folder);
402 424 } catch (Exception e) {
403 425 e.printStackTrace();
... ... @@ -416,4 +438,28 @@ public class OutEntrance {
416 438 folder.delete(); // 删除空文件夹或者文件
417 439 }
418 440  
  441 + private static Map<String,String> imgMap =new HashMap<>();
  442 + //调度获取站台视频
  443 + @RequestMapping(value = "/getStationVideo", method = RequestMethod.GET)
  444 + public String getStationVideo(@RequestParam Map m) {
  445 + if (m.get("lineCode")==null || m.get("upDown")==null){
  446 + return null;
  447 + }
  448 + String sql="select url from station_video where line_code ='"+m.get("lineCode")+"' and up_down ='"+m.get("upDown")+"'";
  449 + String url= null;
  450 + try {
  451 + url = jdbcTemplate.queryForObject(sql,String.class);
  452 + } catch (DataAccessException e) {
  453 + return null;
  454 + }
  455 + return url;
  456 + }
  457 +
  458 + //调度获取站台图片
  459 + @RequestMapping(value = "/getStationImg", method = RequestMethod.GET)
  460 + public String getStationImg(@RequestParam Map m) {
  461 + String url=imgMap.get(m.get("lineCode")+"_"+m.get("upDown"));
  462 + return url;
  463 + }
  464 +
419 465 }
... ...
src/main/java/com/bsth/data/zndd/ZnddThread.java
... ... @@ -45,11 +45,8 @@ public class ZnddThread extends Thread{
45 45 static Map<String,List> ZNDDTYPEMAP = new HashMap<>(); //已经推送过的检测
46 46  
47 47  
48   - String url = "https://lgapp.bsth.tech:13089/bsth_passengerflow/klbus/currentInsideNum.do"; //车内客流接口
49 48  
50 49  
51   - String urldkl = "http://10.10.200.140:13089/bsth_passengerflow/klbus/currentInsideNum.do"; //大客流接口
52   -
53 50 private static SimpleDateFormat sdfHHmm = new SimpleDateFormat("HH:mm");
54 51 private static SimpleDateFormat sdfMonth = new SimpleDateFormat("yyyy-MM-dd");
55 52 private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
... ... @@ -64,7 +61,7 @@ public class ZnddThread extends Thread{
64 61 //automaticSch.mz();
65 62 //automaticSch.dfTz();//大间隔
66 63 for (znddStatus zs : znddStatusList) {
67   - if (zs.getOpenStatus().equals("0")) {
  64 + if (zs.getOpenStatus() != null && zs.getOpenStatus().equals("0")) {
68 65 //预案5个
69 66 if (zs.getType().equals("fcjg")) {
70 67 automaticSch.dfTz(0);
... ... @@ -91,11 +88,6 @@ public class ZnddThread extends Thread{
91 88 automaticSch.dfTz(1);
92 89 logger.info("行车大间隔执行完毕");
93 90 }
94   -
95   - if (zs.getType().equals("dkl")){
96   - automaticSch.Dkl();
97   - logger.info("大客流执行完毕");
98   - }
99 91 if (zs.getType().equals("mz")){
100 92 automaticSch.mz();
101 93 logger.info("满载执行完毕");
... ...
src/main/java/com/bsth/entity/Cars.java
1 1 package com.bsth.entity;
2 2  
3 3 import com.bsth.entity.schedule.BEntity;
  4 +import com.fasterxml.jackson.annotation.JsonIgnore;
4 5 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
5 6 import org.hibernate.annotations.Formula;
6 7  
... ... @@ -145,6 +146,24 @@ public class Cars extends BEntity implements Serializable {
145 146 /** 线路名称(TODO:在原系统里没有,这里暂时留着,并且不做线路关联,只保留个名字) */
146 147 private String xlmc;
147 148  
  149 +
  150 + //** 车辆颜色 *//*
  151 + @Transient
  152 + @JsonIgnore
  153 + private String color;
  154 + //** 车辆最大乘坐人数 *//*
  155 + @Transient
  156 + @JsonIgnore
  157 + private String maxPeople;
  158 + //** 票价类型 *//*
  159 + @Transient
  160 + @JsonIgnore
  161 + private String priceType;
  162 + //** 票价 *//*
  163 + @Transient
  164 + @JsonIgnore
  165 + private String price;
  166 +
148 167 public Cars() {}
149 168  
150 169 public Cars(Object id, Object nbbh, Object clbh, Object cph, Object sbbh) {
... ... @@ -164,7 +183,40 @@ public class Cars extends BEntity implements Serializable {
164 183 this.equipmentCode = sbbh.toString();
165 184 }
166 185 }
167   -
  186 +
  187 +
  188 + public String getColor() {
  189 + return color;
  190 + }
  191 +
  192 + public void setColor(String color) {
  193 + this.color = color;
  194 + }
  195 +
  196 + public String getMaxPeople() {
  197 + return maxPeople;
  198 + }
  199 +
  200 + public void setMaxPeople(String maxPeople) {
  201 + this.maxPeople = maxPeople;
  202 + }
  203 +
  204 + public String getPriceType() {
  205 + return priceType;
  206 + }
  207 +
  208 + public void setPriceType(String priceType) {
  209 + this.priceType = priceType;
  210 + }
  211 +
  212 + public String getPrice() {
  213 + return price;
  214 + }
  215 +
  216 + public void setPrice(String price) {
  217 + this.price = price;
  218 + }
  219 +
168 220 public String getServiceNo() {
169 221 return serviceNo;
170 222 }
... ...
src/main/java/com/bsth/entity/DKLInfo.java 0 → 100644
  1 +package com.bsth.entity;
  2 +
  3 +import javax.persistence.*;
  4 +import java.util.Date;
  5 +
  6 +
  7 +
  8 +@Entity
  9 +@Table(name = "dkl_info")
  10 +public class DKLInfo {
  11 +
  12 + // ID
  13 + @Id
  14 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  15 + private Integer id;
  16 +
  17 + private String lineCode;
  18 +
  19 + private String lineName;
  20 +
  21 + private String stationCode;
  22 +
  23 + private String stationName;
  24 +
  25 + private int num;
  26 +
  27 + private String upDown;
  28 +
  29 + private String image;
  30 +
  31 + // 创建日期
  32 + @Column(updatable = false, name = "create_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
  33 + private Date createDate;
  34 +
  35 +
  36 + public Integer getId() {
  37 + return id;
  38 + }
  39 +
  40 + public void setId(Integer id) {
  41 + this.id = id;
  42 + }
  43 +
  44 + public String getLineCode() {
  45 + return lineCode;
  46 + }
  47 +
  48 + public void setLineCode(String lineCode) {
  49 + this.lineCode = lineCode;
  50 + }
  51 +
  52 + public String getLineName() {
  53 + return lineName;
  54 + }
  55 +
  56 + public void setLineName(String lineName) {
  57 + this.lineName = lineName;
  58 + }
  59 +
  60 + public String getStationCode() {
  61 + return stationCode;
  62 + }
  63 +
  64 + public void setStationCode(String stationCode) {
  65 + this.stationCode = stationCode;
  66 + }
  67 +
  68 + public String getStationName() {
  69 + return stationName;
  70 + }
  71 +
  72 + public void setStationName(String stationName) {
  73 + this.stationName = stationName;
  74 + }
  75 +
  76 + public int getNum() {
  77 + return num;
  78 + }
  79 +
  80 + public void setNum(int num) {
  81 + this.num = num;
  82 + }
  83 +
  84 + public String getUpDown() {
  85 + return upDown;
  86 + }
  87 +
  88 + public void setUpDown(String upDown) {
  89 + this.upDown = upDown;
  90 + }
  91 +
  92 + public String getImage() {
  93 + return image;
  94 + }
  95 +
  96 + public void setImage(String image) {
  97 + this.image = image;
  98 + }
  99 +
  100 + public Date getCreateDate() {
  101 + return createDate;
  102 + }
  103 +
  104 + public void setCreateDate(Date createDate) {
  105 + this.createDate = createDate;
  106 + }
  107 +
  108 +}
... ...
src/main/java/com/bsth/entity/directive/D80.java
... ... @@ -78,6 +78,7 @@ public class D80 {
78 78 @JsonIgnore
79 79 private Short requestCode;
80 80  
  81 +
81 82 public Long getSchId() {
82 83 return schId;
83 84 }
... ... @@ -110,6 +111,30 @@ public class D80 {
110 111 this.requestCode = requestCode;
111 112 }
112 113  
  114 + @Transient
  115 + @JsonIgnore
  116 + private String stationName;
  117 + @Transient
  118 + @JsonIgnore
  119 + private Long nextschId;
  120 +
  121 + public Long getNextschId() {
  122 + return nextschId;
  123 + }
  124 +
  125 + public void setNextschId(Long nextschId) {
  126 + this.nextschId = nextschId;
  127 + }
  128 +
  129 + public String getStationName() {
  130 + return stationName;
  131 + }
  132 +
  133 + public void setStationName(String stationName) {
  134 + this.stationName = stationName;
  135 + }
  136 +
  137 +
113 138 @Embeddable
114 139 public static class D80Data {
115 140  
... ... @@ -121,6 +146,9 @@ public class D80 {
121 146 /**
122 147 * 请求代码 0xa1 恢复运营 0xa2 申请调档 0xa3 出场请求 0xa5 进场请求 0xa7 加油请求 0x50 车辆故障 0x70
123 148 * 路阻报告 0x60 事故报告 0x11 扣证纠纷 0x12 报警 0x10 S0S
  149 + * 0x21 单车有人伤 0x22 单车无人伤
  150 + * 0x23 双车有人伤 0x24 双车无人伤
  151 + *
124 152 */
125 153 private Short requestCode;
126 154  
... ... @@ -134,7 +162,48 @@ public class D80 {
134 162 */
135 163 @Transient
136 164 private String nbbm;
137   -
  165 + /**
  166 + * 经度
  167 + */
  168 + @Transient
  169 + @JsonIgnore
  170 + private Float lon;
  171 +
  172 + /**
  173 + * 纬度
  174 + */
  175 + @Transient
  176 + @JsonIgnore
  177 + private Float lat;
  178 + @Transient
  179 + @JsonIgnore
  180 + private String stopNo;
  181 +
  182 +
  183 + public String getStopNo() {
  184 + return stopNo;
  185 + }
  186 +
  187 + public void setStopNo(String stopNo) {
  188 + this.stopNo = stopNo;
  189 + }
  190 +
  191 + public Float getLon() {
  192 + return lon;
  193 + }
  194 +
  195 + public void setLon(Float lon) {
  196 + this.lon = lon;
  197 + }
  198 +
  199 + public Float getLat() {
  200 + return lat;
  201 + }
  202 +
  203 + public void setLat(Float lat) {
  204 + this.lat = lat;
  205 + }
  206 +
138 207 public Short getOperCode2() {
139 208 return operCode2;
140 209 }
... ...
src/main/java/com/bsth/entity/lg_travel/Region.java 0 → 100644
  1 +package com.bsth.entity.lg_travel;
  2 +
  3 +import com.bsth.entity.schedule.BEntity;
  4 +
  5 +import javax.persistence.Entity;
  6 +import javax.persistence.Id;
  7 +import javax.persistence.Table;
  8 +import java.io.Serializable;
  9 +
  10 +/**
  11 + * 区域
  12 + */
  13 +@Entity
  14 +@Table(name = "bsth_c_region")
  15 +public class Region extends BEntity implements Serializable {
  16 + @Id
  17 + private Long id;
  18 + //区域名称
  19 + private String name;
  20 + //是否删除
  21 + private String destroy;
  22 +
  23 +
  24 +
  25 +
  26 + public void setId(Long id) {
  27 + this.id = id;
  28 + }
  29 +
  30 + public Long getId() {
  31 + return id;
  32 + }
  33 +
  34 + public String getName() {
  35 + return name;
  36 + }
  37 +
  38 + public void setName(String name) {
  39 + this.name = name;
  40 + }
  41 +
  42 + public String getDestroy() {
  43 + return destroy;
  44 + }
  45 +
  46 + public void setDestroy(String destroy) {
  47 + this.destroy = destroy;
  48 + }
  49 +}
0 50 \ No newline at end of file
... ...
src/main/java/com/bsth/entity/lg_travel/RegionLineCar.java 0 → 100644
  1 +package com.bsth.entity.lg_travel;
  2 +
  3 +import com.bsth.entity.Line;
  4 +import com.bsth.entity.schedule.BEntity;
  5 +
  6 +import javax.persistence.*;
  7 +import java.io.Serializable;
  8 +
  9 +/**
  10 + * 区域
  11 + */
  12 +@Entity
  13 +@Table(name = "bsth_c_region_line_car")
  14 +public class RegionLineCar extends BEntity implements Serializable {
  15 + @Id
  16 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  17 + private Long id;
  18 + //区域名称
  19 + @ManyToOne
  20 + private Region region;
  21 + //线路
  22 + @ManyToOne
  23 + private Line line;
  24 + //线路名称
  25 + private String lineName;
  26 + //车辆自编号
  27 + private String clZbh;
  28 +
  29 + public Long getId() {
  30 + return id;
  31 + }
  32 +
  33 + public void setId(Long id) {
  34 + this.id = id;
  35 + }
  36 +
  37 +
  38 + public Region getRegion() {
  39 + return region;
  40 + }
  41 +
  42 + public void setRegion(Region region) {
  43 + this.region = region;
  44 + }
  45 +
  46 + public Line getLine() {
  47 + return line;
  48 + }
  49 +
  50 + public void setLine(Line line) {
  51 + this.line = line;
  52 + }
  53 +
  54 + public String getLineName() {
  55 + return lineName;
  56 + }
  57 +
  58 + public void setLineName(String lineName) {
  59 + this.lineName = lineName;
  60 + }
  61 +
  62 + public String getClZbh() {
  63 + return clZbh;
  64 + }
  65 +
  66 + public void setClZbh(String clZbh) {
  67 + this.clZbh = clZbh;
  68 + }
  69 +
  70 +
  71 +}
0 72 \ No newline at end of file
... ...
src/main/java/com/bsth/entity/oil/Dlb.java
1   -package com.bsth.entity.oil;
2   -
3   -import java.text.DecimalFormat;
4   -import java.util.Date;
5   -
6   -import javax.persistence.*;
7   -
8   -import org.springframework.format.annotation.DateTimeFormat;
9   -
10   -import com.bsth.data.BasicData;
11   -
12   -@Entity
13   -@Table(name = "bsth_c_dlb")
14   -public class Dlb {
15   - @Id
16   - @GeneratedValue(strategy = GenerationType.IDENTITY)
17   - private Integer id;
18   - @DateTimeFormat(pattern="yyyy-MM-dd")
19   - private Date rq;
20   - private String xlbm;
21   - private String linename;
22   - private String ssgsdm;
23   - private String fgsdm;
24   - private String nbbm;
25   - private String jsy;
26   - private Double czlc=0.0;
27   - private Double jzlc=0.0;
28   - //出站存电
29   - private Double czcd=0.0;
30   - //进站存电
31   - private Double jzcd=0.0;
32   - //充电量
33   - private Double cdl;
34   - private int sfkt;
35   - private String jhsj;
36   - //耗电
37   - private Double hd=0.0;
38   - private Double sh=0.0;
39   - private String shyy;
40   - private Double zlc=0.0;
41   - private int yhlx;
42   -
43   - private Double ns=0.0;
44   - private Double fyylc=0.0;
45   - private Double jhzlc=0.0;
46   - private Double jhfyylc=0.0;
47   - private int jhzbc;
48   - private int jhbc;
49   - private int sjzbc;
50   - private int sjbc;
51   - private String edituser;
52   - private Date edittime;
53   - private Date createtime;
54   - private Date updatetime;
55   - private int nylx;
56   - //进场顺序(根据最先出场和最后进场来关联车辆的存电量)
57   - private int jcsx;
58   -
59   - private String jname;
60   - @Transient
61   - private String name;
62   - @Transient
63   - private String bglyh;
64   -
65   - @Transient
66   - private String xlname;
67   -
68   - @Transient
69   - private String gsname;
70   -
71   - @Transient
72   - private String fgsname;
73   -
74   -
75   -
76   - private String lp;
77   -
78   - public Integer getId() {
79   - return id;
80   - }
81   -
82   - public void setId(Integer id) {
83   - this.id = id;
84   - }
85   -
86   - public Date getRq() {
87   - return rq;
88   - }
89   -
90   - public void setRq(Date rq) {
91   - this.rq = rq;
92   - }
93   -
94   - public String getXlbm() {
95   - return xlbm;
96   - }
97   -
98   - public void setXlbm(String xlbm) {
99   - this.xlbm = xlbm;
100   - }
101   -
102   - public String getLinename() {
103   - return linename;
104   - }
105   -
106   - public void setLinename(String linename) {
107   - this.linename = linename;
108   - }
109   -
110   - public String getSsgsdm() {
111   - return ssgsdm;
112   - }
113   -
114   - public void setSsgsdm(String ssgsdm) {
115   - this.ssgsdm = ssgsdm;
116   - }
117   -
118   - public String getFgsdm() {
119   - return fgsdm;
120   - }
121   -
122   - public void setFgsdm(String fgsdm) {
123   - this.fgsdm = fgsdm;
124   - }
125   -
126   - public String getNbbm() {
127   - return nbbm;
128   - }
129   -
130   - public void setNbbm(String nbbm) {
131   - this.nbbm = nbbm;
132   - }
133   -
134   - public String getJsy() {
135   - return jsy;
136   - }
137   -
138   - public void setJsy(String jsy) {
139   - this.jsy = jsy;
140   - }
141   -
142   - public Double getCzlc() {
143   - return czlc;
144   - }
145   -
146   - public void setCzlc(Double czlc) {
147   - this.czlc = czlc;
148   - }
149   -
150   - public Double getJzlc() {
151   - return jzlc;
152   - }
153   -
154   - public void setJzlc(Double jzlc) {
155   - this.jzlc = jzlc;
156   - }
157   -
158   - public Double getCzcd() {
159   - return czcd;
160   - }
161   -
162   - public void setCzcd(Double czcd) {
163   - this.czcd = czcd;
164   - }
165   -
166   - public Double getJzcd() {
167   - return jzcd;
168   - }
169   -
170   - public void setJzcd(Double jzcd) {
171   - this.jzcd = jzcd;
172   - }
173   -
174   - public Double getCdl() {
175   - return cdl;
176   - }
177   -
178   - public void setCdl(Double cdl) {
179   - this.cdl = cdl;
180   - }
181   -
182   - public int getSfkt() {
183   - return sfkt;
184   - }
185   -
186   - public void setSfkt(int sfkt) {
187   - this.sfkt = sfkt;
188   - }
189   -
190   - public String getJhsj() {
191   - return jhsj;
192   - }
193   -
194   - public void setJhsj(String jhsj) {
195   - this.jhsj = jhsj;
196   - }
197   -
198   - public Double getHd() {
199   - return hd;
200   - }
201   -
202   - public void setHd(Double hd) {
203   - this.hd = hd;
204   - }
205   -
206   - public Double getSh() {
207   - return sh;
208   - }
209   -
210   - public void setSh(Double sh) {
211   - this.sh = sh;
212   - }
213   -
214   - public String getShyy() {
215   - return shyy;
216   - }
217   -
218   - public void setShyy(String shyy) {
219   - this.shyy = shyy;
220   - }
221   -
222   - public Double getZlc() {
223   - return zlc;
224   - }
225   -
226   - public void setZlc(Double zlc) {
227   - this.zlc = zlc;
228   - }
229   -
230   - public int getYhlx() {
231   - return yhlx;
232   - }
233   -
234   - public void setYhlx(int yhlx) {
235   - this.yhlx = yhlx;
236   - }
237   -
238   - public Double getNs() {
239   - return ns;
240   - }
241   -
242   - public void setNs(Double ns) {
243   - this.ns = ns;
244   - }
245   -
246   - public Double getFyylc() {
247   - return fyylc;
248   - }
249   -
250   - public void setFyylc(Double fyylc) {
251   - this.fyylc = fyylc;
252   - }
253   -
254   - public Double getJhzlc() {
255   - return jhzlc;
256   - }
257   -
258   - public void setJhzlc(Double jhzlc) {
259   - this.jhzlc = jhzlc;
260   - }
261   -
262   - public Double getJhfyylc() {
263   - return jhfyylc;
264   - }
265   -
266   - public void setJhfyylc(Double jhfyylc) {
267   - this.jhfyylc = jhfyylc;
268   - }
269   -
270   - public int getJhzbc() {
271   - return jhzbc;
272   - }
273   -
274   - public void setJhzbc(int jhzbc) {
275   - this.jhzbc = jhzbc;
276   - }
277   -
278   - public int getJhbc() {
279   - return jhbc;
280   - }
281   -
282   - public void setJhbc(int jhbc) {
283   - this.jhbc = jhbc;
284   - }
285   -
286   - public int getSjzbc() {
287   - return sjzbc;
288   - }
289   -
290   - public void setSjzbc(int sjzbc) {
291   - this.sjzbc = sjzbc;
292   - }
293   -
294   - public int getSjbc() {
295   - return sjbc;
296   - }
297   -
298   - public void setSjbc(int sjbc) {
299   - this.sjbc = sjbc;
300   - }
301   -
302   - public String getEdituser() {
303   - return edituser;
304   - }
305   -
306   - public void setEdituser(String edituser) {
307   - this.edituser = edituser;
308   - }
309   -
310   - public Date getEdittime() {
311   - return edittime;
312   - }
313   -
314   - public void setEdittime(Date edittime) {
315   - this.edittime = edittime;
316   - }
317   -
318   - public Date getCreatetime() {
319   - return createtime;
320   - }
321   -
322   - public void setCreatetime(Date createtime) {
323   - this.createtime = createtime;
324   - }
325   -
326   - public int getNylx() {
327   - return nylx;
328   - }
329   -
330   - public void setNylx(int nylx) {
331   - this.nylx = nylx;
332   - }
333   -
334   - public int getJcsx() {
335   - return jcsx;
336   - }
337   -
338   - public void setJcsx(int jcsx) {
339   - this.jcsx = jcsx;
340   - }
341   -
342   - public String getBglyh() {
343   - if(this.getZlc()==0){
344   - return "0";
345   - }else{
346   - DecimalFormat df = new DecimalFormat("0.00");
347   - return df.format(this.getHd()/this.getZlc()*100);
348   - }
349   - }
350   -
351   - public void setBglyh(String bglyh) {
352   - this.bglyh = bglyh;
353   - }
354   -
355   - public String getXlname() {
356   - return BasicData.lineCodeAllNameMap.get(this.xlbm);
357   - }
358   -
359   - public void setXlname(String xlname) {
360   - this.xlname = xlname;
361   - }
362   -
363   - public String getGsname() {
364   - return BasicData.businessCodeNameMap.get(this.ssgsdm);
365   - }
366   -
367   - public void setGsname(String gsname) {
368   - this.gsname = gsname;
369   - }
370   -
371   - public String getName() {
372   - return BasicData.allPerson.get(this.ssgsdm+"-"+this.jsy);
373   - }
374   -
375   - public void setName(String name) {
376   - this.name = name;
377   - }
378   -
379   - public String getFgsname() {
380   - return BasicData.businessFgsCodeNameMap.get(this.fgsdm+"_"+this.ssgsdm);
381   - }
382   -
383   - public void setFgsname(String fgsname) {
384   - this.fgsname = fgsname;
385   - }
386   -
387   - public Date getUpdatetime() {
388   - return updatetime;
389   - }
390   -
391   - public void setUpdatetime(Date updatetime) {
392   - this.updatetime = updatetime;
393   - }
394   -
395   - public String getLp() {
396   - return lp;
397   - }
398   -
399   - public void setLp(String lp) {
400   - this.lp = lp;
401   - }
402   -
403   - public String getJname() {
404   - return jname;
405   - }
406   -
407   - public void setJname(String jname) {
408   - this.jname = jname;
409   - }
410   -
411   -
412   -
413   -}
  1 +package com.bsth.entity.oil;
  2 +
  3 +import java.text.DecimalFormat;
  4 +import java.util.Date;
  5 +
  6 +import javax.persistence.*;
  7 +
  8 +import org.springframework.format.annotation.DateTimeFormat;
  9 +
  10 +import com.bsth.data.BasicData;
  11 +
  12 +@Entity
  13 +@Table(name = "bsth_c_dlb")
  14 +public class Dlb {
  15 + @Id
  16 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  17 + private Integer id;
  18 + @DateTimeFormat(pattern="yyyy-MM-dd")
  19 + private Date rq;
  20 + private String xlbm;
  21 + private String linename;
  22 + private String ssgsdm;
  23 + private String fgsdm;
  24 + private String nbbm;
  25 + private String jsy;
  26 + private Double czlc=0.0;
  27 + private Double jzlc=0.0;
  28 + //出站存电
  29 + private Double czcd=0.0;
  30 + //进站存电
  31 + private Double jzcd=0.0;
  32 + //充电量
  33 + private Double cdl;
  34 + private int sfkt;
  35 + private String jhsj;
  36 + //耗电
  37 + private Double hd=0.0;
  38 + private Double sh=0.0;
  39 + private String shyy;
  40 + private Double zlc=0.0;
  41 + private int yhlx;
  42 +
  43 + private Double ns=0.0;
  44 + private Double fyylc=0.0;
  45 + private Double jhzlc=0.0;
  46 + private Double jhfyylc=0.0;
  47 + private int jhzbc;
  48 + private int jhbc;
  49 + private int sjzbc;
  50 + private int sjbc;
  51 + private String edituser;
  52 + private Date edittime;
  53 + private Date createtime;
  54 + private Date updatetime;
  55 + private int nylx;
  56 + //进场顺序(根据最先出场和最后进场来关联车辆的存电量)
  57 + private int jcsx;
  58 +
  59 + private String jname;
  60 + @Transient
  61 + private String name;
  62 + @Transient
  63 + private String bglyh;
  64 +
  65 + @Transient
  66 + private String xlname;
  67 +
  68 + @Transient
  69 + private String gsname;
  70 +
  71 + @Transient
  72 + private String fgsname;
  73 +
  74 +
  75 +
  76 + private String lp;
  77 +
  78 + public Integer getId() {
  79 + return id;
  80 + }
  81 +
  82 + public void setId(Integer id) {
  83 + this.id = id;
  84 + }
  85 +
  86 + public Date getRq() {
  87 + return rq;
  88 + }
  89 +
  90 + public void setRq(Date rq) {
  91 + this.rq = rq;
  92 + }
  93 +
  94 + public String getXlbm() {
  95 + return xlbm;
  96 + }
  97 +
  98 + public void setXlbm(String xlbm) {
  99 + this.xlbm = xlbm;
  100 + }
  101 +
  102 + public String getLinename() {
  103 + return linename;
  104 + }
  105 +
  106 + public void setLinename(String linename) {
  107 + this.linename = linename;
  108 + }
  109 +
  110 + public String getSsgsdm() {
  111 + return ssgsdm;
  112 + }
  113 +
  114 + public void setSsgsdm(String ssgsdm) {
  115 + this.ssgsdm = ssgsdm;
  116 + }
  117 +
  118 + public String getFgsdm() {
  119 + return fgsdm;
  120 + }
  121 +
  122 + public void setFgsdm(String fgsdm) {
  123 + this.fgsdm = fgsdm;
  124 + }
  125 +
  126 + public String getNbbm() {
  127 + return nbbm;
  128 + }
  129 +
  130 + public void setNbbm(String nbbm) {
  131 + this.nbbm = nbbm;
  132 + }
  133 +
  134 + public String getJsy() {
  135 + return jsy;
  136 + }
  137 +
  138 + public void setJsy(String jsy) {
  139 + this.jsy = jsy;
  140 + }
  141 +
  142 + public Double getCzlc() {
  143 + return czlc;
  144 + }
  145 +
  146 + public void setCzlc(Double czlc) {
  147 + this.czlc = czlc;
  148 + }
  149 +
  150 + public Double getJzlc() {
  151 + return jzlc;
  152 + }
  153 +
  154 + public void setJzlc(Double jzlc) {
  155 + this.jzlc = jzlc;
  156 + }
  157 +
  158 + public Double getCzcd() {
  159 + return czcd;
  160 + }
  161 +
  162 + public void setCzcd(Double czcd) {
  163 + this.czcd = czcd;
  164 + }
  165 +
  166 + public Double getJzcd() {
  167 + return jzcd;
  168 + }
  169 +
  170 + public void setJzcd(Double jzcd) {
  171 + this.jzcd = jzcd;
  172 + }
  173 +
  174 + public Double getCdl() {
  175 + return cdl;
  176 + }
  177 +
  178 + public void setCdl(Double cdl) {
  179 + this.cdl = cdl;
  180 + }
  181 +
  182 + public int getSfkt() {
  183 + return sfkt;
  184 + }
  185 +
  186 + public void setSfkt(int sfkt) {
  187 + this.sfkt = sfkt;
  188 + }
  189 +
  190 + public String getJhsj() {
  191 + return jhsj;
  192 + }
  193 +
  194 + public void setJhsj(String jhsj) {
  195 + this.jhsj = jhsj;
  196 + }
  197 +
  198 + public Double getHd() {
  199 + return hd;
  200 + }
  201 +
  202 + public void setHd(Double hd) {
  203 + this.hd = hd;
  204 + }
  205 +
  206 + public Double getSh() {
  207 + return sh;
  208 + }
  209 +
  210 + public void setSh(Double sh) {
  211 + this.sh = sh;
  212 + }
  213 +
  214 + public String getShyy() {
  215 + return shyy;
  216 + }
  217 +
  218 + public void setShyy(String shyy) {
  219 + this.shyy = shyy;
  220 + }
  221 +
  222 + public Double getZlc() {
  223 + return zlc;
  224 + }
  225 +
  226 + public void setZlc(Double zlc) {
  227 + this.zlc = zlc;
  228 + }
  229 +
  230 + public int getYhlx() {
  231 + return yhlx;
  232 + }
  233 +
  234 + public void setYhlx(int yhlx) {
  235 + this.yhlx = yhlx;
  236 + }
  237 +
  238 + public Double getNs() {
  239 + return ns;
  240 + }
  241 +
  242 + public void setNs(Double ns) {
  243 + this.ns = ns;
  244 + }
  245 +
  246 + public Double getFyylc() {
  247 + return fyylc;
  248 + }
  249 +
  250 + public void setFyylc(Double fyylc) {
  251 + this.fyylc = fyylc;
  252 + }
  253 +
  254 + public Double getJhzlc() {
  255 + return jhzlc;
  256 + }
  257 +
  258 + public void setJhzlc(Double jhzlc) {
  259 + this.jhzlc = jhzlc;
  260 + }
  261 +
  262 + public Double getJhfyylc() {
  263 + return jhfyylc;
  264 + }
  265 +
  266 + public void setJhfyylc(Double jhfyylc) {
  267 + this.jhfyylc = jhfyylc;
  268 + }
  269 +
  270 + public int getJhzbc() {
  271 + return jhzbc;
  272 + }
  273 +
  274 + public void setJhzbc(int jhzbc) {
  275 + this.jhzbc = jhzbc;
  276 + }
  277 +
  278 + public int getJhbc() {
  279 + return jhbc;
  280 + }
  281 +
  282 + public void setJhbc(int jhbc) {
  283 + this.jhbc = jhbc;
  284 + }
  285 +
  286 + public int getSjzbc() {
  287 + return sjzbc;
  288 + }
  289 +
  290 + public void setSjzbc(int sjzbc) {
  291 + this.sjzbc = sjzbc;
  292 + }
  293 +
  294 + public int getSjbc() {
  295 + return sjbc;
  296 + }
  297 +
  298 + public void setSjbc(int sjbc) {
  299 + this.sjbc = sjbc;
  300 + }
  301 +
  302 + public String getEdituser() {
  303 + return edituser;
  304 + }
  305 +
  306 + public void setEdituser(String edituser) {
  307 + this.edituser = edituser;
  308 + }
  309 +
  310 + public Date getEdittime() {
  311 + return edittime;
  312 + }
  313 +
  314 + public void setEdittime(Date edittime) {
  315 + this.edittime = edittime;
  316 + }
  317 +
  318 + public Date getCreatetime() {
  319 + return createtime;
  320 + }
  321 +
  322 + public void setCreatetime(Date createtime) {
  323 + this.createtime = createtime;
  324 + }
  325 +
  326 + public int getNylx() {
  327 + return nylx;
  328 + }
  329 +
  330 + public void setNylx(int nylx) {
  331 + this.nylx = nylx;
  332 + }
  333 +
  334 + public int getJcsx() {
  335 + return jcsx;
  336 + }
  337 +
  338 + public void setJcsx(int jcsx) {
  339 + this.jcsx = jcsx;
  340 + }
  341 +
  342 + public String getBglyh() {
  343 + if(this.getZlc()==0){
  344 + return "0";
  345 + }else{
  346 + DecimalFormat df = new DecimalFormat("0.000");
  347 + return df.format(this.getHd()/this.getZlc()*100);
  348 + }
  349 + }
  350 +
  351 + public void setBglyh(String bglyh) {
  352 + this.bglyh = bglyh;
  353 + }
  354 +
  355 + public String getXlname() {
  356 + return BasicData.lineCodeAllNameMap.get(this.xlbm);
  357 + }
  358 +
  359 + public void setXlname(String xlname) {
  360 + this.xlname = xlname;
  361 + }
  362 +
  363 + public String getGsname() {
  364 + return BasicData.businessCodeNameMap.get(this.ssgsdm);
  365 + }
  366 +
  367 + public void setGsname(String gsname) {
  368 + this.gsname = gsname;
  369 + }
  370 +
  371 + public String getName() {
  372 + return BasicData.allPerson.get(this.ssgsdm+"-"+this.jsy);
  373 + }
  374 +
  375 + public void setName(String name) {
  376 + this.name = name;
  377 + }
  378 +
  379 + public String getFgsname() {
  380 + return BasicData.businessFgsCodeNameMap.get(this.fgsdm+"_"+this.ssgsdm);
  381 + }
  382 +
  383 + public void setFgsname(String fgsname) {
  384 + this.fgsname = fgsname;
  385 + }
  386 +
  387 + public Date getUpdatetime() {
  388 + return updatetime;
  389 + }
  390 +
  391 + public void setUpdatetime(Date updatetime) {
  392 + this.updatetime = updatetime;
  393 + }
  394 +
  395 + public String getLp() {
  396 + return lp;
  397 + }
  398 +
  399 + public void setLp(String lp) {
  400 + this.lp = lp;
  401 + }
  402 +
  403 + public String getJname() {
  404 + return jname;
  405 + }
  406 +
  407 + public void setJname(String jname) {
  408 + this.jname = jname;
  409 + }
  410 +
  411 +
  412 +
  413 +}
... ...
src/main/java/com/bsth/entity/oil/JdlReception.java 0 → 100644
  1 +package com.bsth.entity.oil;
  2 +
  3 +import java.util.Date;
  4 +
  5 +import javax.persistence.Entity;
  6 +import javax.persistence.GeneratedValue;
  7 +import javax.persistence.GenerationType;
  8 +import javax.persistence.Id;
  9 +import javax.persistence.Table;
  10 +
  11 +import org.springframework.format.annotation.DateTimeFormat;
  12 +
  13 +/**
  14 +--------------------------------------------------------
  15 + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  16 + `station_name` varchar(255) DEFAULT NULL COMMENT '站点名称',
  17 + `connector_id` varchar(255) DEFAULT NULL COMMENT '枪编号',
  18 + `order_no` varchar(255) DEFAULT NULL COMMENT '订单编号',
  19 + `start_time` varchar(255) DEFAULT NULL COMMENT '充电开始时间',
  20 + `end_time` varchar(255) DEFAULT NULL COMMENT '充电结束时间',
  21 + `start_soc` double(11,2) DEFAULT NULL COMMENT '开始 SOC(%)',
  22 + `end_soc` double(11,2) DEFAULT NULL COMMENT '结束 SOC(%)',
  23 + `stop_reason` varchar(255) DEFAULT NULL COMMENT '终止原因',
  24 + `charge_capacity` double(11,3) DEFAULT NULL COMMENT '充电量,单位:度',
  25 + `electric_charge` double(11,2) DEFAULT NULL COMMENT '电费,单位:元',
  26 + `service_charge` double(11,2) DEFAULT NULL COMMENT '服务费,单位:元',
  27 + `total_amount` double(11,2) DEFAULT NULL COMMENT '总费用,单位:元',
  28 + `vin_code` varchar(255) DEFAULT NULL COMMENT '卡号',
  29 + `card_no` varchar(255) DEFAULT NULL COMMENT 'VIN,车架号',
  30 + `car_code` varchar(255) DEFAULT NULL COMMENT '车牌号',
  31 + `date_str` varchar(255) DEFAULT NULL COMMENT '营运日期',
  32 + `origin` int(2) NOT NULL DEFAULT '0' COMMENT '数据源(0:接口获取;1:导入)',
  33 + `sum_time` bigint(11) DEFAULT NULL COMMENT '总计充电时间(分钟)',
  34 + `pile_id` varchar(255) DEFAULT NULL COMMENT '桩号',
  35 + `create_by` varchar(255) DEFAULT NULL COMMENT '创建人',
  36 + `create_date` datetime DEFAULT NULL COMMENT '创建时间',
  37 + `update_by` varchar(255) DEFAULT NULL COMMENT '修改人',
  38 + `update_date` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  39 +*/
  40 +@Entity
  41 +@Table(name = "bsth_c_jdl_reception")
  42 +public class JdlReception {
  43 + @Id
  44 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  45 + private Long id;
  46 + private String stationName;
  47 + private String connectorId;
  48 + private String orderNo;
  49 + private String startTime;
  50 + private String endTime;
  51 + private Double startSoc;
  52 + private Double endSoc;
  53 + private String stopReason;
  54 + private Double chargeCapacity;
  55 + private Double electricCharge;
  56 + private Double serviceCharge;
  57 + private Double totalAmount;
  58 + private String vinCode;
  59 + private String cardNo;
  60 + private String carCode;
  61 + private String dateStr;
  62 + private Integer origin;
  63 + private Integer sumTime;
  64 + private String batchNo;
  65 + private String pileId;
  66 + private String createBy;
  67 + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
  68 + private Date createDate;
  69 + private String updateBy;
  70 + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
  71 + private Date updateDate;
  72 +
  73 +
  74 + public Long getId() {
  75 + return id;
  76 + }
  77 + public void setId(Long id) {
  78 + this.id = id;
  79 + }
  80 + public String getStationName() {
  81 + return stationName;
  82 + }
  83 + public void setStationName(String stationName) {
  84 + this.stationName = stationName;
  85 + }
  86 + public String getConnectorId() {
  87 + return connectorId;
  88 + }
  89 + public void setConnectorId(String connectorId) {
  90 + this.connectorId = connectorId;
  91 + }
  92 + public String getOrderNo() {
  93 + return orderNo;
  94 + }
  95 + public void setOrderNo(String orderNo) {
  96 + this.orderNo = orderNo;
  97 + }
  98 + public String getStartTime() {
  99 + return startTime;
  100 + }
  101 + public void setStartTime(String startTime) {
  102 + this.startTime = startTime;
  103 + }
  104 + public String getEndTime() {
  105 + return endTime;
  106 + }
  107 + public void setEndTime(String endTime) {
  108 + this.endTime = endTime;
  109 + }
  110 + public Double getStartSoc() {
  111 + return startSoc;
  112 + }
  113 + public void setStartSoc(Double startSoc) {
  114 + this.startSoc = startSoc;
  115 + }
  116 + public Double getEndSoc() {
  117 + return endSoc;
  118 + }
  119 + public void setEndSoc(Double endSoc) {
  120 + this.endSoc = endSoc;
  121 + }
  122 + public String getStopReason() {
  123 + return stopReason;
  124 + }
  125 + public void setStopReason(String stopReason) {
  126 + this.stopReason = stopReason;
  127 + }
  128 + public Double getChargeCapacity() {
  129 + return chargeCapacity;
  130 + }
  131 + public void setChargeCapacity(Double chargeCapacity) {
  132 + this.chargeCapacity = chargeCapacity;
  133 + }
  134 + public Double getElectricCharge() {
  135 + return electricCharge;
  136 + }
  137 + public void setElectricCharge(Double electricCharge) {
  138 + this.electricCharge = electricCharge;
  139 + }
  140 + public Double getServiceCharge() {
  141 + return serviceCharge;
  142 + }
  143 + public void setServiceCharge(Double serviceCharge) {
  144 + this.serviceCharge = serviceCharge;
  145 + }
  146 + public Double getTotalAmount() {
  147 + return totalAmount;
  148 + }
  149 + public void setTotalAmount(Double totalAmount) {
  150 + this.totalAmount = totalAmount;
  151 + }
  152 + public String getVinCode() {
  153 + return vinCode;
  154 + }
  155 + public void setVinCode(String vinCode) {
  156 + this.vinCode = vinCode;
  157 + }
  158 + public String getCardNo() {
  159 + return cardNo;
  160 + }
  161 + public void setCardNo(String cardNo) {
  162 + this.cardNo = cardNo;
  163 + }
  164 + public String getCarCode() {
  165 + return carCode;
  166 + }
  167 + public void setCarCode(String carCode) {
  168 + this.carCode = carCode;
  169 + }
  170 + public String getDateStr() {
  171 + return dateStr;
  172 + }
  173 + public void setDateStr(String dateStr) {
  174 + this.dateStr = dateStr;
  175 + }
  176 + public Integer getOrigin() {
  177 + return origin;
  178 + }
  179 + public void setOrigin(Integer origin) {
  180 + this.origin = origin;
  181 + }
  182 + public Integer getSumTime() {
  183 + return sumTime;
  184 + }
  185 + public void setSumTime(Integer sumTime) {
  186 + this.sumTime = sumTime;
  187 + }
  188 + public String getBatchNo() {
  189 + return batchNo;
  190 + }
  191 + public void setBatchNo(String batchNo) {
  192 + this.batchNo = batchNo;
  193 + }
  194 + public String getPileId() {
  195 + return pileId;
  196 + }
  197 + public void setPileId(String pileId) {
  198 + this.pileId = pileId;
  199 + }
  200 + public String getCreateBy() {
  201 + return createBy;
  202 + }
  203 + public void setCreateBy(String createBy) {
  204 + this.createBy = createBy;
  205 + }
  206 + public Date getCreateDate() {
  207 + return createDate;
  208 + }
  209 + public void setCreateDate(Date createDate) {
  210 + this.createDate = createDate;
  211 + }
  212 + public String getUpdateBy() {
  213 + return updateBy;
  214 + }
  215 + public void setUpdateBy(String updateBy) {
  216 + this.updateBy = updateBy;
  217 + }
  218 + public Date getUpdateDate() {
  219 + return updateDate;
  220 + }
  221 + public void setUpdateDate(Date updateDate) {
  222 + this.updateDate = updateDate;
  223 + }
  224 +
  225 +}
0 226 \ No newline at end of file
... ...
src/main/java/com/bsth/entity/oil/Qlb.java
... ... @@ -348,7 +348,7 @@ public class Qlb {
348 348 if(this.getZlc()==0){
349 349 return "0";
350 350 }else{
351   - DecimalFormat df = new DecimalFormat("0.00");
  351 + DecimalFormat df = new DecimalFormat("0.000");
352 352 return df.format(this.getHn()/this.getZlc()*100);
353 353 }
354 354 }
... ...
src/main/java/com/bsth/entity/oil/Ylb.java
1   -package com.bsth.entity.oil;
2   -
3   -import java.text.DecimalFormat;
4   -import java.util.Date;
5   -
6   -import javax.persistence.*;
7   -
8   -import org.springframework.format.annotation.DateTimeFormat;
9   -
10   -import com.bsth.data.BasicData;
11   -
12   -@Entity
13   -@Table(name = "bsth_c_ylb")
14   -public class Ylb {
15   - @Id
16   - @GeneratedValue(strategy = GenerationType.IDENTITY)
17   - private Integer id;
18   - @DateTimeFormat(pattern="yyyy-MM-dd")
19   - private Date rq;
20   - private String xlbm;
21   - private String linename;
22   - private String ssgsdm;
23   - private String fgsdm;
24   - private String nbbm;
25   - private String jsy;
26   - private String jname;
27   - private Double czlc=0.0;
28   - private Double jzlc=0.0;
29   - private Double czyl=0.0;
30   - private Double jzyl=0.0;
31   - private Double jzl=0.0;
32   - private int sfkt;
33   - private String jhsj;
34   - private Double yh=0.0;
35   - private Double sh=0.0;
36   - private String shyy;
37   - private Double zlc=0.0;
38   - private int yhlx;
39   - private String rylx="0";
40   - private Double ns=0.0;
41   - private Double fyylc=0.0;
42   - private Double jhzlc=0.0;
43   - private Double jhfyylc=0.0;
44   - private int jhzbc;
45   - private int jhbc;
46   - private int sjzbc;
47   - private int sjbc;
48   - private String edituser;
49   - private Date edittime;
50   - private Date updatetime;
51   - private Date createtime;
52   -
53   - private int nylx;
54   - //进场顺序(根据最先出场和最后进场来关联车辆的存油量)
55   - private int jcsx;
56   -
57   - private String lp;
58   - @Transient
59   - private String bglyh;
60   -
61   - @Transient
62   - private String xlname;
63   -
64   - @Transient
65   - private String gsname;
66   -
67   - @Transient
68   - private String fgsname;
69   -
70   - @Transient
71   - private String name;
72   -
73   - public Integer getId() {
74   - return id;
75   - }
76   -
77   - public void setId(Integer id) {
78   - this.id = id;
79   - }
80   - public Date getRq() {
81   - return rq;
82   - }
83   -
84   - public void setRq(Date rq) {
85   - this.rq = rq;
86   - }
87   -
88   - public String getXlbm() {
89   - return xlbm;
90   - }
91   -
92   - public void setXlbm(String xlbm) {
93   - this.xlbm = xlbm;
94   - }
95   -
96   - public String getLinename() {
97   - return linename;
98   - }
99   -
100   - public void setLinename(String linename) {
101   - this.linename = linename;
102   - }
103   -
104   - public String getSsgsdm() {
105   - return ssgsdm;
106   - }
107   - public void setSsgsdm(String ssgsdm) {
108   - this.ssgsdm = ssgsdm;
109   - }
110   - public String getFgsdm() {
111   - return fgsdm;
112   - }
113   - public void setFgsdm(String fgsdm) {
114   - this.fgsdm = fgsdm;
115   - }
116   - public String getNbbm() {
117   - return nbbm;
118   - }
119   - public void setNbbm(String nbbm) {
120   - this.nbbm = nbbm;
121   - }
122   - public String getJsy() {
123   - return jsy;
124   - }
125   - public void setJsy(String jsy) {
126   - this.jsy = jsy;
127   - }
128   - public Double getCzlc() {
129   - return czlc;
130   - }
131   - public void setCzlc(Double czlc) {
132   - this.czlc = czlc;
133   - }
134   - public Double getJzlc() {
135   - return jzlc;
136   - }
137   - public void setJzlc(Double jzlc) {
138   - this.jzlc = jzlc;
139   - }
140   - public Double getCzyl() {
141   - return czyl;
142   - }
143   - public void setCzyl(Double czyl) {
144   - this.czyl = czyl;
145   - }
146   - public Double getJzyl() {
147   - return jzyl;
148   - }
149   - public void setJzyl(Double jzyl) {
150   - this.jzyl = jzyl;
151   - }
152   - public Double getJzl() {
153   - return jzl;
154   - }
155   - public void setJzl(Double jzl) {
156   - this.jzl = jzl;
157   - }
158   - public int getSfkt() {
159   - return sfkt;
160   - }
161   - public void setSfkt(int sfkt) {
162   - this.sfkt = sfkt;
163   - }
164   - public String getJhsj() {
165   - return jhsj;
166   - }
167   - public void setJhsj(String jhsj) {
168   - this.jhsj = jhsj;
169   - }
170   - public Double getYh() {
171   - return yh;
172   - }
173   - public void setYh(Double yh) {
174   - this.yh = yh;
175   - }
176   - public Double getSh() {
177   - return sh;
178   - }
179   - public void setSh(Double sh) {
180   - this.sh = sh;
181   - }
182   - public String getShyy() {
183   - return shyy;
184   - }
185   - public void setShyy(String shyy) {
186   - this.shyy = shyy;
187   - }
188   - public Double getZlc() {
189   - return zlc;
190   - }
191   - public void setZlc(Double zlc) {
192   - this.zlc = zlc;
193   - }
194   - public int getYhlx() {
195   - return yhlx;
196   - }
197   - public void setYhlx(int yhlx) {
198   - this.yhlx = yhlx;
199   - }
200   - public String getRylx() {
201   - return rylx;
202   - }
203   - public void setRylx(String rylx) {
204   - this.rylx = rylx;
205   - }
206   - public Double getNs() {
207   - return ns;
208   - }
209   - public void setNs(Double ns) {
210   - this.ns = ns;
211   - }
212   - public Double getFyylc() {
213   - return fyylc;
214   - }
215   - public void setFyylc(Double fyylc) {
216   - this.fyylc = fyylc;
217   - }
218   - public Double getJhzlc() {
219   - return jhzlc;
220   - }
221   - public void setJhzlc(Double jhzlc) {
222   - this.jhzlc = jhzlc;
223   - }
224   - public Double getJhfyylc() {
225   - return jhfyylc;
226   - }
227   - public void setJhfyylc(Double jhfyylc) {
228   - this.jhfyylc = jhfyylc;
229   - }
230   - public int getJhzbc() {
231   - return jhzbc;
232   - }
233   - public void setJhzbc(int jhzbc) {
234   - this.jhzbc = jhzbc;
235   - }
236   - public int getJhbc() {
237   - return jhbc;
238   - }
239   - public void setJhbc(int jhbc) {
240   - this.jhbc = jhbc;
241   - }
242   - public int getSjzbc() {
243   - return sjzbc;
244   - }
245   - public void setSjzbc(int sjzbc) {
246   - this.sjzbc = sjzbc;
247   - }
248   - public int getSjbc() {
249   - return sjbc;
250   - }
251   - public void setSjbc(int sjbc) {
252   - this.sjbc = sjbc;
253   - }
254   - public String getEdituser() {
255   - return edituser;
256   - }
257   - public void setEdituser(String edituser) {
258   - this.edituser = edituser;
259   - }
260   - public Date getEdittime() {
261   - return edittime;
262   - }
263   - public void setEdittime(Date edittime) {
264   - this.edittime = edittime;
265   - }
266   - public Date getCreatetime() {
267   - return createtime;
268   - }
269   - public void setCreatetime(Date createtime) {
270   - this.createtime = createtime;
271   - }
272   - public int getNylx() {
273   - return nylx;
274   - }
275   - public void setNylx(int nylx) {
276   - this.nylx = nylx;
277   - }
278   -
279   - public int getJcsx(){
280   - return jcsx;
281   - }
282   -
283   - public void setJcsx(int jcsx){
284   - this.jcsx=jcsx;
285   - }
286   -
287   - public String getBglyh() {
288   - if(this.getZlc()==0){
289   - return "0";
290   - }else{
291   - DecimalFormat df = new DecimalFormat("0.00");
292   - return df.format(this.getYh()/this.getZlc()*100);
293   - }
294   - }
295   -
296   - public void setBglyh(String bglyh) {
297   - this.bglyh = bglyh;
298   - }
299   -
300   - public String getXlname() {
301   - return BasicData.lineCodeAllNameMap.get(this.xlbm);
302   - }
303   -
304   - public void setXlname(String xlname) {
305   - this.xlname = xlname;
306   - }
307   -
308   - public String getGsname() {
309   - return BasicData.businessCodeNameMap.get(this.ssgsdm);
310   - }
311   -
312   - public void setGsname(String gsname) {
313   - this.gsname = gsname;
314   - }
315   -
316   -
317   - public String getFgsname() {
318   - return BasicData.businessFgsCodeNameMap.get(this.fgsdm+"_"+this.ssgsdm);
319   - }
320   -
321   - public void setFgsname(String fgsname) {
322   - this.fgsname = fgsname;
323   - }
324   -
325   - public String getName() {
326   - return BasicData.allPerson.get(this.ssgsdm+"-"+this.jsy);
327   - }
328   -
329   - public void setName(String name) {
330   - this.name = name;
331   - }
332   -
333   -
334   - public Date getUpdatetime() {
335   - return updatetime;
336   - }
337   -
338   - public void setUpdatetime(Date updatetime) {
339   - this.updatetime = updatetime;
340   - }
341   -
342   - public String getLp() {
343   - return lp;
344   - }
345   -
346   - public void setLp(String lp) {
347   - this.lp = lp;
348   - }
349   -
350   - public String getJname() {
351   - return jname;
352   - }
353   -
354   - public void setJname(String jname) {
355   - this.jname = jname;
356   - }
357   -
358   -
359   -}
  1 +package com.bsth.entity.oil;
  2 +
  3 +import java.text.DecimalFormat;
  4 +import java.util.Date;
  5 +
  6 +import javax.persistence.*;
  7 +
  8 +import org.springframework.format.annotation.DateTimeFormat;
  9 +
  10 +import com.bsth.data.BasicData;
  11 +
  12 +@Entity
  13 +@Table(name = "bsth_c_ylb")
  14 +public class Ylb {
  15 + @Id
  16 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  17 + private Integer id;
  18 + @DateTimeFormat(pattern="yyyy-MM-dd")
  19 + private Date rq;
  20 + private String xlbm;
  21 + private String linename;
  22 + private String ssgsdm;
  23 + private String fgsdm;
  24 + private String nbbm;
  25 + private String jsy;
  26 + private String jname;
  27 + private Double czlc=0.0;
  28 + private Double jzlc=0.0;
  29 + private Double czyl=0.0;
  30 + private Double jzyl=0.0;
  31 + private Double jzl=0.0;
  32 + private int sfkt;
  33 + private String jhsj;
  34 + private Double yh=0.0;
  35 + private Double sh=0.0;
  36 + private String shyy;
  37 + private Double zlc=0.0;
  38 + private int yhlx;
  39 + private String rylx="0";
  40 + private Double ns=0.0;
  41 + private Double fyylc=0.0;
  42 + private Double jhzlc=0.0;
  43 + private Double jhfyylc=0.0;
  44 + private int jhzbc;
  45 + private int jhbc;
  46 + private int sjzbc;
  47 + private int sjbc;
  48 + private String edituser;
  49 + private Date edittime;
  50 + private Date updatetime;
  51 + private Date createtime;
  52 +
  53 + private int nylx;
  54 + //进场顺序(根据最先出场和最后进场来关联车辆的存油量)
  55 + private int jcsx;
  56 +
  57 + private String lp;
  58 + @Transient
  59 + private String bglyh;
  60 +
  61 + @Transient
  62 + private String xlname;
  63 +
  64 + @Transient
  65 + private String gsname;
  66 +
  67 + @Transient
  68 + private String fgsname;
  69 +
  70 + @Transient
  71 + private String name;
  72 +
  73 + public Integer getId() {
  74 + return id;
  75 + }
  76 +
  77 + public void setId(Integer id) {
  78 + this.id = id;
  79 + }
  80 + public Date getRq() {
  81 + return rq;
  82 + }
  83 +
  84 + public void setRq(Date rq) {
  85 + this.rq = rq;
  86 + }
  87 +
  88 + public String getXlbm() {
  89 + return xlbm;
  90 + }
  91 +
  92 + public void setXlbm(String xlbm) {
  93 + this.xlbm = xlbm;
  94 + }
  95 +
  96 + public String getLinename() {
  97 + return linename;
  98 + }
  99 +
  100 + public void setLinename(String linename) {
  101 + this.linename = linename;
  102 + }
  103 +
  104 + public String getSsgsdm() {
  105 + return ssgsdm;
  106 + }
  107 + public void setSsgsdm(String ssgsdm) {
  108 + this.ssgsdm = ssgsdm;
  109 + }
  110 + public String getFgsdm() {
  111 + return fgsdm;
  112 + }
  113 + public void setFgsdm(String fgsdm) {
  114 + this.fgsdm = fgsdm;
  115 + }
  116 + public String getNbbm() {
  117 + return nbbm;
  118 + }
  119 + public void setNbbm(String nbbm) {
  120 + this.nbbm = nbbm;
  121 + }
  122 + public String getJsy() {
  123 + return jsy;
  124 + }
  125 + public void setJsy(String jsy) {
  126 + this.jsy = jsy;
  127 + }
  128 + public Double getCzlc() {
  129 + return czlc;
  130 + }
  131 + public void setCzlc(Double czlc) {
  132 + this.czlc = czlc;
  133 + }
  134 + public Double getJzlc() {
  135 + return jzlc;
  136 + }
  137 + public void setJzlc(Double jzlc) {
  138 + this.jzlc = jzlc;
  139 + }
  140 + public Double getCzyl() {
  141 + return czyl;
  142 + }
  143 + public void setCzyl(Double czyl) {
  144 + this.czyl = czyl;
  145 + }
  146 + public Double getJzyl() {
  147 + return jzyl;
  148 + }
  149 + public void setJzyl(Double jzyl) {
  150 + this.jzyl = jzyl;
  151 + }
  152 + public Double getJzl() {
  153 + return jzl;
  154 + }
  155 + public void setJzl(Double jzl) {
  156 + this.jzl = jzl;
  157 + }
  158 + public int getSfkt() {
  159 + return sfkt;
  160 + }
  161 + public void setSfkt(int sfkt) {
  162 + this.sfkt = sfkt;
  163 + }
  164 + public String getJhsj() {
  165 + return jhsj;
  166 + }
  167 + public void setJhsj(String jhsj) {
  168 + this.jhsj = jhsj;
  169 + }
  170 + public Double getYh() {
  171 + return yh;
  172 + }
  173 + public void setYh(Double yh) {
  174 + this.yh = yh;
  175 + }
  176 + public Double getSh() {
  177 + return sh;
  178 + }
  179 + public void setSh(Double sh) {
  180 + this.sh = sh;
  181 + }
  182 + public String getShyy() {
  183 + return shyy;
  184 + }
  185 + public void setShyy(String shyy) {
  186 + this.shyy = shyy;
  187 + }
  188 + public Double getZlc() {
  189 + return zlc;
  190 + }
  191 + public void setZlc(Double zlc) {
  192 + this.zlc = zlc;
  193 + }
  194 + public int getYhlx() {
  195 + return yhlx;
  196 + }
  197 + public void setYhlx(int yhlx) {
  198 + this.yhlx = yhlx;
  199 + }
  200 + public String getRylx() {
  201 + return rylx;
  202 + }
  203 + public void setRylx(String rylx) {
  204 + this.rylx = rylx;
  205 + }
  206 + public Double getNs() {
  207 + return ns;
  208 + }
  209 + public void setNs(Double ns) {
  210 + this.ns = ns;
  211 + }
  212 + public Double getFyylc() {
  213 + return fyylc;
  214 + }
  215 + public void setFyylc(Double fyylc) {
  216 + this.fyylc = fyylc;
  217 + }
  218 + public Double getJhzlc() {
  219 + return jhzlc;
  220 + }
  221 + public void setJhzlc(Double jhzlc) {
  222 + this.jhzlc = jhzlc;
  223 + }
  224 + public Double getJhfyylc() {
  225 + return jhfyylc;
  226 + }
  227 + public void setJhfyylc(Double jhfyylc) {
  228 + this.jhfyylc = jhfyylc;
  229 + }
  230 + public int getJhzbc() {
  231 + return jhzbc;
  232 + }
  233 + public void setJhzbc(int jhzbc) {
  234 + this.jhzbc = jhzbc;
  235 + }
  236 + public int getJhbc() {
  237 + return jhbc;
  238 + }
  239 + public void setJhbc(int jhbc) {
  240 + this.jhbc = jhbc;
  241 + }
  242 + public int getSjzbc() {
  243 + return sjzbc;
  244 + }
  245 + public void setSjzbc(int sjzbc) {
  246 + this.sjzbc = sjzbc;
  247 + }
  248 + public int getSjbc() {
  249 + return sjbc;
  250 + }
  251 + public void setSjbc(int sjbc) {
  252 + this.sjbc = sjbc;
  253 + }
  254 + public String getEdituser() {
  255 + return edituser;
  256 + }
  257 + public void setEdituser(String edituser) {
  258 + this.edituser = edituser;
  259 + }
  260 + public Date getEdittime() {
  261 + return edittime;
  262 + }
  263 + public void setEdittime(Date edittime) {
  264 + this.edittime = edittime;
  265 + }
  266 + public Date getCreatetime() {
  267 + return createtime;
  268 + }
  269 + public void setCreatetime(Date createtime) {
  270 + this.createtime = createtime;
  271 + }
  272 + public int getNylx() {
  273 + return nylx;
  274 + }
  275 + public void setNylx(int nylx) {
  276 + this.nylx = nylx;
  277 + }
  278 +
  279 + public int getJcsx(){
  280 + return jcsx;
  281 + }
  282 +
  283 + public void setJcsx(int jcsx){
  284 + this.jcsx=jcsx;
  285 + }
  286 +
  287 + public String getBglyh() {
  288 + if(this.getZlc()==0){
  289 + return "0";
  290 + }else{
  291 + DecimalFormat df = new DecimalFormat("0.000");
  292 + return df.format(this.getYh()/this.getZlc()*100);
  293 + }
  294 + }
  295 +
  296 + public void setBglyh(String bglyh) {
  297 + this.bglyh = bglyh;
  298 + }
  299 +
  300 + public String getXlname() {
  301 + return BasicData.lineCodeAllNameMap.get(this.xlbm);
  302 + }
  303 +
  304 + public void setXlname(String xlname) {
  305 + this.xlname = xlname;
  306 + }
  307 +
  308 + public String getGsname() {
  309 + return BasicData.businessCodeNameMap.get(this.ssgsdm);
  310 + }
  311 +
  312 + public void setGsname(String gsname) {
  313 + this.gsname = gsname;
  314 + }
  315 +
  316 +
  317 + public String getFgsname() {
  318 + return BasicData.businessFgsCodeNameMap.get(this.fgsdm+"_"+this.ssgsdm);
  319 + }
  320 +
  321 + public void setFgsname(String fgsname) {
  322 + this.fgsname = fgsname;
  323 + }
  324 +
  325 + public String getName() {
  326 + return BasicData.allPerson.get(this.ssgsdm+"-"+this.jsy);
  327 + }
  328 +
  329 + public void setName(String name) {
  330 + this.name = name;
  331 + }
  332 +
  333 +
  334 + public Date getUpdatetime() {
  335 + return updatetime;
  336 + }
  337 +
  338 + public void setUpdatetime(Date updatetime) {
  339 + this.updatetime = updatetime;
  340 + }
  341 +
  342 + public String getLp() {
  343 + return lp;
  344 + }
  345 +
  346 + public void setLp(String lp) {
  347 + this.lp = lp;
  348 + }
  349 +
  350 + public String getJname() {
  351 + return jname;
  352 + }
  353 +
  354 + public void setJname(String jname) {
  355 + this.jname = jname;
  356 + }
  357 +
  358 +
  359 +}
... ...
src/main/java/com/bsth/entity/realcontrol/ScheduleRealInfo.java
... ... @@ -21,7 +21,7 @@ import java.util.Set;
21 21 @NamedAttributeNode("cTasks")
22 22 })
23 23 })
24   -public class ScheduleRealInfo {
  24 +public class ScheduleRealInfo implements Cloneable{
25 25 /** 主键Id */
26 26 @Id
27 27 private Long id;
... ... @@ -1054,4 +1054,10 @@ public class ScheduleRealInfo {
1054 1054 public void setOperationType(String operationType) {
1055 1055 this.operationType = operationType;
1056 1056 }
  1057 +
  1058 + @Override
  1059 + public ScheduleRealInfo clone() throws CloneNotSupportedException {
  1060 + ScheduleRealInfo cloned = (ScheduleRealInfo) super.clone();
  1061 + return cloned;
  1062 + }
1057 1063 }
... ...
src/main/java/com/bsth/repository/DKLInfoRepository.java 0 → 100644
  1 +package com.bsth.repository;
  2 +
  3 +import com.bsth.entity.DKLInfo;
  4 +import org.springframework.stereotype.Repository;
  5 +
  6 +
  7 +@Repository
  8 +public interface DKLInfoRepository extends BaseRepository<DKLInfo, Integer> {
  9 +}
... ...
src/main/java/com/bsth/repository/lg_travel/RegionLineCarRepository.java 0 → 100644
  1 +package com.bsth.repository.lg_travel;
  2 +
  3 +
  4 +import com.bsth.entity.lg_travel.RegionLineCar;
  5 +import com.bsth.repository.BaseRepository;
  6 +import org.springframework.stereotype.Repository;
  7 +
  8 +@Repository
  9 +public interface RegionLineCarRepository extends BaseRepository<RegionLineCar, Long> {
  10 +}
... ...
src/main/java/com/bsth/repository/lg_travel/RegionRepository.java 0 → 100644
  1 +package com.bsth.repository.lg_travel;
  2 +
  3 +
  4 +import com.bsth.entity.lg_travel.Region;
  5 +import com.bsth.repository.BaseRepository;
  6 +import org.springframework.stereotype.Repository;
  7 +
  8 +@Repository
  9 +public interface RegionRepository extends BaseRepository<Region, Long> {
  10 +}
... ...
src/main/java/com/bsth/repository/oil/JdlReceptionRepository.java 0 → 100644
  1 +package com.bsth.repository.oil;
  2 +
  3 +import java.util.List;
  4 +
  5 +import org.springframework.data.jpa.repository.Modifying;
  6 +import org.springframework.data.jpa.repository.Query;
  7 +import org.springframework.stereotype.Repository;
  8 +import org.springframework.transaction.annotation.Transactional;
  9 +
  10 +import com.bsth.entity.oil.JdlReception;
  11 +import com.bsth.repository.BaseRepository;
  12 +
  13 +@Repository
  14 +public interface JdlReceptionRepository extends BaseRepository<JdlReception, Integer>{
  15 +
  16 + @Query(value="SELECT date_str, car_code, sum(CAST(charge_capacity AS DECIMAL(10, 3))) charge_capacity FROM bsth_c_jdl_reception where date_str = ?1 and car_code like %?2% group by date_str, car_code order by date_str" ,nativeQuery=true)
  17 + List<Object[]> querySum(String rq, String nbbm);
  18 +
  19 + @Query(value="SELECT * FROM bsth_c_jdl_reception where date_str = ?1 and car_code like %?2% " ,nativeQuery=true)
  20 + List<JdlReception> query(String rq, String nbbm);
  21 +
  22 + @Query(value="SELECT batch_no, create_by, DATE_FORMAT(create_date, '%Y-%m-%d %H:%i:%s') create_date FROM bsth_c_jdl_reception where DATE_FORMAT(create_date, '%Y-%m-%d') = ?1 and origin = 1 group by batch_no, create_by, create_date order by batch_no" ,nativeQuery=true)
  23 + List<Object[]> queryBatch(String rq);
  24 +
  25 + @Query(value="SELECT * FROM bsth_c_jdl_reception where create_by = ?1 and DATE_FORMAT(create_date, '%Y-%m-%d %H:%i:%s') = ?2 and origin = 1 " ,nativeQuery=true)
  26 + List<JdlReception> queryBatchData(String createBy, String createDate);
  27 +
  28 + @Modifying
  29 + @Transactional
  30 + @Query(value = "delete JdlReception j where createBy = ?1 and DATE_FORMAT(createDate, '%Y-%m-%d %H:%i:%s') = ?2 and origin = 1")
  31 + void deleteBatch(String createBy, String createDate);
  32 +
  33 + @Transactional
  34 + @Modifying
  35 + @Query(value="UPDATE bsth_c_jdl_reception SET " +
  36 + " date_str = ?2," +
  37 + " pile_id = ?3," +
  38 + " car_code = ?4," +
  39 + " start_time = ?5," +
  40 + " end_time = ?6," +
  41 + " sum_time = ?7," +
  42 + " start_soc = ?8," +
  43 + " end_soc = ?9," +
  44 + " charge_capacity = ?10," +
  45 + " stop_reason = ?11" +
  46 + " WHERE id = ?1", nativeQuery=true)
  47 + public void update(Long id, String dateStr, String pileId, String carCode, String startTime, String endTime, Integer sumTime, Double startSoc, Double endSoc, Double chargeCapacity, String stopReason);
  48 +
  49 +}
... ...
src/main/java/com/bsth/repository/oil/NylogRepository.java
1 1 package com.bsth.repository.oil;
2 2  
  3 +import java.util.List;
3 4  
4   -
  5 +import org.springframework.data.jpa.repository.Query;
5 6 import org.springframework.stereotype.Repository;
  7 +
6 8 import com.bsth.entity.oil.Nylog;
7 9 import com.bsth.repository.BaseRepository;
8 10  
9 11 @Repository
10 12 public interface NylogRepository extends BaseRepository<Nylog, Integer>{
  13 +
  14 + @Query(value="select n from Nylog n where nylx = ?1 and czmc = ?2 and cxtj = ?3 order by createdate desc ")
  15 + List<Nylog> selectByCxtj(String nylx, String czmc, String cxtj);
  16 +
11 17 }
... ...
src/main/java/com/bsth/service/DKLInfoService.java 0 → 100644
  1 +package com.bsth.service;
  2 +
  3 +import com.bsth.entity.DKLInfo;
  4 +
  5 +
  6 +public interface DKLInfoService extends BaseService<DKLInfo, Integer> {
  7 +}
... ...
src/main/java/com/bsth/service/impl/DKLInfoServiceImpl.java 0 → 100644
  1 +package com.bsth.service.impl;
  2 +
  3 +import com.bsth.entity.DKLInfo;
  4 +import com.bsth.service.DKLInfoService;
  5 +import org.springframework.stereotype.Service;
  6 +
  7 +
  8 +@Service
  9 +public class DKLInfoServiceImpl extends BaseServiceImpl<DKLInfo, Integer> implements DKLInfoService {
  10 +}
... ...
src/main/java/com/bsth/service/lg_travel/RegionLineCarService.java 0 → 100644
  1 +package com.bsth.service.lg_travel;
  2 +
  3 +import com.bsth.entity.lg_travel.RegionLineCar;
  4 +import com.bsth.service.BaseService;
  5 +
  6 +public interface RegionLineCarService extends BaseService<RegionLineCar, Long> {
  7 +}
... ...
src/main/java/com/bsth/service/lg_travel/RegionService.java 0 → 100644
  1 +package com.bsth.service.lg_travel;
  2 +
  3 +import com.bsth.entity.lg_travel.Region;
  4 +import com.bsth.service.BaseService;
  5 +
  6 +public interface RegionService extends BaseService<Region, Long> {
  7 +}
... ...
src/main/java/com/bsth/service/lg_travel/impl/RegionLineCarServiceImpl.java 0 → 100644
  1 +package com.bsth.service.lg_travel.impl;
  2 +
  3 +
  4 +import com.bsth.entity.lg_travel.RegionLineCar;
  5 +import com.bsth.service.impl.BaseServiceImpl;
  6 +import com.bsth.service.lg_travel.RegionLineCarService;
  7 +import org.springframework.stereotype.Service;
  8 +
  9 +@Service
  10 +public class RegionLineCarServiceImpl extends BaseServiceImpl<RegionLineCar, Long> implements RegionLineCarService {
  11 +
  12 +
  13 +
  14 +}
... ...
src/main/java/com/bsth/service/lg_travel/impl/RegionServiceImpl.java 0 → 100644
  1 +package com.bsth.service.lg_travel.impl;
  2 +
  3 +
  4 +import com.bsth.entity.lg_travel.Region;
  5 +import com.bsth.service.impl.BaseServiceImpl;
  6 +import com.bsth.service.lg_travel.RegionService;
  7 +import org.springframework.stereotype.Service;
  8 +
  9 +@Service
  10 +public class RegionServiceImpl extends BaseServiceImpl<Region, Long> implements RegionService {
  11 +
  12 +
  13 +
  14 +}
... ...
src/main/java/com/bsth/service/oil/JdlService.java
1 1 package com.bsth.service.oil;
2 2  
3 3 import java.io.File;
  4 +import java.io.IOException;
  5 +import java.util.List;
4 6 import java.util.Map;
5 7  
  8 +import javax.servlet.http.HttpServletResponse;
  9 +
6 10 import com.bsth.entity.oil.Jdl;
  11 +import com.bsth.entity.oil.JdlReception;
7 12 import com.bsth.service.BaseService;
8 13  
9 14 public interface JdlService extends BaseService<Jdl, Integer> {
10 15  
11 16 public String importExcel(File file, String gsbm_, String gsName, String fgsbm, String fgsName);
  17 +
  18 + /** 24年12月工单更新电量导入 */
  19 + public String importExcel_2412(File file, String gsbm_, String gsName, String fgsbm, String fgsName);
12 20  
13 21 public Map<String, Object> query(Map<String, Object> map);
  22 +
  23 + public Map<String, Object> query_2412(Map<String, Object> map);
  24 +
  25 + public List<JdlReception> queryJdlReception(Map<String, Object> map);
  26 +
  27 + public Map<String, Object> queryJdlReceptionBatch(Map<String, Object> map);
  28 +
  29 + public List<JdlReception> queryJdlReceptionBatchData(Map<String, Object> map);
  30 +
  31 + public Map<String, Object> deleteJdlReceptionBatch(Map<String, Object> map);
  32 +
  33 + public Map<String, Object> updateJdlReceptionBatch(Map<String, Object> map);
  34 +
  35 + public void downloadJdlReceptionImportFile(Map<String, Object> map, HttpServletResponse response) throws IOException;
  36 +
  37 + /**
  38 + * 查询车辆充电量,以jdl表格式返回
  39 + * @param rq 营运日期
  40 + * @param nbbm 车辆自编号(为‘’时查询全部车辆)
  41 + * @return
  42 + */
  43 + public List<Jdl> queryJdlByJdlReception(String rq, String nbbm);
14 44  
15 45 }
... ...
src/main/java/com/bsth/service/oil/impl/DlbServiceImpl.java
... ... @@ -48,6 +48,7 @@ import com.bsth.repository.CarsRepository;
48 48 import com.bsth.repository.oil.CdlRepository;
49 49 import com.bsth.repository.oil.CylRepository;
50 50 import com.bsth.repository.oil.DlbRepository;
  51 +import com.bsth.repository.oil.JdlReceptionRepository;
51 52 import com.bsth.repository.oil.JdlRepository;
52 53 import com.bsth.repository.oil.NylogRepository;
53 54 import com.bsth.repository.oil.YlbRepository;
... ... @@ -55,6 +56,7 @@ import com.bsth.repository.oil.YlxxbRepository;
55 56 import com.bsth.security.util.SecurityUtils;
56 57 import com.bsth.service.impl.BaseServiceImpl;
57 58 import com.bsth.service.oil.DlbService;
  59 +import com.bsth.service.oil.JdlService;
58 60 import com.bsth.service.realcontrol.ScheduleRealInfoService;
59 61 import com.bsth.util.Arith;
60 62 import com.bsth.util.BatchSaveUtils;
... ... @@ -77,6 +79,8 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS
77 79  
78 80 @Autowired
79 81 ScheduleRealInfoService scheduleRealInfoService;
  82 + @Autowired
  83 + JdlService jdlService;
80 84  
81 85 @Autowired
82 86 JdbcTemplate jdbcTemplate;
... ... @@ -91,7 +95,8 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS
91 95 Map<String, Boolean> carsMap=new HashMap<String, Boolean>();
92 96 for (int i = 0; i < carsList.size(); i++) {
93 97 Cars c=carsList.get(i);
94   - carsMap.put(c.getInsideCode(), c.getSfdc());
  98 + carsMap.put(c.getInsideCode(), (c.getSfdc()!=null?c.getSfdc():false)
  99 + || (c.getSfmix()!=null?c.getSfmix():false));//电车或油电混合,都可以充电
95 100 }
96 101 SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
97 102 Date dNow = new Date(); //当前时间
... ... @@ -104,7 +109,7 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS
104 109 // String rq="2017-11-02";
105 110 String line="";
106 111 //保留两位小数
107   - DecimalFormat df = new DecimalFormat("#.00");
  112 + DecimalFormat df = new DecimalFormat("#.000");
108 113 // TODO Auto-generated method stub
109 114 Map<String, Object> newMap=new HashMap<String,Object>();
110 115 //当天DLB信息
... ... @@ -112,7 +117,8 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS
112 117 //当天YLXXB信息
113 118 List<Ylxxb> ylxxList=ylxxbRepository.obtainYlxx(rq,1,"");
114 119 //当天加电信息表
115   - List<Jdl> jdlList=jdlRepository.JdlList(rq);
  120 + List<Jdl> jdlList = jdlService.queryJdlByJdlReception(rq, "");
  121 + jdlList.addAll(jdlRepository.JdlList(rq));
116 122 //前一天所有车辆最后进场班次信息
117 123 // List<Dlb> dlListBe=repository.obtainYlbefore(rq, "", "", "", "");
118 124 List<Cdl> cdyList=cdlRepository.obtainCdl();
... ... @@ -123,7 +129,7 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS
123 129 boolean sfdc=false;
124 130 Map<String, Object> map=listpb.get(x);
125 131 if (carsMap.get(map.get("clZbh").toString())!=null) {
126   - sfdc= carsMap.get(map.get("clZbh").toString());
  132 + sfdc = carsMap.get(map.get("clZbh").toString());
127 133 }else{
128 134 sfdc=false;
129 135 }
... ... @@ -237,7 +243,8 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS
237 243 Map<String, Boolean> carsMap = new HashMap<String, Boolean>();
238 244 for (int i = 0; i < carsList.size(); i++) {
239 245 Cars c = carsList.get(i);
240   - carsMap.put(c.getInsideCode(), c.getSfdc());
  246 + carsMap.put(c.getInsideCode(), (c.getSfdc()!=null?c.getSfdc():false)
  247 + || (c.getSfmix()!=null?c.getSfmix():false));//电车或油电混合,都可以充电
241 248 }
242 249 String rq = map2.get("rq").toString();
243 250 String line = "";
... ... @@ -258,7 +265,7 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS
258 265 }
259 266 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
260 267 // 保留两位小数
261   - DecimalFormat df = new DecimalFormat("#.00");
  268 + DecimalFormat df = new DecimalFormat("#.000");
262 269 // TODO Auto-generated method stub
263 270 // 当天DLB信息
264 271 List<Dlb> dlList = this.listOrderBy(rq,gsbm,fgsbm,"",nbbm,"nbbm");
... ... @@ -281,8 +288,8 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS
281 288 }
282 289 }
283 290  
284   - List<Jdl> jdlList=jdlRepository.JdlList(rq);
285   - List<Jdl> jdlList_1=jdlRepository.JdlList_1(rq, gsbm, "-1");
  291 + List<Jdl> jdlList = jdlService.queryJdlByJdlReception(rq, "");
  292 + jdlList.addAll(jdlRepository.JdlList(rq));
286 293 String sxtj=map2.get("sxtj").toString();
287 294 if(sxtj.equals("0")){
288 295 listpb=listpbs;
... ... @@ -360,41 +367,15 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS
360 367 //车辆总里程
361 368 double zlc =lcMap.get(map_.get("clZbh").toString());
362 369 //车辆总加电量
363   - double zjzl = 0.0, zjzl_1 = 0.0;
364   - for (int j = 0; j < ylxxList.size(); j++) {
365   - Ylxxb ylxxb = ylxxList.get(j);
366   - if (map_.get("clZbh").toString().equals(ylxxb.getNbbm())
367   - && map_.get("company").toString().equals(ylxxb.getGsdm())) {
368   - zjzl = Arith.add(zjzl, ylxxb.getJzl());
369   - }
370   - }
  370 + double zjzl = 0.0;
  371 + // 2022年12月20号要求不按车队导入,这之后导入的加注量将覆盖原加注量
371 372 for (int i = 0; i < jdlList.size(); i++) {
372 373 Jdl jdl=jdlList.get(i);
373   - if(map_.get("clZbh").toString().equals(jdl.getNbbm())
374   - &&clFgs.get(map_.get("clZbh").toString()).contains(jdl.getGsBm()+"_"+jdl.getFgsBm())){
375   - zjzl = Arith.add(zjzl,jdl.getJdl());
376   - }
377   - }
378   - int num = 0; // 2022年12月20号要求不按车队导入,这之后导入的加注量将覆盖原加注量
379   - for (int i = 0; i < jdlList_1.size(); i++) {
380   - Jdl jdl=jdlList_1.get(i);
381   - if(map_.get("clZbh").toString().equals(jdl.getNbbm())
382   - &&map_.get("company").toString().equals(jdl.getGsBm())){
383   - zjzl_1 = Arith.add(zjzl_1,jdl.getJdl());
384   - num++;
  374 + if(map_.get("clZbh").toString().equals(jdl.getNbbm())){
  375 + zjzl = Arith.add(zjzl, jdl.getJdl());
385 376 }
386 377 }
387   - if(num > 0){
388   - zjzl = zjzl_1;
389   - }
390 378  
391   -// double clsh=0.0;
392   -// if(shMap.get(map_.get("clZbh").toString())==null){
393   -// clsh=0.0;
394   -// }else{
395   -// clsh=shMap.get(map_.get("clZbh").toString());
396   -// }
397   -// zjzl =Arith.sub(zjzl, clsh);
398 379 Double nextJzyl = 0.0;
399 380 for (int i = 0; i < listpb.size(); i++) {
400 381 Map<String, Object> map = listpb.get(i);
... ... @@ -1076,7 +1057,7 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS
1076 1057 Map<String, List<Dlb>> mapList=new HashMap<String,List<Dlb>>();
1077 1058 SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
1078 1059 // 保留两位小数
1079   - DecimalFormat df = new DecimalFormat("#.00");
  1060 + DecimalFormat df = new DecimalFormat("#.000");
1080 1061 List<Dlb> dlbList=this.listOrderBy(date,gsdm,fgsdm,"","","nbbm");
1081 1062 List<Dlb> dlbList_upd=new ArrayList<Dlb>();
1082 1063 List<Dlb> dlbList_del=new ArrayList<Dlb>();
... ... @@ -1132,8 +1113,9 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS
1132 1113 shMap.put(cl, Arith.add(sh, dlb.getSh()));
1133 1114 }
1134 1115 }
1135   - List<Jdl> jdlList=jdlRepository.JdlList(date);
1136   - List<Ylxxb> ylxxList = ylxxbRepository.obtainYlxx(date, 0,gsdm);
  1116 + List<Jdl> jdlList = jdlService.queryJdlByJdlReception(date, "");
  1117 + jdlList.addAll(jdlRepository.JdlList(date));
  1118 +// List<Ylxxb> ylxxList = ylxxbRepository.obtainYlxx(date, 0,gsdm);
1137 1119 Map<String, Object> newMap_=new HashMap<String,Object>();
1138 1120 Map<String, Object> cMap=new HashMap<String, Object>();
1139 1121 List<Map<String, Object>> listpb_=listpbDc;
... ... @@ -1148,19 +1130,10 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS
1148 1130 double zlc =lcMap.get(map_.get("clZbh").toString());
1149 1131 //车辆总加电量
1150 1132 double zjzl = 0.0;
1151   - for (int j = 0; j < ylxxList.size(); j++) {
1152   - Ylxxb ylxxb = ylxxList.get(j);
1153   - if (map_.get("clZbh").toString().equals(ylxxb.getNbbm())
1154   - && map_.get("company").toString().equals(ylxxb.getGsdm())) {
1155   - zjzl = Arith.add(zjzl, ylxxb.getJzl());
1156   - }
1157   - }
1158 1133 for (int i = 0; i < jdlList.size(); i++) {
1159 1134 Jdl jdl=jdlList.get(i);
1160   - if(map_.get("clZbh").toString().equals(jdl.getNbbm())
1161   - &&map_.get("company").toString().equals(jdl.getGsBm())
1162   - &&map_.get("bCompany").toString().equals(jdl.getFgsBm())){
1163   - zjzl = Arith.add(zjzl,jdl.getJdl());
  1135 + if(map_.get("clZbh").toString().equals(jdl.getNbbm())){
  1136 + zjzl = Arith.add(zjzl, jdl.getJdl());
1164 1137 }
1165 1138 }
1166 1139 double clsh=0.0;
... ...
src/main/java/com/bsth/service/oil/impl/JdlServiceImpl.java
1 1 package com.bsth.service.oil.impl;
2 2  
  3 +import java.io.BufferedInputStream;
  4 +import java.io.BufferedOutputStream;
3 5 import java.io.File;
4 6 import java.io.FileInputStream;
  7 +import java.io.IOException;
  8 +import java.io.InputStream;
  9 +import java.io.OutputStream;
5 10 import java.text.DecimalFormat;
6 11 import java.text.SimpleDateFormat;
7 12 import java.util.ArrayList;
... ... @@ -11,25 +16,46 @@ import java.util.Iterator;
11 16 import java.util.List;
12 17 import java.util.Map;
13 18  
  19 +import javax.servlet.http.HttpServletResponse;
  20 +
14 21 import org.apache.poi.hssf.usermodel.HSSFCell;
  22 +import org.apache.poi.hssf.usermodel.HSSFDateUtil;
15 23 import org.apache.poi.hssf.usermodel.HSSFRow;
16 24 import org.apache.poi.hssf.usermodel.HSSFSheet;
17 25 import org.apache.poi.hssf.usermodel.HSSFWorkbook;
18 26 import org.apache.poi.poifs.filesystem.POIFSFileSystem;
19 27 import org.springframework.beans.factory.annotation.Autowired;
  28 +import org.springframework.beans.factory.annotation.Value;
20 29 import org.springframework.stereotype.Service;
21 30  
  31 +import com.bsth.common.ResponseCode;
22 32 import com.bsth.entity.oil.Jdl;
  33 +import com.bsth.entity.oil.JdlReception;
  34 +import com.bsth.entity.oil.Nylog;
  35 +import com.bsth.entity.sys.SysUser;
  36 +import com.bsth.repository.oil.JdlReceptionRepository;
23 37 import com.bsth.repository.oil.JdlRepository;
  38 +import com.bsth.repository.oil.NylogRepository;
  39 +import com.bsth.security.util.SecurityUtils;
24 40 import com.bsth.service.impl.BaseServiceImpl;
25 41 import com.bsth.service.oil.JdlService;
26 42 import com.bsth.util.ReportUtils;
  43 +import com.google.common.io.Files;
27 44  
28 45 @Service
29 46 public class JdlServiceImpl extends BaseServiceImpl<Jdl, Integer> implements JdlService {
30 47  
31 48 @Autowired
32 49 JdlRepository repository;
  50 +
  51 + @Autowired
  52 + JdlReceptionRepository jdlReceptionRepository;
  53 +
  54 + @Autowired
  55 + NylogRepository nylogRepository;
  56 +
  57 + @Value("${electricity.importFile.path}")
  58 + private String elecImportFilePath;
33 59  
34 60 @Override
35 61 public String importExcel(File file, String gsbm, String gsName, String fgsbm, String fgsName) {
... ... @@ -156,5 +182,380 @@ public class JdlServiceImpl extends BaseServiceImpl&lt;Jdl, Integer&gt; implements Jdl
156 182 }
157 183 return modelMap;
158 184 }
  185 +
  186 + @Override
  187 + public String importExcel_2412(File file, String gsbm, String gsName, String fgsbm, String fgsName) {
  188 + SimpleDateFormat yearMonthFormat = new SimpleDateFormat("yyyy-MM");
  189 + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
  190 + SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  191 + SimpleDateFormat SSSformat = new SimpleDateFormat("yyMMddHHmmssSS");
  192 + SimpleDateFormat ddFormat = new SimpleDateFormat("dd");
  193 + DecimalFormat df = new DecimalFormat("######0.00");
  194 + SysUser user = SecurityUtils.getCurrentUser();
  195 + Date currDate = new Date();
  196 + List<String> textList = new ArrayList<String>();
  197 + String batchNo = user.getUserName() + SSSformat.format(currDate);
  198 + String msg = "";
  199 + try {
  200 + POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(file));
  201 + HSSFWorkbook wb = new HSSFWorkbook(fs);
  202 + HSSFSheet sheet = wb.getSheetAt(0);
  203 + // 取得总行数
  204 + int rowNum = sheet.getLastRowNum() + 1;
  205 + // 取得总列数
  206 + int cellNum = sheet.getRow(0).getLastCellNum();
  207 + HSSFRow row = null;
  208 + HSSFCell cell = null;
  209 + for(int i = 3; i < rowNum; i++){
  210 + row = sheet.getRow(i);
  211 + if (row == null){
  212 + continue;
  213 + }
  214 + String text = "";
  215 + for(int j = 0; j < cellNum; j++){
  216 + cell = row.getCell(j);
  217 + if(cell == null){
  218 + text += ",";
  219 + continue;
  220 + }
  221 + if(cell.getCellType() == HSSFCell.CELL_TYPE_NUMERIC && HSSFDateUtil.isCellDateFormatted(cell)){
  222 + Date dateCellValue = cell.getDateCellValue();
  223 + text += sd.format(dateCellValue) + ",";
  224 + } else {
  225 + text += String.valueOf(cell) + ",";
  226 + }
  227 + }
  228 + String[] split = (text+";").split(",");
  229 + String str = "";
  230 + for(int j = 0; j < split.length && j < 12; j++){
  231 + str += split[j];
  232 + }
  233 + if(str.trim().length() == 0)
  234 + continue;
  235 + textList.add(text + ";");
  236 + }
  237 + String str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  238 + List<JdlReception> list = new ArrayList<JdlReception>();
  239 + for(int i = 0; i < textList.size(); i++){
  240 + String text = textList.get(i);
  241 + String[] split = text.split(",");
  242 + if(split.length > 4 && split[1] != null && split[1].trim().length() > 0 &&
  243 + split[3] != null && split[3].trim().length() > 0){
  244 + int lie = 1;
  245 + try {
  246 + Integer dd = Integer.valueOf(split[lie++].trim().split("\\.")[0]); // 日期
  247 + String zh = split[lie++].trim(); // 桩号
  248 + String nbbm = split[lie++].trim(); // 车号
  249 + String startTime = split[lie++].trim(); // 开始时间
  250 + String endTime = split[lie++].trim(); // 结束时间
  251 + String sumTime = split[lie++].trim(); // 总计(分钟)
  252 + String startSoc = split[lie++].trim(); // 起始电量SOC%
  253 + String endSoc = split[lie++].trim(); // 结束电量SOC%
  254 + String jdl = split[lie++].trim(); // 充电度数
  255 + String lc = split[lie++].trim(); // 里程度数
  256 + String stopReason = split[lie++].trim(); // 一次不能正常充电记录
  257 +
  258 + sumTime = sumTime.split("\\.")[0];
  259 +
  260 + Date parseStartTime = sd.parse(startTime);
  261 + Date parseEndTime = sd.parse(endTime);
  262 + long sub = ((parseEndTime.getTime() - parseStartTime.getTime()) / (1l*1000*60)) - Long.valueOf(sumTime);
  263 + if(sub > 2 || sub < -2){
  264 + msg += System.lineSeparator() + "文档第"+(i + 4)+"行,充电时间总计分钟数("+sumTime+")误差超过2分钟;";
  265 + }
  266 +
  267 + JdlReception jdlRe = new JdlReception();
  268 + Date date = sd.parse(startTime);
  269 + if(!(dd == Integer.valueOf(ddFormat.format(date)))){
  270 + date.setTime(date.getTime() - 1l*1000*60*60*24);
  271 + }
  272 + jdlRe.setBatchNo(batchNo);
  273 + jdlRe.setDateStr(sdf.format(date));
  274 + jdlRe.setPileId(zh);
  275 + jdlRe.setCarCode(nbbm);
  276 + jdlRe.setStartTime(startTime);
  277 + jdlRe.setEndTime(endTime);
  278 + jdlRe.setSumTime(Integer.valueOf(sumTime));
  279 + jdlRe.setStartSoc(Double.valueOf(startSoc));
  280 + jdlRe.setEndSoc(Double.valueOf(endSoc));
  281 + jdlRe.setChargeCapacity(Double.valueOf(jdl));
  282 + jdlRe.setStopReason(stopReason);
  283 + jdlRe.setCreateBy(user.getUserName());
  284 + jdlRe.setCreateDate(currDate);
  285 + jdlRe.setOrigin(1);
  286 + list.add(jdlRe);
  287 + } catch (Exception e) {
  288 + // TODO: handle exception
  289 + e.printStackTrace();
  290 + msg += System.lineSeparator() + "文档第"+(i + 4)+"行第"+str.charAt(lie)+"列,格式错误或无法识别;";
  291 + }
  292 + }
  293 + }
  294 + wb.close();
  295 + fs.close();
  296 + if(msg.length() > 0){
  297 + return "文件导入失败" + msg;
  298 + } else {
  299 + jdlReceptionRepository.saveAll(list);
  300 + return "文件导入成功," + "导入了" + list.size() + "条充电量。";
  301 + }
  302 + } catch (Exception e) {
  303 + // TODO Auto-generated catch block
  304 + e.printStackTrace();
  305 + return "文件导入失败";
  306 + } finally {
  307 +// file.delete();
  308 + try {
  309 + String yearMonthPath = yearMonthFormat.format(currDate);
  310 + File elecImportFile = new File(elecImportFilePath + File.separator + yearMonthPath);
  311 + if(!elecImportFile.exists()){
  312 + elecImportFile.mkdirs();
  313 + }
  314 + String path = file.getPath();
  315 + System.out.println(path);
  316 + String[] split = file.getName().split("\\.");
  317 + String suffix = split[split.length - 1];
  318 + Files.move(file, new File(elecImportFilePath + File.separator + yearMonthPath + File.separator + batchNo + "." + suffix));
  319 + Nylog nylog=new Nylog();
  320 + nylog.setCreatedate(currDate);
  321 + nylog.setNylx("电");
  322 + nylog.setCzmc("导入");
  323 + nylog.setUserid(user.getUserName());
  324 + nylog.setUsername(user.getName());
  325 + nylog.setCxtj(batchNo);
  326 + nylog.setFwdz(yearMonthPath + File.separator + batchNo + "." + suffix);
  327 + nylogRepository.save(nylog);
  328 + } catch (IOException e) {
  329 + // TODO Auto-generated catch block
  330 + e.printStackTrace();
  331 + }
  332 + }
  333 + }
  334 +
  335 + @Override
  336 + public Map<String, Object> query_2412(Map<String, Object> map) {
  337 + SimpleDateFormat sdfMonth = new SimpleDateFormat("yyyy-MM-dd"),
  338 + sdfSimple = new SimpleDateFormat("yyyyMMdd");
  339 + Map<String, Object> modelMap = new HashMap<String, Object>();
  340 + String rq = map.get("rq").toString();
  341 + String nbbm = map.get("nbbm").toString();
  342 + Integer page = Integer.valueOf(map.containsKey("page")?map.get("page").toString():"0");
  343 + List<Jdl> query = new ArrayList<Jdl>();
  344 +
  345 + List<Object[]> querySum = jdlReceptionRepository.querySum(rq, nbbm);
  346 +
  347 + try {
  348 + for(Object[] j : querySum){
  349 + Jdl jdl = new Jdl();
  350 + jdl.setRq(sdfMonth.parse(j[0].toString()));
  351 + jdl.setNbbm(j[1].toString());
  352 + jdl.setJdl(Double.valueOf(j[2].toString()));
  353 + jdl.setJdz("");
  354 + jdl.setRemarks("");
  355 + query.add(jdl);
  356 + }
  357 + } catch (Exception e) {
  358 + // TODO Auto-generated catch block
  359 + e.printStackTrace();
  360 + }
  361 +
  362 + if(!map.containsKey("type")){
  363 +
  364 + int end = (page+1)*10>query.size()?query.size():(page+1)*10;
  365 + modelMap.put("dataList", query.subList(page*10, end));
  366 + modelMap.put("totalPages", query.size()%10>0?query.size()/10+1:query.size()/10);
  367 +
  368 + } else if(map.get("type").toString().equals("export")){
  369 +
  370 + List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
  371 + for(Jdl jdl : query){
  372 + Map<String, Object> m = new HashMap<String, Object>();
  373 + m.put("rq", sdfMonth.format(jdl.getRq()));
  374 + m.put("nbbm", jdl.getNbbm());
  375 + m.put("jdl", jdl.getJdl());
  376 + m.put("jdz", jdl.getJdz());
  377 + m.put("remarks", jdl.getRemarks());
  378 + list.add(m);
  379 + }
  380 +
  381 + List<Iterator<?>> listI = new ArrayList<Iterator<?>>();
  382 + Map<String, Object> m = new HashMap<String, Object>();
  383 + ReportUtils ee = new ReportUtils();
  384 + try {
  385 + listI.add(list.iterator());
  386 + String path = this.getClass().getResource("/").getPath()+"static/pages/forms/";
  387 + ee.excelReplace(listI, new Object[] { m }, path+"mould/export_Jdl.xls",
  388 + path+"export/车辆充电量" + sdfSimple.format(sdfMonth.parse(rq)) + ".xls");
  389 + } catch (Exception e) {
  390 + // TODO: handle exception
  391 + e.printStackTrace();
  392 + }
  393 + }
  394 + return modelMap;
  395 + }
  396 +
  397 + @Override
  398 + public List<JdlReception> queryJdlReception(Map<String, Object> map) {
  399 + String rq = map.get("rq").toString();
  400 + String nbbm = map.get("nbbm").toString();
  401 + List<JdlReception> query = jdlReceptionRepository.query(rq, nbbm);
  402 + return query;
  403 + }
  404 +
  405 + @Override
  406 + public Map<String, Object> queryJdlReceptionBatch(Map<String, Object> map) {
  407 + SimpleDateFormat sdfMonth = new SimpleDateFormat("yyyy-MM-dd");
  408 + Map<String, Object> modelMap = new HashMap<String, Object>();
  409 + String rq = map.get("rq").toString();
  410 + Integer page = Integer.valueOf(map.containsKey("page")?map.get("page").toString():"0");
  411 + List<Map<String, Object>> query = new ArrayList<Map<String, Object>>();
  412 +
  413 + List<Object[]> queryBatch = jdlReceptionRepository.queryBatch(rq);
  414 +
  415 + try {
  416 + for(Object[] j : queryBatch){
  417 + Map<String, Object> m = new HashMap<String, Object>();
  418 + m.put("batchNo", j[0]);
  419 + m.put("createBy", j[1]);
  420 + m.put("createDate", j[2]);
  421 + query.add(m);
  422 + }
  423 + } catch (Exception e) {
  424 + // TODO Auto-generated catch block
  425 + e.printStackTrace();
  426 + }
  427 +
  428 + int end = (page+1)*10>query.size()?query.size():(page+1)*10;
  429 + modelMap.put("dataList", query.subList(page*10, end));
  430 + modelMap.put("totalPages", query.size()%10>0?query.size()/10+1:query.size()/10);
  431 +
  432 + return modelMap;
  433 + }
  434 +
  435 + @Override
  436 + public List<JdlReception> queryJdlReceptionBatchData(Map<String, Object> map) {
  437 + String createBy = map.get("createBy").toString();
  438 + String createDate = map.get("createDate").toString();
  439 + List<JdlReception> query = jdlReceptionRepository.queryBatchData(createBy, createDate);
  440 + return query;
  441 + }
  442 +
  443 + @Override
  444 + public Map<String, Object> deleteJdlReceptionBatch(Map<String, Object> map) {
  445 + Map<String, Object> resMap = new HashMap<>();
  446 + try{
  447 + String createBy = map.get("createBy").toString();
  448 + String createDate = map.get("createDate").toString();
  449 + jdlReceptionRepository.deleteBatch(createBy, createDate);
  450 + resMap.put("status", ResponseCode.SUCCESS);
  451 + }catch (Exception e){
  452 + resMap.put("status", ResponseCode.ERROR);
  453 + resMap.put("msg", e.getMessage());
  454 + }
  455 + return resMap;
  456 + }
  457 +
  458 + @Override
  459 + public Map<String, Object> updateJdlReceptionBatch(Map<String, Object> map) {
  460 + Map<String, Object> resMap = new HashMap<>();
  461 + try{
  462 + String[] ids = map.get("ids").toString().length()>0?map.get("ids").toString().split(","):new String[]{};
  463 + String[] dateStr = map.get("dateStr").toString().length()>0?map.get("dateStr").toString().split(","):new String[]{};
  464 + String[] pileId = map.get("pileId").toString().length()>0?map.get("pileId").toString().split(","):new String[]{};
  465 + String[] carCode = map.get("carCode").toString().length()>0?map.get("carCode").toString().split(","):new String[]{};
  466 + String[] startTime = map.get("startTime").toString().length()>0?map.get("startTime").toString().split(","):new String[]{};
  467 + String[] endTime = map.get("endTime").toString().length()>0?map.get("endTime").toString().split(","):new String[]{};
  468 + String[] sumTime = map.get("sumTime").toString().length()>0?map.get("sumTime").toString().split(","):new String[]{};
  469 + String[] startSoc = map.get("startSoc").toString().length()>0?map.get("startSoc").toString().split(","):new String[]{};
  470 + String[] endSoc = map.get("endSoc").toString().length()>0?map.get("endSoc").toString().split(","):new String[]{};
  471 + String[] chargeCapacity = map.get("chargeCapacity").toString().length()>0?map.get("chargeCapacity").toString().split(","):new String[]{};
  472 + String[] stopReason = map.get("stopReason").toString().length()>0?map.get("stopReason").toString().split(","):new String[]{};
  473 + List<JdlReception> list = new ArrayList<JdlReception>();
  474 + for(int i = 0; i < ids.length; i++){
  475 + if(ids[i].length() != 0){
  476 + JdlReception jdlRe = new JdlReception();
  477 + jdlRe.setId(Long.valueOf(ids[i]));
  478 + if(dateStr.length > i)
  479 + jdlRe.setDateStr(dateStr[i]);
  480 + if(pileId.length > i)
  481 + jdlRe.setPileId(pileId[i]);
  482 + if(carCode.length > i)
  483 + jdlRe.setCarCode(carCode[i]);
  484 + if(startTime.length > i)
  485 + jdlRe.setStartTime(startTime[i]);
  486 + if(endTime.length > i)
  487 + jdlRe.setEndTime(endTime[i]);
  488 + if(sumTime.length > i)
  489 + jdlRe.setSumTime(Integer.valueOf(sumTime[i]));
  490 + if(startSoc.length > i)
  491 + jdlRe.setStartSoc(Double.valueOf(startSoc[i]));
  492 + if(endSoc.length > i)
  493 + jdlRe.setEndSoc(Double.valueOf(endSoc[i]));
  494 + if(chargeCapacity.length > i)
  495 + jdlRe.setChargeCapacity(Double.valueOf(chargeCapacity[i]));
  496 + if(stopReason.length > i)
  497 + jdlRe.setStopReason(stopReason[i]);
  498 +
  499 + list.add(jdlRe);
  500 + }
  501 + }
  502 + for(JdlReception jdlRe : list){
  503 + jdlReceptionRepository.update(jdlRe.getId(), jdlRe.getDateStr(), jdlRe.getPileId(), jdlRe.getCarCode(),
  504 + jdlRe.getStartTime(), jdlRe.getEndTime(), jdlRe.getSumTime(), jdlRe.getStartSoc(), jdlRe.getEndSoc(),
  505 + jdlRe.getChargeCapacity(), jdlRe.getStopReason());
  506 + }
  507 + resMap.put("status", ResponseCode.SUCCESS);
  508 + }catch (Exception e){
  509 + resMap.put("status", ResponseCode.ERROR);
  510 + resMap.put("msg", e.getMessage());
  511 + }
  512 + return resMap;
  513 + }
  514 +
  515 + @Override
  516 + public void downloadJdlReceptionImportFile(Map<String, Object> map, HttpServletResponse response) throws IOException {
  517 + String batchNo = map.get("batchNo").toString();
  518 + List<Nylog> list = nylogRepository.selectByCxtj("电", "导入", batchNo);
  519 + if(list.size() > 0){
  520 + Nylog nylog = list.get(0);
  521 + String path = elecImportFilePath + File.separator + nylog.getFwdz();
  522 + String[] split = nylog.getFwdz().split("\\.");
  523 + String fileName = batchNo + "." + split[split.length - 1];
  524 + File file = new File(path);
  525 + InputStream fis = new BufferedInputStream(new FileInputStream(path));
  526 + byte[] buffer = new byte[fis.available()];
  527 + fis.read(buffer);
  528 + fis.close();
  529 + response.reset();
  530 + response.addHeader("Content-Disposition", "attachment;filename=" + new String(fileName.replaceAll(" ", "").getBytes("utf-8"),"iso8859-1"));
  531 + response.addHeader("Content-Length", "" + file.length());
  532 + OutputStream os = new BufferedOutputStream(response.getOutputStream());
  533 + response.setContentType("application/octet-stream");
  534 + os.write(buffer);// 输出文件
  535 + os.flush();
  536 + os.close();
  537 + }
  538 + }
  539 +
  540 + @Override
  541 + public List<Jdl> queryJdlByJdlReception(String rq, String nbbm) {
  542 + List<Jdl> list = new ArrayList<Jdl>();
  543 + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
  544 + List<JdlReception> query = jdlReceptionRepository.query(rq, nbbm);
  545 + for(JdlReception jr : query){
  546 + try {
  547 + Jdl jdl = new Jdl();
  548 + jdl.setFgsBm("-1");
  549 + jdl.setRq(sdf.parse(jr.getDateStr()));
  550 + jdl.setJdl(jr.getChargeCapacity());
  551 + jdl.setNbbm(jr.getCarCode());
  552 + list.add(jdl);
  553 + } catch (Exception e) {
  554 + // TODO Auto-generated catch block
  555 + e.printStackTrace();
  556 + }
  557 + }
  558 + return list;
  559 + }
159 560  
160 561 }
... ...
src/main/java/com/bsth/service/oil/impl/QlbServiceImpl.java
... ... @@ -91,7 +91,7 @@ public class QlbServiceImpl extends BaseServiceImpl&lt;Qlb,Integer&gt; implements QlbS
91 91 // String rq="2017-11-02";
92 92 String line="";
93 93 //保留两位小数
94   - DecimalFormat df = new DecimalFormat("#.00");
  94 + DecimalFormat df = new DecimalFormat("#.000");
95 95 // TODO Auto-generated method stub
96 96 Map<String, Object> newMap=new HashMap<String,Object>();
97 97 //当天QLB信息
... ... @@ -229,7 +229,7 @@ public class QlbServiceImpl extends BaseServiceImpl&lt;Qlb,Integer&gt; implements QlbS
229 229 }
230 230 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
231 231 // 保留两位小数
232   - DecimalFormat df = new DecimalFormat("#.00");
  232 + DecimalFormat df = new DecimalFormat("#.000");
233 233 // TODO Auto-generated method stub
234 234 // 当天QLB信息
235 235 List<Qlb> qlList = this.listOrderBy(rq,gsbm,fgsbm,"",nbbm,"nbbm");
... ... @@ -1020,7 +1020,7 @@ public class QlbServiceImpl extends BaseServiceImpl&lt;Qlb,Integer&gt; implements QlbS
1020 1020 Map<String, List<Qlb>> mapList=new HashMap<String,List<Qlb>>();
1021 1021 SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
1022 1022 // 保留两位小数
1023   - DecimalFormat df = new DecimalFormat("#.00");
  1023 + DecimalFormat df = new DecimalFormat("#.000");
1024 1024 List<Qlb> qlbList=this.listOrderBy(date,gsdm,fgsdm,"","","nbbm");
1025 1025 List<Qlb> qlbList_upd=new ArrayList<Qlb>();
1026 1026 List<Qlb> qlbList_del=new ArrayList<Qlb>();
... ...
src/main/java/com/bsth/service/oil/impl/YlbServiceImpl.java
... ... @@ -120,7 +120,7 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS
120 120 dBefore = calendar.getTime(); //得到前一天的时间
121 121 String rq=sdf.format(dBefore);
122 122 //保留两位小数
123   - DecimalFormat df = new DecimalFormat("#.00");
  123 + DecimalFormat df = new DecimalFormat("#.000");
124 124 // TODO Auto-generated method stub
125 125 Map<String, Object> newMap=new HashMap<String,Object>();
126 126 //当天YLB信息
... ... @@ -270,7 +270,7 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS
270 270 }
271 271 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
272 272 // 保留两位小数
273   - DecimalFormat df = new DecimalFormat("#.00");
  273 + DecimalFormat df = new DecimalFormat("#.000");
274 274 // TODO Auto-generated method stub
275 275 // 当天YLB信息
276 276 List<Ylb> ylList = this.listOrderBy(rq,gsbm,fgsbm,"",nbbm,"nbbm");
... ... @@ -668,7 +668,7 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS
668 668 }
669 669 // jzl = Arith.sub(jzl, zsh);
670 670 // 保留两位小数
671   - DecimalFormat df = new DecimalFormat("#.00");
  671 + DecimalFormat df = new DecimalFormat("#.000");
672 672 Double zyl = 0.0;
673 673 Double nextJzyl = 0.0;
674 674 // 保存已经计算过的车辆,相同车辆编号的车不在计算
... ... @@ -1481,7 +1481,7 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS
1481 1481  
1482 1482 // repository.obtainYl(sdf.format(rq_eq),ylb.getSsgsdm(),ylb.getFgsdm(),"",
1483 1483 // ylb.getNbbm(),"jcsx");
1484   - DecimalFormat df = new DecimalFormat("#.00");
  1484 + DecimalFormat df = new DecimalFormat("#.000");
1485 1485 Double zyl = 0.0;
1486 1486 Double nextJzyl = 0.0;
1487 1487 // 车的,进,出油量及耗油
... ... @@ -1984,7 +1984,7 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS
1984 1984 zlc = Arith.add(zlc, Double.valueOf(sumList.get(j)[1].toString()));
1985 1985 }
1986 1986 // 保留两位小数
1987   - DecimalFormat df = new DecimalFormat("#.00");
  1987 + DecimalFormat df = new DecimalFormat("#.000");
1988 1988 Double zyl = 0.0;
1989 1989 Double nextJzyl = 0.0;
1990 1990 for (int j = 0; j < iterator2.size(); j++) {
... ...
src/main/java/com/bsth/service/realcontrol/impl/ScheduleRealInfoServiceImpl.java
1 1 package com.bsth.service.realcontrol.impl;
2 2  
3   -import java.io.*;
4   -import java.lang.reflect.Field;
5   -import java.math.BigDecimal;
6   -import java.net.HttpURLConnection;
7   -import java.net.MalformedURLException;
8   -import java.net.URL;
9   -import java.sql.ResultSet;
10   -import java.sql.SQLException;
11   -import java.text.DecimalFormat;
12   -import java.text.ParseException;
13   -import java.text.SimpleDateFormat;
14   -import java.time.LocalDate;
15   -import java.util.ArrayList;
16   -import java.util.Calendar;
17   -import java.util.Collection;
18   -import java.util.Collections;
19   -import java.util.Comparator;
20   -import java.util.Date;
21   -import java.util.GregorianCalendar;
22   -import java.util.HashMap;
23   -import java.util.HashSet;
24   -import java.util.Iterator;
25   -import java.util.List;
26   -import java.util.Map;
27   -import java.util.Queue;
28   -import java.util.Set;
29   -import java.util.concurrent.*;
30   -import java.util.regex.Pattern;
31   -
32   -import com.bsth.data.SystemParamCache;
33   -import com.bsth.data.zndd.OutEntrance;
34   -import com.bsth.entity.zndd.LoggerZndd;
35   -import com.bsth.repository.zndd.LoggerZnddRepository;
36   -import org.apache.commons.io.IOUtils;
37   -import org.apache.commons.lang3.StringEscapeUtils;
38   -import org.apache.commons.lang3.StringUtils;
39   -import org.joda.time.format.DateTimeFormat;
40   -import org.joda.time.format.DateTimeFormatter;
41   -import org.slf4j.Logger;
42   -import org.slf4j.LoggerFactory;
43   -import org.springframework.beans.factory.DisposableBean;
44   -import org.springframework.beans.factory.InitializingBean;
45   -import org.springframework.beans.factory.annotation.Autowired;
46   -import org.springframework.jdbc.core.BeanPropertyRowMapper;
47   -import org.springframework.jdbc.core.JdbcTemplate;
48   -import org.springframework.jdbc.core.RowMapper;
49   -import org.springframework.stereotype.Service;
50   -import org.springframework.transaction.annotation.Transactional;
51   -
52 3 import com.alibaba.fastjson.JSON;
53 4 import com.alibaba.fastjson.JSONArray;
54 5 import com.alibaba.fastjson.JSONObject;
... ... @@ -60,6 +11,7 @@ import com.bsth.controller.realcontrol.dto.LpData;
60 11 import com.bsth.data.BasicData;
61 12 import com.bsth.data.LineConfigData;
62 13 import com.bsth.data.Station2ParkBuffer;
  14 +import com.bsth.data.SystemParamCache;
63 15 import com.bsth.data.schedule.DayOfSchedule;
64 16 import com.bsth.data.schedule.SchAttrCalculator;
65 17 import com.bsth.data.schedule.ScheduleComparator;
... ... @@ -70,6 +22,7 @@ import com.bsth.data.schedule.edit_logs.loggers.FcxxwtLogger;
70 22 import com.bsth.data.schedule.edit_logs.service.dto.SchEditInfoDto;
71 23 import com.bsth.data.schedule.late_adjust.LateAdjustHandle;
72 24 import com.bsth.data.utils.CustomStringUtils;
  25 +import com.bsth.data.zndd.OutEntrance;
73 26 import com.bsth.entity.CarDevice;
74 27 import com.bsth.entity.Cars;
75 28 import com.bsth.entity.Line;
... ... @@ -94,6 +47,7 @@ import com.bsth.entity.schedule.SchedulePlanInfo;
94 47 import com.bsth.entity.sys.Dictionary;
95 48 import com.bsth.entity.sys.DutyEmployee;
96 49 import com.bsth.entity.sys.SysUser;
  50 +import com.bsth.entity.zndd.LoggerZndd;
97 51 import com.bsth.repository.CarDeviceRepository;
98 52 import com.bsth.repository.CarsRepository;
99 53 import com.bsth.repository.LineRepository;
... ... @@ -109,6 +63,7 @@ import com.bsth.repository.realcontrol.SvgAttributeRepository;
109 63 import com.bsth.repository.schedule.CarConfigInfoRepository;
110 64 import com.bsth.repository.schedule.EmployeeConfigInfoRepository;
111 65 import com.bsth.repository.schedule.GuideboardInfoRepository;
  66 +import com.bsth.repository.zndd.LoggerZnddRepository;
112 67 import com.bsth.security.util.SecurityUtils;
113 68 import com.bsth.service.LineService;
114 69 import com.bsth.service.SectionRouteService;
... ... @@ -121,15 +76,7 @@ import com.bsth.service.report.ReportService;
121 76 import com.bsth.service.schedule.SchedulePlanInfoService;
122 77 import com.bsth.service.sys.DictionaryService;
123 78 import com.bsth.service.sys.DutyEmployeeService;
124   -import com.bsth.util.Arith;
125   -import com.bsth.util.ComparableChild;
126   -import com.bsth.util.ComparableLp;
127   -import com.bsth.util.ComparableReal;
128   -import com.bsth.util.DateUtils;
129   -import com.bsth.util.ReportRelatedUtils;
130   -import com.bsth.util.ReportUtils;
131   -import com.bsth.util.TimeUtils;
132   -import com.bsth.util.CoordinateConverter;
  79 +import com.bsth.util.*;
133 80 import com.bsth.websocket.handler.SendUtils;
134 81 import com.fasterxml.jackson.databind.ObjectMapper;
135 82 import com.github.stuxuhai.jpinyin.PinyinException;
... ... @@ -137,6 +84,40 @@ import com.github.stuxuhai.jpinyin.PinyinFormat;
137 84 import com.github.stuxuhai.jpinyin.PinyinHelper;
138 85 import com.google.common.base.Splitter;
139 86 import com.google.common.collect.Lists;
  87 +import org.apache.commons.io.IOUtils;
  88 +import org.apache.commons.lang3.StringEscapeUtils;
  89 +import org.apache.commons.lang3.StringUtils;
  90 +import org.joda.time.format.DateTimeFormat;
  91 +import org.joda.time.format.DateTimeFormatter;
  92 +import org.slf4j.Logger;
  93 +import org.slf4j.LoggerFactory;
  94 +import org.springframework.beans.factory.DisposableBean;
  95 +import org.springframework.beans.factory.InitializingBean;
  96 +import org.springframework.beans.factory.annotation.Autowired;
  97 +import org.springframework.jdbc.core.BeanPropertyRowMapper;
  98 +import org.springframework.jdbc.core.JdbcTemplate;
  99 +import org.springframework.jdbc.core.RowMapper;
  100 +import org.springframework.stereotype.Service;
  101 +import org.springframework.transaction.annotation.Transactional;
  102 +
  103 +import java.io.ByteArrayOutputStream;
  104 +import java.io.File;
  105 +import java.io.IOException;
  106 +import java.io.InputStream;
  107 +import java.lang.reflect.Field;
  108 +import java.math.BigDecimal;
  109 +import java.net.HttpURLConnection;
  110 +import java.net.MalformedURLException;
  111 +import java.net.URL;
  112 +import java.sql.ResultSet;
  113 +import java.sql.SQLException;
  114 +import java.text.DecimalFormat;
  115 +import java.text.ParseException;
  116 +import java.text.SimpleDateFormat;
  117 +import java.time.LocalDate;
  118 +import java.util.*;
  119 +import java.util.concurrent.*;
  120 +import java.util.regex.Pattern;
140 121  
141 122 @Service
142 123 public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInfo, Long>
... ... @@ -2483,6 +2464,10 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
2483 2464 typeMap.put("0x60", "事故报告");
2484 2465 typeMap.put("0x11", "扣证纠纷");
2485 2466 typeMap.put("0x12", "报警");
  2467 + typeMap.put("0x21", "单车有人伤");
  2468 + typeMap.put("0x22", "单车无人伤");
  2469 + typeMap.put("0x23", "双车有人伤");
  2470 + typeMap.put("0x24", "双车无人伤");
2486 2471 for (Map<String, Object> map1 : listMap) {
2487 2472 map1.put("requestText", typeMap.get(map1.get("requestType")));
2488 2473 }
... ...
src/main/java/com/bsth/service/zndd/impl/LoggerZnddServiceImpl.java
1 1 package com.bsth.service.zndd.impl;
2 2  
3 3 import com.alibaba.fastjson.JSON;
  4 +import com.alibaba.fastjson.JSONObject;
4 5 import com.bsth.common.ResponseCode;
5 6 import com.bsth.controller.realcontrol.dto.DfsjChange;
6 7 import com.bsth.data.schedule.DayOfSchedule;
... ... @@ -154,7 +155,13 @@ public class LoggerZnddServiceImpl extends BaseServiceImpl&lt;LoggerZndd, Integer&gt;
154 155  
155 156  
156 157 public ScheduleRealInfo thissch(Integer ids){
157   - ScheduleRealInfo sch=dayOfSchedule.get(ids);
  158 + ScheduleRealInfo sch2=dayOfSchedule.get(ids);
  159 + ScheduleRealInfo sch= null;
  160 + try {
  161 + sch = sch2.clone();
  162 + } catch (CloneNotSupportedException e) {
  163 + e.printStackTrace();
  164 + }
158 165 Line line = lineService.findByLineCode(sch.getXlBm());
159 166 List<Map<String, Object>> lineList=reportService.lineList();
160 167 Set<String> lines = new HashSet<>();
... ... @@ -217,7 +224,7 @@ public class LoggerZnddServiceImpl extends BaseServiceImpl&lt;LoggerZndd, Integer&gt;
217 224 for(String line : lineArray){
218 225 List<ScheduleRealInfo> schList = dayOfSchedule.findByLineCode(line);
219 226 for(ScheduleRealInfo sc : schList){
220   - if (sc.getStatus() == 0){
  227 + if (sc.getStatus() == 0 || sc.getStatus() == 1){
221 228 xlNames += sc.getXlName()+",";
222 229 break;
223 230 }
... ...
src/main/resources/application-prod.properties
1   -server.port=9088
2   -
3   -# dubbo\uFFFD\uFFFD\uFFFD\uFFFD\u02B9\uFFFD\u00FF\uFFFD\uFFFD\uFFFDflag
4   -dubbo.use=false
5   -
6   -#JPA
7   -spring.jpa.hibernate.ddl-auto= none
8   -spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyHbmImpl
9   -spring.jpa.hibernate.naming.physical-strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
10   -spring.jpa.database= MYSQL
11   -spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true
12   -spring.jpa.show-sql= false
13   -spring.jpa.properties.hibernate.dialect= org.hibernate.spatial.dialect.mysql.MySQL56InnoDBSpatialDialect
14   -
15   -#DATABASE
16   -spring.datasource.driver-class-name= com.mysql.jdbc.Driver
17   -spring.datasource.url= jdbc:mysql://10.10.150.103:3306/control?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
18   -spring.datasource.username= root
19   -spring.datasource.password= fsodlgjiuigAQF2$9fs9
20   -spring.datasource.type= com.zaxxer.hikari.HikariDataSource
21   -
22   -#DATASOURCE SETTING
23   -spring.datasource.hikari.minimum-idle= 8
24   -spring.datasource.hikari.maximum-pool-size= 100
25   -#spring.datasource.hikari.auto-commit= true
26   -spring.datasource.hikari.idle-timeout= 60000
27   -#spring.datasource.hikari.pool-name= HikariPool
28   -spring.datasource.hikari.max-lifetime= 1800000
29   -spring.datasource.hikari.connection-timeout= 3000
30   -spring.datasource.hikari.connection-test-query= SELECT 1
31   -spring.datasource.hikari.validation-timeout= 3000
32   -spring.datasource.hikari.register-mbeans=true
33   -
34   -sso.enabled= true
35   -sso.systemcode = SYSUS023
36   -sso.http.url.login= http://10.10.200.142:9112/login?redirect=%2Findex
37   -sso.http.url.logout= http://10.10.200.142:9112/login?redirect=%2Findex
38   -sso.http.url.auth= http://10.10.200.142:9112/prod-api/system/utilitySystem/checkToken
39   -
40   -dc.imgurl= /home/control/klimg
41   -dc.profile= profile
  1 +server.port=9088
  2 +
  3 +# dubbo\uFFFD\uFFFD\uFFFD\uFFFD\u02B9\uFFFD\u00FF\uFFFD\uFFFD\uFFFDflag
  4 +dubbo.use=false
  5 +
  6 +#JPA
  7 +spring.jpa.hibernate.ddl-auto= none
  8 +spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyHbmImpl
  9 +spring.jpa.hibernate.naming.physical-strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
  10 +spring.jpa.database= MYSQL
  11 +spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true
  12 +spring.jpa.show-sql= false
  13 +spring.jpa.properties.hibernate.dialect= org.hibernate.spatial.dialect.mysql.MySQL56InnoDBSpatialDialect
  14 +
  15 +#DATABASE
  16 +spring.datasource.driver-class-name= com.mysql.jdbc.Driver
  17 +spring.datasource.url= jdbc:mysql://10.10.150.103:3306/control?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
  18 +spring.datasource.username= root
  19 +spring.datasource.password= fsodlgjiuigAQF2$9fs9
  20 +spring.datasource.type= com.zaxxer.hikari.HikariDataSource
  21 +
  22 +#DATASOURCE SETTING
  23 +spring.datasource.hikari.minimum-idle= 8
  24 +spring.datasource.hikari.maximum-pool-size= 100
  25 +#spring.datasource.hikari.auto-commit= true
  26 +spring.datasource.hikari.idle-timeout= 60000
  27 +#spring.datasource.hikari.pool-name= HikariPool
  28 +spring.datasource.hikari.max-lifetime= 1800000
  29 +spring.datasource.hikari.connection-timeout= 3000
  30 +spring.datasource.hikari.connection-test-query= SELECT 1
  31 +spring.datasource.hikari.validation-timeout= 3000
  32 +spring.datasource.hikari.register-mbeans=true
  33 +
  34 +sso.enabled= true
  35 +sso.systemcode = SYSUS023
  36 +sso.http.url.login= http://10.10.200.142:9112/login?redirect=%2Findex
  37 +sso.http.url.logout= http://10.10.200.142:9112/login?redirect=%2Findex
  38 +sso.http.url.auth= http://10.10.200.142:9112/prod-api/system/utilitySystem/checkToken
  39 +
  40 +dc.imgurl= /home/control/klimg
  41 +dc.profile= profile
  42 +
  43 +electricity.importFile.path= /home/control/elecImportFile
... ...
src/main/resources/application-test.properties
1   -server.port=9088
2   -
3   -# dubbo\uFFFD\uFFFD\uFFFD\uFFFD\u02B9\uFFFD\u00FF\uFFFD\uFFFD\uFFFDflag
4   -dubbo.use=false
5   -
6   -#JPA
7   -spring.jpa.hibernate.ddl-auto= none
8   -spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyHbmImpl
9   -spring.jpa.hibernate.naming.physical-strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
10   -spring.jpa.database= MYSQL
11   -spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true
12   -spring.jpa.show-sql= false
13   -spring.jpa.properties.hibernate.dialect= org.hibernate.spatial.dialect.mysql.MySQL56InnoDBSpatialDialect
14   -
15   -#DATABASE
16   -spring.datasource.driver-class-name= com.mysql.cj.jdbc.Driver
17   -spring.datasource.url= jdbc:mysql://10.10.150.101/lg_control?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
18   -spring.datasource.username= root
19   -spring.datasource.password= A123456ab
20   -spring.datasource.type= com.zaxxer.hikari.HikariDataSource
21   -
22   -#DATASOURCE SETTING
23   -spring.datasource.hikari.minimum-idle= 8
24   -spring.datasource.hikari.maximum-pool-size= 100
25   -#spring.datasource.hikari.auto-commit= true
26   -spring.datasource.hikari.idle-timeout= 60000
27   -#spring.datasource.hikari.pool-name= HikariPool
28   -spring.datasource.hikari.max-lifetime= 1800000
29   -spring.datasource.hikari.connection-timeout= 3000
30   -spring.datasource.hikari.connection-test-query= SELECT 1
31   -spring.datasource.hikari.validation-timeout= 3000
32   -spring.datasource.hikari.register-mbeans=true
33   -
34   -sso.enabled= true
35   -sso.systemcode = SYSUS023
36   -sso.http.url.login= http://10.10.200.142:9112/login?redirect=%2Findex
37   -sso.http.url.logout= http://10.10.200.142:9112/login?redirect=%2Findex
38   -sso.http.url.auth= http://10.10.200.142:9112/prod-api/system/utilitySystem/checkToken
39   -
40   -dc.imgurl= E:/klimg
41   -dc.profile= profile
42   -
43   -baidu.ak=AYiBOs3f9qBQFhdKFsaboX6CfObmKwRP
44   -passengerFlow.url = http://127.0.0.1:9999/images/
45 1 \ No newline at end of file
  2 +server.port=9088
  3 +
  4 +# dubbo\uFFFD\uFFFD\uFFFD\uFFFD\u02B9\uFFFD\u00FF\uFFFD\uFFFD\uFFFDflag
  5 +dubbo.use=false
  6 +
  7 +#JPA
  8 +spring.jpa.hibernate.ddl-auto= none
  9 +spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyHbmImpl
  10 +spring.jpa.hibernate.naming.physical-strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
  11 +spring.jpa.database= MYSQL
  12 +spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true
  13 +spring.jpa.show-sql= false
  14 +spring.jpa.properties.hibernate.dialect= org.hibernate.spatial.dialect.mysql.MySQL56InnoDBSpatialDialect
  15 +
  16 +#DATABASE
  17 +spring.datasource.driver-class-name= com.mysql.cj.jdbc.Driver
  18 +spring.datasource.url= jdbc:mysql://10.10.150.101/lg_control?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
  19 +spring.datasource.username= root
  20 +spring.datasource.password= A123456ab
  21 +spring.datasource.type= com.zaxxer.hikari.HikariDataSource
  22 +
  23 +#DATASOURCE SETTING
  24 +spring.datasource.hikari.minimum-idle= 8
  25 +spring.datasource.hikari.maximum-pool-size= 100
  26 +#spring.datasource.hikari.auto-commit= true
  27 +spring.datasource.hikari.idle-timeout= 60000
  28 +#spring.datasource.hikari.pool-name= HikariPool
  29 +spring.datasource.hikari.max-lifetime= 1800000
  30 +spring.datasource.hikari.connection-timeout= 3000
  31 +spring.datasource.hikari.connection-test-query= SELECT 1
  32 +spring.datasource.hikari.validation-timeout= 3000
  33 +spring.datasource.hikari.register-mbeans=true
  34 +
  35 +sso.enabled= true
  36 +sso.systemcode = SYSUS023
  37 +sso.http.url.login= http://10.10.200.142:9112/login?redirect=%2Findex
  38 +sso.http.url.logout= http://10.10.200.142:9112/login?redirect=%2Findex
  39 +sso.http.url.auth= http://10.10.200.142:9112/prod-api/system/utilitySystem/checkToken
  40 +
  41 +dc.imgurl= E:/klimg
  42 +dc.profile= profile
  43 +
  44 +baidu.ak=AYiBOs3f9qBQFhdKFsaboX6CfObmKwRP
  45 +passengerFlow.url = http://127.0.0.1:9999/images/
  46 +
  47 +electricity.importFile.path= E:/elecImportFile
... ...
src/main/resources/datatools/config-test.properties
... ... @@ -15,13 +15,13 @@ datatools.kvars_dbdname=lg_control
15 15  
16 16 # 3、上传数据配置信息
17 17 # 上传文件目录配置(根据不同的环境需要修正)
18   -datatools.fileupload_dir=/home/bsth_control_u_d_files
  18 +datatools.fileupload_dir=/Users/xu/resource/project_code/runtime_temp/bsth_control_u_d_files
19 19 # ktr转换文件,中配置的错误输出目录(根据不同的环境需要修正)
20   -datatools.trans_errordir=/home/bsth_control_u_d_files/erroroutput
  20 +datatools.trans_errordir=/Users/xu/resource/project_code/runtime_temp/bsth_control_u_d_files/erroroutput
21 21 # 临时输出文件目录
22   -datatools.trans_tempdir=/home/bsth_control_u_d_files/temp
  22 +datatools.trans_tempdir=/Users/xu/resource/project_code/runtime_temp/bsth_control_u_d_files/temp
23 23 # 模版文件目录
24   -datatools.trans_templatedir=/home/bsth_control_u_d_files/template
  24 +datatools.trans_templatedir=/Users/xu/resource/project_code/runtime_temp/bsth_control_u_d_files/template
25 25  
26 26 ##---------------------------- 导入数据ktr ----------------------------##
27 27 # 车辆信息导入ktr转换
... ... @@ -57,7 +57,7 @@ datatools.schedulerule_datainputktr=/datatools/ktrs/scheduleRuleDataInput.ktr
57 57  
58 58 # 4、数据导出配置信息
59 59 # 导出数据文件目录配置(根据不同的环境需要修正)
60   -datatools.fileoutput_dir=/home/bsth_control_u_d_files
  60 +datatools.fileoutput_dir=/Users/xu/resource/project_code/runtime_temp/bsth_control_u_d_files
61 61  
62 62 ##---------------------------- 导出数据ktr -----------------------------##
63 63 # 车辆信息导出ktr转换
... ...
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','permission' + sp + 'user', 'summary', 'history_sch', 'report' + sp + 'oil', 'base' + sp + 'geo_data_edit', 'base' + sp + 'carpark', 'forms', 'mforms', 'report', 'punctual', 'base' + sp + 'timesmodel', 'base' + sp + 'stationroute','zndd_yuan','call']
  19 +var excludes = ['scheduleApp', 'trafficManage', 'control', 'permission' + sp + 'authorize_all','permission' + sp + 'user', 'summary', 'history_sch', 'report' + sp + 'oil', 'base' + sp + 'geo_data_edit', 'base' + sp + 'carpark', 'forms', 'mforms', 'report', 'punctual', 'base' + sp + 'timesmodel', 'base' + sp + 'stationroute','zndd_yuan','call','base' + sp + 'region',]
20 20 , ep = new EventProxy()
21 21 , pName = 'bsth_control'
22 22 , path = process.cwd()
... ...
src/main/resources/static/assets/bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js
... ... @@ -5,7 +5,7 @@
5 5 * Version: 0.14.0 - 2015-10-08
6 6 * License: MIT
7 7 */
8   -angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/day.html","template/datepicker/month.html","template/datepicker/popup.html","template/datepicker/year.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-popup.html","template/tooltip/tooltip-popup.html","template/tooltip/tooltip-template-popup.html","template/popover/popover-html.html","template/popover/popover-template.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$injector",function(a,b){var c=b.has("$animateCss")?b.get("$animateCss"):null;return{link:function(b,d,e){function f(){d.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),c?c(d,{addClass:"in",easing:"ease",to:{height:d[0].scrollHeight+"px"}}).start().done(g):a.addClass(d,"in",{to:{height:d[0].scrollHeight+"px"}}).then(g)}function g(){d.removeClass("collapsing").addClass("collapse").css({height:"auto"})}function h(){return d.hasClass("collapse")||d.hasClass("in")?(d.css({height:d[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),void(c?c(d,{removeClass:"in",to:{height:"0"}}).start().done(i):a.removeClass(d,"in",{to:{height:"0"}}).then(i))):i()}function i(){d.css({height:"0"}),d.removeClass("collapsing").addClass("collapse")}b.$watch(e.uibCollapse,function(a){a?h():f()})}}}]),angular.module("ui.bootstrap.collapse").value("$collapseSuppressWarning",!1).directive("collapse",["$animate","$injector","$log","$collapseSuppressWarning",function(a,b,c,d){var e=b.has("$animateCss")?b.get("$animateCss"):null;return{link:function(b,f,g){function h(){f.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),e?e(f,{addClass:"in",easing:"ease",to:{height:f[0].scrollHeight+"px"}}).start().done(i):a.addClass(f,"in",{to:{height:f[0].scrollHeight+"px"}}).then(i)}function i(){f.removeClass("collapsing").addClass("collapse").css({height:"auto"})}function j(){return f.hasClass("collapse")||f.hasClass("in")?(f.css({height:f[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),void(e?e(f,{removeClass:"in",to:{height:"0"}}).start().done(k):a.removeClass(f,"in",{to:{height:"0"}}).then(k))):k()}function k(){f.css({height:"0"}),f.removeClass("collapsing").addClass("collapse")}d||c.warn("collapse is now deprecated. Use uib-collapse instead."),b.$watch(g.collapse,function(a){a?j():h()})}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(a,b,c){this.groups=[],this.closeOthers=function(d){var e=angular.isDefined(b.closeOthers)?a.$eval(b.closeOthers):c.closeOthers;e&&angular.forEach(this.groups,function(a){a!==d&&(a.isOpen=!1)})},this.addGroup=function(a){var b=this;this.groups.push(a),a.$on("$destroy",function(c){b.removeGroup(a)})},this.removeGroup=function(a){var b=this.groups.indexOf(a);-1!==b&&this.groups.splice(b,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(a,b){return b.templateUrl||"template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,replace:!0,templateUrl:function(a,b){return b.templateUrl||"template/accordion/accordion-group.html"},scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(a){this.heading=a}},link:function(a,b,c,d){d.addGroup(a),a.openClass=c.openClass||"panel-open",a.panelClass=c.panelClass,a.$watch("isOpen",function(c){b.toggleClass(a.openClass,!!c),c&&d.closeOthers(a)}),a.toggleOpen=function(b){a.isDisabled||b&&32!==b.which||(a.isOpen=!a.isOpen)}}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(a,b,c,d,e){d.setHeading(e(a,angular.noop))}}}).directive("uibAccordionTransclude",function(){return{require:["?^uibAccordionGroup","?^accordionGroup"],link:function(a,b,c,d){d=d[0]?d[0]:d[1],a.$watch(function(){return d[c.uibAccordionTransclude]},function(a){a&&(b.find("span").html(""),b.find("span").append(a))})}}}),angular.module("ui.bootstrap.accordion").value("$accordionSuppressWarning",!1).controller("AccordionController",["$scope","$attrs","$controller","$log","$accordionSuppressWarning",function(a,b,c,d,e){return e||d.warn("AccordionController is now deprecated. Use UibAccordionController instead."),c("UibAccordionController",{$scope:a,$attrs:b})}]).directive("accordion",["$log","$accordionSuppressWarning",function(a,b){return{restrict:"EA",controller:"AccordionController",controllerAs:"accordion",transclude:!0,replace:!1,templateUrl:function(a,b){return b.templateUrl||"template/accordion/accordion.html"},link:function(){b||a.warn("accordion is now deprecated. Use uib-accordion instead.")}}}]).directive("accordionGroup",["$log","$accordionSuppressWarning",function(a,b){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:function(a,b){return b.templateUrl||"template/accordion/accordion-group.html"},scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(a){this.heading=a}},link:function(c,d,e,f){b||a.warn("accordion-group is now deprecated. Use uib-accordion-group instead."),f.addGroup(c),c.openClass=e.openClass||"panel-open",c.panelClass=e.panelClass,c.$watch("isOpen",function(a){d.toggleClass(c.openClass,!!a),a&&f.closeOthers(c)}),c.toggleOpen=function(a){c.isDisabled||a&&32!==a.which||(c.isOpen=!c.isOpen)}}}}]).directive("accordionHeading",["$log","$accordionSuppressWarning",function(a,b){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",link:function(c,d,e,f,g){b||a.warn("accordion-heading is now deprecated. Use uib-accordion-heading instead."),f.setHeading(g(c,angular.noop))}}}]).directive("accordionTransclude",["$log","$accordionSuppressWarning",function(a,b){return{require:"^accordionGroup",link:function(c,d,e,f){b||a.warn("accordion-transclude is now deprecated. Use uib-accordion-transclude instead."),c.$watch(function(){return f[e.accordionTransclude]},function(a){a&&(d.find("span").html(""),d.find("span").append(a))})}}}]),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$attrs","$timeout",function(a,b,c){a.closeable=!!b.close,angular.isDefined(b.dismissOnTimeout)&&c(function(){a.close()},parseInt(b.dismissOnTimeout,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",templateUrl:function(a,b){return b.templateUrl||"template/alert/alert.html"},transclude:!0,replace:!0,scope:{type:"@",close:"&"}}}),angular.module("ui.bootstrap.alert").value("$alertSuppressWarning",!1).controller("AlertController",["$scope","$attrs","$controller","$log","$alertSuppressWarning",function(a,b,c,d,e){return e||d.warn("AlertController is now deprecated. Use UibAlertController instead."),c("UibAlertController",{$scope:a,$attrs:b})}]).directive("alert",["$log","$alertSuppressWarning",function(a,b){return{controller:"AlertController",controllerAs:"alert",templateUrl:function(a,b){return b.templateUrl||"template/alert/alert.html"},transclude:!0,replace:!0,scope:{type:"@",close:"&"},link:function(){b||a.warn("alert is now deprecated. Use uib-alert instead.")}}}]),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(a){this.activeClass=a.activeClass||"active",this.toggleEvent=a.toggleEvent||"click"}]).directive("uibBtnRadio",function(){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(a,b,c,d){var e=d[0],f=d[1];b.find("input").css({display:"none"}),f.$render=function(){b.toggleClass(e.activeClass,angular.equals(f.$modelValue,a.$eval(c.uibBtnRadio)))},b.on(e.toggleEvent,function(){if(!c.disabled){var d=b.hasClass(e.activeClass);(!d||angular.isDefined(c.uncheckable))&&a.$apply(function(){f.$setViewValue(d?null:a.$eval(c.uibBtnRadio)),f.$render()})}})}}}).directive("uibBtnCheckbox",["$document",function(a){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(b,c,d,e){function f(){return h(d.btnCheckboxTrue,!0)}function g(){return h(d.btnCheckboxFalse,!1)}function h(a,c){return angular.isDefined(a)?b.$eval(a):c}var i=e[0],j=e[1];c.find("input").css({display:"none"}),j.$render=function(){c.toggleClass(i.activeClass,angular.equals(j.$modelValue,f()))},c.on(i.toggleEvent,function(){d.disabled||b.$apply(function(){j.$setViewValue(c.hasClass(i.activeClass)?g():f()),j.$render()})}),c.on("keypress",function(e){d.disabled||32!==e.which||a[0].activeElement!==c[0]||b.$apply(function(){j.$setViewValue(c.hasClass(i.activeClass)?g():f()),j.$render()})})}}}]),angular.module("ui.bootstrap.buttons").value("$buttonsSuppressWarning",!1).controller("ButtonsController",["$controller","$log","$buttonsSuppressWarning",function(a,b,c){return c||b.warn("ButtonsController is now deprecated. Use UibButtonsController instead."),a("UibButtonsController")}]).directive("btnRadio",["$log","$buttonsSuppressWarning",function(a,b){return{require:["btnRadio","ngModel"],controller:"ButtonsController",controllerAs:"buttons",link:function(c,d,e,f){b||a.warn("btn-radio is now deprecated. Use uib-btn-radio instead.");var g=f[0],h=f[1];d.find("input").css({display:"none"}),h.$render=function(){d.toggleClass(g.activeClass,angular.equals(h.$modelValue,c.$eval(e.btnRadio)))},d.bind(g.toggleEvent,function(){if(!e.disabled){var a=d.hasClass(g.activeClass);(!a||angular.isDefined(e.uncheckable))&&c.$apply(function(){h.$setViewValue(a?null:c.$eval(e.btnRadio)),h.$render()})}})}}}]).directive("btnCheckbox",["$document","$log","$buttonsSuppressWarning",function(a,b,c){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",controllerAs:"button",link:function(d,e,f,g){function h(){return j(f.btnCheckboxTrue,!0)}function i(){return j(f.btnCheckboxFalse,!1)}function j(a,b){var c=d.$eval(a);return angular.isDefined(c)?c:b}c||b.warn("btn-checkbox is now deprecated. Use uib-btn-checkbox instead.");var k=g[0],l=g[1];e.find("input").css({display:"none"}),l.$render=function(){e.toggleClass(k.activeClass,angular.equals(l.$modelValue,h()))},e.bind(k.toggleEvent,function(){f.disabled||d.$apply(function(){l.$setViewValue(e.hasClass(k.activeClass)?i():h()),l.$render()})}),e.on("keypress",function(b){f.disabled||32!==b.which||a[0].activeElement!==e[0]||d.$apply(function(){l.$setViewValue(e.hasClass(k.activeClass)?i():h()),l.$render()})})}}}]),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$animate",function(a,b,c,d){function e(b,c,e){s||(angular.extend(b,{direction:e,active:!0}),angular.extend(m.currentSlide||{},{direction:e,active:!1}),d.enabled()&&!a.noTransition&&!a.$currentTransition&&b.$element&&m.slides.length>1&&(b.$element.data(q,b.direction),m.currentSlide&&m.currentSlide.$element&&m.currentSlide.$element.data(q,b.direction),a.$currentTransition=!0,o?d.on("addClass",b.$element,function(b,c){"close"===c&&(a.$currentTransition=null,d.off("addClass",b))}):b.$element.one("$animate:close",function(){a.$currentTransition=null})),m.currentSlide=b,r=c,g())}function f(a){if(angular.isUndefined(n[a].index))return n[a];var b;n.length;for(b=0;b<n.length;++b)if(n[b].index==a)return n[b]}function g(){h();var b=+a.interval;!isNaN(b)&&b>0&&(k=c(i,b))}function h(){k&&(c.cancel(k),k=null)}function i(){var b=+a.interval;l&&!isNaN(b)&&b>0&&n.length?a.next():a.pause()}function j(b){b.length||(a.$currentTransition=null)}var k,l,m=this,n=m.slides=a.slides=[],o=angular.version.minor>=4,p="uib-noTransition",q="uib-slideDirection",r=-1;m.currentSlide=null;var s=!1;m.select=a.select=function(b,c){var d=a.indexOfSlide(b);void 0===c&&(c=d>m.getCurrentIndex()?"next":"prev"),b&&b!==m.currentSlide&&!a.$currentTransition&&e(b,d,c)},a.$on("$destroy",function(){s=!0}),m.getCurrentIndex=function(){return m.currentSlide&&angular.isDefined(m.currentSlide.index)?+m.currentSlide.index:r},a.indexOfSlide=function(a){return angular.isDefined(a.index)?+a.index:n.indexOf(a)},a.next=function(){var b=(m.getCurrentIndex()+1)%n.length;return 0===b&&a.noWrap()?void a.pause():m.select(f(b),"next")},a.prev=function(){var b=m.getCurrentIndex()-1<0?n.length-1:m.getCurrentIndex()-1;return a.noWrap()&&b===n.length-1?void a.pause():m.select(f(b),"prev")},a.isActive=function(a){return m.currentSlide===a},a.$watch("interval",g),a.$watchCollection("slides",j),a.$on("$destroy",h),a.play=function(){l||(l=!0,g())},a.pause=function(){a.noPause||(l=!1,h())},m.addSlide=function(b,c){b.$element=c,n.push(b),1===n.length||b.active?(m.select(n[n.length-1]),1===n.length&&a.play()):b.active=!1},m.removeSlide=function(a){angular.isDefined(a.index)&&n.sort(function(a,b){return+a.index>+b.index});var b=n.indexOf(a);n.splice(b,1),n.length>0&&a.active?b>=n.length?m.select(n[b-1]):m.select(n[b]):r>b&&r--,0===n.length&&(m.currentSlide=null)},a.$watch("noTransition",function(a){b.data(p,a)})}]).directive("uibCarousel",[function(){return{transclude:!0,replace:!0,controller:"UibCarouselController",controllerAs:"carousel",require:"carousel",templateUrl:function(a,b){return b.templateUrl||"template/carousel/carousel.html"},scope:{interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}]).directive("uibSlide",function(){return{require:"^uibCarousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:function(a,b){return b.templateUrl||"template/carousel/slide.html"},scope:{active:"=?",actual:"=?",index:"=?"},link:function(a,b,c,d){d.addSlide(a,b),a.$on("$destroy",function(){d.removeSlide(a)}),a.$watch("active",function(b){b&&d.select(a)})}}}).animation(".item",["$injector","$animate",function(a,b){function c(a,b,c){a.removeClass(b),c&&c()}var d="uib-noTransition",e="uib-slideDirection",f=null;return a.has("$animateCss")&&(f=a.get("$animateCss")),{beforeAddClass:function(a,g,h){if("active"==g&&a.parent()&&a.parent().parent()&&!a.parent().parent().data(d)){var i=!1,j=a.data(e),k="next"==j?"left":"right",l=c.bind(this,a,k+" "+j,h);return a.addClass(j),f?f(a,{addClass:k}).start().done(l):b.addClass(a,k).then(function(){i||l(),h()}),function(){i=!0}}h()},beforeRemoveClass:function(a,g,h){if("active"===g&&a.parent()&&a.parent().parent()&&!a.parent().parent().data(d)){var i=!1,j=a.data(e),k="next"==j?"left":"right",l=c.bind(this,a,k,h);return f?f(a,{addClass:k}).start().done(l):b.addClass(a,k).then(function(){i||l(),h()}),function(){i=!0}}h()}}}]),angular.module("ui.bootstrap.carousel").value("$carouselSuppressWarning",!1).controller("CarouselController",["$scope","$element","$controller","$log","$carouselSuppressWarning",function(a,b,c,d,e){return e||d.warn("CarouselController is now deprecated. Use UibCarouselController instead."),c("UibCarouselController",{$scope:a,$element:b})}]).directive("carousel",["$log","$carouselSuppressWarning",function(a,b){return{transclude:!0,replace:!0,controller:"CarouselController",controllerAs:"carousel",require:"carousel",templateUrl:function(a,b){return b.templateUrl||"template/carousel/carousel.html"},scope:{interval:"=",noTransition:"=",noPause:"=",noWrap:"&"},link:function(){b||a.warn("carousel is now deprecated. Use uib-carousel instead.")}}}]).directive("slide",["$log","$carouselSuppressWarning",function(a,b){return{require:"^carousel",transclude:!0,replace:!0,templateUrl:function(a,b){return b.templateUrl||"template/carousel/slide.html"},scope:{active:"=?",actual:"=?",index:"=?"},link:function(c,d,e,f){b||a.warn("slide is now deprecated. Use uib-slide instead."),f.addSlide(c,d),c.$on("$destroy",function(){f.removeSlide(c)}),c.$watch("active",function(a){a&&f.select(c)})}}}]),angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","orderByFilter",function(a,b,c){function d(a){var b=[],d=a.split("");return angular.forEach(g,function(c,e){var f=a.indexOf(e);if(f>-1){a=a.split(""),d[f]="("+c.regex+")",a[f]="$";for(var g=f+1,h=f+e.length;h>g;g++)d[g]="",a[g]="$";a=a.join(""),b.push({index:f,apply:c.apply})}}),{regex:new RegExp("^"+d.join("")+"$"),map:c(b,"index")}}function e(a,b,c){return 1>c?!1:1===b&&c>28?29===c&&(a%4===0&&a%100!==0||a%400===0):3===b||5===b||8===b||10===b?31>c:!0}var f,g,h=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.init=function(){f=b.id,this.parsers={},g={yyyy:{regex:"\\d{4}",apply:function(a){this.year=+a}},yy:{regex:"\\d{2}",apply:function(a){this.year=+a+2e3}},y:{regex:"\\d{1,4}",apply:function(a){this.year=+a}},MMMM:{regex:b.DATETIME_FORMATS.MONTH.join("|"),apply:function(a){this.month=b.DATETIME_FORMATS.MONTH.indexOf(a)}},MMM:{regex:b.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(a){this.month=b.DATETIME_FORMATS.SHORTMONTH.indexOf(a)}},MM:{regex:"0[1-9]|1[0-2]",apply:function(a){this.month=a-1}},M:{regex:"[1-9]|1[0-2]",apply:function(a){this.month=a-1}},dd:{regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(a){this.date=+a}},d:{regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(a){this.date=+a}},EEEE:{regex:b.DATETIME_FORMATS.DAY.join("|")},EEE:{regex:b.DATETIME_FORMATS.SHORTDAY.join("|")},HH:{regex:"(?:0|1)[0-9]|2[0-3]",apply:function(a){this.hours=+a}},hh:{regex:"0[0-9]|1[0-2]",apply:function(a){this.hours=+a}},H:{regex:"1?[0-9]|2[0-3]",apply:function(a){this.hours=+a}},h:{regex:"[0-9]|1[0-2]",apply:function(a){this.hours=+a}},mm:{regex:"[0-5][0-9]",apply:function(a){this.minutes=+a}},m:{regex:"[0-9]|[1-5][0-9]",apply:function(a){this.minutes=+a}},sss:{regex:"[0-9][0-9][0-9]",apply:function(a){this.milliseconds=+a}},ss:{regex:"[0-5][0-9]",apply:function(a){this.seconds=+a}},s:{regex:"[0-9]|[1-5][0-9]",apply:function(a){this.seconds=+a}},a:{regex:b.DATETIME_FORMATS.AMPMS.join("|"),apply:function(a){12===this.hours&&(this.hours=0),"PM"===a&&(this.hours+=12)}}}},this.init(),this.parse=function(c,g,i){if(!angular.isString(c)||!g)return c;g=b.DATETIME_FORMATS[g]||g,g=g.replace(h,"\\$&"),b.id!==f&&this.init(),this.parsers[g]||(this.parsers[g]=d(g));var j=this.parsers[g],k=j.regex,l=j.map,m=c.match(k);if(m&&m.length){var n,o;angular.isDate(i)&&!isNaN(i.getTime())?n={year:i.getFullYear(),month:i.getMonth(),date:i.getDate(),hours:i.getHours(),minutes:i.getMinutes(),seconds:i.getSeconds(),milliseconds:i.getMilliseconds()}:(i&&a.warn("dateparser:","baseDate is not a valid date"),n={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0});for(var p=1,q=m.length;q>p;p++){var r=l[p-1];r.apply&&r.apply.call(n,m[p])}return e(n.year,n.month,n.date)&&(o=new Date(n.year,n.month,n.date,n.hours,n.minutes,n.seconds,n.milliseconds||0)),o}}}]),angular.module("ui.bootstrap.dateparser").value("$dateParserSuppressWarning",!1).service("dateParser",["$log","$dateParserSuppressWarning","uibDateParser",function(a,b,c){b||a.warn("dateParser is now deprecated. Use uibDateParser instead."),angular.extend(this,c)}]),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(a,b){function c(a,c){return a.currentStyle?a.currentStyle[c]:b.getComputedStyle?b.getComputedStyle(a)[c]:a.style[c]}function d(a){return"static"===(c(a,"position")||"static")}var e=function(b){for(var c=a[0],e=b.offsetParent||c;e&&e!==c&&d(e);)e=e.offsetParent;return e||c};return{position:function(b){var c=this.offset(b),d={top:0,left:0},f=e(b[0]);f!=a[0]&&(d=this.offset(angular.element(f)),d.top+=f.clientTop-f.scrollTop,d.left+=f.clientLeft-f.scrollLeft);var g=b[0].getBoundingClientRect();return{width:g.width||b.prop("offsetWidth"),height:g.height||b.prop("offsetHeight"),top:c.top-d.top,left:c.left-d.left}},offset:function(c){var d=c[0].getBoundingClientRect();return{width:d.width||c.prop("offsetWidth"),height:d.height||c.prop("offsetHeight"),top:d.top+(b.pageYOffset||a[0].documentElement.scrollTop),left:d.left+(b.pageXOffset||a[0].documentElement.scrollLeft)}},positionElements:function(a,b,c,d){var e,f,g,h,i=c.split("-"),j=i[0],k=i[1]||"center";e=d?this.offset(a):this.position(a),f=b.prop("offsetWidth"),g=b.prop("offsetHeight");var l={center:function(){return e.left+e.width/2-f/2},left:function(){return e.left},right:function(){return e.left+e.width}},m={center:function(){return e.top+e.height/2-g/2},top:function(){return e.top},bottom:function(){return e.top+e.height}};switch(j){case"right":h={top:m[k](),left:l[j]()};break;case"left":h={top:m[k](),left:e.left-f};break;case"bottom":h={top:m[j](),left:l[k]()};break;default:h={top:e.top-g,left:l[k]()}}return h}}}]),angular.module("ui.bootstrap.position").value("$positionSuppressWarning",!1).service("$position",["$log","$positionSuppressWarning","$uibPosition",function(a,b,c){b||a.warn("$position is now deprecated. Use $uibPosition instead."),angular.extend(this,c)}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).value("$datepickerSuppressError",!1).constant("uibDatepickerConfig",{formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",datepickerMode:"day",minMode:"day",maxMode:"year",showWeeks:!0,startingDay:0,yearRange:20,minDate:null,maxDate:null,shortcutPropagation:!1}).controller("UibDatepickerController",["$scope","$attrs","$parse","$interpolate","$log","dateFilter","uibDatepickerConfig","$datepickerSuppressError",function(a,b,c,d,e,f,g,h){var i=this,j={$setViewValue:angular.noop};this.modes=["day","month","year"],angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","showWeeks","startingDay","yearRange","shortcutPropagation"],function(c,e){i[c]=angular.isDefined(b[c])?6>e?d(b[c])(a.$parent):a.$parent.$eval(b[c]):g[c]}),angular.forEach(["minDate","maxDate"],function(d){b[d]?a.$parent.$watch(c(b[d]),function(a){i[d]=a?new Date(a):null,i.refreshView()}):i[d]=g[d]?new Date(g[d]):null}),angular.forEach(["minMode","maxMode"],function(d){b[d]?a.$parent.$watch(c(b[d]),function(c){i[d]=angular.isDefined(c)?c:b[d],a[d]=i[d],("minMode"==d&&i.modes.indexOf(a.datepickerMode)<i.modes.indexOf(i[d])||"maxMode"==d&&i.modes.indexOf(a.datepickerMode)>i.modes.indexOf(i[d]))&&(a.datepickerMode=i[d])}):(i[d]=g[d]||null,a[d]=i[d])}),a.datepickerMode=a.datepickerMode||g.datepickerMode,a.uniqueId="datepicker-"+a.$id+"-"+Math.floor(1e4*Math.random()),angular.isDefined(b.initDate)?(this.activeDate=a.$parent.$eval(b.initDate)||new Date,a.$parent.$watch(b.initDate,function(a){a&&(j.$isEmpty(j.$modelValue)||j.$invalid)&&(i.activeDate=a,i.refreshView())})):this.activeDate=new Date,a.isActive=function(b){return 0===i.compare(b.date,i.activeDate)?(a.activeDateId=b.uid,!0):!1},this.init=function(a){j=a,j.$render=function(){i.render()}},this.render=function(){if(j.$viewValue){var a=new Date(j.$viewValue),b=!isNaN(a);b?this.activeDate=a:h||e.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')}this.refreshView()},this.refreshView=function(){if(this.element){this._refreshView();var a=j.$viewValue?new Date(j.$viewValue):null;j.$setValidity("dateDisabled",!a||this.element&&!this.isDisabled(a))}},this.createDateObject=function(a,b){var c=j.$viewValue?new Date(j.$viewValue):null;return{date:a,label:f(a,b),selected:c&&0===this.compare(a,c),disabled:this.isDisabled(a),current:0===this.compare(a,new Date),customClass:this.customClass(a)}},this.isDisabled=function(c){return this.minDate&&this.compare(c,this.minDate)<0||this.maxDate&&this.compare(c,this.maxDate)>0||b.dateDisabled&&a.dateDisabled({date:c,mode:a.datepickerMode})},this.customClass=function(b){return a.customClass({date:b,mode:a.datepickerMode})},this.split=function(a,b){for(var c=[];a.length>0;)c.push(a.splice(0,b));return c},this.fixTimeZone=function(a){var b=a.getHours();a.setHours(23===b?b+2:0)},a.select=function(b){if(a.datepickerMode===i.minMode){var c=j.$viewValue?new Date(j.$viewValue):new Date(0,0,0,0,0,0,0);c.setFullYear(b.getFullYear(),b.getMonth(),b.getDate()),j.$setViewValue(c),j.$render()}else i.activeDate=b,a.datepickerMode=i.modes[i.modes.indexOf(a.datepickerMode)-1]},a.move=function(a){var b=i.activeDate.getFullYear()+a*(i.step.years||0),c=i.activeDate.getMonth()+a*(i.step.months||0);i.activeDate.setFullYear(b,c,1),i.refreshView()},a.toggleMode=function(b){b=b||1,a.datepickerMode===i.maxMode&&1===b||a.datepickerMode===i.minMode&&-1===b||(a.datepickerMode=i.modes[i.modes.indexOf(a.datepickerMode)+b])},a.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};var k=function(){i.element[0].focus()};a.$on("uib:datepicker.focus",k),a.keydown=function(b){var c=a.keys[b.which];if(c&&!b.shiftKey&&!b.altKey)if(b.preventDefault(),i.shortcutPropagation||b.stopPropagation(),"enter"===c||"space"===c){if(i.isDisabled(i.activeDate))return;a.select(i.activeDate)}else!b.ctrlKey||"up"!==c&&"down"!==c?(i.handleKeyDown(c,b),i.refreshView()):a.toggleMode("up"===c?1:-1)}}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(a,b,c){function d(a,b){return 1!==b||a%4!==0||a%100===0&&a%400!==0?f[b]:29}function e(a){var b=new Date(a);b.setDate(b.getDate()+4-(b.getDay()||7));var c=b.getTime();return b.setMonth(0),b.setDate(1),Math.floor(Math.round((c-b)/864e5)/7)+1}var f=[31,28,31,30,31,30,31,31,30,31,30,31];this.step={months:1},this.element=b,this.init=function(b){angular.extend(b,this),a.showWeeks=b.showWeeks,b.refreshView()},this.getDates=function(a,b){for(var c,d=new Array(b),e=new Date(a),f=0;b>f;)c=new Date(e),this.fixTimeZone(c),d[f++]=c,e.setDate(e.getDate()+1);return d},this._refreshView=function(){var b=this.activeDate.getFullYear(),d=this.activeDate.getMonth(),f=new Date(b,d,1),g=this.startingDay-f.getDay(),h=g>0?7-g:-g,i=new Date(f);h>0&&i.setDate(-h+1);for(var j=this.getDates(i,42),k=0;42>k;k++)j[k]=angular.extend(this.createDateObject(j[k],this.formatDay),{secondary:j[k].getMonth()!==d,uid:a.uniqueId+"-"+k});a.labels=new Array(7);for(var l=0;7>l;l++)a.labels[l]={abbr:c(j[l].date,this.formatDayHeader),full:c(j[l].date,"EEEE")};if(a.title=c(this.activeDate,this.formatDayTitle),a.rows=this.split(j,7),a.showWeeks){a.weekNumbers=[];for(var m=(11-this.startingDay)%7,n=a.rows.length,o=0;n>o;o++)a.weekNumbers.push(e(a.rows[o][m].date))}},this.compare=function(a,b){return new Date(a.getFullYear(),a.getMonth(),a.getDate())-new Date(b.getFullYear(),b.getMonth(),b.getDate())},this.handleKeyDown=function(a,b){var c=this.activeDate.getDate();if("left"===a)c-=1;else if("up"===a)c-=7;else if("right"===a)c+=1;else if("down"===a)c+=7;else if("pageup"===a||"pagedown"===a){var e=this.activeDate.getMonth()+("pageup"===a?-1:1);this.activeDate.setMonth(e,1),c=Math.min(d(this.activeDate.getFullYear(),this.activeDate.getMonth()),c)}else"home"===a?c=1:"end"===a&&(c=d(this.activeDate.getFullYear(),this.activeDate.getMonth()));this.activeDate.setDate(c)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(a,b,c){this.step={years:1},this.element=b,this.init=function(a){angular.extend(a,this),a.refreshView()},this._refreshView=function(){for(var b,d=new Array(12),e=this.activeDate.getFullYear(),f=0;12>f;f++)b=new Date(e,f,1),this.fixTimeZone(b),d[f]=angular.extend(this.createDateObject(b,this.formatMonth),{uid:a.uniqueId+"-"+f});a.title=c(this.activeDate,this.formatMonthTitle),a.rows=this.split(d,3)},this.compare=function(a,b){return new Date(a.getFullYear(),a.getMonth())-new Date(b.getFullYear(),b.getMonth())},this.handleKeyDown=function(a,b){var c=this.activeDate.getMonth();if("left"===a)c-=1;else if("up"===a)c-=3;else if("right"===a)c+=1;else if("down"===a)c+=3;else if("pageup"===a||"pagedown"===a){var d=this.activeDate.getFullYear()+("pageup"===a?-1:1);this.activeDate.setFullYear(d)}else"home"===a?c=0:"end"===a&&(c=11);this.activeDate.setMonth(c)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(a,b,c){function d(a){return parseInt((a-1)/e,10)*e+1}var e;this.element=b,this.yearpickerInit=function(){e=this.yearRange,this.step={years:e}},this._refreshView=function(){for(var b,c=new Array(e),f=0,g=d(this.activeDate.getFullYear());e>f;f++)b=new Date(g+f,0,1),this.fixTimeZone(b),c[f]=angular.extend(this.createDateObject(b,this.formatYear),{uid:a.uniqueId+"-"+f});a.title=[c[0].label,c[e-1].label].join(" - "),a.rows=this.split(c,5)},this.compare=function(a,b){return a.getFullYear()-b.getFullYear()},this.handleKeyDown=function(a,b){var c=this.activeDate.getFullYear();"left"===a?c-=1:"up"===a?c-=5:"right"===a?c+=1:"down"===a?c+=5:"pageup"===a||"pagedown"===a?c+=("pageup"===a?-1:1)*this.step.years:"home"===a?c=d(this.activeDate.getFullYear()):"end"===a&&(c=d(this.activeDate.getFullYear())+e-1),this.activeDate.setFullYear(c)}}]).directive("uibDatepicker",function(){return{replace:!0,templateUrl:function(a,b){return b.templateUrl||"template/datepicker/datepicker.html"},scope:{datepickerMode:"=?",dateDisabled:"&",customClass:"&",shortcutPropagation:"&?"},require:["uibDatepicker","^ngModel"],controller:"UibDatepickerController",controllerAs:"datepicker",link:function(a,b,c,d){var e=d[0],f=d[1];e.init(f)}}}).directive("uibDaypicker",function(){return{replace:!0,templateUrl:"template/datepicker/day.html",require:["^?uibDatepicker","uibDaypicker","^?datepicker"],controller:"UibDaypickerController",link:function(a,b,c,d){var e=d[0]||d[2],f=d[1];f.init(e)}}}).directive("uibMonthpicker",function(){return{replace:!0,templateUrl:"template/datepicker/month.html",require:["^?uibDatepicker","uibMonthpicker","^?datepicker"],controller:"UibMonthpickerController",link:function(a,b,c,d){var e=d[0]||d[2],f=d[1];f.init(e)}}}).directive("uibYearpicker",function(){return{replace:!0,templateUrl:"template/datepicker/year.html",require:["^?uibDatepicker","uibYearpicker","^?datepicker"],controller:"UibYearpickerController",link:function(a,b,c,d){var e=d[0]||d[2];angular.extend(e,d[1]),e.yearpickerInit(),e.refreshView()}}}).constant("uibDatepickerPopupConfig",{datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"template/datepicker/popup.html",datepickerTemplateUrl:"template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},currentText:"Today",clearText:"Clear",closeText:"Done",closeOnDateSelection:!0,appendToBody:!1,showButtonBar:!0,onOpenFocus:!0}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$parse","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout",function(a,b,c,d,e,f,g,h,i,j,k,l){function m(a){return a.replace(/([A-Z])/g,function(a){
  8 +angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/day.html","template/datepicker/month.html","template/datepicker/popup.html","template/datepicker/year.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-popup.html","template/tooltip/tooltip-popup.html","template/tooltip/tooltip-template-popup.html","template/popover/popover-html.html","template/popover/popover-template.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$injector",function(a,b){var c=b.has("$animateCss")?b.get("$animateCss"):null;return{link:function(b,d,e){function f(){d.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),c?c(d,{addClass:"in",easing:"ease",to:{height:d[0].scrollHeight+"px"}}).start().done(g):a.addClass(d,"in",{to:{height:d[0].scrollHeight+"px"}}).then(g)}function g(){d.removeClass("collapsing").addClass("collapse").css({height:"auto"})}function h(){return d.hasClass("collapse")||d.hasClass("in")?(d.css({height:d[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),void(c?c(d,{removeClass:"in",to:{height:"0"}}).start().done(i):a.removeClass(d,"in",{to:{height:"0"}}).then(i))):i()}function i(){d.css({height:"0"}),d.removeClass("collapsing").addClass("collapse")}b.$watch(e.uibCollapse,function(a){a?h():f()})}}}]),angular.module("ui.bootstrap.collapse").value("$collapseSuppressWarning",!1).directive("collapse",["$animate","$injector","$log","$collapseSuppressWarning",function(a,b,c,d){var e=b.has("$animateCss")?b.get("$animateCss"):null;return{link:function(b,f,g){function h(){f.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),e?e(f,{addClass:"in",easing:"ease",to:{height:f[0].scrollHeight+"px"}}).start().done(i):a.addClass(f,"in",{to:{height:f[0].scrollHeight+"px"}}).then(i)}function i(){f.removeClass("collapsing").addClass("collapse").css({height:"auto"})}function j(){return f.hasClass("collapse")||f.hasClass("in")?(f.css({height:f[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),void(e?e(f,{removeClass:"in",to:{height:"0"}}).start().done(k):a.removeClass(f,"in",{to:{height:"0"}}).then(k))):k()}function k(){f.css({height:"0"}),f.removeClass("collapsing").addClass("collapse")}d||c.warn("collapse is now deprecated. Use uib-collapse instead."),b.$watch(g.collapse,function(a){a?j():h()})}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(a,b,c){this.groups=[],this.closeOthers=function(d){var e=angular.isDefined(b.closeOthers)?a.$eval(b.closeOthers):c.closeOthers;e&&angular.forEach(this.groups,function(a){a!==d&&(a.isOpen=!1)})},this.addGroup=function(a){var b=this;this.groups.push(a),a.$on("$destroy",function(c){b.removeGroup(a)})},this.removeGroup=function(a){var b=this.groups.indexOf(a);-1!==b&&this.groups.splice(b,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(a,b){return b.templateUrl||"template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,replace:!0,templateUrl:function(a,b){return b.templateUrl||"template/accordion/accordion-group.html"},scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(a){this.heading=a}},link:function(a,b,c,d){d.addGroup(a),a.openClass=c.openClass||"panel-open",a.panelClass=c.panelClass,a.$watch("isOpen",function(c){b.toggleClass(a.openClass,!!c),c&&d.closeOthers(a)}),a.toggleOpen=function(b){a.isDisabled||b&&32!==b.which||(a.isOpen=!a.isOpen)}}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(a,b,c,d,e){d.setHeading(e(a,angular.noop))}}}).directive("uibAccordionTransclude",function(){return{require:["?^uibAccordionGroup","?^accordionGroup"],link:function(a,b,c,d){d=d[0]?d[0]:d[1],a.$watch(function(){return d[c.uibAccordionTransclude]},function(a){a&&(b.find("span").html(""),b.find("span").append(a))})}}}),angular.module("ui.bootstrap.accordion").value("$accordionSuppressWarning",!1).controller("AccordionController",["$scope","$attrs","$controller","$log","$accordionSuppressWarning",function(a,b,c,d,e){return e||d.warn("AccordionController is now deprecated. Use UibAccordionController instead."),c("UibAccordionController",{$scope:a,$attrs:b})}]).directive("accordion",["$log","$accordionSuppressWarning",function(a,b){return{restrict:"EA",controller:"AccordionController",controllerAs:"accordion",transclude:!0,replace:!1,templateUrl:function(a,b){return b.templateUrl||"template/accordion/accordion.html"},link:function(){b||a.warn("accordion is now deprecated. Use uib-accordion instead.")}}}]).directive("accordionGroup",["$log","$accordionSuppressWarning",function(a,b){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:function(a,b){return b.templateUrl||"template/accordion/accordion-group.html"},scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(a){this.heading=a}},link:function(c,d,e,f){b||a.warn("accordion-group is now deprecated. Use uib-accordion-group instead."),f.addGroup(c),c.openClass=e.openClass||"panel-open",c.panelClass=e.panelClass,c.$watch("isOpen",function(a){d.toggleClass(c.openClass,!!a),a&&f.closeOthers(c)}),c.toggleOpen=function(a){c.isDisabled||a&&32!==a.which||(c.isOpen=!c.isOpen)}}}}]).directive("accordionHeading",["$log","$accordionSuppressWarning",function(a,b){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",link:function(c,d,e,f,g){b||a.warn("accordion-heading is now deprecated. Use uib-accordion-heading instead."),f.setHeading(g(c,angular.noop))}}}]).directive("accordionTransclude",["$log","$accordionSuppressWarning",function(a,b){return{require:"^accordionGroup",link:function(c,d,e,f){b||a.warn("accordion-transclude is now deprecated. Use uib-accordion-transclude instead."),c.$watch(function(){return f[e.accordionTransclude]},function(a){a&&(d.find("span").html(""),d.find("span").append(a))})}}}]),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$attrs","$timeout",function(a,b,c){a.closeable=!!b.close,angular.isDefined(b.dismissOnTimeout)&&c(function(){a.close()},parseInt(b.dismissOnTimeout,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",templateUrl:function(a,b){return b.templateUrl||"template/alert/alert.html"},transclude:!0,replace:!0,scope:{type:"@",close:"&"}}}),angular.module("ui.bootstrap.alert").value("$alertSuppressWarning",!1).controller("AlertController",["$scope","$attrs","$controller","$log","$alertSuppressWarning",function(a,b,c,d,e){return e||d.warn("AlertController is now deprecated. Use UibAlertController instead."),c("UibAlertController",{$scope:a,$attrs:b})}]).directive("alert",["$log","$alertSuppressWarning",function(a,b){return{controller:"AlertController",controllerAs:"alert",templateUrl:function(a,b){return b.templateUrl||"template/alert/alert.html"},transclude:!0,replace:!0,scope:{type:"@",close:"&"},link:function(){b||a.warn("alert is now deprecated. Use uib-alert instead.")}}}]),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(a){this.activeClass=a.activeClass||"active",this.toggleEvent=a.toggleEvent||"click"}]).directive("uibBtnRadio",function(){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(a,b,c,d){var e=d[0],f=d[1];b.find("input").css({display:"none"}),f.$render=function(){b.toggleClass(e.activeClass,angular.equals(f.$modelValue,a.$eval(c.uibBtnRadio)))},b.on(e.toggleEvent,function(){if(!c.disabled){var d=b.hasClass(e.activeClass);(!d||angular.isDefined(c.uncheckable))&&a.$apply(function(){f.$setViewValue(d?null:a.$eval(c.uibBtnRadio)),f.$render()})}})}}}).directive("uibBtnCheckbox",["$document",function(a){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(b,c,d,e){function f(){return h(d.btnCheckboxTrue,!0)}function g(){return h(d.btnCheckboxFalse,!1)}function h(a,c){return angular.isDefined(a)?b.$eval(a):c}var i=e[0],j=e[1];c.find("input").css({display:"none"}),j.$render=function(){c.toggleClass(i.activeClass,angular.equals(j.$modelValue,f()))},c.on(i.toggleEvent,function(){d.disabled||b.$apply(function(){j.$setViewValue(c.hasClass(i.activeClass)?g():f()),j.$render()})}),c.on("keypress",function(e){d.disabled||32!==e.which||a[0].activeElement!==c[0]||b.$apply(function(){j.$setViewValue(c.hasClass(i.activeClass)?g():f()),j.$render()})})}}}]),angular.module("ui.bootstrap.buttons").value("$buttonsSuppressWarning",!1).controller("ButtonsController",["$controller","$log","$buttonsSuppressWarning",function(a,b,c){return c||b.warn("ButtonsController is now deprecated. Use UibButtonsController instead."),a("UibButtonsController")}]).directive("btnRadio",["$log","$buttonsSuppressWarning",function(a,b){return{require:["btnRadio","ngModel"],controller:"ButtonsController",controllerAs:"buttons",link:function(c,d,e,f){b||a.warn("btn-radio is now deprecated. Use uib-btn-radio instead.");var g=f[0],h=f[1];d.find("input").css({display:"none"}),h.$render=function(){d.toggleClass(g.activeClass,angular.equals(h.$modelValue,c.$eval(e.btnRadio)))},d.bind(g.toggleEvent,function(){if(!e.disabled){var a=d.hasClass(g.activeClass);(!a||angular.isDefined(e.uncheckable))&&c.$apply(function(){h.$setViewValue(a?null:c.$eval(e.btnRadio)),h.$render()})}})}}}]).directive("btnCheckbox",["$document","$log","$buttonsSuppressWarning",function(a,b,c){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",controllerAs:"button",link:function(d,e,f,g){function h(){return j(f.btnCheckboxTrue,!0)}function i(){return j(f.btnCheckboxFalse,!1)}function j(a,b){var c=d.$eval(a);return angular.isDefined(c)?c:b}c||b.warn("btn-checkbox is now deprecated. Use uib-btn-checkbox instead.");var k=g[0],l=g[1];e.find("input").css({display:"none"}),l.$render=function(){e.toggleClass(k.activeClass,angular.equals(l.$modelValue,h()))},e.bind(k.toggleEvent,function(){f.disabled||d.$apply(function(){l.$setViewValue(e.hasClass(k.activeClass)?i():h()),l.$render()})}),e.on("keypress",function(b){f.disabled||32!==b.which||a[0].activeElement!==e[0]||d.$apply(function(){l.$setViewValue(e.hasClass(k.activeClass)?i():h()),l.$render()})})}}}]),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$animate",function(a,b,c,d){function e(b,c,e){s||(angular.extend(b,{direction:e,active:!0}),angular.extend(m.currentSlide||{},{direction:e,active:!1}),d.enabled()&&!a.noTransition&&!a.$currentTransition&&b.$element&&m.slides.length>1&&(b.$element.data(q,b.direction),m.currentSlide&&m.currentSlide.$element&&m.currentSlide.$element.data(q,b.direction),a.$currentTransition=!0,o?d.on("addClass",b.$element,function(b,c){"close"===c&&(a.$currentTransition=null,d.off("addClass",b))}):b.$element.one("$animate:close",function(){a.$currentTransition=null})),m.currentSlide=b,r=c,g())}function f(a){if(angular.isUndefined(n[a].index))return n[a];var b;n.length;for(b=0;b<n.length;++b)if(n[b].index==a)return n[b]}function g(){h();var b=+a.interval;!isNaN(b)&&b>0&&(k=c(i,b))}function h(){k&&(c.cancel(k),k=null)}function i(){var b=+a.interval;l&&!isNaN(b)&&b>0&&n.length?a.next():a.pause()}function j(b){b.length||(a.$currentTransition=null)}var k,l,m=this,n=m.slides=a.slides=[],o=angular.version.minor>=4,p="uib-noTransition",q="uib-slideDirection",r=-1;m.currentSlide=null;var s=!1;m.select=a.select=function(b,c){var d=a.indexOfSlide(b);void 0===c&&(c=d>m.getCurrentIndex()?"next":"prev"),b&&b!==m.currentSlide&&!a.$currentTransition&&e(b,d,c)},a.$on("$destroy",function(){s=!0}),m.getCurrentIndex=function(){return m.currentSlide&&angular.isDefined(m.currentSlide.index)?+m.currentSlide.index:r},a.indexOfSlide=function(a){return angular.isDefined(a.index)?+a.index:n.indexOf(a)},a.next=function(){var b=(m.getCurrentIndex()+1)%n.length;return 0===b&&a.noWrap()?void a.pause():m.select(f(b),"next")},a.prev=function(){var b=m.getCurrentIndex()-1<0?n.length-1:m.getCurrentIndex()-1;return a.noWrap()&&b===n.length-1?void a.pause():m.select(f(b),"prev")},a.isActive=function(a){return m.currentSlide===a},a.$watch("interval",g),a.$watchCollection("slides",j),a.$on("$destroy",h),a.play=function(){l||(l=!0,g())},a.pause=function(){a.noPause||(l=!1,h())},m.addSlide=function(b,c){b.$element=c,n.push(b),1===n.length||b.active?(m.select(n[n.length-1]),1===n.length&&a.play()):b.active=!1},m.removeSlide=function(a){angular.isDefined(a.index)&&n.sort(function(a,b){return+a.index>+b.index});var b=n.indexOf(a);n.splice(b,1),n.length>0&&a.active?b>=n.length?m.select(n[b-1]):m.select(n[b]):r>b&&r--,0===n.length&&(m.currentSlide=null)},a.$watch("noTransition",function(a){b.data(p,a)})}]).directive("uibCarousel",[function(){return{transclude:!0,replace:!0,controller:"UibCarouselController",controllerAs:"carousel",require:"carousel",templateUrl:function(a,b){return b.templateUrl||"template/carousel/carousel.html"},scope:{interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}]).directive("uibSlide",function(){return{require:"^uibCarousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:function(a,b){return b.templateUrl||"template/carousel/slide.html"},scope:{active:"=?",actual:"=?",index:"=?"},link:function(a,b,c,d){d.addSlide(a,b),a.$on("$destroy",function(){d.removeSlide(a)}),a.$watch("active",function(b){b&&d.select(a)})}}}).animation(".item",["$injector","$animate",function(a,b){function c(a,b,c){a.removeClass(b),c&&c()}var d="uib-noTransition",e="uib-slideDirection",f=null;return a.has("$animateCss")&&(f=a.get("$animateCss")),{beforeAddClass:function(a,g,h){if("active"==g&&a.parent()&&a.parent().parent()&&!a.parent().parent().data(d)){var i=!1,j=a.data(e),k="next"==j?"left":"right",l=c.bind(this,a,k+" "+j,h);return a.addClass(j),f?f(a,{addClass:k}).start().done(l):b.addClass(a,k).then(function(){i||l(),h()}),function(){i=!0}}h()},beforeRemoveClass:function(a,g,h){if("active"===g&&a.parent()&&a.parent().parent()&&!a.parent().parent().data(d)){var i=!1,j=a.data(e),k="next"==j?"left":"right",l=c.bind(this,a,k,h);return f?f(a,{addClass:k}).start().done(l):b.addClass(a,k).then(function(){i||l(),h()}),function(){i=!0}}h()}}}]),angular.module("ui.bootstrap.carousel").value("$carouselSuppressWarning",!1).controller("CarouselController",["$scope","$element","$controller","$log","$carouselSuppressWarning",function(a,b,c,d,e){return e||d.warn("CarouselController is now deprecated. Use UibCarouselController instead."),c("UibCarouselController",{$scope:a,$element:b})}]).directive("carousel",["$log","$carouselSuppressWarning",function(a,b){return{transclude:!0,replace:!0,controller:"CarouselController",controllerAs:"carousel",require:"carousel",templateUrl:function(a,b){return b.templateUrl||"template/carousel/carousel.html"},scope:{interval:"=",noTransition:"=",noPause:"=",noWrap:"&"},link:function(){b||a.warn("carousel is now deprecated. Use uib-carousel instead.")}}}]).directive("slide",["$log","$carouselSuppressWarning",function(a,b){return{require:"^carousel",transclude:!0,replace:!0,templateUrl:function(a,b){return b.templateUrl||"template/carousel/slide.html"},scope:{active:"=?",actual:"=?",index:"=?"},link:function(c,d,e,f){b||a.warn("slide is now deprecated. Use uib-slide instead."),f.addSlide(c,d),c.$on("$destroy",function(){f.removeSlide(c)}),c.$watch("active",function(a){a&&f.select(c)})}}}]),angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","orderByFilter",function(a,b,c){function d(a){var b=[],d=a.split("");return angular.forEach(g,function(c,e){var f=a.indexOf(e);if(f>-1){a=a.split(""),d[f]="("+c.regex+")",a[f]="$";for(var g=f+1,h=f+e.length;h>g;g++)d[g]="",a[g]="$";a=a.join(""),b.push({index:f,apply:c.apply})}}),{regex:new RegExp("^"+d.join("")+"$"),map:c(b,"index")}}function e(a,b,c){return 1>c?!1:1===b&&c>28?29===c&&(a%4===0&&a%100!==0||a%400===0):3===b||5===b||8===b||10===b?31>c:!0}var f,g,h=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.init=function(){f=b.id,this.parsers={},g={yyyy:{regex:"\\d{4}",apply:function(a){this.year=+a}},yy:{regex:"\\d{2}",apply:function(a){this.year=+a+2e3}},y:{regex:"\\d{1,4}",apply:function(a){this.year=+a}},MMMM:{regex:b.DATETIME_FORMATS.MONTH.join("|"),apply:function(a){this.month=b.DATETIME_FORMATS.MONTH.indexOf(a)}},MMM:{regex:b.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(a){this.month=b.DATETIME_FORMATS.SHORTMONTH.indexOf(a)}},MM:{regex:"0[1-9]|1[0-2]",apply:function(a){this.month=a-1}},M:{regex:"[1-9]|1[0-2]",apply:function(a){this.month=a-1}},dd:{regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(a){this.date=+a}},d:{regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(a){this.date=+a}},EEEE:{regex:b.DATETIME_FORMATS.DAY.join("|")},EEE:{regex:b.DATETIME_FORMATS.SHORTDAY.join("|")},HH:{regex:"(?:0|1)[0-9]|2[0-3]",apply:function(a){this.hours=+a}},hh:{regex:"0[0-9]|1[0-2]",apply:function(a){this.hours=+a}},H:{regex:"1?[0-9]|2[0-3]",apply:function(a){this.hours=+a}},h:{regex:"[0-9]|1[0-2]",apply:function(a){this.hours=+a}},mm:{regex:"[0-5][0-9]",apply:function(a){this.minutes=+a}},m:{regex:"[0-9]|[1-5][0-9]",apply:function(a){this.minutes=+a}},sss:{regex:"[0-9][0-9][0-9]",apply:function(a){this.milliseconds=+a}},ss:{regex:"[0-5][0-9]",apply:function(a){this.seconds=+a}},s:{regex:"[0-9]|[1-5][0-9]",apply:function(a){this.seconds=+a}},a:{regex:b.DATETIME_FORMATS.AMPMS.join("|"),apply:function(a){12===this.hours&&(this.hours=0),"PM"===a&&(this.hours+=12)}}}},this.init(),this.parse=function(c,g,i){if(!angular.isString(c)||!g)return c;g=b.DATETIME_FORMATS[g]||g,g=g.replace(h,"\\$&"),b.id!==f&&this.init(),this.parsers[g]||(this.parsers[g]=d(g));var j=this.parsers[g],k=j.regex,l=j.map,m=c.match(k);if(m&&m.length){var n,o;angular.isDate(i)&&!isNaN(i.getTime())?n={year:i.getFullYear(),month:i.getMonth(),date:i.getDate(),hours:i.getHours(),minutes:i.getMinutes(),seconds:i.getSeconds(),milliseconds:i.getMilliseconds()}:(i&&a.warn("dateparser:","baseDate is not a valid date"),n={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0});for(var p=1,q=m.length;q>p;p++){var r=l[p-1];r.apply&&r.apply.call(n,m[p])}return e(n.year,n.month,n.date)&&(o=new Date(n.year,n.month,n.date,n.hours,n.minutes,n.seconds,n.milliseconds||0)),o}}}]),angular.module("ui.bootstrap.dateparser").value("$dateParserSuppressWarning",!1).service("dateParser",["$log","$dateParserSuppressWarning","uibDateParser",function(a,b,c){b||a.warn("dateParser is now deprecated. Use uibDateParser instead."),angular.extend(this,c)}]),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(a,b){function c(a,c){return a.currentStyle?a.currentStyle[c]:b.getComputedStyle?b.getComputedStyle(a)[c]:a.style[c]}function d(a){return"static"===(c(a,"position")||"static")}var e=function(b){for(var c=a[0],e=b.offsetParent||c;e&&e!==c&&d(e);)e=e.offsetParent;return e||c};return{position:function(b){var c=this.offset(b),d={top:0,left:0},f=e(b[0]);f!=a[0]&&(d=this.offset(angular.element(f)),d.top+=f.clientTop-f.scrollTop,d.left+=f.clientLeft-f.scrollLeft);var g=b[0].getBoundingClientRect();return{width:g.width||b.prop("offsetWidth"),height:g.height||b.prop("offsetHeight"),top:c.top-d.top,left:c.left-d.left}},offset:function(c){var d=c[0].getBoundingClientRect();return{width:d.width||c.prop("offsetWidth"),height:d.height||c.prop("offsetHeight"),top:d.top+(b.pageYOffset||a[0].documentElement.scrollTop),left:d.left+(b.pageXOffset||a[0].documentElement.scrollLeft)}},positionElements:function(a,b,c,d){var e,f,g,h,i=c.split("-"),j=i[0],k=i[1]||"center";e=d?this.offset(a):this.position(a),f=b.prop("offsetWidth"),g=b.prop("offsetHeight");var l={center:function(){return e.left+e.width/2-f/2},left:function(){return e.left},right:function(){return e.left+e.width}},m={center:function(){return e.top+e.height/2-g/2},top:function(){return e.top},bottom:function(){return e.top+e.height}};switch(j){case"right":h={top:m[k](),left:l[j]()};break;case"left":h={top:m[k](),left:e.left-f};break;case"bottom":h={top:m[j](),left:l[k]()};break;default:h={top:e.top-g,left:l[k]()}}return h}}}]),angular.module("ui.bootstrap.position").value("$positionSuppressWarning",!1).service("$position",["$log","$positionSuppressWarning","$uibPosition",function(a,b,c){b||a.warn("$position is now deprecated. Use $uibPosition instead."),angular.extend(this,c)}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).value("$datepickerSuppressError",!1).constant("uibDatepickerConfig",{formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",datepickerMode:"day",minMode:"day",maxMode:"year",showWeeks:!0,startingDay:0,yearRange:20,minDate:null,maxDate:null,shortcutPropagation:!1}).controller("UibDatepickerController",["$scope","$attrs","$parse","$interpolate","$log","dateFilter","uibDatepickerConfig","$datepickerSuppressError",function(a,b,c,d,e,f,g,h){var i=this,j={$setViewValue:angular.noop};this.modes=["day","month","year"],angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","showWeeks","startingDay","yearRange","shortcutPropagation"],function(c,e){i[c]=angular.isDefined(b[c])?6>e?d(b[c])(a.$parent):a.$parent.$eval(b[c]):g[c]}),angular.forEach(["minDate","maxDate"],function(d){b[d]?a.$parent.$watch(c(b[d]),function(a){i[d]=a?new Date(a):null,i.refreshView()}):i[d]=g[d]?new Date(g[d]):null}),angular.forEach(["minMode","maxMode"],function(d){b[d]?a.$parent.$watch(c(b[d]),function(c){i[d]=angular.isDefined(c)?c:b[d],a[d]=i[d],("minMode"==d&&i.modes.indexOf(a.datepickerMode)<i.modes.indexOf(i[d])||"maxMode"==d&&i.modes.indexOf(a.datepickerMode)>i.modes.indexOf(i[d]))&&(a.datepickerMode=i[d])}):(i[d]=g[d]||null,a[d]=i[d])}),a.datepickerMode=a.datepickerMode||g.datepickerMode,a.uniqueId="datepicker-"+a.$id+"-"+Math.floor(1e4*Math.random()),angular.isDefined(b.initDate)?(this.activeDate=a.$parent.$eval(b.initDate)||new Date,a.$parent.$watch(b.initDate,function(a){a&&(j.$isEmpty(j.$modelValue)||j.$invalid)&&(i.activeDate=a,i.refreshView())})):this.activeDate=new Date,a.isActive=function(b){return 0===i.compare(b.date,i.activeDate)?(a.activeDateId=b.uid,!0):!1},this.init=function(a){j=a,j.$render=function(){i.render()}},this.render=function(){if(j.$viewValue){var a=new Date(j.$viewValue),b=!isNaN(a);b?this.activeDate=a:h||e.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')}this.refreshView()},this.refreshView=function(){if(this.element){this._refreshView();var a=j.$viewValue?new Date(j.$viewValue):null;j.$setValidity("dateDisabled",!a||this.element&&!this.isDisabled(a))}},this.createDateObject=function(a,b){var c=j.$viewValue?new Date(j.$viewValue):null;return{date:a,label:f(a,b),selected:c&&0===this.compare(a,c),disabled:this.isDisabled(a),current:0===this.compare(a,new Date),customClass:this.customClass(a)}},this.isDisabled=function(c){return this.minDate&&this.compare(c,this.minDate)<0||this.maxDate&&this.compare(c,this.maxDate)>0||b.dateDisabled&&a.dateDisabled({date:c,mode:a.datepickerMode})},this.customClass=function(b){return a.customClass({date:b,mode:a.datepickerMode})},this.split=function(a,b){for(var c=[];a.length>0;)c.push(a.splice(0,b));return c},this.fixTimeZone=function(a){var b=a.getHours();a.setHours(23===b?b+2:0)},a.select=function(b){if(a.datepickerMode===i.minMode){var c=j.$viewValue?new Date(j.$viewValue):new Date(0,0,0,0,0,0,0);c.setFullYear(b.getFullYear(),b.getMonth(),b.getDate()),j.$setViewValue(c),j.$render()}else i.activeDate=b,a.datepickerMode=i.modes[i.modes.indexOf(a.datepickerMode)-1]},a.move=function(a){var b=i.activeDate.getFullYear()+a*(i.step.years||0),c=i.activeDate.getMonth()+a*(i.step.months||0);i.activeDate.setFullYear(b,c,1),i.refreshView()},a.toggleMode=function(b){b=b||1,a.datepickerMode===i.maxMode&&1===b||a.datepickerMode===i.minMode&&-1===b||(a.datepickerMode=i.modes[i.modes.indexOf(a.datepickerMode)+b])},a.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};var k=function(){i.element[0].focus()};a.$on("uib:datepicker.focus",k),a.keydown=function(b){var c=a.keys[b.which];if(c&&!b.shiftKey&&!b.altKey)if(b.preventDefault(),i.shortcutPropagation||b.stopPropagation(),"enter"===c||"space"===c){if(i.isDisabled(i.activeDate))return;a.select(i.activeDate)}else!b.ctrlKey||"up"!==c&&"down"!==c?(i.handleKeyDown(c,b),i.refreshView()):a.toggleMode("up"===c?1:-1)}}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(a,b,c){function d(a,b){return 1!==b||a%4!==0||a%100===0&&a%400!==0?f[b]:29}function e(a){var b=new Date(a);b.setDate(b.getDate()+4-(b.getDay()||7));var c=b.getTime();return b.setMonth(0),b.setDate(1),Math.floor(Math.round((c-b)/864e5)/7)+1}var f=[31,28,31,30,31,30,31,31,30,31,30,31];this.step={months:1},this.element=b,this.init=function(b){angular.extend(b,this),a.showWeeks=b.showWeeks,b.refreshView()},this.getDates=function(a,b){for(var c,d=new Array(b),e=new Date(a),f=0;b>f;)c=new Date(e),this.fixTimeZone(c),d[f++]=c,e.setDate(e.getDate()+1);return d},this._refreshView=function(){var b=this.activeDate.getFullYear(),d=this.activeDate.getMonth(),f=new Date(b,d,1),g=this.startingDay-f.getDay(),h=g>0?7-g:-g,i=new Date(f);h>0&&i.setDate(-h+1);for(var j=this.getDates(i,42),k=0;42>k;k++)j[k]=angular.extend(this.createDateObject(j[k],this.formatDay),{secondary:j[k].getMonth()!==d,uid:a.uniqueId+"-"+k});a.labels=new Array(7);for(var l=0;7>l;l++)a.labels[l]={abbr:c(j[l].date,this.formatDayHeader),full:c(j[l].date,"EEEE")};if(a.title=c(this.activeDate,this.formatDayTitle),a.rows=this.split(j,7),a.showWeeks){a.weekNumbers=[];for(var m=(11-this.startingDay)%7,n=a.rows.length,o=0;n>o;o++)a.weekNumbers.push(e(a.rows[o][m].date))}},this.compare=function(a,b){return new Date(a.getFullYear(),a.getMonth(),a.getDate())-new Date(b.getFullYear(),b.getMonth(),b.getDate())},this.handleKeyDown=function(a,b){var c=this.activeDate.getDate();if("left"===a)c-=1;else if("up"===a)c-=7;else if("right"===a)c+=1;else if("down"===a)c+=7;else if("pageup"===a||"pagedown"===a){var e=this.activeDate.getMonth()+("pageup"===a?-1:1);this.activeDate.setMonth(e,1),c=Math.min(d(this.activeDate.getFullYear(),this.activeDate.getMonth()),c)}else"home"===a?c=1:"end"===a&&(c=d(this.activeDate.getFullYear(),this.activeDate.getMonth()));this.activeDate.setDate(c)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(a,b,c){this.step={years:1},this.element=b,this.init=function(a){angular.extend(a,this),a.refreshView()},this._refreshView=function(){for(var b,d=new Array(12),e=this.activeDate.getFullYear(),f=0;12>f;f++)b=new Date(e,f,1),this.fixTimeZone(b),d[f]=angular.extend(this.createDateObject(b,this.formatMonth),{uid:a.uniqueId+"-"+f});a.title=c(this.activeDate,this.formatMonthTitle),a.rows=this.split(d,3)},this.compare=function(a,b){return new Date(a.getFullYear(),a.getMonth())-new Date(b.getFullYear(),b.getMonth())},this.handleKeyDown=function(a,b){var c=this.activeDate.getMonth();if("left"===a)c-=1;else if("up"===a)c-=3;else if("right"===a)c+=1;else if("down"===a)c+=3;else if("pageup"===a||"pagedown"===a){var d=this.activeDate.getFullYear()+("pageup"===a?-1:1);this.activeDate.setFullYear(d)}else"home"===a?c=0:"end"===a&&(c=11);this.activeDate.setMonth(c)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(a,b,c){function d(a){return parseInt((a-1)/e,10)*e+1}var e;this.element=b,this.yearpickerInit=function(){e=this.yearRange,this.step={years:e}},this._refreshView=function(){for(var b,c=new Array(e),f=0,g=d(this.activeDate.getFullYear());e>f;f++)b=new Date(g+f,0,1),this.fixTimeZone(b),c[f]=angular.extend(this.createDateObject(b,this.formatYear),{uid:a.uniqueId+"-"+f});a.title=[c[0].label,c[e-1].label].join(" - "),a.rows=this.split(c,5)},this.compare=function(a,b){return a.getFullYear()-b.getFullYear()},this.handleKeyDown=function(a,b){var c=this.activeDate.getFullYear();"left"===a?c-=1:"up"===a?c-=5:"right"===a?c+=1:"down"===a?c+=5:"pageup"===a||"pagedown"===a?c+=("pageup"===a?-1:1)*this.step.years:"home"===a?c=d(this.activeDate.getFullYear()):"end"===a&&(c=d(this.activeDate.getFullYear())+e-1),this.activeDate.setFullYear(c)}}]).directive("uibDatepicker",function(){return{replace:!0,templateUrl:function(a,b){return b.templateUrl||"template/datepicker/datepicker.html"},scope:{datepickerMode:"=?",dateDisabled:"&",customClass:"&",shortcutPropagation:"&?"},require:["uibDatepicker","^ngModel"],controller:"UibDatepickerController",controllerAs:"datepicker",link:function(a,b,c,d){var e=d[0],f=d[1];e.init(f)}}}).directive("uibDaypicker",function(){return{replace:!0,templateUrl:"template/datepicker/day.html",require:["^?uibDatepicker","uibDaypicker","^?datepicker"],controller:"UibDaypickerController",link:function(a,b,c,d){var e=d[0]||d[2],f=d[1];f.init(e)}}}).directive("uibMonthpicker",function(){return{replace:!0,templateUrl:"template/datepicker/month.html",require:["^?uibDatepicker","uibMonthpicker","^?datepicker"],controller:"UibMonthpickerController",link:function(a,b,c,d){var e=d[0]||d[2],f=d[1];f.init(e)}}}).directive("uibYearpicker",function(){return{replace:!0,templateUrl:"template/datepicker/year.html",require:["^?uibDatepicker","uibYearpicker","^?datepicker"],controller:"UibYearpickerController",link:function(a,b,c,d){var e=d[0]||d[2];angular.extend(e,d[1]),e.yearpickerInit(),e.refreshView()}}}).constant("uibDatepickerPopupConfig",{datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"template/datepicker/popup.html",datepickerTemplateUrl:"template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},currentText:"今日",clearText:"清除",closeText:"关闭",closeOnDateSelection:!0,appendToBody:!1,showButtonBar:!0,onOpenFocus:!0}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$parse","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout",function(a,b,c,d,e,f,g,h,i,j,k,l){function m(a){return a.replace(/([A-Z])/g,function(a){
9 9 return"-"+a.toLowerCase()})}function n(b){if(angular.isNumber(b)&&(b=new Date(b)),b){if(angular.isDate(b)&&!isNaN(b))return b;if(angular.isString(b)){var c=j.parse(b,r,a.date);return isNaN(c)?void 0:c}return void 0}return null}function o(a,b){var d=a||b;if(!c.ngRequired&&!d)return!0;if(angular.isNumber(d)&&(d=new Date(d)),d){if(angular.isDate(d)&&!isNaN(d))return!0;if(angular.isString(d)){var e=j.parse(d,r);return!isNaN(e)}return!1}return!0}function p(c){var d=A[0],e=b[0].contains(c.target),f=void 0!==d.contains&&d.contains(c.target);!a.isOpen||e||f||a.$apply(function(){a.isOpen=!1})}function q(c){27===c.which&&a.isOpen?(c.preventDefault(),c.stopPropagation(),a.$apply(function(){a.isOpen=!1}),b[0].focus()):40!==c.which||a.isOpen||(c.preventDefault(),c.stopPropagation(),a.$apply(function(){a.isOpen=!0}))}var r,s,t,u,v,w,x,y,z,A,B={},C=!1;a.watchData={},this.init=function(h){if(z=h,s=angular.isDefined(c.closeOnDateSelection)?a.$parent.$eval(c.closeOnDateSelection):k.closeOnDateSelection,t=angular.isDefined(c.datepickerAppendToBody)?a.$parent.$eval(c.datepickerAppendToBody):k.appendToBody,u=angular.isDefined(c.onOpenFocus)?a.$parent.$eval(c.onOpenFocus):k.onOpenFocus,v=angular.isDefined(c.datepickerPopupTemplateUrl)?c.datepickerPopupTemplateUrl:k.datepickerPopupTemplateUrl,w=angular.isDefined(c.datepickerTemplateUrl)?c.datepickerTemplateUrl:k.datepickerTemplateUrl,a.showButtonBar=angular.isDefined(c.showButtonBar)?a.$parent.$eval(c.showButtonBar):k.showButtonBar,k.html5Types[c.type]?(r=k.html5Types[c.type],C=!0):(r=c.datepickerPopup||k.datepickerPopup,c.$observe("uibDatepickerPopup",function(a,b){var c=a||k.datepickerPopup;if(c!==r&&(r=c,z.$modelValue=null,!r))throw new Error("uibDatepickerPopup must have a date format specified.")})),!r)throw new Error("uibDatepickerPopup must have a date format specified.");if(C&&c.datepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");if(x=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>"),x.attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":v}),y=angular.element(x.children()[0]),y.attr("template-url",w),C&&"month"===c.type&&(y.attr("datepicker-mode",'"month"'),y.attr("min-mode","month")),c.datepickerOptions){var l=a.$parent.$eval(c.datepickerOptions);l&&l.initDate&&(a.initDate=l.initDate,y.attr("init-date","initDate"),delete l.initDate),angular.forEach(l,function(a,b){y.attr(m(b),a)})}angular.forEach(["minMode","maxMode","minDate","maxDate","datepickerMode","initDate","shortcutPropagation"],function(b){if(c[b]){var d=e(c[b]);if(a.$parent.$watch(d,function(c){a.watchData[b]=c,("minDate"===b||"maxDate"===b)&&(B[b]=new Date(c))}),y.attr(m(b),"watchData."+b),"datepickerMode"===b){var f=d.assign;a.$watch("watchData."+b,function(b,c){angular.isFunction(f)&&b!==c&&f(a.$parent,b)})}}}),c.dateDisabled&&y.attr("date-disabled","dateDisabled({ date: date, mode: mode })"),c.showWeeks&&y.attr("show-weeks",c.showWeeks),c.customClass&&y.attr("custom-class","customClass({ date: date, mode: mode })"),C?z.$formatters.push(function(b){return a.date=b,b}):(z.$$parserName="date",z.$validators.date=o,z.$parsers.unshift(n),z.$formatters.push(function(b){return a.date=b,z.$isEmpty(b)?b:i(b,r)})),z.$viewChangeListeners.push(function(){a.date=j.parse(z.$viewValue,r,a.date)}),b.bind("keydown",q),A=d(x)(a),x.remove(),t?f.find("body").append(A):b.after(A),a.$on("$destroy",function(){a.isOpen===!0&&(g.$$phase||a.$apply(function(){a.isOpen=!1})),A.remove(),b.unbind("keydown",q),f.unbind("click",p)})},a.getText=function(b){return a[b+"Text"]||k[b+"Text"]},a.isDisabled=function(b){return"today"===b&&(b=new Date),a.watchData.minDate&&a.compare(b,B.minDate)<0||a.watchData.maxDate&&a.compare(b,B.maxDate)>0},a.compare=function(a,b){return new Date(a.getFullYear(),a.getMonth(),a.getDate())-new Date(b.getFullYear(),b.getMonth(),b.getDate())},a.dateSelection=function(c){angular.isDefined(c)&&(a.date=c);var d=a.date?i(a.date,r):null;b.val(d),z.$setViewValue(d),s&&(a.isOpen=!1,b[0].focus())},a.keydown=function(c){27===c.which&&(a.isOpen=!1,b[0].focus())},a.select=function(b){if("today"===b){var c=new Date;angular.isDate(a.date)?(b=new Date(a.date),b.setFullYear(c.getFullYear(),c.getMonth(),c.getDate())):b=new Date(c.setHours(0,0,0,0))}a.dateSelection(b)},a.close=function(){a.isOpen=!1,b[0].focus()},a.$watch("isOpen",function(c){c?(a.position=t?h.offset(b):h.position(b),a.position.top=a.position.top+b.prop("offsetHeight"),l(function(){u&&a.$broadcast("uib:datepicker.focus"),f.bind("click",p)},0,!1)):f.unbind("click",p)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&",customClass:"&"},link:function(a,b,c,d){var e=d[0],f=d[1];f.init(e)}}}).directive("uibDatepickerPopupWrap",function(){return{replace:!0,transclude:!0,templateUrl:function(a,b){return b.templateUrl||"template/datepicker/popup.html"}}}),angular.module("ui.bootstrap.datepicker").value("$datepickerSuppressWarning",!1).controller("DatepickerController",["$scope","$attrs","$log","$datepickerSuppressWarning","$controller",function(a,b,c,d,e){return d||c.warn("DatepickerController is now deprecated. Use UibDatepickerController instead."),e("UibDatepickerController",{$scope:a,$attrs:b})}]).directive("datepicker",["$log","$datepickerSuppressWarning",function(a,b){return{replace:!0,templateUrl:function(a,b){return b.templateUrl||"template/datepicker/datepicker.html"},scope:{datepickerMode:"=?",dateDisabled:"&",customClass:"&",shortcutPropagation:"&?"},require:["datepicker","^ngModel"],controller:"DatepickerController",controllerAs:"datepicker",link:function(c,d,e,f){b||a.warn("datepicker is now deprecated. Use uib-datepicker instead.");var g=f[0],h=f[1];g.init(h)}}}]).directive("daypicker",["$log","$datepickerSuppressWarning",function(a,b){return{replace:!0,templateUrl:"template/datepicker/day.html",require:["^datepicker","daypicker"],controller:"UibDaypickerController",link:function(c,d,e,f){b||a.warn("daypicker is now deprecated. Use uib-daypicker instead.");var g=f[0],h=f[1];h.init(g)}}}]).directive("monthpicker",["$log","$datepickerSuppressWarning",function(a,b){return{replace:!0,templateUrl:"template/datepicker/month.html",require:["^datepicker","monthpicker"],controller:"UibMonthpickerController",link:function(c,d,e,f){b||a.warn("monthpicker is now deprecated. Use uib-monthpicker instead.");var g=f[0],h=f[1];h.init(g)}}}]).directive("yearpicker",["$log","$datepickerSuppressWarning",function(a,b){return{replace:!0,templateUrl:"template/datepicker/year.html",require:["^datepicker","yearpicker"],controller:"UibYearpickerController",link:function(c,d,e,f){b||a.warn("yearpicker is now deprecated. Use uib-yearpicker instead.");var g=f[0];angular.extend(g,f[1]),g.yearpickerInit(),g.refreshView()}}}]).directive("datepickerPopup",["$log","$datepickerSuppressWarning",function(a,b){return{require:["ngModel","datepickerPopup"],controller:"UibDatepickerPopupController",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&",customClass:"&"},link:function(c,d,e,f){b||a.warn("datepicker-popup is now deprecated. Use uib-datepicker-popup instead.");var g=f[0],h=f[1];h.init(g)}}}]).directive("datepickerPopupWrap",["$log","$datepickerSuppressWarning",function(a,b){return{replace:!0,transclude:!0,templateUrl:function(a,b){return b.templateUrl||"template/datepicker/popup.html"},link:function(){b||a.warn("datepicker-popup-wrap is now deprecated. Use uib-datepicker-popup-wrap instead.")}}}]),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("uibDropdownConfig",{openClass:"open"}).service("uibDropdownService",["$document","$rootScope",function(a,b){var c=null;this.open=function(b){c||(a.bind("click",d),a.bind("keydown",e)),c&&c!==b&&(c.isOpen=!1),c=b},this.close=function(b){c===b&&(c=null,a.unbind("click",d),a.unbind("keydown",e))};var d=function(a){if(c&&(!a||"disabled"!==c.getAutoClose())){var d=c.getToggleElement();if(!(a&&d&&d[0].contains(a.target))){var e=c.getDropdownElement();a&&"outsideClick"===c.getAutoClose()&&e&&e[0].contains(a.target)||(c.isOpen=!1,b.$$phase||c.$apply())}}},e=function(a){27===a.which?(c.focusToggleElement(),d()):c.isKeynavEnabled()&&/(38|40)/.test(a.which)&&c.isOpen&&(a.preventDefault(),a.stopPropagation(),c.focusDropdownEntry(a.which))}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(a,b,c,d,e,f,g,h,i,j,k){var l,m,n=this,o=a.$new(),p=e.openClass,q=angular.noop,r=c.onToggle?d(c.onToggle):angular.noop,s=!1,t=!1;b.addClass("dropdown"),this.init=function(){c.isOpen&&(m=d(c.isOpen),q=m.assign,a.$watch(m,function(a){o.isOpen=!!a})),s=angular.isDefined(c.dropdownAppendToBody),t=angular.isDefined(c.uibKeyboardNav),s&&n.dropdownMenu&&(i.find("body").append(n.dropdownMenu),b.on("$destroy",function(){n.dropdownMenu.remove()}))},this.toggle=function(a){return o.isOpen=arguments.length?!!a:!o.isOpen},this.isOpen=function(){return o.isOpen},o.getToggleElement=function(){return n.toggleElement},o.getAutoClose=function(){return c.autoClose||"always"},o.getElement=function(){return b},o.isKeynavEnabled=function(){return t},o.focusDropdownEntry=function(a){var c=n.dropdownMenu?angular.element(n.dropdownMenu).find("a"):angular.element(b).find("ul").eq(0).find("a");switch(a){case 40:angular.isNumber(n.selectedOption)?n.selectedOption=n.selectedOption===c.length-1?n.selectedOption:n.selectedOption+1:n.selectedOption=0;break;case 38:angular.isNumber(n.selectedOption)?n.selectedOption=0===n.selectedOption?0:n.selectedOption-1:n.selectedOption=c.length-1}c[n.selectedOption].focus()},o.getDropdownElement=function(){return n.dropdownMenu},o.focusToggleElement=function(){n.toggleElement&&n.toggleElement[0].focus()},o.$watch("isOpen",function(c,d){if(s&&n.dropdownMenu){var e=h.positionElements(b,n.dropdownMenu,"bottom-left",!0),i={top:e.top+"px",display:c?"block":"none"},m=n.dropdownMenu.hasClass("dropdown-menu-right");m?(i.left="auto",i.right=window.innerWidth-(e.left+b.prop("offsetWidth"))+"px"):(i.left=e.left+"px",i.right="auto"),n.dropdownMenu.css(i)}if(g[c?"addClass":"removeClass"](b,p).then(function(){angular.isDefined(c)&&c!==d&&r(a,{open:!!c})}),c)n.dropdownMenuTemplateUrl&&k(n.dropdownMenuTemplateUrl).then(function(a){l=o.$new(),j(a.trim())(l,function(a){var b=a;n.dropdownMenu.replaceWith(b),n.dropdownMenu=b})}),o.focusToggleElement(),f.open(o);else{if(n.dropdownMenuTemplateUrl){l&&l.$destroy();var t=angular.element('<ul class="dropdown-menu"></ul>');n.dropdownMenu.replaceWith(t),n.dropdownMenu=t}f.close(o),n.selectedOption=null}angular.isFunction(q)&&q(a,c)}),a.$on("$locationChangeSuccess",function(){"disabled"!==o.getAutoClose()&&(o.isOpen=!1)});var u=a.$on("$destroy",function(){o.$destroy()});o.$on("$destroy",u)}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(a,b,c,d){d.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"AC",require:"?^uibDropdown",link:function(a,b,c,d){if(d&&!angular.isDefined(c.dropdownNested)){b.addClass("dropdown-menu");var e=c.templateUrl;e&&(d.dropdownMenuTemplateUrl=e),d.dropdownMenu||(d.dropdownMenu=b)}}}}).directive("uibKeyboardNav",function(){return{restrict:"A",require:"?^uibDropdown",link:function(a,b,c,d){b.bind("keydown",function(a){if(-1!==[38,40].indexOf(a.which)){a.preventDefault(),a.stopPropagation();var b=d.dropdownMenu.find("a");switch(a.which){case 40:angular.isNumber(d.selectedOption)?d.selectedOption=d.selectedOption===b.length-1?d.selectedOption:d.selectedOption+1:d.selectedOption=0;break;case 38:angular.isNumber(d.selectedOption)?d.selectedOption=0===d.selectedOption?0:d.selectedOption-1:d.selectedOption=b.length-1}b[d.selectedOption].focus()}})}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(a,b,c,d){if(d){b.addClass("dropdown-toggle"),d.toggleElement=b;var e=function(e){e.preventDefault(),b.hasClass("disabled")||c.disabled||a.$apply(function(){d.toggle()})};b.bind("click",e),b.attr({"aria-haspopup":!0,"aria-expanded":!1}),a.$watch(d.isOpen,function(a){b.attr("aria-expanded",!!a)}),a.$on("$destroy",function(){b.unbind("click",e)})}}}}),angular.module("ui.bootstrap.dropdown").value("$dropdownSuppressWarning",!1).service("dropdownService",["$log","$dropdownSuppressWarning","uibDropdownService",function(a,b,c){b||a.warn("dropdownService is now deprecated. Use uibDropdownService instead."),angular.extend(this,c)}]).controller("DropdownController",["$scope","$element","$attrs","$log","$dropdownSuppressWarning","$controller",function(a,b,c,d,e,f){return e||d.warn("DropdownController is now deprecated. Use UibDropdownController instead."),f("UibDropdownController",{$scope:a,$element:b,$attrs:c})}]).directive("dropdown",["$log","$dropdownSuppressWarning",function(a,b){return{controller:"DropdownController",link:function(c,d,e,f){b||a.warn("dropdown is now deprecated. Use uib-dropdown instead."),f.init()}}}]).directive("dropdownMenu",["$log","$dropdownSuppressWarning",function(a,b){return{restrict:"AC",require:"?^dropdown",link:function(c,d,e,f){if(f){b||a.warn("dropdown-menu is now deprecated. Use uib-dropdown-menu instead."),d.addClass("dropdown-menu");var g=e.templateUrl;g&&(f.dropdownMenuTemplateUrl=g),f.dropdownMenu||(f.dropdownMenu=d)}}}}]).directive("keyboardNav",["$log","$dropdownSuppressWarning",function(a,b){return{restrict:"A",require:"?^dropdown",link:function(c,d,e,f){b||a.warn("keyboard-nav is now deprecated. Use uib-keyboard-nav instead."),d.bind("keydown",function(a){if(-1!==[38,40].indexOf(a.which)){a.preventDefault(),a.stopPropagation();var b=f.dropdownMenu.find("a");switch(a.which){case 40:angular.isNumber(f.selectedOption)?f.selectedOption=f.selectedOption===b.length-1?f.selectedOption:f.selectedOption+1:f.selectedOption=0;break;case 38:angular.isNumber(f.selectedOption)?f.selectedOption=0===f.selectedOption?0:f.selectedOption-1:f.selectedOption=b.length-1}b[f.selectedOption].focus()}})}}}]).directive("dropdownToggle",["$log","$dropdownSuppressWarning",function(a,b){return{require:"?^dropdown",link:function(c,d,e,f){if(b||a.warn("dropdown-toggle is now deprecated. Use uib-dropdown-toggle instead."),f){d.addClass("dropdown-toggle"),f.toggleElement=d;var g=function(a){a.preventDefault(),d.hasClass("disabled")||e.disabled||c.$apply(function(){f.toggle()})};d.bind("click",g),d.attr({"aria-haspopup":!0,"aria-expanded":!1}),c.$watch(f.isOpen,function(a){d.attr("aria-expanded",!!a)}),c.$on("$destroy",function(){d.unbind("click",g)})}}}}]),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var a=[];return{add:function(b,c){a.push({key:b,value:c})},get:function(b){for(var c=0;c<a.length;c++)if(b==a[c].key)return a[c]},keys:function(){for(var b=[],c=0;c<a.length;c++)b.push(a[c].key);return b},top:function(){return a[a.length-1]},remove:function(b){for(var c=-1,d=0;d<a.length;d++)if(b==a[d].key){c=d;break}return a.splice(c,1)[0]},removeTop:function(){return a.splice(a.length-1,1)[0]},length:function(){return a.length}}}}}),angular.module("ui.bootstrap.modal",["ui.bootstrap.stackedMap"]).factory("$$multiMap",function(){return{createNew:function(){var a={};return{entries:function(){return Object.keys(a).map(function(b){return{key:b,value:a[b]}})},get:function(b){return a[b]},hasKey:function(b){return!!a[b]},keys:function(){return Object.keys(a)},put:function(b,c){a[b]||(a[b]=[]),a[b].push(c)},remove:function(b,c){var d=a[b];if(d){var e=d.indexOf(c);-1!==e&&d.splice(e,1),d.length||delete a[b]}}}}}}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(a,b,c){function d(b,d,f){d.addClass("modal-backdrop"),f.modalInClass&&(e?e(d,{addClass:f.modalInClass}).start():a.addClass(d,f.modalInClass),b.$on(c.NOW_CLOSING_EVENT,function(b,c){var g=c();e?e(d,{removeClass:f.modalInClass}).start().then(g):a.removeClass(d,f.modalInClass).then(g)}))}var e=null;return b.has("$animateCss")&&(e=b.get("$animateCss")),{replace:!0,templateUrl:"template/modal/backdrop.html",compile:function(a,b){return a.addClass(b.backdropClass),d}}}]).directive("uibModalWindow",["$uibModalStack","$q","$animate","$injector",function(a,b,c,d){var e=null;return d.has("$animateCss")&&(e=d.get("$animateCss")),{scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(a,b){return b.templateUrl||"template/modal/window.html"},link:function(d,f,g){f.addClass(g.windowClass||""),f.addClass(g.windowTopClass||""),d.size=g.size,d.close=function(b){var c=a.getTop();c&&c.value.backdrop&&"static"!==c.value.backdrop&&b.target===b.currentTarget&&(b.preventDefault(),b.stopPropagation(),a.dismiss(c.key,"backdrop click"))},f.on("click",d.close),d.$isRendered=!0;var h=b.defer();g.$observe("modalRender",function(a){"true"==a&&h.resolve()}),h.promise.then(function(){var h=null;g.modalInClass&&(h=e?e(f,{addClass:g.modalInClass}).start():c.addClass(f,g.modalInClass),d.$on(a.NOW_CLOSING_EVENT,function(a,b){var d=b();e?e(f,{removeClass:g.modalInClass}).start().then(d):c.removeClass(f,g.modalInClass).then(d)})),b.when(h).then(function(){var a=f[0].querySelectorAll("[autofocus]");a.length?a[0].focus():f[0].focus()});var i=a.getTop();i&&a.modalRendered(i.key)})}}}]).directive("uibModalAnimationClass",[function(){return{compile:function(a,b){b.modalAnimation&&a.addClass(b.uibModalAnimationClass)}}}]).directive("uibModalTransclude",function(){return{link:function(a,b,c,d,e){e(a.$parent,function(a){b.empty(),b.append(a)})}}}).factory("$uibModalStack",["$animate","$timeout","$document","$compile","$rootScope","$q","$injector","$$multiMap","$$stackedMap",function(a,b,c,d,e,f,g,h,i){function j(){for(var a=-1,b=u.keys(),c=0;c<b.length;c++)u.get(b[c]).value.backdrop&&(a=c);return a}function k(a,b){var d=c.find("body").eq(0),e=u.get(a).value;u.remove(a),n(e.modalDomEl,e.modalScope,function(){var b=e.openedClass||t;v.remove(b,a),d.toggleClass(b,v.hasKey(b)),l(!0)}),m(),b&&b.focus?b.focus():d.focus()}function l(a){var b;u.length()>0&&(b=u.top().value,b.modalDomEl.toggleClass(b.windowTopClass||"",a))}function m(){if(q&&-1==j()){var a=r;n(q,r,function(){a=null}),q=void 0,r=void 0}}function n(b,c,d){function e(){e.done||(e.done=!0,p?p(b,{event:"leave"}).start().then(function(){b.remove()}):a.leave(b),c.$destroy(),d&&d())}var g,h=null,i=function(){return g||(g=f.defer(),h=g.promise),function(){g.resolve()}};return c.$broadcast(w.NOW_CLOSING_EVENT,i),f.when(h).then(e)}function o(a,b,c){return!a.value.modalScope.$broadcast("modal.closing",b,c).defaultPrevented}var p=null;g.has("$animateCss")&&(p=g.get("$animateCss"));var q,r,s,t="modal-open",u=i.createNew(),v=h.createNew(),w={NOW_CLOSING_EVENT:"modal.stack.now-closing"},x=0,y="a[href], area[href], input:not([disabled]), button:not([disabled]),select:not([disabled]), textarea:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable=true]";return e.$watch(j,function(a){r&&(r.index=a)}),c.bind("keydown",function(a){if(a.isDefaultPrevented())return a;var b=u.top();if(b&&b.value.keyboard)switch(a.which){case 27:a.preventDefault(),e.$apply(function(){w.dismiss(b.key,"escape key press")});break;case 9:w.loadFocusElementList(b);var c=!1;a.shiftKey?w.isFocusInFirstItem(a)&&(c=w.focusLastFocusableElement()):w.isFocusInLastItem(a)&&(c=w.focusFirstFocusableElement()),c&&(a.preventDefault(),a.stopPropagation())}}),w.open=function(a,b){var f=c[0].activeElement,g=b.openedClass||t;l(!1),u.add(a,{deferred:b.deferred,renderDeferred:b.renderDeferred,modalScope:b.scope,backdrop:b.backdrop,keyboard:b.keyboard,openedClass:b.openedClass,windowTopClass:b.windowTopClass}),v.put(g,a);var h=c.find("body").eq(0),i=j();if(i>=0&&!q){r=e.$new(!0),r.index=i;var k=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>');k.attr("backdrop-class",b.backdropClass),b.animation&&k.attr("modal-animation","true"),q=d(k)(r),h.append(q)}var m=angular.element('<div uib-modal-window="modal-window"></div>');m.attr({"template-url":b.windowTemplateUrl,"window-class":b.windowClass,"window-top-class":b.windowTopClass,size:b.size,index:u.length()-1,animate:"animate"}).html(b.content),b.animation&&m.attr("modal-animation","true");var n=d(m)(b.scope);u.top().value.modalDomEl=n,u.top().value.modalOpener=f,h.append(n),h.addClass(g),w.clearFocusListCache()},w.close=function(a,b){var c=u.get(a);return c&&o(c,b,!0)?(c.value.modalScope.$$uibDestructionScheduled=!0,c.value.deferred.resolve(b),k(a,c.value.modalOpener),!0):!c},w.dismiss=function(a,b){var c=u.get(a);return c&&o(c,b,!1)?(c.value.modalScope.$$uibDestructionScheduled=!0,c.value.deferred.reject(b),k(a,c.value.modalOpener),!0):!c},w.dismissAll=function(a){for(var b=this.getTop();b&&this.dismiss(b.key,a);)b=this.getTop()},w.getTop=function(){return u.top()},w.modalRendered=function(a){var b=u.get(a);b&&b.value.renderDeferred.resolve()},w.focusFirstFocusableElement=function(){return s.length>0?(s[0].focus(),!0):!1},w.focusLastFocusableElement=function(){return s.length>0?(s[s.length-1].focus(),!0):!1},w.isFocusInFirstItem=function(a){return s.length>0?(a.target||a.srcElement)==s[0]:!1},w.isFocusInLastItem=function(a){return s.length>0?(a.target||a.srcElement)==s[s.length-1]:!1},w.clearFocusListCache=function(){s=[],x=0},w.loadFocusElementList=function(a){if((void 0===s||!s.length0)&&a){var b=a.value.modalDomEl;b&&b.length&&(s=b[0].querySelectorAll(y))}},w}]).provider("$uibModal",function(){var a={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$templateRequest","$controller","$uibModalStack",function(b,c,d,e,f,g){function h(a){return a.template?d.when(a.template):e(angular.isFunction(a.templateUrl)?a.templateUrl():a.templateUrl)}function i(a){var c=[];return angular.forEach(a,function(a){angular.isFunction(a)||angular.isArray(a)?c.push(d.when(b.invoke(a))):angular.isString(a)?c.push(d.when(b.get(a))):c.push(d.when(a))}),c}var j={},k=null;return j.getPromiseChain=function(){return k},j.open=function(b){var e=d.defer(),j=d.defer(),l=d.defer(),m={result:e.promise,opened:j.promise,rendered:l.promise,close:function(a){return g.close(m,a)},dismiss:function(a){return g.dismiss(m,a)}};if(b=angular.extend({},a.options,b),b.resolve=b.resolve||{},!b.template&&!b.templateUrl)throw new Error("One of template or templateUrl options is required.");var n,o=d.all([h(b)].concat(i(b.resolve)));return n=k=d.all([k]).then(function(){return o},function(){return o}).then(function(a){var d=(b.scope||c).$new();d.$close=m.close,d.$dismiss=m.dismiss,d.$on("$destroy",function(){d.$$uibDestructionScheduled||d.$dismiss("$uibUnscheduledDestruction")});var h,i={},k=1;b.controller&&(i.$scope=d,i.$modalInstance=m,angular.forEach(b.resolve,function(b,c){i[c]=a[k++]}),h=f(b.controller,i),b.controllerAs&&(b.bindToController&&angular.extend(h,d),d[b.controllerAs]=h)),g.open(m,{scope:d,deferred:e,renderDeferred:l,content:a[0],animation:b.animation,backdrop:b.backdrop,keyboard:b.keyboard,backdropClass:b.backdropClass,windowTopClass:b.windowTopClass,windowClass:b.windowClass,windowTemplateUrl:b.windowTemplateUrl,size:b.size,openedClass:b.openedClass}),j.resolve(!0)},function(a){j.reject(a),e.reject(a)})["finally"](function(){k===n&&(k=null)}),m},j}]};return a}),angular.module("ui.bootstrap.modal").value("$modalSuppressWarning",!1).directive("modalBackdrop",["$animate","$injector","$modalStack","$log","$modalSuppressWarning",function(a,b,c,d,e){function f(b,f,h){e||d.warn("modal-backdrop is now deprecated. Use uib-modal-backdrop instead."),f.addClass("modal-backdrop"),h.modalInClass&&(g?g(f,{addClass:h.modalInClass}).start():a.addClass(f,h.modalInClass),b.$on(c.NOW_CLOSING_EVENT,function(b,c){var d=c();g?g(f,{removeClass:h.modalInClass}).start().then(d):a.removeClass(f,h.modalInClass).then(d)}))}var g=null;return b.has("$animateCss")&&(g=b.get("$animateCss")),{replace:!0,templateUrl:"template/modal/backdrop.html",compile:function(a,b){return a.addClass(b.backdropClass),f}}}]).directive("modalWindow",["$modalStack","$q","$animate","$injector","$log","$modalSuppressWarning",function(a,b,c,d,e,f){var g=null;return d.has("$animateCss")&&(g=d.get("$animateCss")),{scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(a,b){return b.templateUrl||"template/modal/window.html"},link:function(d,h,i){f||e.warn("modal-window is now deprecated. Use uib-modal-window instead."),h.addClass(i.windowClass||""),h.addClass(i.windowTopClass||""),d.size=i.size,d.close=function(b){var c=a.getTop();c&&c.value.backdrop&&"static"!==c.value.backdrop&&b.target===b.currentTarget&&(b.preventDefault(),b.stopPropagation(),a.dismiss(c.key,"backdrop click"))},h.on("click",d.close),d.$isRendered=!0;var j=b.defer();i.$observe("modalRender",function(a){"true"==a&&j.resolve()}),j.promise.then(function(){var e=null;i.modalInClass&&(e=g?g(h,{addClass:i.modalInClass}).start():c.addClass(h,i.modalInClass),d.$on(a.NOW_CLOSING_EVENT,function(a,b){var d=b();g?g(h,{removeClass:i.modalInClass}).start().then(d):c.removeClass(h,i.modalInClass).then(d)})),b.when(e).then(function(){var a=h[0].querySelectorAll("[autofocus]");a.length?a[0].focus():h[0].focus()});var f=a.getTop();f&&a.modalRendered(f.key)})}}}]).directive("modalAnimationClass",["$log","$modalSuppressWarning",function(a,b){return{compile:function(c,d){b||a.warn("modal-animation-class is now deprecated. Use uib-modal-animation-class instead."),d.modalAnimation&&c.addClass(d.modalAnimationClass)}}}]).directive("modalTransclude",["$log","$modalSuppressWarning",function(a,b){return{link:function(c,d,e,f,g){b||a.warn("modal-transclude is now deprecated. Use uib-modal-transclude instead."),g(c.$parent,function(a){d.empty(),d.append(a)})}}}]).service("$modalStack",["$animate","$timeout","$document","$compile","$rootScope","$q","$injector","$$multiMap","$$stackedMap","$uibModalStack","$log","$modalSuppressWarning",function(a,b,c,d,e,f,g,h,i,j,k,l){l||k.warn("$modalStack is now deprecated. Use $uibModalStack instead."),angular.extend(this,j)}]).provider("$modal",["$uibModalProvider",function(a){angular.extend(this,a),this.$get=["$injector","$log","$modalSuppressWarning",function(b,c,d){return d||c.warn("$modal is now deprecated. Use $uibModal instead."),b.invoke(a.$get)}]}]),angular.module("ui.bootstrap.pagination",[]).controller("UibPaginationController",["$scope","$attrs","$parse",function(a,b,c){var d=this,e={$setViewValue:angular.noop},f=b.numPages?c(b.numPages).assign:angular.noop;this.init=function(g,h){e=g,this.config=h,e.$render=function(){d.render()},b.itemsPerPage?a.$parent.$watch(c(b.itemsPerPage),function(b){d.itemsPerPage=parseInt(b,10),a.totalPages=d.calculateTotalPages()}):this.itemsPerPage=h.itemsPerPage,a.$watch("totalItems",function(){a.totalPages=d.calculateTotalPages()}),a.$watch("totalPages",function(b){f(a.$parent,b),a.page>b?a.selectPage(b):e.$render()})},this.calculateTotalPages=function(){var b=this.itemsPerPage<1?1:Math.ceil(a.totalItems/this.itemsPerPage);return Math.max(b||0,1)},this.render=function(){a.page=parseInt(e.$viewValue,10)||1},a.selectPage=function(b,c){c&&c.preventDefault();var d=!a.ngDisabled||!c;d&&a.page!==b&&b>0&&b<=a.totalPages&&(c&&c.target&&c.target.blur(),e.$setViewValue(b),e.$render())},a.getText=function(b){return a[b+"Text"]||d.config[b+"Text"]},a.noPrevious=function(){return 1===a.page},a.noNext=function(){return a.page===a.totalPages}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("uibPagination",["$parse","uibPaginationConfig",function(a,b){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(a,b){return b.templateUrl||"template/pagination/pagination.html"},replace:!0,link:function(c,d,e,f){function g(a,b,c){return{number:a,text:b,active:c}}function h(a,b){var c=[],d=1,e=b,f=angular.isDefined(k)&&b>k;f&&(l?(d=Math.max(a-Math.floor(k/2),1),e=d+k-1,e>b&&(e=b,d=e-k+1)):(d=(Math.ceil(a/k)-1)*k+1,e=Math.min(d+k-1,b)));for(var h=d;e>=h;h++){var i=g(h,h,h===a);c.push(i)}if(f&&!l){if(d>1){var j=g(d-1,"...",!1);c.unshift(j)}if(b>e){var m=g(e+1,"...",!1);c.push(m)}}return c}var i=f[0],j=f[1];if(j){var k=angular.isDefined(e.maxSize)?c.$parent.$eval(e.maxSize):b.maxSize,l=angular.isDefined(e.rotate)?c.$parent.$eval(e.rotate):b.rotate;c.boundaryLinks=angular.isDefined(e.boundaryLinks)?c.$parent.$eval(e.boundaryLinks):b.boundaryLinks,c.directionLinks=angular.isDefined(e.directionLinks)?c.$parent.$eval(e.directionLinks):b.directionLinks,i.init(j,b),e.maxSize&&c.$parent.$watch(a(e.maxSize),function(a){k=parseInt(a,10),i.render()});var m=i.render;i.render=function(){m(),c.page>0&&c.page<=c.totalPages&&(c.pages=h(c.page,c.totalPages))}}}}}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(a){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(a,b){return b.templateUrl||"template/pagination/pager.html"},replace:!0,link:function(b,c,d,e){var f=e[0],g=e[1];g&&(b.align=angular.isDefined(d.align)?b.$parent.$eval(d.align):a.align,f.init(g,a))}}}]),angular.module("ui.bootstrap.pagination").value("$paginationSuppressWarning",!1).controller("PaginationController",["$scope","$attrs","$parse","$controller","$element","$log","$paginationSuppressWarning",function(a,b,c,d,e,f,g){return g||f.warn("PaginationController is now deprecated. Use UibPaginationController instead."),d("UibPaginationController",{$scope:a,$element:e,$attrs:b})}]).directive("pagination",["$parse","uibPaginationConfig","$log","$paginationSuppressWarning",function(a,b,c,d){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["pagination","?ngModel"],controller:"PaginationController",controllerAs:"pagination",templateUrl:function(a,b){return b.templateUrl||"template/pagination/pagination.html"},replace:!0,link:function(e,f,g,h){function i(a,b,c){return{number:a,text:b,active:c}}function j(a,b){var c=[],d=1,e=b,f=angular.isDefined(m)&&b>m;f&&(n?(d=Math.max(a-Math.floor(m/2),1),e=d+m-1,e>b&&(e=b,d=e-m+1)):(d=(Math.ceil(a/m)-1)*m+1,e=Math.min(d+m-1,b)));for(var g=d;e>=g;g++){var h=i(g,g,g===a);c.push(h)}if(f&&!n){if(d>1){var j=i(d-1,"...",!1);c.unshift(j)}if(b>e){var k=i(e+1,"...",!1);c.push(k)}}return c}d||c.warn("pagination is now deprecated. Use uib-pagination instead.");var k=h[0],l=h[1];if(l){var m=angular.isDefined(g.maxSize)?e.$parent.$eval(g.maxSize):b.maxSize,n=angular.isDefined(g.rotate)?e.$parent.$eval(g.rotate):b.rotate;e.boundaryLinks=angular.isDefined(g.boundaryLinks)?e.$parent.$eval(g.boundaryLinks):b.boundaryLinks,e.directionLinks=angular.isDefined(g.directionLinks)?e.$parent.$eval(g.directionLinks):b.directionLinks,k.init(l,b),g.maxSize&&e.$parent.$watch(a(g.maxSize),function(a){m=parseInt(a,10),k.render()});var o=k.render;k.render=function(){o(),e.page>0&&e.page<=e.totalPages&&(e.pages=j(e.page,e.totalPages))}}}}}]).directive("pager",["uibPagerConfig","$log","$paginationSuppressWarning",function(a,b,c){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["pager","?ngModel"],controller:"PaginationController",controllerAs:"pagination",templateUrl:function(a,b){return b.templateUrl||"template/pagination/pager.html"},replace:!0,link:function(d,e,f,g){c||b.warn("pager is now deprecated. Use uib-pager instead.");var h=g[0],i=g[1];i&&(d.align=angular.isDefined(f.align)?d.$parent.$eval(f.align):a.align,h.init(i,a));
10 10 }}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){function a(a){var b=/[A-Z]/g,c="-";return a.replace(b,function(a,b){return(b?c:"")+a.toLowerCase()})}var b={placement:"top",animation:!0,popupDelay:0,popupCloseDelay:500,useContentExp:!1},c={mouseenter:"mouseleave",click:"click",focus:"blur",none:""},d={};this.options=function(a){angular.extend(d,a)},this.setTriggers=function(a){angular.extend(c,a)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(e,f,g,h,i,j,k,l,m){var n=m.createNew();return h.on("keypress",function(a){if(27===a.which){var b=n.top();b&&(b.value.close(),n.removeTop(),b=null)}}),function(e,k,m,o){function p(a){var b=(a||o.trigger||m).split(" "),d=b.map(function(a){return c[a]||a});return{show:b,hide:d}}o=angular.extend({},b,d,o);var q=a(e),r=j.startSymbol(),s=j.endSymbol(),t="<div "+q+'-popup title="'+r+"title"+s+'" '+(o.useContentExp?'content-exp="contentExp()" ':'content="'+r+"content"+s+'" ')+'placement="'+r+"placement"+s+'" popup-class="'+r+"popupClass"+s+'" animation="animation" is-open="isOpen"origin-scope="origScope" style="visibility: hidden; display: block;"></div>';return{compile:function(a,b){var c=f(t);return function(a,b,d,f){function j(){H.isOpen?q():m()}function m(){(!G||a.$eval(d[k+"Enable"]))&&(v(),H.popupDelay?C||(C=g(r,H.popupDelay,!1)):r())}function q(){s()}function r(){return C&&(g.cancel(C),C=null),B&&(g.cancel(B),B=null),H.content?(t(),void H.$evalAsync(function(){H.isOpen=!0,J&&angular.isFunction(J.assign)&&J.assign(H.origScope,H.isOpen),M()})):angular.noop}function s(){H&&(H.$evalAsync(function(){H.isOpen=!1,J&&angular.isFunction(J.assign)&&J.assign(H.origScope,H.isOpen)}),g.cancel(C),C=null,g.cancel(D),D=null,H.animation?B||(B=g(u,H.popupCloseDelay)):u())}function t(){z||(A=H.$new(),z=c(A,function(a){E?h.find("body").append(a):b.after(a)}),w())}function u(){x(),B=null,z&&(z.remove(),z=null),A&&(A.$destroy(),A=null)}function v(){H.title=d[k+"Title"],K?H.content=K(a):H.content=d[e],H.popupClass=d[k+"Class"],H.placement=angular.isDefined(d[k+"Placement"])?d[k+"Placement"]:o.placement;var b=parseInt(d[k+"PopupDelay"],10),c=parseInt(d[k+"PopupCloseDelay"],10);H.popupDelay=isNaN(b)?o.popupDelay:b,H.popupCloseDelay=isNaN(c)?o.popupCloseDelay:c}function w(){L.length=0,K?(L.push(a.$watch(K,function(a){H.content=a,!a&&H.isOpen&&s()})),L.push(A.$watch(function(){I||(I=!0,A.$$postDigest(function(){I=!1,H&&H.isOpen&&M()}))}))):L.push(d.$observe(e,function(a){H.content=a,!a&&H.isOpen?s():M()})),L.push(d.$observe(k+"Title",function(a){H.title=a,H.isOpen&&M()})),L.push(d.$observe(k+"Placement",function(a){H.placement=a?a:o.placement,H.isOpen&&M()}))}function x(){L.length&&(angular.forEach(L,function(a){a()}),L.length=0)}function y(){var a=d[k+"Trigger"];N(),F=p(a),"none"!==F.show&&F.show.forEach(function(a,c){a===F.hide[c]?b[0].addEventListener(a,j):a&&(b[0].addEventListener(a,m),F.hide[c].split(" ").forEach(function(a){b[0].addEventListener(a,q)})),b.on("keypress",function(a){27===a.which&&q()})})}var z,A,B,C,D,E=angular.isDefined(o.appendToBody)?o.appendToBody:!1,F=p(void 0),G=angular.isDefined(d[k+"Enable"]),H=a.$new(!0),I=!1,J=angular.isDefined(d[k+"IsOpen"])?l(d[k+"IsOpen"]):!1,K=o.useContentExp?l(d[e]):!1,L=[],M=function(){z&&z.html()&&(D||(D=g(function(){z.css({top:0,left:0});var a=i.positionElements(b,z,H.placement,E);a.top+="px",a.left+="px",a.visibility="visible",z.css(a),D=null},0,!1)))};H.origScope=a,H.isOpen=!1,n.add(H,{close:s}),H.contentExp=function(){return H.content},d.$observe("disabled",function(a){C&&a&&(g.cancel(C),C=null),a&&H.isOpen&&s()}),J&&a.$watch(J,function(a){!a===H.isOpen&&j()});var N=function(){F.show.forEach(function(a){b.unbind(a,m)}),F.hide.forEach(function(a){a.split(" ").forEach(function(a){b[0].removeEventListener(a,q)})})};y();var O=a.$eval(d[k+"Animation"]);H.animation=angular.isDefined(O)?!!O:o.animation;var P=a.$eval(d[k+"AppendToBody"]);E=angular.isDefined(P)?P:E,E&&a.$on("$locationChangeSuccess",function(){H.isOpen&&s()}),a.$on("$destroy",function(){g.cancel(B),g.cancel(C),g.cancel(D),N(),u(),H=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(a,b,c,d){return{link:function(e,f,g){var h,i,j,k=e.$eval(g.tooltipTemplateTranscludeScope),l=0,m=function(){i&&(i.remove(),i=null),h&&(h.$destroy(),h=null),j&&(a.leave(j).then(function(){i=null}),i=j,j=null)};e.$watch(b.parseAsResourceUrl(g.uibTooltipTemplateTransclude),function(b){var g=++l;b?(d(b,!0).then(function(d){if(g===l){var e=k.$new(),i=d,n=c(i)(e,function(b){m(),a.enter(b,f)});h=e,j=n,h.$emit("$includeContentLoaded",b)}},function(){g===l&&(m(),e.$emit("$includeContentError",b))}),e.$emit("$includeContentRequested",b)):m()}),e.$on("$destroy",m)}}}]).directive("uibTooltipClasses",function(){return{restrict:"A",link:function(a,b,c){a.placement&&b.addClass(a.placement),a.popupClass&&b.addClass(a.popupClass),a.animation()&&b.addClass(c.tooltipAnimationClass)}}}).directive("uibTooltipPopup",function(){return{replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html",link:function(a,b){b.addClass("tooltip")}}}).directive("uibTooltip",["$uibTooltip",function(a){return a("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/tooltip/tooltip-template-popup.html",link:function(a,b){b.addClass("tooltip")}}}).directive("uibTooltipTemplate",["$uibTooltip",function(a){return a("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-popup.html",link:function(a,b){b.addClass("tooltip")}}}).directive("uibTooltipHtml",["$uibTooltip",function(a){return a("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.tooltip").value("$tooltipSuppressWarning",!1).provider("$tooltip",["$uibTooltipProvider",function(a){angular.extend(this,a),this.$get=["$log","$tooltipSuppressWarning","$injector",function(b,c,d){return c||b.warn("$tooltip is now deprecated. Use $uibTooltip instead."),d.invoke(a.$get)}]}]).directive("tooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest","$log","$tooltipSuppressWarning",function(a,b,c,d,e,f){return{link:function(g,h,i){f||e.warn("tooltip-template-transclude is now deprecated. Use uib-tooltip-template-transclude instead.");var j,k,l,m=g.$eval(i.tooltipTemplateTranscludeScope),n=0,o=function(){k&&(k.remove(),k=null),j&&(j.$destroy(),j=null),l&&(a.leave(l).then(function(){k=null}),k=l,l=null)};g.$watch(b.parseAsResourceUrl(i.tooltipTemplateTransclude),function(b){var e=++n;b?(d(b,!0).then(function(d){if(e===n){var f=m.$new(),g=d,i=c(g)(f,function(b){o(),a.enter(b,h)});j=f,l=i,j.$emit("$includeContentLoaded",b)}},function(){e===n&&(o(),g.$emit("$includeContentError",b))}),g.$emit("$includeContentRequested",b)):o()}),g.$on("$destroy",o)}}}]).directive("tooltipClasses",["$log","$tooltipSuppressWarning",function(a,b){return{restrict:"A",link:function(c,d,e){b||a.warn("tooltip-classes is now deprecated. Use uib-tooltip-classes instead."),c.placement&&d.addClass(c.placement),c.popupClass&&d.addClass(c.popupClass),c.animation()&&d.addClass(e.tooltipAnimationClass)}}}]).directive("tooltipPopup",["$log","$tooltipSuppressWarning",function(a,b){return{replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html",link:function(c,d){b||a.warn("tooltip-popup is now deprecated. Use uib-tooltip-popup instead."),d.addClass("tooltip")}}}]).directive("tooltip",["$tooltip",function(a){return a("tooltip","tooltip","mouseenter")}]).directive("tooltipTemplatePopup",["$log","$tooltipSuppressWarning",function(a,b){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/tooltip/tooltip-template-popup.html",link:function(c,d){b||a.warn("tooltip-template-popup is now deprecated. Use uib-tooltip-template-popup instead."),d.addClass("tooltip")}}}]).directive("tooltipTemplate",["$tooltip",function(a){return a("tooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("tooltipHtmlPopup",["$log","$tooltipSuppressWarning",function(a,b){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-popup.html",link:function(c,d){b||a.warn("tooltip-html-popup is now deprecated. Use uib-tooltip-html-popup instead."),d.addClass("tooltip")}}}]).directive("tooltipHtml",["$tooltip",function(a){return a("tooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{replace:!0,scope:{title:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/popover/popover-template.html",link:function(a,b){b.addClass("popover")}}}).directive("uibPopoverTemplate",["$uibTooltip",function(a){return a("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",title:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover-html.html",link:function(a,b){b.addClass("popover")}}}).directive("uibPopoverHtml",["$uibTooltip",function(a){return a("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{replace:!0,scope:{title:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html",link:function(a,b){b.addClass("popover")}}}).directive("uibPopover",["$uibTooltip",function(a){return a("uibPopover","popover","click")}]),angular.module("ui.bootstrap.popover").value("$popoverSuppressWarning",!1).directive("popoverTemplatePopup",["$log","$popoverSuppressWarning",function(a,b){return{replace:!0,scope:{title:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/popover/popover-template.html",link:function(c,d){b||a.warn("popover-template-popup is now deprecated. Use uib-popover-template-popup instead."),d.addClass("popover")}}}]).directive("popoverTemplate",["$tooltip",function(a){return a("popoverTemplate","popover","click",{useContentExp:!0})}]).directive("popoverHtmlPopup",["$log","$popoverSuppressWarning",function(a,b){return{replace:!0,scope:{contentExp:"&",title:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover-html.html",link:function(c,d){b||a.warn("popover-html-popup is now deprecated. Use uib-popover-html-popup instead."),d.addClass("popover")}}}]).directive("popoverHtml",["$tooltip",function(a){return a("popoverHtml","popover","click",{useContentExp:!0})}]).directive("popoverPopup",["$log","$popoverSuppressWarning",function(a,b){return{replace:!0,scope:{title:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html",link:function(c,d){b||a.warn("popover-popup is now deprecated. Use uib-popover-popup instead."),d.addClass("popover")}}}]).directive("popover",["$tooltip",function(a){return a("popover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(a,b,c){var d=this,e=angular.isDefined(b.animate)?a.$parent.$eval(b.animate):c.animate;this.bars=[],a.max=angular.isDefined(a.max)?a.max:c.max,this.addBar=function(b,c,f){e||c.css({transition:"none"}),this.bars.push(b),b.max=a.max,b.title=f&&angular.isDefined(f.title)?f.title:"progressbar",b.$watch("value",function(a){b.recalculatePercentage()}),b.recalculatePercentage=function(){b.percent=+(100*b.value/b.max).toFixed(2);var a=d.bars.reduce(function(a,b){return a+b.percent},0);a>100&&(b.percent-=a-100)},b.$on("$destroy",function(){c=null,d.removeBar(b)})},this.removeBar=function(a){this.bars.splice(this.bars.indexOf(a),1)},a.$watch("max",function(b){d.bars.forEach(function(b){b.max=a.max,b.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{max:"=?"},templateUrl:"template/progressbar/progress.html"}}).directive("uibBar",function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(a,b,c,d){d.addBar(a,b,c)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",max:"=?",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(a,b,c,d){d.addBar(a,angular.element(b.children()[0]),{title:c.title})}}}),angular.module("ui.bootstrap.progressbar").value("$progressSuppressWarning",!1).controller("ProgressController",["$scope","$attrs","$controller","$log","$progressSuppressWarning",function(a,b,c,d,e){return e||d.warn("ProgressController is now deprecated. Use UibProgressController instead."),c("UibProgressController",{$scope:a,$attrs:b})}]).directive("progress",["$log","$progressSuppressWarning",function(a,b){return{replace:!0,transclude:!0,controller:"ProgressController",require:"progress",scope:{max:"=?",title:"@?"},templateUrl:"template/progressbar/progress.html",link:function(){b||a.warn("progress is now deprecated. Use uib-progress instead.")}}}]).directive("bar",["$log","$progressSuppressWarning",function(a,b){return{replace:!0,transclude:!0,require:"^progress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(c,d,e,f){b||a.warn("bar is now deprecated. Use uib-bar instead."),f.addBar(c,d)}}}]).directive("progressbar",["$log","$progressSuppressWarning",function(a,b){return{replace:!0,transclude:!0,controller:"ProgressController",scope:{value:"=",max:"=?",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(c,d,e,f){b||a.warn("progressbar is now deprecated. Use uib-progressbar instead."),f.addBar(c,angular.element(d.children()[0]),{title:e.title})}}}]),angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(a,b,c){var d={$setViewValue:angular.noop};this.init=function(e){d=e,d.$render=this.render,d.$formatters.push(function(a){return angular.isNumber(a)&&a<<0!==a&&(a=Math.round(a)),a}),this.stateOn=angular.isDefined(b.stateOn)?a.$parent.$eval(b.stateOn):c.stateOn,this.stateOff=angular.isDefined(b.stateOff)?a.$parent.$eval(b.stateOff):c.stateOff;var f=angular.isDefined(b.titles)?a.$parent.$eval(b.titles):c.titles;this.titles=angular.isArray(f)&&f.length>0?f:c.titles;var g=angular.isDefined(b.ratingStates)?a.$parent.$eval(b.ratingStates):new Array(angular.isDefined(b.max)?a.$parent.$eval(b.max):c.max);a.range=this.buildTemplateObjects(g)},this.buildTemplateObjects=function(a){for(var b=0,c=a.length;c>b;b++)a[b]=angular.extend({index:b},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(b)},a[b]);return a},this.getTitle=function(a){return a>=this.titles.length?a+1:this.titles[a]},a.rate=function(b){!a.readonly&&b>=0&&b<=a.range.length&&(d.$setViewValue(d.$viewValue===b?0:b),d.$render())},a.enter=function(b){a.readonly||(a.value=b),a.onHover({value:b})},a.reset=function(){a.value=d.$viewValue,a.onLeave()},a.onKeydown=function(b){/(37|38|39|40)/.test(b.which)&&(b.preventDefault(),b.stopPropagation(),a.rate(a.value+(38===b.which||39===b.which?1:-1)))},this.render=function(){a.value=d.$viewValue}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(a,b,c,d){var e=d[0],f=d[1];e.init(f)}}}),angular.module("ui.bootstrap.rating").value("$ratingSuppressWarning",!1).controller("RatingController",["$scope","$attrs","$controller","$log","$ratingSuppressWarning",function(a,b,c,d,e){return e||d.warn("RatingController is now deprecated. Use UibRatingController instead."),c("UibRatingController",{$scope:a,$attrs:b})}]).directive("rating",["$log","$ratingSuppressWarning",function(a,b){return{require:["rating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(c,d,e,f){b||a.warn("rating is now deprecated. Use uib-rating instead.");var g=f[0],h=f[1];g.init(h)}}}]),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(a){var b=this,c=b.tabs=a.tabs=[];b.select=function(a){angular.forEach(c,function(b){b.active&&b!==a&&(b.active=!1,b.onDeselect(),a.selectCalled=!1)}),a.active=!0,a.selectCalled||(a.onSelect(),a.selectCalled=!0)},b.addTab=function(a){c.push(a),1===c.length&&a.active!==!1?a.active=!0:a.active?b.select(a):a.active=!1},b.removeTab=function(a){var e=c.indexOf(a);if(a.active&&c.length>1&&!d){var f=e==c.length-1?e-1:e+1;b.select(c[f])}c.splice(e,1)};var d;a.$on("$destroy",function(){d=!0})}]).directive("uibTabset",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"UibTabsetController",templateUrl:"template/tabs/tabset.html",link:function(a,b,c){a.vertical=angular.isDefined(c.vertical)?a.$parent.$eval(c.vertical):!1,a.justified=angular.isDefined(c.justified)?a.$parent.$eval(c.justified):!1}}}).directive("uibTab",["$parse",function(a){return{require:"^uibTabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},link:function(b,c,d,e,f){b.$watch("active",function(a){a&&e.select(b)}),b.disabled=!1,d.disable&&b.$parent.$watch(a(d.disable),function(a){b.disabled=!!a}),b.select=function(){b.disabled||(b.active=!0)},e.addTab(b),b.$on("$destroy",function(){e.removeTab(b)}),b.$transcludeFn=f}}}]).directive("uibTabHeadingTransclude",function(){return{restrict:"A",require:["?^uibTab","?^tab"],link:function(a,b){a.$watch("headingElement",function(a){a&&(b.html(""),b.append(a))})}}}).directive("uibTabContentTransclude",function(){function a(a){return a.tagName&&(a.hasAttribute("tab-heading")||a.hasAttribute("data-tab-heading")||a.hasAttribute("x-tab-heading")||a.hasAttribute("uib-tab-heading")||a.hasAttribute("data-uib-tab-heading")||a.hasAttribute("x-uib-tab-heading")||"tab-heading"===a.tagName.toLowerCase()||"data-tab-heading"===a.tagName.toLowerCase()||"x-tab-heading"===a.tagName.toLowerCase()||"uib-tab-heading"===a.tagName.toLowerCase()||"data-uib-tab-heading"===a.tagName.toLowerCase()||"x-uib-tab-heading"===a.tagName.toLowerCase())}return{restrict:"A",require:["?^uibTabset","?^tabset"],link:function(b,c,d){var e=b.$eval(d.uibTabContentTransclude);e.$transcludeFn(e.$parent,function(b){angular.forEach(b,function(b){a(b)?e.headingElement=b:c.append(b)})})}}}),angular.module("ui.bootstrap.tabs").value("$tabsSuppressWarning",!1).controller("TabsetController",["$scope","$controller","$log","$tabsSuppressWarning",function(a,b,c,d){return d||c.warn("TabsetController is now deprecated. Use UibTabsetController instead."),b("UibTabsetController",{$scope:a})}]).directive("tabset",["$log","$tabsSuppressWarning",function(a,b){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(c,d,e){b||a.warn("tabset is now deprecated. Use uib-tabset instead."),c.vertical=angular.isDefined(e.vertical)?c.$parent.$eval(e.vertical):!1,c.justified=angular.isDefined(e.justified)?c.$parent.$eval(e.justified):!1}}}]).directive("tab",["$parse","$log","$tabsSuppressWarning",function(a,b,c){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},link:function(d,e,f,g,h){c||b.warn("tab is now deprecated. Use uib-tab instead."),d.$watch("active",function(a){a&&g.select(d)}),d.disabled=!1,f.disable&&d.$parent.$watch(a(f.disable),function(a){d.disabled=!!a}),d.select=function(){d.disabled||(d.active=!0)},g.addTab(d),d.$on("$destroy",function(){g.removeTab(d)}),d.$transcludeFn=h}}}]).directive("tabHeadingTransclude",["$log","$tabsSuppressWarning",function(a,b){return{restrict:"A",require:"^tab",link:function(c,d){b||a.warn("tab-heading-transclude is now deprecated. Use uib-tab-heading-transclude instead."),c.$watch("headingElement",function(a){a&&(d.html(""),d.append(a))})}}}]).directive("tabContentTransclude",["$log","$tabsSuppressWarning",function(a,b){function c(a){return a.tagName&&(a.hasAttribute("tab-heading")||a.hasAttribute("data-tab-heading")||a.hasAttribute("x-tab-heading")||"tab-heading"===a.tagName.toLowerCase()||"data-tab-heading"===a.tagName.toLowerCase()||"x-tab-heading"===a.tagName.toLowerCase())}return{restrict:"A",require:"^tabset",link:function(d,e,f){b||a.warn("tab-content-transclude is now deprecated. Use uib-tab-content-transclude instead.");var g=d.$eval(f.tabContentTransclude);g.$transcludeFn(g.$parent,function(a){angular.forEach(a,function(a){c(a)?g.headingElement=a:e.append(a)})})}}}]),angular.module("ui.bootstrap.timepicker",[]).constant("uibTimepickerConfig",{hourStep:1,minuteStep:1,showMeridian:!0,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0}).controller("UibTimepickerController",["$scope","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(a,b,c,d,e,f){function g(){var b=parseInt(a.hours,10),c=a.showMeridian?b>0&&13>b:b>=0&&24>b;return c?(a.showMeridian&&(12===b&&(b=0),a.meridian===q[1]&&(b+=12)),b):void 0}function h(){var b=parseInt(a.minutes,10);return b>=0&&60>b?b:void 0}function i(a){return angular.isDefined(a)&&a.toString().length<2?"0"+a:a.toString()}function j(a){k(),p.$setViewValue(new Date(o)),l(a)}function k(){p.$setValidity("time",!0),a.invalidHours=!1,a.invalidMinutes=!1}function l(b){var c=o.getHours(),d=o.getMinutes();a.showMeridian&&(c=0===c||12===c?12:c%12),a.hours="h"===b?c:i(c),"m"!==b&&(a.minutes=i(d)),a.meridian=o.getHours()<12?q[0]:q[1]}function m(a,b){var c=new Date(a.getTime()+6e4*b),d=new Date(a);return d.setHours(c.getHours(),c.getMinutes()),d}function n(a){o=m(o,a),j()}var o=new Date,p={$setViewValue:angular.noop},q=angular.isDefined(b.meridians)?a.$parent.$eval(b.meridians):f.meridians||e.DATETIME_FORMATS.AMPMS;this.init=function(c,d){p=c,p.$render=this.render,p.$formatters.unshift(function(a){return a?new Date(a):null});var e=d.eq(0),g=d.eq(1),h=angular.isDefined(b.mousewheel)?a.$parent.$eval(b.mousewheel):f.mousewheel;h&&this.setupMousewheelEvents(e,g);var i=angular.isDefined(b.arrowkeys)?a.$parent.$eval(b.arrowkeys):f.arrowkeys;i&&this.setupArrowkeyEvents(e,g),a.readonlyInput=angular.isDefined(b.readonlyInput)?a.$parent.$eval(b.readonlyInput):f.readonlyInput,this.setupInputEvents(e,g)};var r=f.hourStep;b.hourStep&&a.$parent.$watch(c(b.hourStep),function(a){r=parseInt(a,10)});var s=f.minuteStep;b.minuteStep&&a.$parent.$watch(c(b.minuteStep),function(a){s=parseInt(a,10)});var t;a.$parent.$watch(c(b.min),function(a){var b=new Date(a);t=isNaN(b)?void 0:b});var u;a.$parent.$watch(c(b.max),function(a){var b=new Date(a);u=isNaN(b)?void 0:b}),a.noIncrementHours=function(){var a=m(o,60*r);return a>u||o>a&&t>a},a.noDecrementHours=function(){var a=m(o,60*-r);return t>a||a>o&&a>u},a.noIncrementMinutes=function(){var a=m(o,s);return a>u||o>a&&t>a},a.noDecrementMinutes=function(){var a=m(o,-s);return t>a||a>o&&a>u},a.noToggleMeridian=function(){return o.getHours()<13?m(o,720)>u:m(o,-720)<t},a.showMeridian=f.showMeridian,b.showMeridian&&a.$parent.$watch(c(b.showMeridian),function(b){if(a.showMeridian=!!b,p.$error.time){var c=g(),d=h();angular.isDefined(c)&&angular.isDefined(d)&&(o.setHours(c),j())}else l()}),this.setupMousewheelEvents=function(b,c){var d=function(a){a.originalEvent&&(a=a.originalEvent);var b=a.wheelDelta?a.wheelDelta:-a.deltaY;return a.detail||b>0};b.bind("mousewheel wheel",function(b){a.$apply(d(b)?a.incrementHours():a.decrementHours()),b.preventDefault()}),c.bind("mousewheel wheel",function(b){a.$apply(d(b)?a.incrementMinutes():a.decrementMinutes()),b.preventDefault()})},this.setupArrowkeyEvents=function(b,c){b.bind("keydown",function(b){38===b.which?(b.preventDefault(),a.incrementHours(),a.$apply()):40===b.which&&(b.preventDefault(),a.decrementHours(),a.$apply())}),c.bind("keydown",function(b){38===b.which?(b.preventDefault(),a.incrementMinutes(),a.$apply()):40===b.which&&(b.preventDefault(),a.decrementMinutes(),a.$apply())})},this.setupInputEvents=function(b,c){if(a.readonlyInput)return a.updateHours=angular.noop,void(a.updateMinutes=angular.noop);var d=function(b,c){p.$setViewValue(null),p.$setValidity("time",!1),angular.isDefined(b)&&(a.invalidHours=b),angular.isDefined(c)&&(a.invalidMinutes=c)};a.updateHours=function(){var a=g(),b=h();angular.isDefined(a)&&angular.isDefined(b)?(o.setHours(a),t>o||o>u?d(!0):j("h")):d(!0)},b.bind("blur",function(b){!a.invalidHours&&a.hours<10&&a.$apply(function(){a.hours=i(a.hours)})}),a.updateMinutes=function(){var a=h(),b=g();angular.isDefined(a)&&angular.isDefined(b)?(o.setMinutes(a),t>o||o>u?d(void 0,!0):j("m")):d(void 0,!0)},c.bind("blur",function(b){!a.invalidMinutes&&a.minutes<10&&a.$apply(function(){a.minutes=i(a.minutes)})})},this.render=function(){var b=p.$viewValue;isNaN(b)?(p.$setValidity("time",!1),d.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(b&&(o=b),t>o||o>u?(p.$setValidity("time",!1),a.invalidHours=!0,a.invalidMinutes=!0):k(),l())},a.showSpinners=angular.isDefined(b.showSpinners)?a.$parent.$eval(b.showSpinners):f.showSpinners,a.incrementHours=function(){a.noIncrementHours()||n(60*r)},a.decrementHours=function(){a.noDecrementHours()||n(60*-r)},a.incrementMinutes=function(){a.noIncrementMinutes()||n(s)},a.decrementMinutes=function(){a.noDecrementMinutes()||n(-s)},a.toggleMeridian=function(){a.noToggleMeridian()||n(720*(o.getHours()<12?1:-1))}}]).directive("uibTimepicker",function(){return{restrict:"EA",require:["uibTimepicker","?^ngModel"],controller:"UibTimepickerController",controllerAs:"timepicker",replace:!0,scope:{},templateUrl:function(a,b){return b.templateUrl||"template/timepicker/timepicker.html"},link:function(a,b,c,d){var e=d[0],f=d[1];f&&e.init(f,b.find("input"))}}}),angular.module("ui.bootstrap.timepicker").value("$timepickerSuppressWarning",!1).controller("TimepickerController",["$scope","$attrs","$controller","$log","$timepickerSuppressWarning",function(a,b,c,d,e){return e||d.warn("TimepickerController is now deprecated. Use UibTimepickerController instead."),c("UibTimepickerController",{$scope:a,$attrs:b})}]).directive("timepicker",["$log","$timepickerSuppressWarning",function(a,b){return{restrict:"EA",require:["timepicker","?^ngModel"],controller:"TimepickerController",controllerAs:"timepicker",replace:!0,scope:{},templateUrl:function(a,b){return b.templateUrl||"template/timepicker/timepicker.html"},link:function(c,d,e,f){b||a.warn("timepicker is now deprecated. Use uib-timepicker instead.");var g=f[0],h=f[1];h&&g.init(h,d.find("input"))}}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(a){var b=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(c){var d=c.match(b);if(!d)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+c+'".');return{itemName:d[3],source:a(d[4]),viewMapper:a(d[2]||d[1]),modelMapper:a(d[1])}}}}]).directive("uibTypeahead",["$compile","$parse","$q","$timeout","$document","$window","$rootScope","$uibPosition","uibTypeaheadParser",function(a,b,c,d,e,f,g,h,i){var j=[9,13,27,38,40],k=200;return{require:["ngModel","^?ngModelOptions"],link:function(l,m,n,o){function p(){L.moveInProgress||(L.moveInProgress=!0,L.$digest()),T&&d.cancel(T),T=d(function(){L.matches.length&&q(),L.moveInProgress=!1},k)}function q(){L.position=D?h.offset(m):h.position(m),L.position.top+=m.prop("offsetHeight")}var r=o[0],s=o[1],t=l.$eval(n.typeaheadMinLength);t||0===t||(t=1);var u,v,w=l.$eval(n.typeaheadWaitMs)||0,x=l.$eval(n.typeaheadEditable)!==!1,y=b(n.typeaheadLoading).assign||angular.noop,z=b(n.typeaheadOnSelect),A=angular.isDefined(n.typeaheadSelectOnBlur)?l.$eval(n.typeaheadSelectOnBlur):!1,B=b(n.typeaheadNoResults).assign||angular.noop,C=n.typeaheadInputFormatter?b(n.typeaheadInputFormatter):void 0,D=n.typeaheadAppendToBody?l.$eval(n.typeaheadAppendToBody):!1,E=n.typeaheadAppendToElementId||!1,F=l.$eval(n.typeaheadFocusFirst)!==!1,G=n.typeaheadSelectOnExact?l.$eval(n.typeaheadSelectOnExact):!1,H=b(n.ngModel),I=b(n.ngModel+"($$$p)"),J=function(a,b){return angular.isFunction(H(l))&&s&&s.$options&&s.$options.getterSetter?I(a,{$$$p:b}):H.assign(a,b)},K=i.parse(n.uibTypeahead),L=l.$new(),M=l.$on("$destroy",function(){L.$destroy()});L.$on("$destroy",M);var N="typeahead-"+L.$id+"-"+Math.floor(1e4*Math.random());m.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":N});var O=angular.element("<div uib-typeahead-popup></div>");O.attr({id:N,matches:"matches",active:"activeIdx",select:"select(activeIdx)","move-in-progress":"moveInProgress",query:"query",position:"position"}),angular.isDefined(n.typeaheadTemplateUrl)&&O.attr("template-url",n.typeaheadTemplateUrl),angular.isDefined(n.typeaheadPopupTemplateUrl)&&O.attr("popup-template-url",n.typeaheadPopupTemplateUrl);var P=function(){L.matches=[],L.activeIdx=-1,m.attr("aria-expanded",!1)},Q=function(a){return N+"-option-"+a};L.$watch("activeIdx",function(a){0>a?m.removeAttr("aria-activedescendant"):m.attr("aria-activedescendant",Q(a))});var R=function(a,b){return L.matches.length>b&&a?a.toUpperCase()===L.matches[b].label.toUpperCase():!1},S=function(a){var b={$viewValue:a};y(l,!0),B(l,!1),c.when(K.source(l,b)).then(function(c){var d=a===r.$viewValue;if(d&&u)if(c&&c.length>0){L.activeIdx=F?0:-1,B(l,!1),L.matches.length=0;for(var e=0;e<c.length;e++)b[K.itemName]=c[e],L.matches.push({id:Q(e),label:K.viewMapper(L,b),model:c[e]});L.query=a,q(),m.attr("aria-expanded",!0),G&&1===L.matches.length&&R(a,0)&&L.select(0)}else P(),B(l,!0);d&&y(l,!1)},function(){P(),y(l,!1),B(l,!0)})};D&&(angular.element(f).bind("resize",p),e.find("body").bind("scroll",p));var T;L.moveInProgress=!1,P(),L.query=void 0;var U,V=function(a){U=d(function(){S(a)},w)},W=function(){U&&d.cancel(U)};r.$parsers.unshift(function(a){return u=!0,0===t||a&&a.length>=t?w>0?(W(),V(a)):S(a):(y(l,!1),W(),P()),x?a:a?void r.$setValidity("editable",!1):(r.$setValidity("editable",!0),null)}),r.$formatters.push(function(a){var b,c,d={};return x||r.$setValidity("editable",!0),C?(d.$model=a,C(l,d)):(d[K.itemName]=a,b=K.viewMapper(l,d),d[K.itemName]=void 0,c=K.viewMapper(l,d),b!==c?b:a)}),L.select=function(a){var b,c,e={};v=!0,e[K.itemName]=c=L.matches[a].model,b=K.modelMapper(l,e),J(l,b),r.$setValidity("editable",!0),r.$setValidity("parse",!0),z(l,{$item:c,$model:b,$label:K.viewMapper(l,e)}),P(),L.$eval(n.typeaheadFocusOnSelect)!==!1&&d(function(){m[0].focus()},0,!1)},m.bind("keydown",function(a){if(0!==L.matches.length&&-1!==j.indexOf(a.which)){if(-1===L.activeIdx&&(9===a.which||13===a.which))return P(),void L.$digest();a.preventDefault(),
11 11 40===a.which?(L.activeIdx=(L.activeIdx+1)%L.matches.length,L.$digest()):38===a.which?(L.activeIdx=(L.activeIdx>0?L.activeIdx:L.matches.length)-1,L.$digest()):13===a.which||9===a.which?L.$apply(function(){L.select(L.activeIdx)}):27===a.which&&(a.stopPropagation(),P(),L.$digest())}}),m.bind("blur",function(){A&&L.matches.length&&-1!==L.activeIdx&&!v&&(v=!0,L.$apply(function(){L.select(L.activeIdx)})),u=!1,v=!1});var X=function(a){m[0]!==a.target&&3!==a.which&&0!==L.matches.length&&(P(),g.$$phase||L.$digest())};e.bind("click",X),l.$on("$destroy",function(){e.unbind("click",X),(D||E)&&Y.remove(),O.remove()});var Y=a(O)(L);D?e.find("body").append(Y):E!==!1?angular.element(e[0].getElementById(E)).append(Y):m.after(Y)}}}]).directive("uibTypeaheadPopup",function(){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&"},replace:!0,templateUrl:function(a,b){return b.popupTemplateUrl||"template/typeahead/typeahead-popup.html"},link:function(a,b,c){a.templateUrl=c.templateUrl,a.isOpen=function(){return a.matches.length>0},a.isActive=function(b){return a.active==b},a.selectActive=function(b){a.active=b},a.selectMatch=function(b){a.select({activeIdx:b})}}}}).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(a,b,c){return{scope:{index:"=",match:"=",query:"="},link:function(d,e,f){var g=c(f.templateUrl)(d.$parent)||"template/typeahead/typeahead-match.html";a(g).then(function(a){b(a.trim())(d,function(a){e.replaceWith(a)})})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(a,b,c){function d(a){return a.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}function e(a){return/<.*>/g.test(a)}var f;return f=b.has("$sanitize"),function(b,g){return!f&&e(b)&&c.warn("Unsafe use of typeahead please use ngSanitize"),b=g?(""+b).replace(new RegExp(d(g),"gi"),"<strong>$&</strong>"):b,f||(b=a.trustAsHtml(b)),b}}]),angular.module("ui.bootstrap.typeahead").value("$typeaheadSuppressWarning",!1).service("typeaheadParser",["$parse","uibTypeaheadParser","$log","$typeaheadSuppressWarning",function(a,b,c,d){return d||c.warn("typeaheadParser is now deprecated. Use uibTypeaheadParser instead."),b}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$window","$rootScope","$uibPosition","typeaheadParser","$log","$typeaheadSuppressWarning",function(a,b,c,d,e,f,g,h,i,j,k){var l=[9,13,27,38,40],m=200;return{require:["ngModel","^?ngModelOptions"],link:function(n,o,p,q){function r(){N.moveInProgress||(N.moveInProgress=!0,N.$digest()),V&&d.cancel(V),V=d(function(){N.matches.length&&s(),N.moveInProgress=!1},m)}function s(){N.position=F?h.offset(o):h.position(o),N.position.top+=o.prop("offsetHeight")}k||j.warn("typeahead is now deprecated. Use uib-typeahead instead.");var t=q[0],u=q[1],v=n.$eval(p.typeaheadMinLength);v||0===v||(v=1);var w,x,y=n.$eval(p.typeaheadWaitMs)||0,z=n.$eval(p.typeaheadEditable)!==!1,A=b(p.typeaheadLoading).assign||angular.noop,B=b(p.typeaheadOnSelect),C=angular.isDefined(p.typeaheadSelectOnBlur)?n.$eval(p.typeaheadSelectOnBlur):!1,D=b(p.typeaheadNoResults).assign||angular.noop,E=p.typeaheadInputFormatter?b(p.typeaheadInputFormatter):void 0,F=p.typeaheadAppendToBody?n.$eval(p.typeaheadAppendToBody):!1,G=p.typeaheadAppendToElementId||!1,H=n.$eval(p.typeaheadFocusFirst)!==!1,I=p.typeaheadSelectOnExact?n.$eval(p.typeaheadSelectOnExact):!1,J=b(p.ngModel),K=b(p.ngModel+"($$$p)"),L=function(a,b){return angular.isFunction(J(n))&&u&&u.$options&&u.$options.getterSetter?K(a,{$$$p:b}):J.assign(a,b)},M=i.parse(p.typeahead),N=n.$new(),O=n.$on("$destroy",function(){N.$destroy()});N.$on("$destroy",O);var P="typeahead-"+N.$id+"-"+Math.floor(1e4*Math.random());o.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":P});var Q=angular.element("<div typeahead-popup></div>");Q.attr({id:P,matches:"matches",active:"activeIdx",select:"select(activeIdx)","move-in-progress":"moveInProgress",query:"query",position:"position"}),angular.isDefined(p.typeaheadTemplateUrl)&&Q.attr("template-url",p.typeaheadTemplateUrl),angular.isDefined(p.typeaheadPopupTemplateUrl)&&Q.attr("popup-template-url",p.typeaheadPopupTemplateUrl);var R=function(){N.matches=[],N.activeIdx=-1,o.attr("aria-expanded",!1)},S=function(a){return P+"-option-"+a};N.$watch("activeIdx",function(a){0>a?o.removeAttr("aria-activedescendant"):o.attr("aria-activedescendant",S(a))});var T=function(a,b){return N.matches.length>b&&a?a.toUpperCase()===N.matches[b].label.toUpperCase():!1},U=function(a){var b={$viewValue:a};A(n,!0),D(n,!1),c.when(M.source(n,b)).then(function(c){var d=a===t.$viewValue;if(d&&w)if(c&&c.length>0){N.activeIdx=H?0:-1,D(n,!1),N.matches.length=0;for(var e=0;e<c.length;e++)b[M.itemName]=c[e],N.matches.push({id:S(e),label:M.viewMapper(N,b),model:c[e]});N.query=a,s(),o.attr("aria-expanded",!0),I&&1===N.matches.length&&T(a,0)&&N.select(0)}else R(),D(n,!0);d&&A(n,!1)},function(){R(),A(n,!1),D(n,!0)})};F&&(angular.element(f).bind("resize",r),e.find("body").bind("scroll",r));var V;N.moveInProgress=!1,R(),N.query=void 0;var W,X=function(a){W=d(function(){U(a)},y)},Y=function(){W&&d.cancel(W)};t.$parsers.unshift(function(a){return w=!0,0===v||a&&a.length>=v?y>0?(Y(),X(a)):U(a):(A(n,!1),Y(),R()),z?a:a?void t.$setValidity("editable",!1):(t.$setValidity("editable",!0),null)}),t.$formatters.push(function(a){var b,c,d={};return z||t.$setValidity("editable",!0),E?(d.$model=a,E(n,d)):(d[M.itemName]=a,b=M.viewMapper(n,d),d[M.itemName]=void 0,c=M.viewMapper(n,d),b!==c?b:a)}),N.select=function(a){var b,c,e={};x=!0,e[M.itemName]=c=N.matches[a].model,b=M.modelMapper(n,e),L(n,b),t.$setValidity("editable",!0),t.$setValidity("parse",!0),B(n,{$item:c,$model:b,$label:M.viewMapper(n,e)}),R(),N.$eval(p.typeaheadFocusOnSelect)!==!1&&d(function(){o[0].focus()},0,!1)},o.bind("keydown",function(a){if(0!==N.matches.length&&-1!==l.indexOf(a.which)){if(-1===N.activeIdx&&(9===a.which||13===a.which))return R(),void N.$digest();a.preventDefault(),40===a.which?(N.activeIdx=(N.activeIdx+1)%N.matches.length,N.$digest()):38===a.which?(N.activeIdx=(N.activeIdx>0?N.activeIdx:N.matches.length)-1,N.$digest()):13===a.which||9===a.which?N.$apply(function(){N.select(N.activeIdx)}):27===a.which&&(a.stopPropagation(),R(),N.$digest())}}),o.bind("blur",function(){C&&N.matches.length&&-1!==N.activeIdx&&!x&&(x=!0,N.$apply(function(){N.select(N.activeIdx)})),w=!1,x=!1});var Z=function(a){o[0]!==a.target&&3!==a.which&&0!==N.matches.length&&(R(),g.$$phase||N.$digest())};e.bind("click",Z),n.$on("$destroy",function(){e.unbind("click",Z),(F||G)&&$.remove(),Q.remove()});var $=a(Q)(N);F?e.find("body").append($):G!==!1?angular.element(e[0].getElementById(G)).append($):o.after($)}}}]).directive("typeaheadPopup",["$typeaheadSuppressWarning","$log",function(a,b){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&"},replace:!0,templateUrl:function(a,b){return b.popupTemplateUrl||"template/typeahead/typeahead-popup.html"},link:function(c,d,e){a||b.warn("typeahead-popup is now deprecated. Use uib-typeahead-popup instead."),c.templateUrl=e.templateUrl,c.isOpen=function(){return c.matches.length>0},c.isActive=function(a){return c.active==a},c.selectActive=function(a){c.active=a},c.selectMatch=function(a){c.select({activeIdx:a})}}}}]).directive("typeaheadMatch",["$templateRequest","$compile","$parse","$typeaheadSuppressWarning","$log",function(a,b,c,d,e){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(f,g,h){d||e.warn("typeahead-match is now deprecated. Use uib-typeahead-match instead.");var i=c(h.templateUrl)(f.$parent)||"template/typeahead/typeahead-match.html";a(i).then(function(a){b(a.trim())(f,function(a){g.replaceWith(a)})})}}}]).filter("typeaheadHighlight",["$sce","$injector","$log","$typeaheadSuppressWarning",function(a,b,c,d){function e(a){return a.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}function f(a){return/<.*>/g.test(a)}var g;return g=b.has("$sanitize"),function(b,h){return d||c.warn("typeaheadHighlight is now deprecated. Use uibTypeaheadHighlight instead."),!g&&f(b)&&c.warn("Unsafe use of typeahead please use ngSanitize"),b=h?(""+b).replace(new RegExp(e(h),"gi"),"<strong>$&</strong>"):b,g||(b=a.trustAsHtml(b)),b}}]),angular.module("template/accordion/accordion-group.html",[]).run(["$templateCache",function(a){a.put("template/accordion/accordion-group.html",'<div class="panel {{panelClass || \'panel-default\'}}">\n <div class="panel-heading" ng-keypress="toggleOpen($event)">\n <h4 class="panel-title">\n <a href tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" uib-accordion-transclude="heading"><span ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n </h4>\n </div>\n <div class="panel-collapse collapse" uib-collapse="!isOpen">\n <div class="panel-body" ng-transclude></div>\n </div>\n</div>\n')}]),angular.module("template/accordion/accordion.html",[]).run(["$templateCache",function(a){a.put("template/accordion/accordion.html",'<div class="panel-group" ng-transclude></div>')}]),angular.module("template/alert/alert.html",[]).run(["$templateCache",function(a){a.put("template/alert/alert.html",'<div class="alert" ng-class="[\'alert-\' + (type || \'warning\'), closeable ? \'alert-dismissible\' : null]" role="alert">\n <button ng-show="closeable" type="button" class="close" ng-click="close({$event: $event})">\n <span aria-hidden="true">&times;</span>\n <span class="sr-only">Close</span>\n </button>\n <div ng-transclude></div>\n</div>\n')}]),angular.module("template/carousel/carousel.html",[]).run(["$templateCache",function(a){a.put("template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n <div class="carousel-inner" ng-transclude></div>\n <a role="button" href class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1">\n <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span>\n <span class="sr-only">previous</span>\n </a>\n <a role="button" href class="right carousel-control" ng-click="next()" ng-show="slides.length > 1">\n <span aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span>\n <span class="sr-only">next</span>\n </a>\n <ol class="carousel-indicators" ng-show="slides.length > 1">\n <li ng-repeat="slide in slides | orderBy:indexOfSlide track by $index" ng-class="{ active: isActive(slide) }" ng-click="select(slide)">\n <span class="sr-only">slide {{ $index + 1 }} of {{ slides.length }}<span ng-if="isActive(slide)">, currently active</span></span>\n </li>\n </ol>\n</div>')}]),angular.module("template/carousel/slide.html",[]).run(["$templateCache",function(a){a.put("template/carousel/slide.html",'<div ng-class="{\n \'active\': active\n }" class="item text-center" ng-transclude></div>\n')}]),angular.module("template/datepicker/datepicker.html",[]).run(["$templateCache",function(a){a.put("template/datepicker/datepicker.html",'<div ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n <uib-daypicker ng-switch-when="day" tabindex="0"></uib-daypicker>\n <uib-monthpicker ng-switch-when="month" tabindex="0"></uib-monthpicker>\n <uib-yearpicker ng-switch-when="year" tabindex="0"></uib-yearpicker>\n</div>')}]),angular.module("template/datepicker/day.html",[]).run(["$templateCache",function(a){a.put("template/datepicker/day.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th colspan="{{::5 + showWeeks}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n <tr>\n <th ng-if="showWeeks" class="text-center"></th>\n <th ng-repeat="label in ::labels track by $index" class="text-center"><small aria-label="{{::label.full}}">{{::label.abbr}}</small></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="row in rows track by $index">\n <td ng-if="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{::dt.uid}}" ng-class="::dt.customClass">\n <button type="button" style="min-width:100%;" class="btn btn-default btn-sm" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="::{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/datepicker/month.html",[]).run(["$templateCache",function(a){a.put("template/datepicker/month.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="row in rows track by $index">\n <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{::dt.uid}}" ng-class="::dt.customClass">\n <button type="button" style="min-width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/datepicker/popup.html",[]).run(["$templateCache",function(a){a.put("template/datepicker/popup.html",'<ul class="dropdown-menu" dropdown-nested ng-if="isOpen" style="display: block" ng-style="{top: position.top+\'px\', left: position.left+\'px\'}" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()">\n <li ng-transclude></li>\n <li ng-if="showButtonBar" style="padding:10px 9px 2px">\n <span class="btn-group pull-left">\n <button type="button" class="btn btn-sm btn-info" ng-click="select(\'today\')" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}</button>\n <button type="button" class="btn btn-sm btn-danger" ng-click="select(null)">{{ getText(\'clear\') }}</button>\n </span>\n <button type="button" class="btn btn-sm btn-success pull-right" ng-click="close()">{{ getText(\'close\') }}</button>\n </li>\n</ul>\n')}]),angular.module("template/datepicker/year.html",[]).run(["$templateCache",function(a){a.put("template/datepicker/year.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th colspan="3"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="row in rows track by $index">\n <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{::dt.uid}}" ng-class="::dt.customClass">\n <button type="button" style="min-width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/modal/backdrop.html",[]).run(["$templateCache",function(a){a.put("template/modal/backdrop.html",'<div uib-modal-animation-class="fade"\n modal-in-class="in"\n ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n></div>\n')}]),angular.module("template/modal/window.html",[]).run(["$templateCache",function(a){a.put("template/modal/window.html",'<div modal-render="{{$isRendered}}" tabindex="-1" role="dialog" class="modal"\n uib-modal-animation-class="fade"\n modal-in-class="in"\n ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}">\n <div class="modal-dialog" ng-class="size ? \'modal-\' + size : \'\'"><div class="modal-content" uib-modal-transclude></div></div>\n</div>\n')}]),angular.module("template/pagination/pager.html",[]).run(["$templateCache",function(a){a.put("template/pagination/pager.html",'<ul class="pager">\n <li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n <li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n</ul>\n')}]),angular.module("template/pagination/pagination.html",[]).run(["$templateCache",function(a){a.put("template/pagination/pagination.html",'<ul class="pagination">\n <li ng-if="::boundaryLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-first"><a href ng-click="selectPage(1, $event)">{{::getText(\'first\')}}</a></li>\n <li ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-prev"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n <li ng-repeat="page in pages track by $index" ng-class="{active: page.active,disabled: ngDisabled&&!page.active}" class="pagination-page"><a href ng-click="selectPage(page.number, $event)">{{page.text}}</a></li>\n <li ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-next"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n <li ng-if="::boundaryLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-last"><a href ng-click="selectPage(totalPages, $event)">{{::getText(\'last\')}}</a></li>\n</ul>\n')}]),angular.module("template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(a){a.put("template/tooltip/tooltip-html-popup.html",'<div\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-html-unsafe-popup.html",[]).run(["$templateCache",function(a){a.put("template/tooltip/tooltip-html-unsafe-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" bind-html-unsafe="content"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(a){a.put("template/tooltip/tooltip-popup.html",'<div\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(a){a.put("template/tooltip/tooltip-template-popup.html",'<div\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner"\n uib-tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),angular.module("template/popover/popover-html.html",[]).run(["$templateCache",function(a){a.put("template/popover/popover-html.html",'<div tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n <div class="popover-content" ng-bind-html="contentExp()"></div>\n </div>\n</div>\n')}]),angular.module("template/popover/popover-template.html",[]).run(["$templateCache",function(a){a.put("template/popover/popover-template.html",'<div tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n <div class="popover-content"\n uib-tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n </div>\n</div>\n')}]),angular.module("template/popover/popover.html",[]).run(["$templateCache",function(a){a.put("template/popover/popover.html",'<div tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n <div class="popover-content" ng-bind="content"></div>\n </div>\n</div>\n')}]),angular.module("template/progressbar/bar.html",[]).run(["$templateCache",function(a){a.put("template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" style="min-width: 0;" ng-transclude></div>\n')}]),angular.module("template/progressbar/progress.html",[]).run(["$templateCache",function(a){a.put("template/progressbar/progress.html",'<div class="progress" ng-transclude aria-labelledby="{{::title}}"></div>')}]),angular.module("template/progressbar/progressbar.html",[]).run(["$templateCache",function(a){a.put("template/progressbar/progressbar.html",'<div class="progress">\n <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" style="min-width: 0;" ng-transclude></div>\n</div>\n')}]),angular.module("template/rating/rating.html",[]).run(["$templateCache",function(a){a.put("template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}">\n <span ng-repeat-start="r in range track by $index" class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n <i ng-repeat-end ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')" ng-attr-title="{{r.title}}" aria-valuetext="{{r.title}}"></i>\n</span>\n')}]),angular.module("template/tabs/tab.html",[]).run(["$templateCache",function(a){a.put("template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}">\n <a href ng-click="select()" uib-tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("template/tabs/tabset.html",[]).run(["$templateCache",function(a){a.put("template/tabs/tabset.html",'<div>\n <ul class="nav nav-{{type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n <div class="tab-content">\n <div class="tab-pane" \n ng-repeat="tab in tabs" \n ng-class="{active: tab.active}"\n uib-tab-content-transclude="tab">\n </div>\n </div>\n</div>\n')}]),angular.module("template/timepicker/timepicker.html",[]).run(["$templateCache",function(a){a.put("template/timepicker/timepicker.html",'<table>\n <tbody>\n <tr class="text-center" ng-show="::showSpinners">\n <td><a ng-click="incrementHours()" ng-class="{disabled: noIncrementHours()}" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td>&nbsp;</td>\n <td><a ng-click="incrementMinutes()" ng-class="{disabled: noIncrementMinutes()}" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td ng-show="showMeridian"></td>\n </tr>\n <tr>\n <td class="form-group" ng-class="{\'has-error\': invalidHours}">\n <input style="width:50px;" type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2">\n </td>\n <td>:</td>\n <td class="form-group" ng-class="{\'has-error\': invalidMinutes}">\n <input style="width:50px;" type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2">\n </td>\n <td ng-show="showMeridian"><button type="button" ng-class="{disabled: noToggleMeridian()}" class="btn btn-default text-center" ng-click="toggleMeridian()">{{meridian}}</button></td>\n </tr>\n <tr class="text-center" ng-show="::showSpinners">\n <td><a ng-click="decrementHours()" ng-class="{disabled: noDecrementHours()}" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td>&nbsp;</td>\n <td><a ng-click="decrementMinutes()" ng-class="{disabled: noDecrementMinutes()}" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td ng-show="showMeridian"></td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(a){a.put("template/typeahead/typeahead-match.html",'<a href tabindex="-1" ng-bind-html="match.label | uibTypeaheadHighlight:query"></a>\n')}]),angular.module("template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(a){a.put("template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+\'px\', left: position().left+\'px\'}" style="display: block;" role="listbox" aria-hidden="{{!isOpen()}}">\n <li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)" role="option" id="{{::match.id}}">\n <div uib-typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n </li>\n</ul>\n')}]),!angular.$$csp()&&angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>');
12 12 \ No newline at end of file
... ...
src/main/resources/static/pages/base/region/add.html 0 → 100644
  1 +<!-- 片段标题 START -->
  2 +<div class="page-head">
  3 + <div class="page-title">
  4 + <h1>添加公司</h1>
  5 + </div>
  6 +</div>
  7 +<!-- 片段标题 END -->
  8 +
  9 +<!-- 公司信息导航栏组件 START -->
  10 +<ul class="page-breadcrumb breadcrumb">
  11 + <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
  12 + <li><span class="active">基础信息</span> <i class="fa fa-circle"></i></li>
  13 + <li><a href="/pages/base/company/list.html" data-pjax>区域</a> <i class="fa fa-circle"></i></li>
  14 + <li><span class="active">添加区域</span></li>
  15 +</ul>
  16 +<!-- 公司信息导航栏组件 END -->
  17 +
  18 +<!-- 信息容器组件 START -->
  19 +<div class="portlet light bordered">
  20 +
  21 + <!-- 信息容器组件标题 START -->
  22 + <div class="portlet-title">
  23 + <div class="caption">
  24 + <i class="icon-equalizer font-red-sunglo"></i>
  25 + <span class="caption-subject font-red-sunglo bold uppercase">添加区域</span>
  26 + </div>
  27 + </div>
  28 + <!-- 信息容器组件标题 END -->
  29 +
  30 + <!-- 表单容器组件 START -->
  31 + <div class="portlet-body form">
  32 +
  33 + <!-- comp_add_form FORM START -->
  34 + <form action="/line" class="form-horizontal" id="region_add_form" >
  35 +
  36 + <!-- 表单验证错误提示组件 START -->
  37 + <div class="alert alert-danger display-hide">
  38 + <button class="close" data-close="alert"></button>
  39 + 您的输入有误,请检查下面的输入项
  40 + </div>
  41 + <!-- 表单验证错误提示组件 END -->
  42 +
  43 + <!-- 表单字段内容 START -->
  44 + <div class="form-body">
  45 + <!-- 表单分组组件 form-group START -->
  46 + <div class="form-group">
  47 + <!-- 公司编码 (* 必填项) START -->
  48 + <div class="col-md-9">
  49 + <label class="control-label col-md-5">
  50 + <span class="required"> * </span>区域名称:
  51 + </label>
  52 + <div class="col-md-4">
  53 + <input type="text" class="form-control" name="name" id="name" placeholder="公司编码">
  54 + </div>
  55 + </div>
  56 + <!-- 公司编码 (* 必填项) END -->
  57 + </div>
  58 + <!-- 表单分组组件 form-group END -->
  59 +
  60 + </div>
  61 + <!-- 表单字段内容 END -->
  62 +
  63 + <!-- 表单按钮组件 START -->
  64 + <div class="form-actions">
  65 + <div class="row">
  66 + <div class="col-md-offset-3 col-md-4">
  67 + <button type="submit" class="btn green" id="submintBtn"><i class="fa fa-check"></i> 提交</button>
  68 + <a type="button" class="btn default" href="list.html" data-pjax><i class="fa fa-times"></i> 取消</a>
  69 + </div>
  70 + </div>
  71 + </div>
  72 + <!-- 表单按钮组件 END -->
  73 + </form>
  74 + <!-- comp_add_form FORM END -->
  75 + </div>
  76 + <!-- 表单组件 END -->
  77 +</div>
  78 +<!-- 信息容器组件 END -->
  79 +<!-- 公司信息添加片段JS模块 -->
  80 +<script src="/pages/base/region/js/region_add.js"></script>
0 81 \ No newline at end of file
... ...
src/main/resources/static/pages/base/region/js/region_add.js 0 → 100644
  1 +/**
  2 + * @description TODO(区域信息添加片段JS模块)
  3 + *
  4 + * @author bsth@lq
  5 + *
  6 + * @date 二〇一六年十月十八日 13:31:58
  7 + *
  8 + */
  9 +
  10 +$(function(){
  11 + // 定义表单
  12 + var form = $('#region_add_form');
  13 + // 定义表单异常
  14 + var error = $('.alert-danger',form);
  15 + // 表单验证
  16 + form.validate({
  17 + // 错误提示元素span对象
  18 + errorElement : 'span',
  19 + // 错误提示元素class名称
  20 + errorClass : 'help-block help-block-error',
  21 + // 验证错误获取焦点
  22 + focusInvalid : true,
  23 + // 需要验证的表单元素
  24 + rules : {
  25 +
  26 + // 区域名称
  27 + 'name' : {
  28 + // 必填项
  29 + required : true,
  30 + // 最大长度
  31 + maxlength: 30
  32 + },
  33 + },
  34 + /**
  35 + * 类型:Callback。当未通过验证的表单提交时,可以在该回调函数中处理一些事情。
  36 + *
  37 + * 参数:该回调函数有两个参数:第一个为一个事件对象,第二个为验证器(validator)
  38 + */
  39 + invalidHandler : function(event, validator) {
  40 + // 显示表单未通过提示信息
  41 + error.show();
  42 + // 把提示信息放到指定的位置。
  43 + App.scrollTo(error, -200);
  44 + },
  45 + /**
  46 + * 类型:Callback。
  47 + *
  48 + * 默认:添加errorClass("has-error")到表单元素。将未通过验证的表单元素设置高亮。
  49 + */
  50 + highlight : function(element) {
  51 + // 添加errorClass("has-error")到表单元素
  52 + $(element).closest('.form-group').addClass('has-error');
  53 +
  54 + },
  55 + /**
  56 + * 类型:Callback。
  57 + *
  58 + * 默认:移除errorClass("has-error")。与highlight操作相反
  59 + */
  60 + unhighlight : function(element) {
  61 + // 移除errorClass("has-error")
  62 + $(element).closest('.form-group').removeClass('has-error');
  63 +
  64 + },
  65 + /**
  66 + * 类型:String,Callback。
  67 + *
  68 + * 如果指定它,当验证通过时显示一个消息。
  69 + *
  70 + * 如果是String类型的,则添加该样式到标签中;
  71 + *
  72 + * 如果是一个回调函数,则将标签作为其唯一的参数。
  73 + */
  74 + success : function(label) {
  75 + // 当验证通过时,移除errorClass("has-error")
  76 + label.closest('.form-group').removeClass('has-error');
  77 + },
  78 +
  79 + /**
  80 + * 类型:Callback。
  81 + *
  82 + * 默认:default (native) form submit;当表单通过验证,提交表单。回调函数有个默认参数form
  83 + */
  84 + submitHandler : function(f) {
  85 + // 隐藏错误提示
  86 + error.hide();
  87 + // 表单序列化
  88 + var params = form.serializeJSON();
  89 + // 提交
  90 + // 防止用户多次提交
  91 + $("#submintBtn").addClass("disabled");
  92 + // 添加数据
  93 + $post('/region', params, function(result) {
  94 + // 如果返回结果不为空
  95 + if(result){
  96 + // 返回状态码为"SUCCESS" ,则添加成功;返回状态码为"ERROR" ,则添加失败
  97 + if(result.status=='SUCCESS') {
  98 + // 弹出添加成功提示消息
  99 + layer.msg('添加成功...');
  100 + } else if(result.status=='ERROR') {
  101 + // 弹出添加失败提示消息
  102 + layer.msg('添加失败...');
  103 + }
  104 + }
  105 + // 返回list.html页面
  106 + loadPage('list.html');
  107 + });
  108 + $("#submintBtn").removeClass("disabled");
  109 +
  110 + }
  111 + });
  112 +});
0 113 \ No newline at end of file
... ...
src/main/resources/static/pages/base/region/js/region_list.js 0 → 100644
  1 +/**
  2 + *
  3 + * @JSName : list.js(区域list.html页面js)
  4 + *
  5 + * @Author : bsth@lq
  6 + *
  7 + * @Description : TODO区域.html页面js)
  8 + *
  9 + *
  10 + */
  11 +
  12 +(function(){
  13 + // 关闭左侧栏
  14 + if (!$('body').hasClass('page-sidebar-closed')) {$('.menu-toggler.sidebar-toggler').click();}
  15 +
  16 + /** page : 当前页 initPag : */
  17 + var page = 0,initPag;
  18 + /** 表格数据分页加载 */
  19 + loadTableDate(null,true);
  20 + function getParams() {
  21 + // cells 集合返回表格中所有(列)单元格的一个数组
  22 + var cells = $('tr.filter')[0].cells;
  23 + // 搜索参数集合
  24 + var params = {};
  25 + // 搜索字段名称
  26 + var name;
  27 + // 遍历cells数组
  28 + $.each(cells, function(i, cell){
  29 + // 获取第i列的input或者select集合
  30 + var items = $('input,select', cell);
  31 + // 遍历items集合
  32 + for(var j = 0, item; item = items[j++];){
  33 + // 获取字段名称
  34 + name = $(item).attr('name');
  35 + if(name){
  36 + // 赋取相对应的值
  37 + params[name] = $(item).val();
  38 + }
  39 + }
  40 + });
  41 + if(params.parkName_like=='请选择...')
  42 + params.parkName_like = '';
  43 + else
  44 + params.parkName_like = params.parkName_like.split('_')[0];
  45 + return params;
  46 + }
  47 +
  48 + /**
  49 + * 表格数据分页加载事件
  50 + *
  51 + * ------@param : 查询参数
  52 + *
  53 + * ------@isPon : 是否重新分页
  54 + *
  55 + */
  56 + function loadTableDate(param,isPon){
  57 + // 搜索参数
  58 + var params = {};
  59 + if(param) {
  60 + params = param;
  61 + }
  62 + // 排序(按更新时间)
  63 + params['order'] = 'id';
  64 + // 记录当前页数
  65 + params['page'] = page;
  66 + // 弹出正在加载层
  67 + var i = layer.load(2);
  68 +
  69 + // 异步请求获取表格数据
  70 + $.get('/region',params,function(result){
  71 + // 添加序号
  72 + result.content.page = page;
  73 +
  74 + // 把数据填充到模版中
  75 + var tbodyHtml = template('region_list_table_temp',{list:result.content});
  76 + $('#datatable_region tbody').html(tbodyHtml);
  77 + // 是重新分页且返回数据长度大于0
  78 + if(isPon && result.content.length > 0){
  79 + // 重新分页
  80 + initPag = true;
  81 + // 分页栏
  82 + showPagination(result);
  83 + }
  84 + // 关闭弹出加载层
  85 + layer.close(i);
  86 + });
  87 +
  88 + }
  89 +
  90 + /** 分页栏组件 */
  91 + function showPagination(data){
  92 + // 分页组件
  93 + $('#pagination').jqPaginator({
  94 + // 总页数
  95 + totalPages: data.totalPages,
  96 + // 中间显示页数
  97 + visiblePages: 6,
  98 + // 当前页
  99 + currentPage: page + 1,
  100 + first: '<li class="first"><a href="javascript:void(0);">首页<\/a><\/li>',
  101 + prev: '<li class="prev"><a href="javascript:void(0);">上一页<\/a><\/li>',
  102 + next: '<li class="next"><a href="javascript:void(0);">下一页<\/a><\/li>',
  103 + last: '<li class="last"><a href="javascript:void(0);">尾页<\/a><\/li>',
  104 + page: '<li class="page"><a href="javascript:void(0);">{{page}}<\/a><\/li>',
  105 + onPageChange: function (num, type) {
  106 + if(initPag){
  107 + initPag = false;
  108 + return;
  109 + }
  110 + var pData = getParams();
  111 + page = num - 1;
  112 + loadTableDate(pData, false);
  113 + }
  114 + });
  115 + }
  116 +})();
0 117 \ No newline at end of file
... ...
src/main/resources/static/pages/base/region/list.html 0 → 100644
  1 +<div class="page-head">
  2 + <div class="page-title">
  3 + <h1>区域信息</h1>
  4 + </div>
  5 +</div>
  6 +
  7 +<ul class="page-breadcrumb breadcrumb">
  8 + <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
  9 + <li><span class="active">基础信息</span> <i class="fa fa-circle"></i></li>
  10 + <li><span class="active">区域信息</span></li>
  11 +</ul>
  12 +
  13 +<div class="row">
  14 + <div class="col-md-12">
  15 + <div class="portlet light porttlet-fit bordered">
  16 + <div class="portlet-title">
  17 + <div class="caption">
  18 + <i class="fa fa-info-circle font-dark"></i>
  19 + <span class="caption-subject font-dark sbold uppercase">区域信息</span>
  20 + </div>
  21 + <div class="actions">
  22 + <div class="btn-group btn-group-devided" data-toggle="buttons">
  23 + <a class="btn btn-circle blue" href="add.html" data-pjax><i class="fa fa-plus"></i> 添加区域</a>
  24 + </div>
  25 + </div>
  26 + </div>
  27 + <div class="portlet-body">
  28 + <div class="table-container" style="margin-top: 10px">
  29 + <table class="table table-striped table-bordered table-hover table-checkable" id="datatable_region">
  30 + <thead>
  31 + <tr role="row" class="heading">
  32 + <th width="3%">序号</th>
  33 + <th width="12%">区域</th>
  34 + <th width="6%">是否撤销</th>
  35 + <th width="10%">操作</th>
  36 + </tr>
  37 + <tr role="row" class="filter">
  38 + <td>#</td>
  39 + <td>#</td>
  40 + <td>#</td>
  41 + <td>
  42 + <button class="btn btn-sm green btn-outline filter-submit margin-bottom" >
  43 + <i class="fa fa-search"></i> 搜索
  44 + </button>
  45 +
  46 + <button class="btn btn-sm red btn-outline filter-cancel">
  47 + <i class="fa fa-times"></i> 重置
  48 + </button>
  49 + </td>
  50 + </tr>
  51 + </thead>
  52 + <tbody></tbody>
  53 + </table>
  54 + <div style="text-align: right;">
  55 + <ul id="pagination" class="pagination"></ul>
  56 + </div>
  57 + </div>
  58 + </div>
  59 + </div>
  60 + </div>
  61 +</div>
  62 +
  63 +<script type="text/html" id="region_list_table_temp">
  64 + {{each list as obj i }}
  65 + <tr>
  66 + <td style="vertical-align: middle;">
  67 + {{(list.page*10)+(i+1)}}
  68 + </td>
  69 + <td>
  70 + {{obj.name}}
  71 + </td>
  72 +
  73 + <td>
  74 + {{if obj.destroy == 1}}
  75 + <span style="font-weight: bold; color: red; padding: 5px; background-color: #FFE4E1; margin: 5px; font-size: 9px;border-radius: 4px;">撤销</span>
  76 + {{else if obj.destroy == 0}}
  77 + <span style="font-weight: bold; color: #07824e; padding: 5px; background-color: #FFE4E1; margin: 5px; font-size: 9px;border-radius: 4px;">运营</span>
  78 + {{/if}}
  79 + </td>
  80 + <td>
  81 + <a href="edit.html?no={{obj.id}}" class="btn default blue-stripe btn-sm" data-pjax> 修改 </a>
  82 + {{if obj.destroy==1}}
  83 + <a class="ct_base_line_delete_link" data-id="{{obj.id}}" data-name="{{obj.name}}"> 删除 </a>
  84 + {{/if}}
  85 + </td>
  86 + </tr>
  87 + {{/each}}
  88 + {{if list.length == 0}}
  89 + <tr>
  90 + <td colspan=10><h6 class="muted">没有找到相关数据</h6></td>
  91 + </tr>
  92 + {{/if}}
  93 +</script>
  94 +<script src="/pages/base/region/js/region_list.js"></script>
0 95 \ No newline at end of file
... ...
src/main/resources/static/pages/base/region_line_car/add.html 0 → 100644
  1 +<!-- 片段标题 START -->
  2 +<div class="page-head">
  3 + <div class="page-title">
  4 + <h1>添加公司</h1>
  5 + </div>
  6 +</div>
  7 +<!-- 片段标题 END -->
  8 +
  9 +<!-- 公司信息导航栏组件 START -->
  10 +<ul class="page-breadcrumb breadcrumb">
  11 + <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
  12 + <li><span class="active">基础信息</span> <i class="fa fa-circle"></i></li>
  13 + <li><a href="/pages/base/company/list.html" data-pjax>区域</a> <i class="fa fa-circle"></i></li>
  14 + <li><span class="active">添加区域</span></li>
  15 +</ul>
  16 +<!-- 公司信息导航栏组件 END -->
  17 +
  18 +<!-- 信息容器组件 START -->
  19 +<div class="portlet light bordered">
  20 +
  21 + <!-- 信息容器组件标题 START -->
  22 + <div class="portlet-title">
  23 + <div class="caption">
  24 + <i class="icon-equalizer font-red-sunglo"></i>
  25 + <span class="caption-subject font-red-sunglo bold uppercase">添加区域</span>
  26 + </div>
  27 + </div>
  28 + <!-- 信息容器组件标题 END -->
  29 +
  30 + <!-- 表单容器组件 START -->
  31 + <div class="portlet-body form">
  32 +
  33 + <!-- comp_add_form FORM START -->
  34 + <form action="/line" class="form-horizontal" id="region_line_car_add_form" >
  35 +
  36 + <!-- 表单验证错误提示组件 START -->
  37 + <div class="alert alert-danger display-hide">
  38 + <button class="close" data-close="alert"></button>
  39 + 您的输入有误,请检查下面的输入项
  40 + </div>
  41 + <!-- 表单验证错误提示组件 END -->
  42 +
  43 +
  44 + <!-- 表单字段内容 START -->
  45 + <div class="form-body">
  46 + <!-- 表单分组组件 form-group START -->
  47 + <div class="form-group">
  48 + <!-- 公司编码 (* 必填项) START -->
  49 + <div class="col-md-9">
  50 + <label class="control-label col-md-5">
  51 + <span class="required"> * </span>区域名称:
  52 + </label>
  53 + <div class="col-md-4">
  54 + <select name="region" class="form-control" style="width:100%" id="regionSelect"></select>
  55 + </div>
  56 + </div>
  57 + </div>
  58 + </div>
  59 +
  60 + <div class="form-body">
  61 + <div class="form-group">
  62 + <div class="col-md-9">
  63 + <label class="control-label col-md-5">
  64 + <span class="required"> * </span> 线路名称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :
  65 + </label>
  66 + <div class="col-md-4">
  67 + <select name="line" class="form-control" style="width:100%" id="lineSelect"></select>
  68 + </div>
  69 + </div>
  70 + </div>
  71 + </div>
  72 +
  73 + <div class="form-body">
  74 + <!-- 表单分组组件 form-group START -->
  75 + <div class="form-group">
  76 + <!-- 公司编码 (* 必填项) START -->
  77 + <div class="col-md-9">
  78 + <label class="control-label col-md-5">
  79 + <span class="required"> * </span>车辆:
  80 + </label>
  81 + <div class="col-md-4">
  82 + <select name="car" class="form-control" style="width:100%" id="carSelect"></select>
  83 + </div>
  84 + </div>
  85 + <!-- 公司编码 (* 必填项) END -->
  86 + </div>
  87 + <!-- 表单分组组件 form-group END -->
  88 +
  89 + </div>
  90 + <!-- 表单按钮组件 START -->
  91 + <div class="form-actions">
  92 + <div class="row">
  93 + <div class="col-md-offset-3 col-md-4">
  94 + <button type="submit" class="btn green" id="submintBtn"><i class="fa fa-check"></i> 提交</button>
  95 + <a type="button" class="btn default" href="list.html" data-pjax><i class="fa fa-times"></i> 取消</a>
  96 + </div>
  97 + </div>
  98 + </div>
  99 + <!-- 表单按钮组件 END -->
  100 + </form>
  101 + <!-- comp_add_form FORM END -->
  102 + </div>
  103 + <!-- 表单组件 END -->
  104 +</div>
  105 +<!-- 信息容器组件 END -->
  106 +<!-- 公司信息添加片段JS模块 -->
  107 +<script src="/pages/base/region_line_car/js/region_add.js"></script>
0 108 \ No newline at end of file
... ...
src/main/resources/static/pages/base/region_line_car/js/region_add.js 0 → 100644
  1 +/**
  2 + * @description TODO(区域信息添加片段JS模块)
  3 + *
  4 + * @author bsth@lq
  5 + *
  6 + * @date 二〇一六年十月十八日 13:31:58
  7 + *
  8 + */
  9 +
  10 +$(function(){
  11 + storage = window.localStorage;
  12 +
  13 + // 营运公司Map[key(businessCode)] = 名字
  14 + var companyMap = new Map();
  15 + // 分公司Map[key(upCode+_+businessCode)] = 名字
  16 + var branchMap = new Map();
  17 + initCompanySelect2(function(array) {
  18 + $.each(array, function() {
  19 + companyMap[this.businessCode] = this.businessName;
  20 + // companyMap.put(this.businessCode.toString(), this.businessName);
  21 + if(this.businessCode != null || this.businessCode !=''){
  22 + /** 查询出所属公司下的分公司名称和相应分公司代码 @param:<upCode_eq:公司代码> */
  23 + $get('/business/all', {upCode_eq: this.businessCode}, function(array){
  24 + // 遍历array
  25 + $.each(array, function(i,d){
  26 + branchMap[this.upCode+"_"+this.businessCode] = this.businessName;
  27 + // branchMap.put(this.upCode+"_"+this.businessCode, this.businessName);
  28 + });
  29 + });
  30 + }
  31 + });
  32 + // 公司下拉options属性值
  33 + var options = '<option value="">请选择...</option>';
  34 + // 遍历array
  35 + $.each(array, function(i,d){
  36 + options += '<option value="'+d.businessCode+'">'+d.businessName+'</option>';
  37 + });
  38 + // 初始化公司下拉框并监听值改变事件.
  39 + $('#companySelect').html(options).on('change', setBrancheCompanySelectOptions);
  40 + // 初始化分公司下拉框.
  41 + setBrancheCompanySelectOptions();
  42 + initLineSelect2(array);
  43 +
  44 + });
  45 +
  46 + function initCompanySelect2(cb) {
  47 + // get请求获取公司
  48 + $get('/business/all', {upCode_eq: '88'}, function(gs_d){
  49 + return cb && cb(gs_d);
  50 + });
  51 + }
  52 + function getComp(cb) {
  53 + $.get('/user/companyData',null,function(rs) {
  54 + return cb && cb(rs);
  55 + });
  56 + }
  57 + /** 填充分公司下拉框选择值 */
  58 + function setBrancheCompanySelectOptions(){
  59 + // 获取公司下拉框选择值
  60 + var businessCode = $('#companySelect').val();
  61 + // 分公司下拉框options属性值
  62 + var options = '<option value="">请选择...</option>';
  63 + // 如果公司选择为空则分公司为空 ; 否则查询出所属公司下的分公司名称和相应分公司代码
  64 + if(businessCode == null || businessCode ==''){
  65 + // 填充分公司下拉框options
  66 + $('#brancheCompanySelect').html(options);
  67 + } else {
  68 + /** 查询出所属公司下的分公司名称和相应分公司代码 @param:<upCode_eq:公司代码> */
  69 + $get('/business/all', {upCode_eq: businessCode}, function(array){
  70 + // 遍历array
  71 + $.each(array, function(i,d){
  72 + options += '<option value="'+d.businessCode+'">'+d.businessName+'</option>';
  73 + // 填充分公司下拉框options
  74 + $('#brancheCompanySelect').html(options);
  75 + });
  76 + });
  77 + }
  78 + };
  79 + function initLineSelect2(compD) {
  80 + getComp(function(rs) {
  81 + var params = {};
  82 + if(rs.length>0) {
  83 + var compA = new Array();
  84 + for(var c = 0 ; c<rs.length;c++) {
  85 + var comC = rs[c].companyCode;
  86 + var child = rs[c].children;
  87 + if(child.length>0) {
  88 + for(var d = 0 ;d< child.length;d++) {
  89 + compA.push(comC + '_' + child[d].code);
  90 + }
  91 + }else {
  92 + compA.push(comC);
  93 + }
  94 + }
  95 + params.cgsbm_in = compA.toString();
  96 + }
  97 + // 填充线路拉框选择值
  98 + $get('/line/all', params, function(array){
  99 + var len_ = array.length,paramsD = new Array();
  100 + if(len_>0) {
  101 + $.each(array, function(i, g){
  102 + if(g.name!='' || g.name != null) {
  103 + paramsD.push({'id':g.name + '_' + g.id + '_' + g.lineCode ,'text':g.name + gsdmTogsName(compD,g.company)});
  104 + }
  105 + });
  106 + initPinYinSelect2($('#lineSelect'),paramsD,function(selector) {
  107 + selector.select2("val", storage.xlName_AgursData);
  108 + });
  109 + }
  110 + });
  111 +
  112 +
  113 + // 填充车辆拉框选择值
  114 + $get('/cars/all', params, function(array){
  115 + var len_ = array.length,paramsD = new Array();
  116 + if(len_>0) {
  117 + $.each(array, function(i, g){
  118 + if(g.name!='' || g.name != null) {
  119 +
  120 + paramsD.push({'id':g.insideCode,'text':g.insideCode + gsdmTogsName(compD,g.company)});
  121 + }
  122 + });
  123 + initPinYinSelect2($('#carSelect'),paramsD,function(selector) {
  124 + });
  125 + }
  126 + });
  127 +
  128 +
  129 + // 填充车辆拉框选择值
  130 + $get('/region/all', null, function(array){
  131 + var len_ = array.length,paramsD = new Array();
  132 + if(len_>0) {
  133 + $.each(array, function(i, g){
  134 + paramsD.push({'id':g.id ,'text':g.name});
  135 + });
  136 +
  137 + initPinYinSelect2($('#regionSelect'),paramsD,function(selector) {});
  138 + }
  139 + });
  140 +
  141 +
  142 + });
  143 + };
  144 + function gsdmTogsName(gsD,code) {
  145 + var rsStr = '';
  146 + for(var s = 0 ; s < gsD.length; s++) {
  147 + if(gsD[s].businessCode == code) {
  148 + rsStr = rsStr + '(' + gsD[s].businessName.replace('公司','') + ')';
  149 + break;
  150 + }
  151 + }
  152 + return rsStr;
  153 + }
  154 +
  155 +
  156 + // 定义表单
  157 + var form = $('#region_line_car_add_form');
  158 + // 定义表单异常
  159 + var error = $('.alert-danger',form);
  160 + // 表单验证
  161 + form.validate({
  162 + submitHandler : function(f) {
  163 + // 隐藏错误提示
  164 + error.hide();
  165 + // 表单序列化
  166 + var params = form.serializeJSON();
  167 + debugger
  168 +
  169 + let data = {
  170 + region : params.region
  171 + };
  172 + if (params.line != null){
  173 + let line = params.line.split("_");
  174 + data['line'] =line[1];
  175 + data['lineName'] =line[0];
  176 + }
  177 + if (params.car != null){
  178 + data['clZbh'] =params.car;
  179 + }
  180 +
  181 +
  182 +
  183 +
  184 +
  185 + // 提交
  186 +
  187 + // 防止用户多次提交
  188 + $("#submintBtn").addClass("disabled");
  189 + // 添加数据
  190 + $post('/regionLineCar', data, function(result) {
  191 + // 如果返回结果不为空
  192 + if(result){
  193 + // 返回状态码为"SUCCESS" ,则添加成功;返回状态码为"ERROR" ,则添加失败
  194 + if(result.status=='SUCCESS') {
  195 + // 弹出添加成功提示消息
  196 + layer.msg('添加成功...');
  197 + } else if(result.status=='ERROR') {
  198 + // 弹出添加失败提示消息
  199 + layer.msg('添加失败...');
  200 + }
  201 + }
  202 + // 返回list.html页面
  203 + loadPage('list.html');
  204 + });
  205 + $("#submintBtn").removeClass("disabled");
  206 +
  207 + }
  208 + });
  209 +
  210 +});
  211 +
  212 +
... ...
src/main/resources/static/pages/base/region_line_car/js/region_list.js 0 → 100644
  1 +/**
  2 + *
  3 + * @JSName : list.js(区域list.html页面js)
  4 + *
  5 + * @Author : bsth@lq
  6 + *
  7 + * @Description : TODO区域.html页面js)
  8 + *
  9 + *
  10 + */
  11 +
  12 +(function(){
  13 + // 关闭左侧栏
  14 + if (!$('body').hasClass('page-sidebar-closed')) {$('.menu-toggler.sidebar-toggler').click();}
  15 +
  16 + /** page : 当前页 initPag : */
  17 + var page = 0,initPag;
  18 + /** 表格数据分页加载 */
  19 + loadTableDate(null,true);
  20 + function getParams() {
  21 + // cells 集合返回表格中所有(列)单元格的一个数组
  22 + var cells = $('tr.filter')[0].cells;
  23 + // 搜索参数集合
  24 + var params = {};
  25 + // 搜索字段名称
  26 + var name;
  27 + // 遍历cells数组
  28 + $.each(cells, function(i, cell){
  29 + // 获取第i列的input或者select集合
  30 + var items = $('input,select', cell);
  31 + // 遍历items集合
  32 + for(var j = 0, item; item = items[j++];){
  33 + // 获取字段名称
  34 + name = $(item).attr('name');
  35 + if(name){
  36 + // 赋取相对应的值
  37 + params[name] = $(item).val();
  38 + }
  39 + }
  40 + });
  41 + if(params.parkName_like=='请选择...')
  42 + params.parkName_like = '';
  43 + else
  44 + params.parkName_like = params.parkName_like.split('_')[0];
  45 + return params;
  46 + }
  47 +
  48 + /**
  49 + * 表格数据分页加载事件
  50 + *
  51 + * ------@param : 查询参数
  52 + *
  53 + * ------@isPon : 是否重新分页
  54 + *
  55 + */
  56 + function loadTableDate(param,isPon){
  57 + // 搜索参数
  58 + var params = {};
  59 + if(param) {
  60 + params = param;
  61 + }
  62 + // 排序(按更新时间)
  63 + params['order'] = 'id';
  64 + // 记录当前页数
  65 + params['page'] = page;
  66 + // 弹出正在加载层
  67 + var i = layer.load(2);
  68 +
  69 + // 异步请求获取表格数据
  70 + $.get('/regionLineCar',params,function(result){
  71 + // 添加序号
  72 + result.content.page = page;
  73 + $.each(result.content, function(i, obj) {
  74 + obj.createDate = moment(obj.createDate).format("YYYY-MM-DD");
  75 + });
  76 + // 把数据填充到模版中
  77 + var tbodyHtml = template('region_line_car_list_table_temp',{list:result.content});
  78 +
  79 +
  80 + $('#datatable_region tbody').html(tbodyHtml);
  81 + // 是重新分页且返回数据长度大于0
  82 + if(isPon && result.content.length > 0){
  83 + // 重新分页
  84 + initPag = true;
  85 + // 分页栏
  86 + showPagination(result);
  87 + }
  88 + // 关闭弹出加载层
  89 + layer.close(i);
  90 + });
  91 +
  92 + }
  93 +
  94 + /** 分页栏组件 */
  95 + function showPagination(data){
  96 + // 分页组件
  97 + $('#pagination').jqPaginator({
  98 + // 总页数
  99 + totalPages: data.totalPages,
  100 + // 中间显示页数
  101 + visiblePages: 6,
  102 + // 当前页
  103 + currentPage: page + 1,
  104 + first: '<li class="first"><a href="javascript:void(0);">首页<\/a><\/li>',
  105 + prev: '<li class="prev"><a href="javascript:void(0);">上一页<\/a><\/li>',
  106 + next: '<li class="next"><a href="javascript:void(0);">下一页<\/a><\/li>',
  107 + last: '<li class="last"><a href="javascript:void(0);">尾页<\/a><\/li>',
  108 + page: '<li class="page"><a href="javascript:void(0);">{{page}}<\/a><\/li>',
  109 + onPageChange: function (num, type) {
  110 + if(initPag){
  111 + initPag = false;
  112 + return;
  113 + }
  114 + var pData = getParams();
  115 + page = num - 1;
  116 + loadTableDate(pData, false);
  117 + }
  118 + });
  119 + }
  120 +})();
0 121 \ No newline at end of file
... ...
src/main/resources/static/pages/base/region_line_car/list.html 0 → 100644
  1 +<div class="page-head">
  2 + <div class="page-title">
  3 + <h1>区域信息</h1>
  4 + </div>
  5 +</div>
  6 +
  7 +<ul class="page-breadcrumb breadcrumb">
  8 + <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
  9 + <li><span class="active">基础信息</span> <i class="fa fa-circle"></i></li>
  10 + <li><span class="active">区域信息</span></li>
  11 +</ul>
  12 +
  13 +<div class="row">
  14 + <div class="col-md-12">
  15 + <div class="portlet light porttlet-fit bordered">
  16 + <div class="portlet-title">
  17 + <div class="caption">
  18 + <i class="fa fa-info-circle font-dark"></i>
  19 + <span class="caption-subject font-dark sbold uppercase">区域信息</span>
  20 + </div>
  21 + <div class="actions">
  22 + <div class="btn-group btn-group-devided" data-toggle="buttons">
  23 + <a class="btn btn-circle blue" href="add.html" data-pjax><i class="fa fa-plus"></i> 添加线路车辆</a>
  24 + </div>
  25 + </div>
  26 + </div>
  27 + <div class="portlet-body">
  28 + <div class="table-container" style="margin-top: 10px">
  29 + <table class="table table-striped table-bordered table-hover table-checkable" id="datatable_region">
  30 + <thead>
  31 + <tr role="row" class="heading">
  32 + <th width="3%">序号</th>
  33 + <th width="12%">区域</th>
  34 + <th width="6%">线路</th>
  35 + <th width="10%">车牌号</th>
  36 + <th width="10%">日期</th>
  37 + <th width="10%">操作</th>
  38 + </tr>
  39 + <tr role="row" class="filter">
  40 + <td>#</td>
  41 + <td>#</td>
  42 + <td>#</td>
  43 + <td>#</td>
  44 + <td>#</td>
  45 + <td>
  46 + <button class="btn btn-sm green btn-outline filter-submit margin-bottom" >
  47 + <i class="fa fa-search"></i> 搜索
  48 + </button>
  49 +
  50 + <button class="btn btn-sm red btn-outline filter-cancel">
  51 + <i class="fa fa-times"></i> 重置
  52 + </button>
  53 + </td>
  54 + </tr>
  55 + </thead>
  56 + <tbody></tbody>
  57 + </table>
  58 + <div style="text-align: right;">
  59 + <ul id="pagination" class="pagination"></ul>
  60 + </div>
  61 + </div>
  62 + </div>
  63 + </div>
  64 + </div>
  65 +</div>
  66 +
  67 +<script type="text/html" id="region_line_car_list_table_temp">
  68 + {{each list as obj i }}
  69 + <tr>
  70 + <td style="vertical-align: middle;">
  71 + {{(list.page*10)+(i+1)}}
  72 + </td>
  73 + <td>
  74 + {{obj.region.name}}
  75 + </td>
  76 + <td>
  77 + {{obj.lineName}}
  78 + </td>
  79 +
  80 + <td>
  81 + {{obj.clZbh}}
  82 + </td>
  83 + <td>
  84 + {{obj.createDate}}
  85 + </td>
  86 +
  87 + <td>
  88 + <a href="edit.html?no={{obj.id}}" class="btn default blue-stripe btn-sm" data-pjax> 修改 </a>
  89 + {{if obj.destroy==1}}
  90 + <a class="ct_base_line_delete_link" data-id="{{obj.id}}" data-name="{{obj.name}}"> 删除 </a>
  91 + {{/if}}
  92 + </td>
  93 + </tr>
  94 + {{/each}}
  95 + {{if list.length == 0}}
  96 + <tr>
  97 + <td colspan=10><h6 class="muted">没有找到相关数据</h6></td>
  98 + </tr>
  99 + {{/if}}
  100 +</script>
  101 +<script src="/pages/base/region_line_car/js/region_list.js"></script>
0 102 \ No newline at end of file
... ...
src/main/resources/static/pages/base/stationroute/js/routes-operation.js
... ... @@ -489,7 +489,7 @@ var RoutesOperation = (function () {
489 489 '<span class="help-block" >到站时间:' + stationRoute.toTime + '&nbsp;分钟</span>' +
490 490 '<span class="help-block" >到站距离:' + stationRoute.distances + '&nbsp;公里</span>' +
491 491 '<span class="help-block" >缓冲区形状:' + (shapes == 'r' ? '圆形' : '多边形') + '</span>' +
492   - (shapes=="r" ? ("<span class='help-block' >半径&nbsp&nbsp:" + stationRoute.radius + "</span>") : " ")+
  492 + (shapes=="r" ? ("<span class='help-block' >半径&nbsp&nbsp:" + stationRoute.radius + "&nbsp;米</span>") : " ")+
493 493 '<span class="help-block" >版本号&nbsp&nbsp:' + stationRoute.versions + '</span>';
494 494  
495 495 if(status > 0){
... ...
src/main/resources/static/pages/base/timesmodel/add.html
... ... @@ -38,7 +38,7 @@
38 38  
39 39 <div class="actions">
40 40 <div class="btn-group btn-group-devided" data-toggle="buttons">
41   - <a class="btn btn-circle blue openHaveSkb" href="javascript:;" data-pjax><i class="fa fa-check"></i> 打开现有时刻表明细</a>
  41 + <a class="btn btn-circle blue openHaveSkb" href="javascript:;" data-pjax><i class="fa fa-check"></i> 排班诊断</a>
42 42 </div>
43 43 <div class="btn-group btn-group-devided" data-toggle="buttons">
44 44 <a class="btn btn-circle default" href="/pages/base/timesmodel/index.html" style="float: right;padding: 4px 23px;" data-pjax=""><i class="fa fa-reply"></i> 退出</a>
... ...
src/main/resources/static/pages/base/timesmodel/gantt.html
... ... @@ -50,7 +50,7 @@
50 50 <!-- actions 组件START -->
51 51 <div class="actions">
52 52 <div class="btn-group btn-group-devided countbtn" data-toggle="buttons">
53   - <a class="btn btn-circle blue countAdd" href="javascript:;" data-pjax><i class="fa fa-database"></i> 统计数据</a>
  53 + <a class="btn btn-circle blue countAdd" href="javascript:;" data-pjax><i class="fa fa-database"></i> 排班统计</a>
54 54 </div>
55 55 <div class="btn-group btn-group-devided parambtn" data-toggle="buttons">
56 56 <a class="btn btn-circle blue paramAdd" href="javascript:;" data-pjax><i class="fa fa-list-ol" aria-hidden="true"></i> 重新生成</a>
... ...
src/main/resources/static/pages/base/timesmodel/js/add-form-wizard.js
1   -/**
2   - * @description : (TODO) 表单的导航向导、验证、提交
3   - */
4   -
5   -var SKBFormWizard = function() {
6   -
7   - var bxrcGs = [ {'type':'六工一休','hoursV':6.66, 'minueV':'6:40'},
8   - {'type':'五工一休','hoursV':6.85, 'minueV':'6:51'},
9   - {'type':'四工一休','hoursV':7.14, 'minueV':'7:08'},
10   - {'type':'三工一休','hoursV':7.61, 'minueV':'7:37'},
11   - {'type':'二工一休','hoursV':8.57, 'minueV':'8:34'},
12   - {'type':'一工一休','hoursV':11.42, 'minueV':'11:25'},
13   - {'type':'五工二休','hoursV':7.99, 'minueV':'8:00'},
14   - {'type':'无工休', 'hoursV':5.43, 'minueV':'5:43'}];
15   -
16   - /**
17   - * @description : (TODO) 获取停站时间.
18   - *
19   - * @param [o--当前班次对象;d--班次数组对象;sj--当前班次时间]
20   - *
21   - * @return 返回相邻班次的停站时间.
22   - * */
23   - function gettzsj(o,d,sj) {
24   - // 定义停站时间.
25   - var tzsj = 0;
26   - // 变量班次数组对象.
27   - for(var i = 0 ;i<d.length;i++) {
28   - // 判断是否为同一个路牌.
29   - if(o.lp.lpNo == d[i].lp.lpNo && o.lp.id == d[i].lp.id) {
30   - // 判断是否为当前班次的下一个班次.
31   - if(d[i].fcno - o.fcno ==1){
32   - // 计算停站时间.
33   - tzsj = (strToTime(d[i].fcsj) -strToTime(sj)) / 60000;
34   - continue;
35   - }
36   - }
37   - }
38   - // 返回停站时间.
39   - return tzsj;
40   - }
41   -
42   - /**
43   - * @description : (TODO) 是否切换线路值转换.
44   - *
45   - * @param [d--是否切换线路原始值].
46   - *
47   - * @return 返回一个是否切换线路值的转换.
48   - * */
49   - function isSwitchXlTodm(d) {
50   - var rstr = 0;
51   - if(d)
52   - rstr = 1;
53   - return rstr;
54   - }
55   -
56   - /**
57   - * @description : (TODO) 是否分班值转换.
58   - *
59   - * @param [d--是否分班原始值].
60   - *
61   - * @return 返回一个是否分班值的转换.
62   - * */
63   - function isfbTodm(b) {
64   - var rstr = 0;
65   - if(b)
66   - rstr = 1;
67   - return rstr;
68   - }
69   -
70   - /**
71   - * @description : (TODO) 获取某个班次的到达时间字符串.
72   - *
73   - * @param [tStr--发车时间格式字符串;bcsj--班次历时].
74   - *
75   - * @return 返回一个某个班次的到达时间字符串.
76   - * */
77   - function getddsj(tStr,bcsj) {
78   - // 定义当前时间对象.
79   - var date = new Date();
80   - // 分割字符串.
81   - var _str = tStr.split(':');
82   - // 设值小时.
83   - date.setHours(parseInt(_str[0]));
84   - // 设值分钟.
85   - date.setMinutes(parseInt(_str[1]) + bcsj);
86   - // 返回到达时间字符串.
87   - return getTimeStr(date);
88   - }
89   -
90   - /**
91   - * @description : (TODO) 时间点格式字符串转时间对象.
92   - *
93   - * @param [t--时间点格式字符串]
94   - *
95   - * @return 返回一个时间点格式字符串转时间对象.
96   - * */
97   - var strToTime = function(t) {
98   - // 定义当前时间对象.
99   - var d = new Date;
100   - // 判断是否为空.
101   - if(t) {
102   - // 分割字符串.
103   - var _str = t.split(':');
104   - // 设值小时.
105   - d.setHours(parseInt(_str[0]));
106   - // 设值分钟.
107   - d.setMinutes(parseInt(_str[1]));
108   - }
109   - // 返回一个时间点格式字符串转时间对象.
110   - return d;
111   - }
112   -
113   - /**
114   - * @description : (TODO) 时间对象转时间点格式字符串.
115   - *
116   - * @param [t--时间对象]
117   - *
118   - * @return 返回一个时间对象转时间点格式字符串.
119   - * */
120   - function getTimeStr(t) {
121   - // 定义返回值.
122   - var _str = '';
123   - // 判断是否为空.
124   - if(t) {
125   - // 重新赋值.
126   - _str = ((t.getHours()<10? '0' + t.getHours() : t.getHours()) == '00' ? '24' :(t.getHours()<10? '0' + t.getHours() : t.getHours()))
127   - +':'
128   - +(t.getMinutes()<10? '0' + t.getMinutes() : t.getMinutes());
129   - }
130   - // 返回时间对象转时间点格式字符串.
131   - return _str;
132   - }
133   -
134   - /**
135   - * @description : (TODO) 方向值转换.
136   - *
137   - * @param [d--方向原始值].
138   - *
139   - * @return 返回一个方向值转换.
140   - * */
141   - function dmToDh(t) {
142   - // 定义返回值.
143   - var reslStr = '';
144   - // 上行.
145   - if(t=='0')
146   - reslStr = 'relationshipGraph-up';
147   - // 下行.
148   - else if(t=='1')
149   - reslStr = 'relationshipGraph-down';
150   - // 返回一个方向值转换.
151   - return reslStr;
152   - }
153   -
154   - /**
155   - * @description : (TODO) 获取线路标准详情.
156   - *
157   - * @param [lineId--线路ID;cb--回调函数].
158   - *
159   - * @return 返回线路标准详情.
160   - *
161   - * @status OK.
162   - * */
163   - var getLineInfo = function(lineId,cb) {
164   - // 1、get异步请求.根据线路ID查询详情.
165   - $get('/lineInformation',{'line.id_eq':lineId},function(result) {
166   - // 2、返回线路标准详情.
167   - return cb && cb(result);
168   - });
169   - }
170   -
171   - /**
172   - * @description : (TODO) 获取所有的停车场详情.
173   - *
174   - * @param [cb--回调函数].
175   - *
176   - * @return 返回所有的停车场详情.
177   - *
178   - * @status OK.
179   - * */
180   - var gettccInfo = function (cb) {
181   - // 1、get异步请求.获取所有的停车场详情.
182   - $get('/carpark/all',null, function(cd){
183   - // 2、返回所有的停车场详情.
184   - return cb && cb(cd);
185   - });
186   - }
187   -
188   - /**
189   - * @description : (TODO) 时间格式字符串转时间对象.
190   - *
191   - * @param [time--时间格式字符串].
192   - *
193   - * @return 返回一个时间对象.
194   - *
195   - * @status OK.
196   - * */
197   - var getDateTime = function(time) {
198   - // 1、定义一个时间对象.
199   - var dateTime = new Date();
200   - // 2、判断参数是否为空或者为undefined.
201   - if(time !=null && time !='' && typeof(time) !='undefined') {
202   - // 3、给时间对象重新赋值.
203   - dateTime = new Date(Date.parse(time.replace(/-/g, "/")));
204   - }
205   - // 4、返回时间对象.
206   - return dateTime;
207   - }
208   -
209   - /**
210   - * @description : (TODO) 客流方式填充表单时.根据表单参数封装时间段内的车辆数.
211   - *
212   - * @param : [map--表单参数]
213   - *
214   - * @returns 返回一个根据表单参数封装时间段内的车辆数数组.
215   - *
216   - * @status OK.
217   - * */
218   - function getsjdArr(map) {
219   - // 1、获取营运的开始与结束时间点.
220   - var seMap = getStartAndEndDate(map);
221   - // 2、返回一个根据表单参数封装时间段内的车辆数数组.
222   - return [{'num':0,'time':seMap.s + '-' + map.earlyStartTime},// 早高峰之前时间段内的车辆.
223   - {'num':0,'time':map.earlyStartTime + '-' + map.earlyEndTime}, // 早高峰时间段内的车辆.
224   - {'num':0,'time':map.earlyEndTime + '-' + map.lateStartTime},// 高峰之间时间段内的车辆
225   - {'num':0,'time':map.lateStartTime + '-' + map.lateEndTime},// 晚高峰时间段内的车辆.
226   - {'num':0,'time':map.lateEndTime + '-' + seMap.e}];// 晚高峰之后时间段内的车辆.
227   - }
228   -
229   - /**
230   - * @description : (TODO) 获取最小时间(字符串).
231   - *
232   - * @param [d1--时间1;d2--时间2].
233   - *
234   - * @return 返回一个最小时间(字符串).
235   - *
236   - * @status OK.
237   - * */
238   - function getMinDate(d1,d2) {
239   - // 1、定义返回字符串.
240   - var str = '';
241   - // 2、判断时间大小.
242   - if(strToTime(d1)>strToTime(d2))
243   - str = d2;
244   - else
245   - str = d1;
246   - // 3、返回最小时间(字符串).
247   - return str;
248   - }
249   -
250   - /**
251   - * @description : (TODO) 获取最大时间(字符串).
252   - *
253   - * @param [d1--时间1;d2--时间2].
254   - *
255   - * @return 返回一个最大时间(字符串).
256   - *
257   - * @status OK.
258   - * */
259   - function getMaxDate(d1,d2) {
260   - // 1、定义返回时间字符串.
261   - var str = '';
262   - // 2、判断时间大小.
263   - if(strToTime(d1)>strToTime(d2))
264   - str = d1;
265   - else
266   - str = d2;
267   - // 3、返回一个最大时间(字符串).
268   - return str;
269   - }
270   -
271   - /**
272   - * @description : (TODO) 判断是否这时间段内.
273   - *
274   - * @param [st--开始时间;ed--结束时间;sj--当前判断的时间]
275   - *
276   - * @return 返回一个布尔值.
277   - *
278   - * @status OK.
279   - * */
280   - function issjd(st,ed,sj) {
281   - // 1、定义返回值.
282   - var tag = false;
283   - // 2、判断时间大小.
284   - if(sj<=ed && sj>=st)
285   - // 3、重新赋值返回值.
286   - tag = true;
287   - // 4、返回判断结果布尔值.
288   - return tag;
289   - }
290   -
291   - /**
292   - * @description : (TODO) 获取客流数据.
293   - *
294   - * @params [url--请求地址;data--请求参数;cb--回调函数]
295   - *
296   - * */
297   - function getJSONP(url, data, cb) {
298   - $.ajax({
299   - url : url,
300   - type : "GET",
301   - dataType : 'jsonp',
302   - jsonp : 'jsoncallback',
303   - data : data,
304   - success : cb
305   - });
306   - }
307   -
308   - /**
309   - * 判断某个时间是否在指定时间段内
310   - * @param start 开始时间
311   - * @param end 结束时间
312   - * @param t 指定时间
313   - * @param isWrapTime 是否重新包装时间
314   - */
315   - function issjd_extend(start, end, t, flag) {
316   - var m_start = moment(start);
317   - var m_end = moment(end);
318   - var m_t = moment(t);
319   -
320   - if (flag) {
321   - // 重新构造时间,保留时间的小时,分钟,秒,忽略年月日
322   - var date_wrap_prefix = "2000-01-01 "; // 包装日期的前缀
323   - var date_wrap_format = "YYYY-MM-DD HH:mm:ss"; // 日期格式
324   -
325   - var m_start_wrap = moment(date_wrap_prefix + m_start.format("HH:mm:ss"), date_wrap_format);
326   - var m_end_wrap = moment(date_wrap_prefix + m_end.format("HH:mm:ss"), date_wrap_format);
327   - var m_t_wrap = moment(date_wrap_prefix + m_t.format("HH:mm:ss"), date_wrap_format);
328   -
329   - return m_t_wrap.isAfter(m_start_wrap) && m_t_wrap.isBefore(m_end_wrap);
330   - } else {
331   - return issjd(start, end, t);
332   - // return m_t.isAfter(m_start) && m_t.isBefore(m_end);
333   - }
334   -
335   - }
336   -
337   - /**
338   - * @description : (TODO) 根据获取参数方式来获取表单参数详情html模版页.
339   - *
340   - * @param [n--获取参数方式;map--表单参数;lineId--线路ID;krl--客容量;cb--回调函数]
341   - *
342   - * @return 返回表单参数详情html模版页.
343   - *
344   - * @status OK.
345   - * */
346   - var getHtmlTemp = function(n,map,lineId,krl,cb) {
347   - // 1、定义模版名称.
348   - var tempName = '';
349   - if(n==0)
350   - tempName = 'carnum_temp';
351   - else if(n==1)
352   - tempName = 'bctype_temp';
353   - else if (n==2 || n==3)
354   - tempName = 'fcjx_temp';
355   - // 2、获参数详情模版html内容.
356   - $.get('/pages/base/timesmodel/tepms/'+ tempName + '.html', function(html){
357   - $('#tab3').append(html);
358   - map.lb = 15;// 定义例保时间.
359   - map.workeLunch = 20;// 定义午餐时间.
360   - map.workeDinner = 20;// 定义晚餐时间.
361   - //map.mixstopTime = 8;// 定义最小停站间隙
362   - //map.maxstopTime = 20;// 定义最大停站间隙.
363   - //map.upStopTime = 10;// 定义上行停站时间.
364   - //map.downStopTime = 10;// 定义下行停站时间.
365   - if(n==0) {
366   - // 定义一个周转时间.
367   - var zzsj = parseInt(map.upTravelTime) + 10*2 + parseInt(map.downTravelTime);
368   - // 定义时间对象.
369   - var date = new Date();
370   - // var rq = date.getFullYear() + '-' + (date.getMonth()+1) + '-' + (date.getDate()-7);
371   -
372   - // 减去7天
373   - var m_date = moment(date);
374   - m_date.add(-7, "d");
375   - var rq = m_date.format("YYYY-MM-DD");
376   -
377   - console.log(date);
378   - console.log(date.getDate());
379   - console.log(rq);
380   - // 定义开始时间字符串.
381   - var startDateTime = rq + ' ' + '00:00';
382   - // 定义结束时间自妇产.
383   - var endDateTime = rq + ' ' + '23:59';
384   - // 定义请求参数集合.
385   - var params = {'xlid':lineId,'startDateTime':startDateTime,'endDateTime':endDateTime,'zzsj':zzsj};
386   - /**
387   - * getJSONP请求获取客流数据.
388   - *
389   - * 返回的是一个每次以半小时为间隔作为开始时间点, 在加上周转时间作为结束时间点的 时段段内的客流最大通过量.
390   - * */
391   - getJSONP(
392   - // "http://139.196.13.237:8080/bsth-busfareflow-gj/Crlcxb/selectsjbctgl.do",
393   - "http://180.166.5.82:9816/bsth-busfareflow-gj/Crlcxb/selectsjbctgl.do",
394   - params,function(json){
395   - console.log(json);
396   -
397   - // 定义时段集合,可容量.
398   - var sjdArr = getsjdArr(map),krlInt = parseInt(krl);
399   - console.log("krlInt=" + krlInt);
400   - // 遍历时段集合.
401   - for(var s = 0 ; s<sjdArr.length;s++) {
402   - // 分割时间段.
403   - var strA = sjdArr[s].time.split('-');
404   - // 定义开始时间与结束时间,车辆数.
405   - var st = getDateTime(rq + ' ' + strA[0]),et = getDateTime(rq + ' ' + strA[1]),num = 0;
406   -
407   - console.log("s=" + s + " st=" + st + " et=" + et);
408   -
409   - // 遍历时间段内的客流数据集合.
410   - for(var j = 0 ; j < json.length; j ++) {
411   - // 定义当前客流班次产生的时间.
412   - var dqsj = getDateTime(json[j].sj);
413   - // 判断是否这时间段内.
414   - if(issjd_extend(st, et, dqsj, true)) {
415   - // 车辆数相加.
416   - sjdArr[s].num += Math.ceil(parseInt(json[j].tgl) / krlInt);
417   - // num = num + Math.ceil(parseInt(json[j].tgl)/krlInt);
418   - }
419   - }
420   - // sjdArr[s].num = num;
421   - }
422   -
423   - // 注意:如果为0,设置成 10 17默认值
424   - map.zgfbeforepcs = sjdArr[0].num == 0 ? 10 : sjdArr[0].num;// 早高峰前配车数
425   - map.zgfpcs = sjdArr[2].num == 0 ? 17 : sjdArr[2].num;// 早高峰配车数
426   - map.gfzjpcs = sjdArr[4].num == 0 ? 10 : sjdArr[4].num;// 高峰之间配车数
427   - map.wgfpcs = sjdArr[2].num == 0 ? 17 : sjdArr[2].num ;// 晚高峰配车数
428   - map.wgfafterpcs = (sjdArr[1].num + sjdArr[3].num) == 0 ? 10 : sjdArr[1].num + sjdArr[3].num;// 晚高峰后配车数
429   -
430   - // 注意:高峰 5 低谷 20 其他 10
431   - map.upStopTime = 10;
432   - map.downStopTime = 10;
433   - map.mixstopTime = 5;
434   - map.maxstopTime = 20;
435   -
436   - //alert("dddd");
437   -
438   - // 返回参数详情模版.
439   - return cb && cb ({'forminput':template(tempName,{map:map}),'datadisplay': template(tempName +'config',{map:null})});
440   - });
441   - }else if(n==1) {
442   - // 更具站点路由版本获取起点终点站
443   - var iversion = $('#lineVersionSelect').val();
444   - $get('/stationroute/all',{'line.id_eq':lineId,'destroy_eq':0, 'versions_eq': iversion},function(result) {
445   - $.each(result, function(i, d) {
446   - if (d.stationMark == 'B' && d.directions == 0) {
447   - // alert(d.stationName);
448   - map.line.startStationName = d.stationName;
449   - } else if (d.stationMark == 'E' && d.directions == 0) {
450   - // alert(d.stationName);
451   - map.line.endStationName = d.stationName;
452   - }
453   - });
454   -
455   - // return cb && cb({
456   - // 'forminput': template(tempName, {map: map}),
457   - // 'datadisplay': template(tempName + '_config', {map: null})
458   - // });
459   - // 返回参数详情模版.
460   - return cb && cb ({'forminput':template(tempName,{map:map}),'datadisplay': template(tempName +'config',{map:null})});
461   - });
462   - }else if (n==2 || n==3) {
463   - // 更具站点路由版本获取起点终点站
464   - var iversion = $('#lineVersionSelect').val();
465   - $get('/stationroute/all',{'line.id_eq':lineId,'destroy_eq':0, 'versions_eq': iversion},function(result) {
466   - $.each(result, function(i, d) {
467   - if (d.stationMark == 'B' && d.directions == 0) {
468   - // alert(d.stationName);
469   - map.line.startStationName = d.stationName;
470   - } else if (d.stationMark == 'E' && d.directions == 0) {
471   - // alert(d.stationName);
472   - map.line.endStationName = d.stationName;
473   - }
474   - });
475   -
476   -
477   - return cb && cb({
478   - 'forminput': template(tempName, {map: map}),
479   - 'datadisplay': template(tempName + '_config', {map: null})
480   - });
481   - });
482   -
483   - }
484   - });
485   - };
486   -
487   - /**
488   - * @description (TODO) 格式化成渲染图形数据格式.
489   - *
490   - * @param [d--查询出的时刻表明细数据.]
491   - *
492   - * @return 返回渲染图形的数据格式.
493   - * */
494   - function formatData(d) {
495   - // 定义返回值.
496   - var resultD = new Array(),lpA = new Array(),rsLpA = new Array();
497   - for(var i =0;i<d.length;i++) {
498   - var obj = {};
499   - var ddsj = getddsj(d[i].fcsj,d[i].bcsj);// 到达时间.
500   - obj.bcType = d[i].bcType;// 班次类型
501   - obj.bcs = d[i].bcs;// 班次数
502   - obj.bcsj = d[i].bcsj;// 班次时间
503   - obj.fcno = d[i].fcno;// 发车序号
504   - obj.fcsj = d[i].fcsj;// 发车时间
505   - obj.ARRIVALTIME = ddsj// 到达时间
506   - obj.jhlc = d[i].jhlc;// 计划里程
507   - obj.lp = d[i].lp==null ? null : d[i].lp.id;// 路牌id
508   - obj.lpType = d[i].lp==null ? null : d[i].lp.lpType;// 路牌类型
509   - // obj.parent = d[i].lp.lpName;// 路牌名称
510   - // obj.parent = parseInt(d[i].lp.lpNo);// 路牌名称
511   - obj.lpName = d[i].lp.lpName;
512   - obj.lpNo = d[i].lp.lpNo;// 路牌编码
513   - obj.tcc = d[i].tcc==null ? null : d[i].tcc.id;// 停车场id
514   - obj.ttinfo = d[i].ttinfo==null ? null : d[i].ttinfo.id;// 时刻表id
515   - obj.xl = d[i].xl==null ? null : d[i].xl.id;// 线路id
516   - obj.xlDir = dmToDh(d[i].xlDir);// 方向【0:relationshipGraph-up 上行;1:relationshipGraph-down 下行】
517   - obj.qdz = d[i].qdz==null ? null : d[i].qdz.id;// 起点站id
518   - obj.zdz = d[i].zdz==null ? null : d[i].zdz.id;//终点站id
519   - obj.isfb = isfbTodm(d[i].isFB);// 是否分班【0:false;1:true】
520   - obj.isSwitchXl = isSwitchXlTodm(d[i].isSwitchXl);// 是否切换线路【0:false;1:true】
521   - obj.STOPTIME = gettzsj(d[i],d,ddsj);// 停站时间.
522   - resultD.push(obj);
523   - if(lpA.indexOf(obj.lpNo)<0) {
524   - lpA.push(obj.lpNo);
525   - rsLpA.push({'lp':obj.lp,'lpNo':obj.lpNo,'lpName':obj.lpName,'lpType':obj.lpType});
526   - }
527   - }
528   - // 返回渲染图形的数据格式.
529   - return {'rsD':resultD,'rsLp':rsLpA};
530   - }
531   -
532   - /**
533   - * @description : (TODO) 获取开始与结束时间字符串.
534   - *
535   - * @param [map--表单配置参数]
536   - *
537   - * @return 返回开始与结束时间字符串集合.
538   - * */
539   - function getStartAndEndDate(map) {
540   - return {'s':getMinDate(map.line.startStationFirstTime,map.line.endStationFirstTime),
541   - 'e':getMaxDate(map.line.startStationEndTime,map.line.endStationEndTime)}
542   - }
543   -
544   - return {
545   - // 启动初始化向导导航
546   - init : function() {
547   - if(!jQuery().bootstrapWizard) {return;}
548   - var form = $('#submit_argus_form');// 表单
549   - var error = $('.alert-danger',form);// 表单异常
550   - var success = $('.alert-success',form);// 表单成功
551   - /** 表单验证 */
552   - form.validate({
553   - errorElement : 'span',// 错误提示元素span对象
554   - errorClass : 'help-block help-block-error',// 错误提示元素class名称
555   - focusInvalid : true,// 验证错误获取焦点
556   - /** 需要验证的表单元素 */
557   - rules : {
558   - 'skbName' : {required : true,},// 时刻表名称,必填项.
559   - 'lineName' : {required : true,},// 线路名称,必填项.
560   - 'lineVersion': {required: true}, // 站点路由版本,必填项,
561   - // 'krl' : {isBaseRes : true,number : true,digits : true,},// 客容量,当选择为客流方式时必填项、整数
562   - 'startStationFirstTime' : {required : true}, // 起始站首班时间,必填项.
563   - 'startStationEndTime' : {required : true}, // 起始站末班时间 ,必填项.
564   - 'endStationFirstTime' : {required : true}, // 终点站首班时间 ,必填项.
565   - 'endStationFirstTime' : {required : true}, // 终点站末班时间 ,必填项.
566   - 'endStationEndTime' : {required : true}, // 终点站末班时间,必填项.
567   - 'earlyStartTime' : {required : true},// 早高峰开始时间,必填项 .
568   - 'earlyEndTime' : {required : true},// 早高峰结束时间,必填项 .
569   - 'lateStartTime' : {required : true},// 晚高峰开始时间,必填项 .
570   - 'lateEndTime' : {required : true},// 晚高峰结束时间,必填项.
571   - 'zgfbeforepcs' : {required : true,number : true,digits : true, isNum0:true},// 早高峰前车辆数,必填项、必须为整数.
572   - 'zgfpcs' : {required : true,number : true,digits : true, isNum0:true, isMax: true},// 早高峰车辆数,必填项、必须为整数.
573   - 'wgfafterpcs' : {required : true,number : true,digits : true, isNum0:true},// 晚高峰后车俩数,必填项、必须为整数.
574   - 'wgfpcs' : {required : true,number : true,digits : true, isNum0:true, isMax: true},// 晚高峰车俩数,必填项、必须为整数.
575   - 'gfzjpcs' : {required : true,number : true,digits : true, isNum0:true},// 高峰中间车辆数,必填项、必须为整数.
576   - 'upTravelTime' : {required : true,number : true},// 上行行驶时间,必填项、必须为整数.
577   - 'downTravelTime' : {required : true,number : true},// 下行行驶时间,必填项、必须为整数.
578   - 'upMileage' : {required : true,number : true},// 上行行驶里程,必填项、必须为整数.
579   - 'downMileage' : {required : true,number : true},// 下行行驶里程,必填项、必须为整数.
580   - 'upStopTime' : {required : true,number : true,digits : true},// 上行停站间隙,必填项、必须为整数.
581   - 'downStopTime' : {required : true,number : true,digits : true},// 下行停站间隙,必填项、必须为整数.
582   - 'maxstopTime' : {required : true,number : true,digits : true},// 最大停站间隙,必填项、必须为整数.
583   - 'mixstopTime' : {required : true,number : true,digits : true},// 最小停站间隙,必填项、必须为整数.
584   - 'earlyUpTime' : {number : true},// 早高峰上行时间,必须为数字.
585   - 'earlyDownTime' : {number : true},// 早高峰下行时间,必须为数字.
586   - 'lateUpTime' : {number : true},// 晚高峰上行时间,必须为数字.
587   - 'lateDownTime' : {number : true},// 晚高峰下行时间,必须为数字.
588   - 'troughUpTime' : {number : true},// 低谷上行时间,必须为数字.
589   - 'troughDownTime' : {number : true},// 低谷下行时间,必须为数字.
590   - 'qjUpTime' : {number : true},// 区间上行时间,必须为数字.
591   - 'qjDownTime' : {number : true},// 区间下行时间,必须为数字.
592   - 'kfsj' : {number : true,digits : true},// 空放行驶时间,必须为数字.
593   - 'workeLunch' : {number : true},// 工作餐午餐时间,必须为数字.
594   - 'workeDinner' : {number : true},// 工作餐晚餐时间,必须为数字.
595   - 'upInTimer' : {number : true},// 上行进场时间,必须为数字.
596   - 'upOutTimer' : {number : true},// 上行出场时间,必须为数字.
597   - 'downInTimer' : {number : true},// 下行进场时间,必须为数字.
598   - 'downOutTimer' : {number : true},// 下行出场时间,必须为数字.
599   - 'upInMileage' : {number : true},// 上行进场里程,必须为数字.
600   - 'upOutMileage' : {number : true},// 上行出场里程,必须为数字.
601   - 'downInMileage' : {number : true},// 下行进场里程,必须为数字.
602   - 'downOutMileage' : {number : true},// 下行出场里程,必须为数字.
603   - 'lb' : {number : true},// 早晚例行保养,必须为数字.
604   - 'clzs':{required : true,number : true,digits : true, isBcType : true},// 车辆总数,必填项、必须为整数.
605   - 'bxrc' : {required : true},// 班型人次,必填项
606   - 'linePlayType' : {required : true},// 线路规划类型,必填项
607   - 'zdzcrl' : {number : true,digits : true},
608   - // 新增时间段字段
609   - 'start1' : {required : true},
610   - 'end1' : {required : true},
611   - 'start2' : {required : true},
612   - 'end2' : {required : true},
613   - 'start3' : {required : true},
614   - 'end3' : {required : true},
615   - 'start4' : {required : true},
616   - 'end4' : {required : true},
617   - 'start5' : {required : true},
618   - 'end5' : {required : true},
619   -
620   - 'gfupStopTime' : {required : true,number : true}, // 高峰上行停站时间,必填项、必须为整数.
621   - 'gfdownStopTime' : {required : true,number : true}, // 高峰下行停站时间,必填项、必须为整数.
622   - 'dgupStopTime' : {required : true,number : true}, // 低谷上行停站时间,必填项、必须为整数.
623   - 'dgdownStopTime' : {required : true,number : true}, // 低谷下行停站时间,必填项、必须为整数.
624   - 'dgmaxfcjx' : {required : true,number : true}, // 低谷最大发车间隙,必填项、必须为整数.
625   - 'dgmaxtzsj' : {required : true,number : true}, // 低谷最大停站时间,必填项、必须为整数.
626   -
627   - // 发车间隙分析用参数
628   - //'fcjx': {required: true}, // 时段发车间隙,TODO:貌似没发启用form验证
629   - 'stt': {required: true}, // 停站类型,TODO:貌似没发启用form验证
630   - 'zgffcjxmin' : {required : true,number : true,digits: true},// 早高峰最小发车间隔.
631   - 'zgffcjxmax' : {required : true,number : true,digits: true},// 早高峰最大发车间隔.
632   - 'wffcjxmin' : {required : true,number : true,digits: true},// 晚高峰最小发车间隔.
633   - 'wffcjxmax' : {required : true,number : true,digits: true},// 晚高峰最大发车间隔.
634   - 'dgfcjxmin' : {required : true,number : true,digits: true},// 低谷最小发车间隔.
635   - 'dgfcjxmax' : {required : true,number : true,digits: true},// 低谷最大发车间隔.
636   - 'gfjypcs': {required : true,number : true,digits: true}, // 高峰建议配车数
637   - 'jbclcount': {required : true,number : true,digits: true} // 建议加班车数
638   - },
639   - messages: {
640   - 'zgfbeforepcs': "未获取客流数据请手动输入",
641   - 'zgfpcs': "未获取客流数据请手动输入",
642   - 'wgfafterpcs': "未获取客流数据请手动输入",
643   - 'wgfpcs': "未获取客流数据请手动输入",
644   - 'gfzjpcs': "未获取客流数据请手动输入"
645   - },
646   -
647   - /**
648   - * 类型:Callback。当未通过验证的表单提交时,可以在该回调函数中处理一些事情。
649   - *
650   - * 参数:该回调函数有两个参数:第一个为一个事件对象,第二个为验证器(validator)
651   - */
652   - invalidHandler : function(event, validator) {
653   - error.show();// 显示表单未通过提示信息
654   - App.scrollTo(error, -200);// 把提示信息放到指定的位置。
655   - },
656   -
657   - /**
658   - * 类型:Callback。
659   - *
660   - * 默认:添加errorClass("has-error")到表单元素。将未通过验证的表单元素设置高亮。
661   - */
662   - highlight : function(element) {
663   - $(element).closest('.form-group').addClass('has-error');// 添加errorClass("has-error")到表单元素
664   - },
665   -
666   - /**
667   - * 类型:Callback。
668   - *
669   - * 默认:移除errorClass("has-error")。与highlight操作相反
670   - */
671   - unhighlight : function(element) {
672   - $(element).closest('.form-group').removeClass('has-error');// 移除errorClass("has-error")
673   - },
674   -
675   - /**
676   - * 类型:String,Callback。
677   - *
678   - * 如果指定它,当验证通过时显示一个消息。
679   - *
680   - * 如果是String类型的,则添加该样式到标签中;
681   - *
682   - * 如果是一个回调函数,则将标签作为其唯一的参数。
683   - */
684   - success : function(label) {
685   - label.closest('.form-group').removeClass('has-error');// 当验证通过时,移除errorClass("has-error")
686   - },
687   -
688   - /**
689   - * 类型:Callback。
690   - *
691   - * 默认:default (native) form submit;当表单通过验证,提交表单。回调函数有个默认参数form
692   - */
693   - submitHandler : function(f) {
694   - // 定义localStorage对象.
695   - var storage = window.localStorage;
696   - // 表单序列化.
697   - var argus = form.serializeJSON();
698   - console.log(argus);
699   - // 获取站点路由.
700   - $get('/stationroute/all',{'line.id_eq':argus.lineName.split('_')[0],'destroy_eq':0, 'versions_eq': argus.lineVersion},function(result) {
701   - // 判断.
702   - if(result) {
703   - // 定义上行起点站,上行终点站,下行起点站,下行终点站.
704   - var upB ='',upE='',downB='',downE='';
705   - for(var r = 0 ; r<result.length;r++) {
706   - if(result[r].directions==0 && result[r].stationMark =='B')
707   - upB = result[r].id;
708   - if(result[r].directions==0 && result[r].stationMark =='E')
709   - upE = result[r].id;
710   - if(result[r].directions==1 && result[r].stationMark =='B')
711   - downB = result[r].id;
712   - if(result[r].directions==1 && result[r].stationMark =='E')
713   - downE = result[r].id;
714   - }
715   - argus.up_s = upB + '_' + upE;
716   - argus.down_s = downB + '_' + downE;
717   - // 获取停车车场.
718   - $get('/carpark/all',{'parkCode_eq':argus.tcc},function(cp) {
719   - var tcc_id = '';
720   - if(cp) {
721   - tcc_id = cp[0].id;
722   - }
723   - argus.tcc_id = tcc_id; // 停车场ID.
724   - argus.skbmc = $('#skbNameSelect').select2('data')[0].text;// 时刻名称.
725   - argus.xlmc = $('#lineSelect').select2('data')[0].text;// 线路名称.
726   - // 获取时刻表明细.
727   - $get('/tidc/all',{'ttinfo.id_eq':parseInt(argus.skbName)},function(data) {
728   - if(data.status=='SUCCESS' && data.data.length>0) {
729   - argus.istidc = 1;
730   - layer.confirm('系统已存在该时刻表【'+
731   - $("#skbNameSelect").select2("data")[0].text +
732   - '】明细,是否使用已有数据渲染模型?', {
733   - btn: ['确定并使用','取消并继续'] //按钮
734   - }, function(){
735   - layer.closeAll();
736   - submit(formatData(data.data),argus);
737   - }, function(){
738   - submit(null,argus);
739   - });
740   - }else {
741   - argus.istidc = 0;
742   - submit(null,argus);
743   - }
744   - });
745   - });
746   - }else {
747   - layer.msg('系统不存在该线路的上、下行起终点站!');
748   - }
749   - });
750   -
751   - // 表单提交.
752   - function submit(p,argus) {
753   - var baseRes2 = $('#submit_argus_form input[name="baseRes"]:checked').val();// 获取参数方式值.
754   - if (baseRes2 == 0) {
755   - // TODO:客流暂时有问题,直接使用现有时刻表打开,日后有机会再改好
756   - var skbId2 = $("#skbNameSelect").val();
757   - var argus2 = {
758   - baseRes:"0",carPark:"FFFFFF68",downInMileage:"0",
759   - downInTimer:"0",downMileage:"3.5",downOutMileage:"0",
760   - downOutTimer:"0",downStopTime:"10",downTravelTime:"7",
761   - down_s:"26922_26928",earlyDownTime:"7",earlyEndTime:"08:30",
762   - earlyStartTime:"06:31",earlyUpTime:"10",endStationEndTime:"22:30",
763   - endStationFirstTime:"05:50",gfzjpcs:"7",istidc:1,kfsj:"",krl:"50",
764   - lateDownTime:"7",lateEndTime:"18:30",lateStartTime:"16:31",
765   - lateUpTime:"10",lb:"15",lineName:"801702_801702_1109路",
766   - linePlayType:"0",maxstopTime:"20",mixstopTime:"8",qjDownTime:"",
767   - qjUpTime:"",skbName:skbId2,skbmc:"2016.4.6双时刻表",
768   - startStationEndTime:"23:00",startStationFirstTime:"06:15",tcc_id:45,troughDownTime:"7",troughUpTime:"10",upInMileage:"0",
769   - upInTimer:"10",upMileage:"3.5",upOutMileage:"0",upOutTimer:"10",upStopTime:"10",upTravelTime:"10",
770   - up_s:"26912_26921",wgfafterpcs:"5",wgfpcs:"10",workeDinner:"20",workeLunch:"20",xlmc:"1109路",zgfbeforepcs:"3",zgfpcs:"10",}
771   - // 获取时刻表明细.
772   - $get('/tidc/all',{'ttinfo.id_eq':parseInt(argus.skbName)},function(data) {
773   - var p = formatData(data.data,argus2);
774   - // TODO:添加parent
775   - for (var ii = 0; ii < p.rsD.length; ii++) {
776   - p.rsD[ii].parent = p.rsD[ii].lpNo;// 路牌名称
777   - }
778   -
779   - argus2.istidc = 1;
780   - var storage = window.localStorage;
781   - storage.setItem("Gantt_AgursData",JSON.stringify(argus2));
782   - storage.setItem('isDoDate',JSON.stringify({'rsD':p.rsD,'rsLP':p.rsLp}));
783   - loadPage('gantt.html');
784   - });
785   - } else {
786   -
787   - // storage.setItem("Gantt_AgursData",JSON.stringify(argus));
788   - // if(p!=null) {
789   - // storage.setItem('isDoDate',JSON.stringify({'rsD':p.rsD,'rsLP':p.rsLp}));
790   - // }else {
791   - // storage.setItem('isDoDate','');
792   - // }
793   - // loadPage('gantt.html');
794   -
795   - // TODO:暂时打开现有时刻表演示
796   - var skbId = $("#skbNameSelect").val();
797   - // var argus = {
798   - // baseRes:"0",czarPark:"FFFFFF68",downInMileage:"0",
799   - // downInTimer:"0",downMileage:"3.5",downOutMileage:"0",
800   - // downOutTimer:"0",downStopTime:"10",downTravelTime:"7",
801   - // down_s:"26922_26928",earlyDownTime:"7",earlyEndTime:"08:30",
802   - // earlyStartTime:"06:31",earlyUpTime:"10",endStationEndTime:"22:30",
803   - // endStationFirstTime:"05:50",gfzjpcs:"7",istidc:1,kfsj:"",krl:"50",
804   - // lateDownTime:"7",lateEndTime:"18:30",lateStartTime:"16:31",
805   - // lateUpTime:"10",lb:"15",lineName:"801702_801702_1109路",
806   - // linePlayType:"0",maxstopTime:"20",mixstopTime:"8",qjDownTime:"",
807   - // qjUpTime:"",skbName:skbId,skbmc:"2016.4.6双时刻表",
808   - // startStationEndTime:"23:00",startStationFirstTime:"06:15",tcc_id:45,troughDownTime:"7",troughUpTime:"10",upInMileage:"0",
809   - // upInTimer:"10",upMileage:"3.5",upOutMileage:"0",upOutTimer:"10",upStopTime:"10",upTravelTime:"10",
810   - // up_s:"26912_26921",wgfafterpcs:"5",wgfpcs:"10",workeDinner:"20",workeLunch:"20",xlmc:"1109路",zgfbeforepcs:"3",zgfpcs:"10",}
811   - // 获取时刻表明细.
812   - $get('/tidc/all',{'ttinfo.id_eq':parseInt(argus.skbName)},function(data) {
813   - var p = formatData(data.data,argus);
814   - argus.istidc = 1;
815   - var storage = window.localStorage;
816   - storage.setItem("Gantt_AgursData",JSON.stringify(argus));
817   - storage.setItem('isDoDate',JSON.stringify({'rsD':p.rsD,'rsLP':p.rsLp}));
818   - loadPage('gantt.html');
819   - });
820   -
821   -
822   - }
823   -
824   -
825   - }
826   - }
827   - });
828   -
829   - // 验证配车数不能为零.
830   - $.validator.addMethod('isNum0', function(value,element) {
831   - // 定义返回值.
832   - var tag = true;
833   - var zgfbeforepcs = $('#zgfbeforepcsInput').val(),// 早高峰前配车数.
834   - zgfpcs = $('#zgfpcsInput').val(),// 早高峰配车数.
835   - gfzjpcs = $('#gfzjpcsInput').val(),// 高峰之间配车数.
836   - wgfpcs = $('#wgfpcsInput').val(),// 晚高峰配车数.
837   - wgfafterpcs = $('#wgfafterpcsInput').val();// 晚高峰后配车数.
838   - // 判断是否为零.
839   - if(parseInt(zgfbeforepcs) == 0 || parseInt(zgfbeforepcs) ==0 ||
840   - parseInt(gfzjpcs) ==0 || parseInt(wgfpcs) ==0 || parseInt(wgfafterpcs) ==0)
841   - tag = false;
842   - return tag;
843   - },function(){return '配车数不能为零!'; });
844   -
845   - // 验证高峰时段内的配车数是否高于其它时段配车数.
846   - $.validator.addMethod('isMax', function(value,element) {
847   - var tag = true;
848   - var zgfbeforepcs = parseInt($('#zgfbeforepcsInput').val()),// 早高峰前配车数.
849   - zgfpcs = parseInt($('#zgfpcsInput').val()),// 早高峰配车数.
850   - gfzjpcs = parseInt($('#gfzjpcsInput').val()),// 高峰之间配车数.
851   - wgfpcs = parseInt($('#wgfpcsInput').val()),// 晚高峰配车数.
852   - wgfafterpcs = parseInt($('#wgfafterpcsInput').val());// 晚高峰后配车数.
853   - // 判断高峰时段内的配车数是否高于其它时段配车数.
854   - if(zgfpcs<zgfbeforepcs || zgfpcs<gfzjpcs || zgfpcs<wgfafterpcs || wgfpcs<zgfbeforepcs || wgfpcs<gfzjpcs || wgfpcs<wgfafterpcs )
855   - tag = false;
856   - return tag;
857   - },function(){return '高峰时段配车数必须高于其它时段配车数!';});
858   -
859   - // 验证客流数据分析时客容量为必填项.
860   - /*$.validator.addMethod("isBaseRes", function(value,element) {
861   - // 定义返回值.
862   - var tag = true;
863   - // 定义选择获取参数方式值
864   - var baseChecked = $('#submit_argus_form input[name="baseRes"]:checked').val();
865   - // 判断
866   - if(baseChecked == '0' && $('#krlInput').val()== '')
867   - tag = false;
868   - return tag;
869   - }, '客流大数据分析,客流总量为必填项!');
870   - */
871   - // 验证配车总数与班型人次搭配
872   - $.validator.addMethod('isBcType', function(value,element) {
873   - // 定义返回值.
874   - var tag = true;
875   - // 定义车辆总数,班型人次.
876   - var clzs = $('#clzsInput').val(),
877   - bxrc = $('#state_tagsinput').val();
878   - // 判断.
879   - if(bxrc=='' || bxrc==null || clzs=='' || clzs==0)
880   - return false;
881   - var bxrcAr = bxrc.split(','),pczs = 0;
882   - for(var s = 0 ; s< bxrcAr.length;s++) {
883   - // 切割单个班型人次.
884   - pczs = pczs + parseInt(bxrcAr[s].split('/')[2]);
885   - }
886   - if(pczs!=clzs)
887   - tag = false;
888   - /**
889   - // 定义首末班次开始结束时间集合.
890   - var map = {'line':{'startStationFirstTime':$('#qdzsbsjInput').val(),
891   - 'startStationEndTime':$('#qdzmbsjInput').val(),
892   - 'endStationFirstTime':$('#zdzsbsjInput').val(),
893   - 'endStationEndTime':$('#zdzmbsjInput').val()}};
894   - // 定义开始~结束时间.
895   - var setMap = getStartAndEndDate(map);
896   - // 定义最大工时.
897   - var maxGs = parseInt( ((strToTime(setMap.e) - strToTime(setMap.s)) / 60000) / 60) * parseInt(clzs);
898   - // 切割班型人次,定义班次人次所用总工时.
899   - var bxrcAr = bxrc.split(','),countGs = 0,countRc = 0;
900   - // 遍历
901   - for(var s = 0 ; s< bxrcAr.length;s++) {
902   - // 切割单个班型人次.
903   - var s1a = bxrcAr[s].split('/');
904   - // 定义人次.
905   - var rs = parseInt(s1a[1]);
906   - // 定义小时系数.
907   - var hoursV = 0.0;
908   - for(var g = 0 ; g < bxrcGs.length; g++) {
909   - // 判断班型是否一致.
910   - if(bxrcGs[g].type == s1a[0]) {
911   - // 重新赋值小时系数.
912   - hoursV = bxrcGs[g].hoursV;
913   - }
914   - }
915   - // 重新计算班次人次所用总工时.
916   - countGs = countGs + parseFloat(hoursV.toFixed(2)) * rs;
917   - countRc = countRc + rs;
918   - }
919   - // 判断
920   - if(parseFloat(countGs.toFixed(2))>maxGs || (bxrcAr.length==1 && countRc > parseInt(clzs)) )
921   - tag = false;
922   - */
923   - return tag;
924   - },function(){return '配车总数与【班型/人次/车辆】搭配不合理!'; });
925   -
926   - /**
927   - * @description : (TODO) 监听获取参数方式值改变事件.
928   - *
929   - * */
930   - /*$('input:radio[name="baseRes"]').on('change',function(v) {
931   - if($(this).val()=='1')
932   - $('#krlGroup').hide();
933   - else if($(this).val()=='0')
934   - $('#krlGroup').show();
935   - });*/
936   -
937   - // 确认提交信息
938   - var displayConfirm = function() {
939   - // 遍历表单元素下的tab4的class名称为form-control-static
940   - $('#tab4 .form-control-static', form).each(function(){
941   - var input = $('[name="'+$(this).attr("data-display")+'"]', form);// 定义input
942   - if (input.is(":radio")) {
943   - input = $('[name="'+$(this).attr("data-display")+'"]:checked', form);
944   - }
945   - if (input.is(":text") || input.is("textarea")) {
946   - $(this).html(input.val());
947   - } else if (input.is("select")) {
948   - $(this).html(input.find('option:selected').text());
949   - } else if (input.is(":radio") && input.is(":checked")) {
950   - $(this).html(input.attr("data-title"));
951   - } else if ($(this).attr("data-display") == 'payment[]') {
952   - var payment = [];
953   - $('[name="payment[]"]:checked', form).each(function(){
954   - payment.push($(this).attr('data-title'));
955   - });
956   - $(this).html(payment.join("<br>"));
957   - }
958   - });
959   - };
960   -
961   - /** 按钮点击时触发 */
962   - var handleTitle = function(tab, navigation, index) {
963   - var total = navigation.find('li').length;// 定义导航条标签个数
964   - var current = index + 1;// 当前标签页
965   - $('.step-title', $('#form-wizard-info')).text((index + 1) + ' - ' + total); // 设置向导标题
966   - jQuery('li', $('#form-wizard-info')).removeClass("done"); // 删除"done"样式
967   - var li_list = navigation.find('li');// 获取导航标签元素集合
968   - for (var i = 0; i < index; i++) {
969   - jQuery(li_list[i]).addClass("done");// 追加done样式
970   - }
971   - /** 如果为第一步隐藏返回按钮,否则显示返回按钮. */
972   - if (current == 1) {
973   - $('#submit_argus_form').find('.button-previous').hide();// 隐藏返回按钮
974   - } else {
975   - $('#submit_argus_form').find('.button-previous').show();// 显示返回按钮
976   - }
977   -
978   - /** 如果为最后一步显示提交按钮,隐藏下一步按钮,否则隐藏提交按钮,显示下一步按钮 */
979   - if (current >= total) {
980   - $('#submit_argus_form').find('.button-next').hide();// 隐藏下一步按钮
981   - $('#submit_argus_form').find('.button-submit').show();// 显示提交按钮
982   - displayConfirm(); // 确认提交信息
983   - } else {
984   - $('#submit_argus_form').find('.button-next').show();// 显示下一步按钮
985   - $('#submit_argus_form').find('.button-submit').hide();// 隐藏提交按钮
986   - }
987   - App.scrollTo($('.page-title'));// 移动到指定位置
988   - };
989   -
990   - // 表单导航向导插件
991   - $('#submit_argus_form').bootstrapWizard({
992   - 'nextSelector': '.button-next',// 下一步元素选择器
993   - 'previousSelector': '.button-previous',// 返回元素选择器
994   - /** 当一个导航标签被点击,返回错误的移动到该选项卡,并显示它的内容. */
995   - onTabClick: function (tab, navigation, index, clickedIndex) {
996   - return false;
997   - success.hide();
998   - error.hide();
999   - if (form.valid() == false) {
1000   - return false;
1001   - }
1002   - handleTitle(tab, navigation, clickedIndex);
1003   - },
1004   - /** 下一步按钮被单击时触发, 返回移动到下一个步骤. */
1005   - onNext: function (tab, navigation, index) {
1006   - success.hide();
1007   - error.hide();
1008   - if (form.valid() == false) {
1009   - return false;
1010   - }
1011   - /*if(index==1) {
1012   - // 初始化客容量值.
1013   - if($('#krlInput').val() == '')
1014   - $('#krlInput').val(50);
1015   - }else */if(index == 2) {
1016   - var baseRes = $('#submit_argus_form input[name="baseRes"]:checked').val(),// 获取参数方式值.
1017   - lineId = $('#lineSelect').val().split('_')[0],// 线路ID.
1018   - krl = 50;
1019   - // krl = $('#krlInput').val();// 客容量
1020   - // 弹出正在加载层
1021   - var i = layer.load(2);
1022   - getLineInfo(lineId,function(r) {
1023   - getHtmlTemp(baseRes,r.content[0],lineId,krl,function(htlMap) {
1024   - $('#tab3').html(htlMap.forminput);
1025   - $('#tab4').html(htlMap.datadisplay);
1026   -
1027   - if (baseRes == 0) { // 客流大数据分析
1028   - $('#linePlayTypeSelect').val(r.content[0].line.linePlayType);
1029   - // 停站类型选择控件
1030   - ComponentsBootstrapTagsinput.init_stoptype();
1031   - // 日期控件
1032   - $('#qdzsbsjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 起始站首班时间
1033   - $('#qdzmbsjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 起始站末班时间
1034   - $('#zdzsbsjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 终点站首班时间
1035   - $('#zdzmbsjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 终点站末班时间
1036   - $('#zgfkssjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 早高峰开始时间
1037   - $('#zgfjssjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 早高峰结束时间
1038   - $('#wgfkssjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 晚高峰开始时间
1039   - $('#wgfjssjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 晚高峰结束时间
1040   - // 初始化停车场下拉框.
1041   - gettccInfo(function(cd) {
1042   - var options = '<option value="">请选择...</option><optgroup label="停车场">';
1043   - var $_len = cd.length;
1044   - if($_len>0) {
1045   - $.each(cd, function(i, d){
1046   - options += '<option value="'+d.parkCode+'">'+d.parkName+'</option>';
1047   - });
1048   -
1049   - }
1050   - options += '</optgroup>';
1051   - $('#carParkSelect').html(options).select2();
1052   - $('#carParkSelect').select2("val",r.content[0].carPark);
1053   - // 关闭弹出加载层
1054   - layer.close(i);
1055   - });
1056   -
1057   - } else if (baseRes == 1) { // 班次/人次/车辆
1058   - $('#linePlayTypeSelect').val(r.content[0].line.linePlayType);
1059   - ComponentsBootstrapTagsinput.init();// 初始化班型人次Input Tag.
1060   - // 停站类型选择控件
1061   - ComponentsBootstrapTagsinput.init_stoptype();
1062   - // 日期控件
1063   - $('#qdzsbsjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 起始站首班时间
1064   - $('#qdzmbsjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 起始站末班时间
1065   - $('#zdzsbsjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 终点站首班时间
1066   - $('#zdzmbsjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 终点站末班时间
1067   - $('#zgfkssjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 早高峰开始时间
1068   - $('#zgfjssjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 早高峰结束时间
1069   - $('#wgfkssjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 晚高峰开始时间
1070   - $('#wgfjssjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 晚高峰结束时间
1071   - $('#startInput1').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
1072   - $('#endInput1').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
1073   - $('#startInput2').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
1074   - $('#endInput2').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
1075   - $('#startInput3').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
1076   - $('#endInput3').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
1077   - $('#startInput4').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
1078   - $('#endInput4').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
1079   - $('#startInput5').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
1080   - $('#endInput5').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
1081   - // 初始化停车场下拉框.
1082   - gettccInfo(function(cd) {
1083   - var options = '<option value="">请选择...</option><optgroup label="停车场">';
1084   - var $_len = cd.length;
1085   - if($_len>0) {
1086   - $.each(cd, function(i, d){
1087   - options += '<option value="'+d.parkCode+'">'+d.parkName+'</option>';
1088   - });
1089   -
1090   - }
1091   - options += '</optgroup>';
1092   - $('#carParkSelect').html(options).select2();
1093   - $('#carParkSelect').select2("val",r.content[0].carPark);
1094   - // 关闭弹出加载层
1095   - layer.close(i);
1096   - });
1097   -
1098   - } else if (baseRes == 2 || baseRes == 3) { // 发车间隔分析
1099   - // 上下行首末班日期控件
1100   - $('#startStationFirstTime_id').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
1101   - $('#startStationEndTime_id').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
1102   - $('#endStationFirstTime_id').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
1103   - $('#endStationEndTime_id').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
1104   -
1105   - // 早高峰晚高峰日期控件
1106   - $('#earlyStartTime_id').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
1107   - $('#earlyEndTime_id').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
1108   - $('#lateStartTime_id').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
1109   - $('#lateEndTime_id').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
1110   -
1111   - // 线路规划类型日期控件
1112   - $('#linePlayType_id').val(r.content[0].line.linePlayType);
1113   -
1114   - // 停车场下拉框控件
1115   - gettccInfo(function(cd) {
1116   - var options = '<option value="">请选择...</option><optgroup label="停车场">';
1117   - var $_len = cd.length;
1118   - if($_len>0) {
1119   - $.each(cd, function(i, d){
1120   - options += '<option value="'+d.parkCode+'">'+d.parkName+'</option>';
1121   - });
1122   -
1123   - }
1124   - options += '</optgroup>';
1125   - $('#carPark_id').html(options).select2();
1126   - $('#carPark_id').select2("val",r.content[0].carPark);
1127   - // 关闭弹出加载层
1128   - layer.close(i);
1129   - });
1130   -
1131   - // 发车间隙选择控件
1132   - //ComponentsBootstrapTagsinput.init_fcjx();
1133   - // 停站类型选择控件
1134   - ComponentsBootstrapTagsinput.init_stoptype();
1135   -
1136   - // TODO:发车间隔分析参数设置
1137   -
1138   - layer.close(i);
1139   - }
1140   -
1141   - });
1142   - });
1143   - }
1144   - handleTitle(tab, navigation, index);
1145   - },
1146   - /** 上一步按钮被单击时触发,返回移动到前一个步骤 */
1147   - onPrevious: function (tab, navigation, index) {
1148   - success.hide();
1149   - error.hide();
1150   - handleTitle(tab, navigation, index);
1151   - },
1152   - /** 显示选项卡内容 */
1153   - onTabShow: function (tab, navigation, index) {
1154   - var total = navigation.find('li').length;
1155   - var current = index + 1;
1156   - var $percent = (current / total) * 100;
1157   - $('#submit_argus_form').find('.progress-bar').css({
1158   - width: $percent + '%'
1159   - });
1160   -
1161   - }
1162   -
1163   - });
1164   - // 初始化第一步隐藏返回按钮
1165   - $('#submit_argus_form').find('.button-previous').hide();
1166   - }
1167   - }
1168   -}();
  1 +/**
  2 + * @description : (TODO) 表单的导航向导、验证、提交
  3 + */
  4 +
  5 +var SKBFormWizard = function() {
  6 +
  7 + var bxrcGs = [ {'type':'六工一休','hoursV':6.66, 'minueV':'6:40'},
  8 + {'type':'五工一休','hoursV':6.85, 'minueV':'6:51'},
  9 + {'type':'四工一休','hoursV':7.14, 'minueV':'7:08'},
  10 + {'type':'三工一休','hoursV':7.61, 'minueV':'7:37'},
  11 + {'type':'二工一休','hoursV':8.57, 'minueV':'8:34'},
  12 + {'type':'一工一休','hoursV':11.42, 'minueV':'11:25'},
  13 + {'type':'五工二休','hoursV':7.99, 'minueV':'8:00'},
  14 + {'type':'无工休', 'hoursV':5.43, 'minueV':'5:43'}];
  15 +
  16 + /**
  17 + * @description : (TODO) 获取停站时间.
  18 + *
  19 + * @param [o--当前班次对象;d--班次数组对象;sj--当前班次时间]
  20 + *
  21 + * @return 返回相邻班次的停站时间.
  22 + * */
  23 + function gettzsj(o,d,sj) {
  24 + // 定义停站时间.
  25 + var tzsj = 0;
  26 + // 变量班次数组对象.
  27 + for(var i = 0 ;i<d.length;i++) {
  28 + // 判断是否为同一个路牌.
  29 + if(o.lp.lpNo == d[i].lp.lpNo && o.lp.id == d[i].lp.id) {
  30 + // 判断是否为当前班次的下一个班次.
  31 + if(d[i].fcno - o.fcno ==1){
  32 + // 计算停站时间.
  33 + tzsj = (strToTime(d[i].fcsj) -strToTime(sj)) / 60000;
  34 + continue;
  35 + }
  36 + }
  37 + }
  38 + // 返回停站时间.
  39 + return tzsj;
  40 + }
  41 +
  42 + /**
  43 + * @description : (TODO) 是否切换线路值转换.
  44 + *
  45 + * @param [d--是否切换线路原始值].
  46 + *
  47 + * @return 返回一个是否切换线路值的转换.
  48 + * */
  49 + function isSwitchXlTodm(d) {
  50 + var rstr = 0;
  51 + if(d)
  52 + rstr = 1;
  53 + return rstr;
  54 + }
  55 +
  56 + /**
  57 + * @description : (TODO) 是否分班值转换.
  58 + *
  59 + * @param [d--是否分班原始值].
  60 + *
  61 + * @return 返回一个是否分班值的转换.
  62 + * */
  63 + function isfbTodm(b) {
  64 + var rstr = 0;
  65 + if(b)
  66 + rstr = 1;
  67 + return rstr;
  68 + }
  69 +
  70 + /**
  71 + * @description : (TODO) 获取某个班次的到达时间字符串.
  72 + *
  73 + * @param [tStr--发车时间格式字符串;bcsj--班次历时].
  74 + *
  75 + * @return 返回一个某个班次的到达时间字符串.
  76 + * */
  77 + function getddsj(tStr,bcsj) {
  78 + // 定义当前时间对象.
  79 + var date = new Date();
  80 + // 分割字符串.
  81 + var _str = tStr.split(':');
  82 + // 设值小时.
  83 + date.setHours(parseInt(_str[0]));
  84 + // 设值分钟.
  85 + date.setMinutes(parseInt(_str[1]) + bcsj);
  86 + // 返回到达时间字符串.
  87 + return getTimeStr(date);
  88 + }
  89 +
  90 + /**
  91 + * @description : (TODO) 时间点格式字符串转时间对象.
  92 + *
  93 + * @param [t--时间点格式字符串]
  94 + *
  95 + * @return 返回一个时间点格式字符串转时间对象.
  96 + * */
  97 + var strToTime = function(t) {
  98 + // 定义当前时间对象.
  99 + var d = new Date;
  100 + // 判断是否为空.
  101 + if(t) {
  102 + // 分割字符串.
  103 + var _str = t.split(':');
  104 + // 设值小时.
  105 + d.setHours(parseInt(_str[0]));
  106 + // 设值分钟.
  107 + d.setMinutes(parseInt(_str[1]));
  108 + }
  109 + // 返回一个时间点格式字符串转时间对象.
  110 + return d;
  111 + }
  112 +
  113 + /**
  114 + * @description : (TODO) 时间对象转时间点格式字符串.
  115 + *
  116 + * @param [t--时间对象]
  117 + *
  118 + * @return 返回一个时间对象转时间点格式字符串.
  119 + * */
  120 + function getTimeStr(t) {
  121 + // 定义返回值.
  122 + var _str = '';
  123 + // 判断是否为空.
  124 + if(t) {
  125 + // 重新赋值.
  126 + _str = ((t.getHours()<10? '0' + t.getHours() : t.getHours()) == '00' ? '24' :(t.getHours()<10? '0' + t.getHours() : t.getHours()))
  127 + +':'
  128 + +(t.getMinutes()<10? '0' + t.getMinutes() : t.getMinutes());
  129 + }
  130 + // 返回时间对象转时间点格式字符串.
  131 + return _str;
  132 + }
  133 +
  134 + /**
  135 + * @description : (TODO) 方向值转换.
  136 + *
  137 + * @param [d--方向原始值].
  138 + *
  139 + * @return 返回一个方向值转换.
  140 + * */
  141 + function dmToDh(t) {
  142 + // 定义返回值.
  143 + var reslStr = '';
  144 + // 上行.
  145 + if(t=='0')
  146 + reslStr = 'relationshipGraph-up';
  147 + // 下行.
  148 + else if(t=='1')
  149 + reslStr = 'relationshipGraph-down';
  150 + // 返回一个方向值转换.
  151 + return reslStr;
  152 + }
  153 +
  154 + /**
  155 + * @description : (TODO) 获取线路标准详情.
  156 + *
  157 + * @param [lineId--线路ID;cb--回调函数].
  158 + *
  159 + * @return 返回线路标准详情.
  160 + *
  161 + * @status OK.
  162 + * */
  163 + var getLineInfo = function(lineId,cb) {
  164 + // 1、get异步请求.根据线路ID查询详情.
  165 + $get('/lineInformation',{'line.id_eq':lineId},function(result) {
  166 + // 2、返回线路标准详情.
  167 + return cb && cb(result);
  168 + });
  169 + }
  170 +
  171 + /**
  172 + * @description : (TODO) 获取所有的停车场详情.
  173 + *
  174 + * @param [cb--回调函数].
  175 + *
  176 + * @return 返回所有的停车场详情.
  177 + *
  178 + * @status OK.
  179 + * */
  180 + var gettccInfo = function (cb) {
  181 + // 1、get异步请求.获取所有的停车场详情.
  182 + $get('/carpark/all',null, function(cd){
  183 + // 2、返回所有的停车场详情.
  184 + return cb && cb(cd);
  185 + });
  186 + }
  187 +
  188 + /**
  189 + * @description : (TODO) 时间格式字符串转时间对象.
  190 + *
  191 + * @param [time--时间格式字符串].
  192 + *
  193 + * @return 返回一个时间对象.
  194 + *
  195 + * @status OK.
  196 + * */
  197 + var getDateTime = function(time) {
  198 + // 1、定义一个时间对象.
  199 + var dateTime = new Date();
  200 + // 2、判断参数是否为空或者为undefined.
  201 + if(time !=null && time !='' && typeof(time) !='undefined') {
  202 + // 3、给时间对象重新赋值.
  203 + dateTime = new Date(Date.parse(time.replace(/-/g, "/")));
  204 + }
  205 + // 4、返回时间对象.
  206 + return dateTime;
  207 + }
  208 +
  209 + /**
  210 + * @description : (TODO) 客流方式填充表单时.根据表单参数封装时间段内的车辆数.
  211 + *
  212 + * @param : [map--表单参数]
  213 + *
  214 + * @returns 返回一个根据表单参数封装时间段内的车辆数数组.
  215 + *
  216 + * @status OK.
  217 + * */
  218 + function getsjdArr(map) {
  219 + // 1、获取营运的开始与结束时间点.
  220 + var seMap = getStartAndEndDate(map);
  221 + // 2、返回一个根据表单参数封装时间段内的车辆数数组.
  222 + return [{'num':0,'time':seMap.s + '-' + map.earlyStartTime},// 早高峰之前时间段内的车辆.
  223 + {'num':0,'time':map.earlyStartTime + '-' + map.earlyEndTime}, // 早高峰时间段内的车辆.
  224 + {'num':0,'time':map.earlyEndTime + '-' + map.lateStartTime},// 高峰之间时间段内的车辆
  225 + {'num':0,'time':map.lateStartTime + '-' + map.lateEndTime},// 晚高峰时间段内的车辆.
  226 + {'num':0,'time':map.lateEndTime + '-' + seMap.e}];// 晚高峰之后时间段内的车辆.
  227 + }
  228 +
  229 + /**
  230 + * @description : (TODO) 获取最小时间(字符串).
  231 + *
  232 + * @param [d1--时间1;d2--时间2].
  233 + *
  234 + * @return 返回一个最小时间(字符串).
  235 + *
  236 + * @status OK.
  237 + * */
  238 + function getMinDate(d1,d2) {
  239 + // 1、定义返回字符串.
  240 + var str = '';
  241 + // 2、判断时间大小.
  242 + if(strToTime(d1)>strToTime(d2))
  243 + str = d2;
  244 + else
  245 + str = d1;
  246 + // 3、返回最小时间(字符串).
  247 + return str;
  248 + }
  249 +
  250 + /**
  251 + * @description : (TODO) 获取最大时间(字符串).
  252 + *
  253 + * @param [d1--时间1;d2--时间2].
  254 + *
  255 + * @return 返回一个最大时间(字符串).
  256 + *
  257 + * @status OK.
  258 + * */
  259 + function getMaxDate(d1,d2) {
  260 + // 1、定义返回时间字符串.
  261 + var str = '';
  262 + // 2、判断时间大小.
  263 + if(strToTime(d1)>strToTime(d2))
  264 + str = d1;
  265 + else
  266 + str = d2;
  267 + // 3、返回一个最大时间(字符串).
  268 + return str;
  269 + }
  270 +
  271 + /**
  272 + * @description : (TODO) 判断是否这时间段内.
  273 + *
  274 + * @param [st--开始时间;ed--结束时间;sj--当前判断的时间]
  275 + *
  276 + * @return 返回一个布尔值.
  277 + *
  278 + * @status OK.
  279 + * */
  280 + function issjd(st,ed,sj) {
  281 + // 1、定义返回值.
  282 + var tag = false;
  283 + // 2、判断时间大小.
  284 + if(sj<=ed && sj>=st)
  285 + // 3、重新赋值返回值.
  286 + tag = true;
  287 + // 4、返回判断结果布尔值.
  288 + return tag;
  289 + }
  290 +
  291 + /**
  292 + * @description : (TODO) 获取客流数据.
  293 + *
  294 + * @params [url--请求地址;data--请求参数;cb--回调函数]
  295 + *
  296 + * */
  297 + function getJSONP(url, data, cb) {
  298 + $.ajax({
  299 + url : url,
  300 + type : "GET",
  301 + dataType : 'jsonp',
  302 + jsonp : 'jsoncallback',
  303 + data : data,
  304 + success : cb
  305 + });
  306 + }
  307 +
  308 + /**
  309 + * 判断某个时间是否在指定时间段内
  310 + * @param start 开始时间
  311 + * @param end 结束时间
  312 + * @param t 指定时间
  313 + * @param isWrapTime 是否重新包装时间
  314 + */
  315 + function issjd_extend(start, end, t, flag) {
  316 + var m_start = moment(start);
  317 + var m_end = moment(end);
  318 + var m_t = moment(t);
  319 +
  320 + if (flag) {
  321 + // 重新构造时间,保留时间的小时,分钟,秒,忽略年月日
  322 + var date_wrap_prefix = "2000-01-01 "; // 包装日期的前缀
  323 + var date_wrap_format = "YYYY-MM-DD HH:mm:ss"; // 日期格式
  324 +
  325 + var m_start_wrap = moment(date_wrap_prefix + m_start.format("HH:mm:ss"), date_wrap_format);
  326 + var m_end_wrap = moment(date_wrap_prefix + m_end.format("HH:mm:ss"), date_wrap_format);
  327 + var m_t_wrap = moment(date_wrap_prefix + m_t.format("HH:mm:ss"), date_wrap_format);
  328 +
  329 + return m_t_wrap.isAfter(m_start_wrap) && m_t_wrap.isBefore(m_end_wrap);
  330 + } else {
  331 + return issjd(start, end, t);
  332 + // return m_t.isAfter(m_start) && m_t.isBefore(m_end);
  333 + }
  334 +
  335 + }
  336 +
  337 + /**
  338 + * @description : (TODO) 根据获取参数方式来获取表单参数详情html模版页.
  339 + *
  340 + * @param [n--获取参数方式;map--表单参数;lineId--线路ID;krl--客容量;cb--回调函数]
  341 + *
  342 + * @return 返回表单参数详情html模版页.
  343 + *
  344 + * @status OK.
  345 + * */
  346 + var getHtmlTemp = function(n,map,lineId,krl,cb) {
  347 + // 1、定义模版名称.
  348 + var tempName = '';
  349 + if(n==0)
  350 + tempName = 'carnum_temp';
  351 + else if(n==1)
  352 + tempName = 'bctype_temp';
  353 + else if (n==2 || n==3)
  354 + tempName = 'fcjx_temp';
  355 + // 2、获参数详情模版html内容.
  356 + $.get('/pages/base/timesmodel/tepms/'+ tempName + '.html', function(html){
  357 + $('#tab3').append(html);
  358 + map.lb = 15;// 定义例保时间.
  359 + map.workeLunch = 20;// 定义午餐时间.
  360 + map.workeDinner = 20;// 定义晚餐时间.
  361 + //map.mixstopTime = 8;// 定义最小停站间隙
  362 + //map.maxstopTime = 20;// 定义最大停站间隙.
  363 + //map.upStopTime = 10;// 定义上行停站时间.
  364 + //map.downStopTime = 10;// 定义下行停站时间.
  365 + if(n==0) {
  366 + // 定义一个周转时间.
  367 + var zzsj = parseInt(map.upTravelTime) + 10*2 + parseInt(map.downTravelTime);
  368 + // 定义时间对象.
  369 + var date = new Date();
  370 + // var rq = date.getFullYear() + '-' + (date.getMonth()+1) + '-' + (date.getDate()-7);
  371 +
  372 + // 减去7天
  373 + var m_date = moment(date);
  374 + m_date.add(-7, "d");
  375 + var rq = m_date.format("YYYY-MM-DD");
  376 +
  377 + console.log(date);
  378 + console.log(date.getDate());
  379 + console.log(rq);
  380 + // 定义开始时间字符串.
  381 + var startDateTime = rq + ' ' + '00:00';
  382 + // 定义结束时间自妇产.
  383 + var endDateTime = rq + ' ' + '23:59';
  384 + // 定义请求参数集合.
  385 + var params = {'xlid':lineId,'startDateTime':startDateTime,'endDateTime':endDateTime,'zzsj':zzsj};
  386 + /**
  387 + * getJSONP请求获取客流数据.
  388 + *
  389 + * 返回的是一个每次以半小时为间隔作为开始时间点, 在加上周转时间作为结束时间点的 时段段内的客流最大通过量.
  390 + * */
  391 + getJSONP(
  392 + // "http://139.196.13.237:8080/bsth-busfareflow-gj/Crlcxb/selectsjbctgl.do",
  393 + "http://180.166.5.82:9816/bsth-busfareflow-gj/Crlcxb/selectsjbctgl.do",
  394 + params,function(json){
  395 + console.log(json);
  396 +
  397 + // 定义时段集合,可容量.
  398 + var sjdArr = getsjdArr(map),krlInt = parseInt(krl);
  399 + console.log("krlInt=" + krlInt);
  400 + // 遍历时段集合.
  401 + for(var s = 0 ; s<sjdArr.length;s++) {
  402 + // 分割时间段.
  403 + var strA = sjdArr[s].time.split('-');
  404 + // 定义开始时间与结束时间,车辆数.
  405 + var st = getDateTime(rq + ' ' + strA[0]),et = getDateTime(rq + ' ' + strA[1]),num = 0;
  406 +
  407 + console.log("s=" + s + " st=" + st + " et=" + et);
  408 +
  409 + // 遍历时间段内的客流数据集合.
  410 + for(var j = 0 ; j < json.length; j ++) {
  411 + // 定义当前客流班次产生的时间.
  412 + var dqsj = getDateTime(json[j].sj);
  413 + // 判断是否这时间段内.
  414 + if(issjd_extend(st, et, dqsj, true)) {
  415 + // 车辆数相加.
  416 + sjdArr[s].num += Math.ceil(parseInt(json[j].tgl) / krlInt);
  417 + // num = num + Math.ceil(parseInt(json[j].tgl)/krlInt);
  418 + }
  419 + }
  420 + // sjdArr[s].num = num;
  421 + }
  422 +
  423 + // 注意:如果为0,设置成 10 17默认值
  424 + map.zgfbeforepcs = sjdArr[0].num == 0 ? 10 : sjdArr[0].num;// 早高峰前配车数
  425 + map.zgfpcs = sjdArr[2].num == 0 ? 17 : sjdArr[2].num;// 早高峰配车数
  426 + map.gfzjpcs = sjdArr[4].num == 0 ? 10 : sjdArr[4].num;// 高峰之间配车数
  427 + map.wgfpcs = sjdArr[2].num == 0 ? 17 : sjdArr[2].num ;// 晚高峰配车数
  428 + map.wgfafterpcs = (sjdArr[1].num + sjdArr[3].num) == 0 ? 10 : sjdArr[1].num + sjdArr[3].num;// 晚高峰后配车数
  429 +
  430 + // 注意:高峰 5 低谷 20 其他 10
  431 + map.upStopTime = 10;
  432 + map.downStopTime = 10;
  433 + map.mixstopTime = 5;
  434 + map.maxstopTime = 20;
  435 +
  436 + //alert("dddd");
  437 +
  438 + // 返回参数详情模版.
  439 + return cb && cb ({'forminput':template(tempName,{map:map}),'datadisplay': template(tempName +'config',{map:null})});
  440 + });
  441 + }else if(n==1) {
  442 + // 更具站点路由版本获取起点终点站
  443 + var iversion = $('#lineVersionSelect').val();
  444 + $get('/stationroute/all',{'line.id_eq':lineId,'destroy_eq':0, 'versions_eq': iversion},function(result) {
  445 + $.each(result, function(i, d) {
  446 + if (d.stationMark == 'B' && d.directions == 0) {
  447 + // alert(d.stationName);
  448 + map.line.startStationName = d.stationName;
  449 + } else if (d.stationMark == 'E' && d.directions == 0) {
  450 + // alert(d.stationName);
  451 + map.line.endStationName = d.stationName;
  452 + }
  453 + });
  454 +
  455 + // return cb && cb({
  456 + // 'forminput': template(tempName, {map: map}),
  457 + // 'datadisplay': template(tempName + '_config', {map: null})
  458 + // });
  459 + // 返回参数详情模版.
  460 + return cb && cb ({'forminput':template(tempName,{map:map}),'datadisplay': template(tempName +'config',{map:null})});
  461 + });
  462 + }else if (n==2 || n==3) {
  463 + // 更具站点路由版本获取起点终点站
  464 + var iversion = $('#lineVersionSelect').val();
  465 + $get('/stationroute/all',{'line.id_eq':lineId,'destroy_eq':0, 'versions_eq': iversion},function(result) {
  466 + $.each(result, function(i, d) {
  467 + if (d.stationMark == 'B' && d.directions == 0) {
  468 + // alert(d.stationName);
  469 + map.line.startStationName = d.stationName;
  470 + } else if (d.stationMark == 'E' && d.directions == 0) {
  471 + // alert(d.stationName);
  472 + map.line.endStationName = d.stationName;
  473 + }
  474 + });
  475 +
  476 +
  477 + return cb && cb({
  478 + 'forminput': template(tempName, {map: map}),
  479 + 'datadisplay': template(tempName + '_config', {map: null})
  480 + });
  481 + });
  482 +
  483 + }
  484 + });
  485 + };
  486 +
  487 + /**
  488 + * @description (TODO) 格式化成渲染图形数据格式.
  489 + *
  490 + * @param [d--查询出的时刻表明细数据.]
  491 + *
  492 + * @return 返回渲染图形的数据格式.
  493 + * */
  494 + function formatData(d) {
  495 + // 定义返回值.
  496 + var resultD = new Array(),lpA = new Array(),rsLpA = new Array();
  497 + for(var i =0;i<d.length;i++) {
  498 + var obj = {};
  499 + var ddsj = getddsj(d[i].fcsj,d[i].bcsj);// 到达时间.
  500 + obj.bcType = d[i].bcType;// 班次类型
  501 + obj.bcs = d[i].bcs;// 班次数
  502 + obj.bcsj = d[i].bcsj;// 班次时间
  503 + obj.fcno = d[i].fcno;// 发车序号
  504 + obj.fcsj = d[i].fcsj;// 发车时间
  505 + obj.ARRIVALTIME = ddsj// 到达时间
  506 + obj.jhlc = d[i].jhlc;// 计划里程
  507 + obj.lp = d[i].lp==null ? null : d[i].lp.id;// 路牌id
  508 + obj.lpType = d[i].lp==null ? null : d[i].lp.lpType;// 路牌类型
  509 + // obj.parent = d[i].lp.lpName;// 路牌名称
  510 + // obj.parent = parseInt(d[i].lp.lpNo);// 路牌名称
  511 + obj.lpName = d[i].lp.lpName;
  512 + obj.lpNo = d[i].lp.lpNo;// 路牌编码
  513 + obj.tcc = d[i].tcc==null ? null : d[i].tcc.id;// 停车场id
  514 + obj.ttinfo = d[i].ttinfo==null ? null : d[i].ttinfo.id;// 时刻表id
  515 + obj.xl = d[i].xl==null ? null : d[i].xl.id;// 线路id
  516 + obj.xlDir = dmToDh(d[i].xlDir);// 方向【0:relationshipGraph-up 上行;1:relationshipGraph-down 下行】
  517 + obj.qdz = d[i].qdz==null ? null : d[i].qdz.id;// 起点站id
  518 + obj.zdz = d[i].zdz==null ? null : d[i].zdz.id;//终点站id
  519 + obj.isfb = isfbTodm(d[i].isFB);// 是否分班【0:false;1:true】
  520 + obj.isSwitchXl = isSwitchXlTodm(d[i].isSwitchXl);// 是否切换线路【0:false;1:true】
  521 + obj.STOPTIME = gettzsj(d[i],d,ddsj);// 停站时间.
  522 + resultD.push(obj);
  523 + if(lpA.indexOf(obj.lpNo)<0) {
  524 + lpA.push(obj.lpNo);
  525 + rsLpA.push({'lp':obj.lp,'lpNo':obj.lpNo,'lpName':obj.lpName,'lpType':obj.lpType});
  526 + }
  527 + }
  528 + // 返回渲染图形的数据格式.
  529 + return {'rsD':resultD,'rsLp':rsLpA};
  530 + }
  531 +
  532 + /**
  533 + * @description : (TODO) 获取开始与结束时间字符串.
  534 + *
  535 + * @param [map--表单配置参数]
  536 + *
  537 + * @return 返回开始与结束时间字符串集合.
  538 + * */
  539 + function getStartAndEndDate(map) {
  540 + return {'s':getMinDate(map.line.startStationFirstTime,map.line.endStationFirstTime),
  541 + 'e':getMaxDate(map.line.startStationEndTime,map.line.endStationEndTime)}
  542 + }
  543 +
  544 + return {
  545 + // 启动初始化向导导航
  546 + init : function() {
  547 + if(!jQuery().bootstrapWizard) {return;}
  548 + var form = $('#submit_argus_form');// 表单
  549 + var error = $('.alert-danger',form);// 表单异常
  550 + var success = $('.alert-success',form);// 表单成功
  551 + /** 表单验证 */
  552 + form.validate({
  553 + errorElement : 'span',// 错误提示元素span对象
  554 + errorClass : 'help-block help-block-error',// 错误提示元素class名称
  555 + focusInvalid : true,// 验证错误获取焦点
  556 + /** 需要验证的表单元素 */
  557 + rules : {
  558 + 'skbName' : {required : true,},// 时刻表名称,必填项.
  559 + 'lineName' : {required : true,},// 线路名称,必填项.
  560 + 'lineVersion': {required: true}, // 站点路由版本,必填项,
  561 + // 'krl' : {isBaseRes : true,number : true,digits : true,},// 客容量,当选择为客流方式时必填项、整数
  562 + 'startStationFirstTime' : {required : true}, // 起始站首班时间,必填项.
  563 + 'startStationEndTime' : {required : true}, // 起始站末班时间 ,必填项.
  564 + 'endStationFirstTime' : {required : true}, // 终点站首班时间 ,必填项.
  565 + 'endStationFirstTime' : {required : true}, // 终点站末班时间 ,必填项.
  566 + 'endStationEndTime' : {required : true}, // 终点站末班时间,必填项.
  567 + 'earlyStartTime' : {required : true},// 早高峰开始时间,必填项 .
  568 + 'earlyEndTime' : {required : true},// 早高峰结束时间,必填项 .
  569 + 'lateStartTime' : {required : true},// 晚高峰开始时间,必填项 .
  570 + 'lateEndTime' : {required : true},// 晚高峰结束时间,必填项.
  571 + 'zgfbeforepcs' : {required : true,number : true,digits : true, isNum0:true},// 早高峰前车辆数,必填项、必须为整数.
  572 + 'zgfpcs' : {required : true,number : true,digits : true, isNum0:true, isMax: true},// 早高峰车辆数,必填项、必须为整数.
  573 + 'wgfafterpcs' : {required : true,number : true,digits : true, isNum0:true},// 晚高峰后车俩数,必填项、必须为整数.
  574 + 'wgfpcs' : {required : true,number : true,digits : true, isNum0:true, isMax: true},// 晚高峰车俩数,必填项、必须为整数.
  575 + 'gfzjpcs' : {required : true,number : true,digits : true, isNum0:true},// 高峰中间车辆数,必填项、必须为整数.
  576 + 'upTravelTime' : {required : true,number : true},// 上行行驶时间,必填项、必须为整数.
  577 + 'downTravelTime' : {required : true,number : true},// 下行行驶时间,必填项、必须为整数.
  578 + 'upMileage' : {required : true,number : true},// 上行行驶里程,必填项、必须为整数.
  579 + 'downMileage' : {required : true,number : true},// 下行行驶里程,必填项、必须为整数.
  580 + 'upStopTime' : {required : true,number : true,digits : true},// 上行停站间隙,必填项、必须为整数.
  581 + 'downStopTime' : {required : true,number : true,digits : true},// 下行停站间隙,必填项、必须为整数.
  582 + 'maxstopTime' : {required : true,number : true,digits : true},// 最大停站间隙,必填项、必须为整数.
  583 + 'mixstopTime' : {required : true,number : true,digits : true},// 最小停站间隙,必填项、必须为整数.
  584 + 'earlyUpTime' : {number : true},// 早高峰上行时间,必须为数字.
  585 + 'earlyDownTime' : {number : true},// 早高峰下行时间,必须为数字.
  586 + 'lateUpTime' : {number : true},// 晚高峰上行时间,必须为数字.
  587 + 'lateDownTime' : {number : true},// 晚高峰下行时间,必须为数字.
  588 + 'troughUpTime' : {number : true},// 低谷上行时间,必须为数字.
  589 + 'troughDownTime' : {number : true},// 低谷下行时间,必须为数字.
  590 + 'qjUpTime' : {number : true},// 区间上行时间,必须为数字.
  591 + 'qjDownTime' : {number : true},// 区间下行时间,必须为数字.
  592 + 'kfsj' : {number : true,digits : true},// 空放行驶时间,必须为数字.
  593 + 'workeLunch' : {number : true},// 工作餐午餐时间,必须为数字.
  594 + 'workeDinner' : {number : true},// 工作餐晚餐时间,必须为数字.
  595 + 'upInTimer' : {number : true},// 上行进场时间,必须为数字.
  596 + 'upOutTimer' : {number : true},// 上行出场时间,必须为数字.
  597 + 'downInTimer' : {number : true},// 下行进场时间,必须为数字.
  598 + 'downOutTimer' : {number : true},// 下行出场时间,必须为数字.
  599 + 'upInMileage' : {number : true},// 上行进场里程,必须为数字.
  600 + 'upOutMileage' : {number : true},// 上行出场里程,必须为数字.
  601 + 'downInMileage' : {number : true},// 下行进场里程,必须为数字.
  602 + 'downOutMileage' : {number : true},// 下行出场里程,必须为数字.
  603 + 'lb' : {number : true},// 早晚例行保养,必须为数字.
  604 + 'clzs':{required : true,number : true,digits : true, isBcType : true},// 车辆总数,必填项、必须为整数.
  605 + 'bxrc' : {required : true},// 班型人次,必填项
  606 + 'linePlayType' : {required : true},// 线路规划类型,必填项
  607 + 'zdzcrl' : {number : true,digits : true},
  608 + // 新增时间段字段
  609 + 'start1' : {required : true},
  610 + 'end1' : {required : true},
  611 + 'start2' : {required : true},
  612 + 'end2' : {required : true},
  613 + 'start3' : {required : true},
  614 + 'end3' : {required : true},
  615 + 'start4' : {required : true},
  616 + 'end4' : {required : true},
  617 + 'start5' : {required : true},
  618 + 'end5' : {required : true},
  619 +
  620 + 'gfupStopTime' : {required : true,number : true}, // 高峰上行停站时间,必填项、必须为整数.
  621 + 'gfdownStopTime' : {required : true,number : true}, // 高峰下行停站时间,必填项、必须为整数.
  622 + 'dgupStopTime' : {required : true,number : true}, // 低谷上行停站时间,必填项、必须为整数.
  623 + 'dgdownStopTime' : {required : true,number : true}, // 低谷下行停站时间,必填项、必须为整数.
  624 + 'dgmaxfcjx' : {required : true,number : true}, // 低谷最大发车间隙,必填项、必须为整数.
  625 + 'dgmaxtzsj' : {required : true,number : true}, // 低谷最大停站时间,必填项、必须为整数.
  626 +
  627 + // 发车间隙分析用参数
  628 + //'fcjx': {required: true}, // 时段发车间隙,TODO:貌似没发启用form验证
  629 + 'stt': {required: true}, // 停站类型,TODO:貌似没发启用form验证
  630 + 'zgffcjxmin' : {required : true,number : true,digits: true},// 早高峰最小发车间隔.
  631 + 'zgffcjxmax' : {required : true,number : true,digits: true},// 早高峰最大发车间隔.
  632 + 'wffcjxmin' : {required : true,number : true,digits: true},// 晚高峰最小发车间隔.
  633 + 'wffcjxmax' : {required : true,number : true,digits: true},// 晚高峰最大发车间隔.
  634 + 'dgfcjxmin' : {required : true,number : true,digits: true},// 低谷最小发车间隔.
  635 + 'dgfcjxmax' : {required : true,number : true,digits: true},// 低谷最大发车间隔.
  636 + 'gfjypcs': {required : true,number : true,digits: true}, // 高峰建议配车数
  637 + 'jbclcount': {required : true,number : true,digits: true} // 建议加班车数
  638 + },
  639 + messages: {
  640 + 'zgfbeforepcs': "未获取客流数据请手动输入",
  641 + 'zgfpcs': "未获取客流数据请手动输入",
  642 + 'wgfafterpcs': "未获取客流数据请手动输入",
  643 + 'wgfpcs': "未获取客流数据请手动输入",
  644 + 'gfzjpcs': "未获取客流数据请手动输入"
  645 + },
  646 +
  647 + /**
  648 + * 类型:Callback。当未通过验证的表单提交时,可以在该回调函数中处理一些事情。
  649 + *
  650 + * 参数:该回调函数有两个参数:第一个为一个事件对象,第二个为验证器(validator)
  651 + */
  652 + invalidHandler : function(event, validator) {
  653 + error.show();// 显示表单未通过提示信息
  654 + App.scrollTo(error, -200);// 把提示信息放到指定的位置。
  655 + },
  656 +
  657 + /**
  658 + * 类型:Callback。
  659 + *
  660 + * 默认:添加errorClass("has-error")到表单元素。将未通过验证的表单元素设置高亮。
  661 + */
  662 + highlight : function(element) {
  663 + $(element).closest('.form-group').addClass('has-error');// 添加errorClass("has-error")到表单元素
  664 + },
  665 +
  666 + /**
  667 + * 类型:Callback。
  668 + *
  669 + * 默认:移除errorClass("has-error")。与highlight操作相反
  670 + */
  671 + unhighlight : function(element) {
  672 + $(element).closest('.form-group').removeClass('has-error');// 移除errorClass("has-error")
  673 + },
  674 +
  675 + /**
  676 + * 类型:String,Callback。
  677 + *
  678 + * 如果指定它,当验证通过时显示一个消息。
  679 + *
  680 + * 如果是String类型的,则添加该样式到标签中;
  681 + *
  682 + * 如果是一个回调函数,则将标签作为其唯一的参数。
  683 + */
  684 + success : function(label) {
  685 + label.closest('.form-group').removeClass('has-error');// 当验证通过时,移除errorClass("has-error")
  686 + },
  687 +
  688 + /**
  689 + * 类型:Callback。
  690 + *
  691 + * 默认:default (native) form submit;当表单通过验证,提交表单。回调函数有个默认参数form
  692 + */
  693 + submitHandler : function(f) {
  694 + // 定义localStorage对象.
  695 + var storage = window.localStorage;
  696 + // 表单序列化.
  697 + var argus = form.serializeJSON();
  698 + console.log(argus);
  699 + // 获取站点路由.
  700 + $get('/stationroute/all',{'line.id_eq':argus.lineName.split('_')[0],'destroy_eq':0, 'versions_eq': argus.lineVersion},function(result) {
  701 + // 判断.
  702 + if(result) {
  703 + // 定义上行起点站,上行终点站,下行起点站,下行终点站.
  704 + var upB ='',upE='',downB='',downE='';
  705 + for(var r = 0 ; r<result.length;r++) {
  706 + if(result[r].directions==0 && result[r].stationMark =='B')
  707 + upB = result[r].id;
  708 + if(result[r].directions==0 && result[r].stationMark =='E')
  709 + upE = result[r].id;
  710 + if(result[r].directions==1 && result[r].stationMark =='B')
  711 + downB = result[r].id;
  712 + if(result[r].directions==1 && result[r].stationMark =='E')
  713 + downE = result[r].id;
  714 + }
  715 + argus.up_s = upB + '_' + upE;
  716 + argus.down_s = downB + '_' + downE;
  717 + // 获取停车车场.
  718 + $get('/carpark/all',{'parkCode_eq':argus.tcc},function(cp) {
  719 + var tcc_id = '';
  720 + if(cp) {
  721 + tcc_id = cp[0].id;
  722 + }
  723 + argus.tcc_id = tcc_id; // 停车场ID.
  724 + argus.skbmc = $('#skbNameSelect').select2('data')[0].text;// 时刻名称.
  725 + argus.xlmc = $('#lineSelect').select2('data')[0].text;// 线路名称.
  726 + // 获取时刻表明细.
  727 + $get('/tidc/all',{'ttinfo.id_eq':parseInt(argus.skbName)},function(data) {
  728 + if(data.status=='SUCCESS' && data.data.length>0) {
  729 + argus.istidc = 1;
  730 + layer.confirm('系统已存在该时刻表【'+
  731 + $("#skbNameSelect").select2("data")[0].text +
  732 + '】明细,是否使用已有数据渲染模型?', {
  733 + btn: ['确定并使用','取消并继续'] //按钮
  734 + }, function(){
  735 + layer.closeAll();
  736 + submit(formatData(data.data),argus);
  737 + }, function(){
  738 + submit(null,argus);
  739 + });
  740 + }else {
  741 + argus.istidc = 0;
  742 + submit(null,argus);
  743 + }
  744 + });
  745 + });
  746 + }else {
  747 + layer.msg('系统不存在该线路的上、下行起终点站!');
  748 + }
  749 + });
  750 +
  751 + // 表单提交.
  752 + function submit(p,argus) {
  753 + var baseRes2 = $('#submit_argus_form input[name="baseRes"]:checked').val();// 获取参数方式值.
  754 + if (baseRes2 == 0) {
  755 + // TODO:客流暂时有问题,直接使用现有时刻表打开,日后有机会再改好
  756 + var skbId2 = $("#skbNameSelect").val();
  757 + var argus2 = {
  758 + baseRes:"0",carPark:"FFFFFF68",downInMileage:"0",
  759 + downInTimer:"0",downMileage:"3.5",downOutMileage:"0",
  760 + downOutTimer:"0",downStopTime:"10",downTravelTime:"7",
  761 + down_s:"26922_26928",earlyDownTime:"7",earlyEndTime:"08:30",
  762 + earlyStartTime:"06:31",earlyUpTime:"10",endStationEndTime:"22:30",
  763 + endStationFirstTime:"05:50",gfzjpcs:"7",istidc:1,kfsj:"",krl:"50",
  764 + lateDownTime:"7",lateEndTime:"18:30",lateStartTime:"16:31",
  765 + lateUpTime:"10",lb:"15",lineName:"801702_801702_1109路",
  766 + linePlayType:"0",maxstopTime:"20",mixstopTime:"8",qjDownTime:"",
  767 + qjUpTime:"",skbName:skbId2,skbmc:"2016.4.6双时刻表",
  768 + startStationEndTime:"23:00",startStationFirstTime:"06:15",tcc_id:45,troughDownTime:"7",troughUpTime:"10",upInMileage:"0",
  769 + upInTimer:"10",upMileage:"3.5",upOutMileage:"0",upOutTimer:"10",upStopTime:"10",upTravelTime:"10",
  770 + up_s:"26912_26921",wgfafterpcs:"5",wgfpcs:"10",workeDinner:"20",workeLunch:"20",xlmc:"1109路",zgfbeforepcs:"3",zgfpcs:"10",}
  771 + // 获取时刻表明细.
  772 + $get('/tidc/all',{'ttinfo.id_eq':parseInt(argus.skbName)},function(data) {
  773 + var p = formatData(data.data,argus2);
  774 + // TODO:添加parent
  775 + for (var ii = 0; ii < p.rsD.length; ii++) {
  776 + p.rsD[ii].parent = p.rsD[ii].lpNo;// 路牌名称
  777 + }
  778 +
  779 + argus2.istidc = 1;
  780 + var storage = window.localStorage;
  781 + storage.setItem("Gantt_AgursData",JSON.stringify(argus2));
  782 + storage.setItem('isDoDate',JSON.stringify({'rsD':p.rsD,'rsLP':p.rsLp}));
  783 + loadPage('gantt.html');
  784 + });
  785 + } else {
  786 + storage.setItem("Gantt_AgursData",JSON.stringify(argus));
  787 + if(p!=null) {
  788 + storage.setItem('isDoDate',JSON.stringify({'rsD':p.rsD,'rsLP':p.rsLp}));
  789 + }else {
  790 + storage.setItem('isDoDate','');
  791 + }
  792 + loadPage('gantt.html');
  793 + }
  794 +
  795 +
  796 + }
  797 + }
  798 + });
  799 +
  800 + // 验证配车数不能为零.
  801 + $.validator.addMethod('isNum0', function(value,element) {
  802 + // 定义返回值.
  803 + var tag = true;
  804 + var zgfbeforepcs = $('#zgfbeforepcsInput').val(),// 早高峰前配车数.
  805 + zgfpcs = $('#zgfpcsInput').val(),// 早高峰配车数.
  806 + gfzjpcs = $('#gfzjpcsInput').val(),// 高峰之间配车数.
  807 + wgfpcs = $('#wgfpcsInput').val(),// 晚高峰配车数.
  808 + wgfafterpcs = $('#wgfafterpcsInput').val();// 晚高峰后配车数.
  809 + // 判断是否为零.
  810 + if(parseInt(zgfbeforepcs) == 0 || parseInt(zgfbeforepcs) ==0 ||
  811 + parseInt(gfzjpcs) ==0 || parseInt(wgfpcs) ==0 || parseInt(wgfafterpcs) ==0)
  812 + tag = false;
  813 + return tag;
  814 + },function(){return '配车数不能为零!'; });
  815 +
  816 + // 验证高峰时段内的配车数是否高于其它时段配车数.
  817 + $.validator.addMethod('isMax', function(value,element) {
  818 + var tag = true;
  819 + var zgfbeforepcs = parseInt($('#zgfbeforepcsInput').val()),// 早高峰前配车数.
  820 + zgfpcs = parseInt($('#zgfpcsInput').val()),// 早高峰配车数.
  821 + gfzjpcs = parseInt($('#gfzjpcsInput').val()),// 高峰之间配车数.
  822 + wgfpcs = parseInt($('#wgfpcsInput').val()),// 晚高峰配车数.
  823 + wgfafterpcs = parseInt($('#wgfafterpcsInput').val());// 晚高峰后配车数.
  824 + // 判断高峰时段内的配车数是否高于其它时段配车数.
  825 + if(zgfpcs<zgfbeforepcs || zgfpcs<gfzjpcs || zgfpcs<wgfafterpcs || wgfpcs<zgfbeforepcs || wgfpcs<gfzjpcs || wgfpcs<wgfafterpcs )
  826 + tag = false;
  827 + return tag;
  828 + },function(){return '高峰时段配车数必须高于其它时段配车数!';});
  829 +
  830 + // 验证客流数据分析时客容量为必填项.
  831 + /*$.validator.addMethod("isBaseRes", function(value,element) {
  832 + // 定义返回值.
  833 + var tag = true;
  834 + // 定义选择获取参数方式值
  835 + var baseChecked = $('#submit_argus_form input[name="baseRes"]:checked').val();
  836 + // 判断
  837 + if(baseChecked == '0' && $('#krlInput').val()== '')
  838 + tag = false;
  839 + return tag;
  840 + }, '客流大数据分析,客流总量为必填项!');
  841 + */
  842 + // 验证配车总数与班型人次搭配
  843 + $.validator.addMethod('isBcType', function(value,element) {
  844 + // 定义返回值.
  845 + var tag = true;
  846 + // 定义车辆总数,班型人次.
  847 + var clzs = $('#clzsInput').val(),
  848 + bxrc = $('#state_tagsinput').val();
  849 + // 判断.
  850 + if(bxrc=='' || bxrc==null || clzs=='' || clzs==0)
  851 + return false;
  852 + var bxrcAr = bxrc.split(','),pczs = 0;
  853 + for(var s = 0 ; s< bxrcAr.length;s++) {
  854 + // 切割单个班型人次.
  855 + pczs = pczs + parseInt(bxrcAr[s].split('/')[2]);
  856 + }
  857 + if(pczs!=clzs)
  858 + tag = false;
  859 + /**
  860 + // 定义首末班次开始结束时间集合.
  861 + var map = {'line':{'startStationFirstTime':$('#qdzsbsjInput').val(),
  862 + 'startStationEndTime':$('#qdzmbsjInput').val(),
  863 + 'endStationFirstTime':$('#zdzsbsjInput').val(),
  864 + 'endStationEndTime':$('#zdzmbsjInput').val()}};
  865 + // 定义开始~结束时间.
  866 + var setMap = getStartAndEndDate(map);
  867 + // 定义最大工时.
  868 + var maxGs = parseInt( ((strToTime(setMap.e) - strToTime(setMap.s)) / 60000) / 60) * parseInt(clzs);
  869 + // 切割班型人次,定义班次人次所用总工时.
  870 + var bxrcAr = bxrc.split(','),countGs = 0,countRc = 0;
  871 + // 遍历
  872 + for(var s = 0 ; s< bxrcAr.length;s++) {
  873 + // 切割单个班型人次.
  874 + var s1a = bxrcAr[s].split('/');
  875 + // 定义人次.
  876 + var rs = parseInt(s1a[1]);
  877 + // 定义小时系数.
  878 + var hoursV = 0.0;
  879 + for(var g = 0 ; g < bxrcGs.length; g++) {
  880 + // 判断班型是否一致.
  881 + if(bxrcGs[g].type == s1a[0]) {
  882 + // 重新赋值小时系数.
  883 + hoursV = bxrcGs[g].hoursV;
  884 + }
  885 + }
  886 + // 重新计算班次人次所用总工时.
  887 + countGs = countGs + parseFloat(hoursV.toFixed(2)) * rs;
  888 + countRc = countRc + rs;
  889 + }
  890 + // 判断
  891 + if(parseFloat(countGs.toFixed(2))>maxGs || (bxrcAr.length==1 && countRc > parseInt(clzs)) )
  892 + tag = false;
  893 + */
  894 + return tag;
  895 + },function(){return '配车总数与【班型/人次/车辆】搭配不合理!'; });
  896 +
  897 + /**
  898 + * @description : (TODO) 监听获取参数方式值改变事件.
  899 + *
  900 + * */
  901 + /*$('input:radio[name="baseRes"]').on('change',function(v) {
  902 + if($(this).val()=='1')
  903 + $('#krlGroup').hide();
  904 + else if($(this).val()=='0')
  905 + $('#krlGroup').show();
  906 + });*/
  907 +
  908 + // 确认提交信息
  909 + var displayConfirm = function() {
  910 + // 遍历表单元素下的tab4的class名称为form-control-static
  911 + $('#tab4 .form-control-static', form).each(function(){
  912 + var input = $('[name="'+$(this).attr("data-display")+'"]', form);// 定义input
  913 + if (input.is(":radio")) {
  914 + input = $('[name="'+$(this).attr("data-display")+'"]:checked', form);
  915 + }
  916 + if (input.is(":text") || input.is("textarea")) {
  917 + $(this).html(input.val());
  918 + } else if (input.is("select")) {
  919 + $(this).html(input.find('option:selected').text());
  920 + } else if (input.is(":radio") && input.is(":checked")) {
  921 + $(this).html(input.attr("data-title"));
  922 + } else if ($(this).attr("data-display") == 'payment[]') {
  923 + var payment = [];
  924 + $('[name="payment[]"]:checked', form).each(function(){
  925 + payment.push($(this).attr('data-title'));
  926 + });
  927 + $(this).html(payment.join("<br>"));
  928 + }
  929 + });
  930 + };
  931 +
  932 + /** 按钮点击时触发 */
  933 + var handleTitle = function(tab, navigation, index) {
  934 + var total = navigation.find('li').length;// 定义导航条标签个数
  935 + var current = index + 1;// 当前标签页
  936 + $('.step-title', $('#form-wizard-info')).text((index + 1) + ' - ' + total); // 设置向导标题
  937 + jQuery('li', $('#form-wizard-info')).removeClass("done"); // 删除"done"样式
  938 + var li_list = navigation.find('li');// 获取导航标签元素集合
  939 + for (var i = 0; i < index; i++) {
  940 + jQuery(li_list[i]).addClass("done");// 追加done样式
  941 + }
  942 + /** 如果为第一步隐藏返回按钮,否则显示返回按钮. */
  943 + if (current == 1) {
  944 + $('#submit_argus_form').find('.button-previous').hide();// 隐藏返回按钮
  945 + } else {
  946 + $('#submit_argus_form').find('.button-previous').show();// 显示返回按钮
  947 + }
  948 +
  949 + /** 如果为最后一步显示提交按钮,隐藏下一步按钮,否则隐藏提交按钮,显示下一步按钮 */
  950 + if (current >= total) {
  951 + $('#submit_argus_form').find('.button-next').hide();// 隐藏下一步按钮
  952 + $('#submit_argus_form').find('.button-submit').show();// 显示提交按钮
  953 + displayConfirm(); // 确认提交信息
  954 + } else {
  955 + $('#submit_argus_form').find('.button-next').show();// 显示下一步按钮
  956 + $('#submit_argus_form').find('.button-submit').hide();// 隐藏提交按钮
  957 + }
  958 + App.scrollTo($('.page-title'));// 移动到指定位置
  959 + };
  960 +
  961 + // 表单导航向导插件
  962 + $('#submit_argus_form').bootstrapWizard({
  963 + 'nextSelector': '.button-next',// 下一步元素选择器
  964 + 'previousSelector': '.button-previous',// 返回元素选择器
  965 + /** 当一个导航标签被点击,返回错误的移动到该选项卡,并显示它的内容. */
  966 + onTabClick: function (tab, navigation, index, clickedIndex) {
  967 + return false;
  968 + success.hide();
  969 + error.hide();
  970 + if (form.valid() == false) {
  971 + return false;
  972 + }
  973 + handleTitle(tab, navigation, clickedIndex);
  974 + },
  975 + /** 下一步按钮被单击时触发, 返回移动到下一个步骤. */
  976 + onNext: function (tab, navigation, index) {
  977 + success.hide();
  978 + error.hide();
  979 + if (form.valid() == false) {
  980 + return false;
  981 + }
  982 + /*if(index==1) {
  983 + // 初始化客容量值.
  984 + if($('#krlInput').val() == '')
  985 + $('#krlInput').val(50);
  986 + }else */if(index == 2) {
  987 + var baseRes = $('#submit_argus_form input[name="baseRes"]:checked').val(),// 获取参数方式值.
  988 + lineId = $('#lineSelect').val().split('_')[0],// 线路ID.
  989 + krl = 50;
  990 + // krl = $('#krlInput').val();// 客容量
  991 + // 弹出正在加载层
  992 + var i = layer.load(2);
  993 + getLineInfo(lineId,function(r) {
  994 + getHtmlTemp(baseRes,r.content[0],lineId,krl,function(htlMap) {
  995 + $('#tab3').html(htlMap.forminput);
  996 + $('#tab4').html(htlMap.datadisplay);
  997 +
  998 + if (baseRes == 0) { // 客流大数据分析
  999 + $('#linePlayTypeSelect').val(r.content[0].line.linePlayType);
  1000 + // 停站类型选择控件
  1001 + ComponentsBootstrapTagsinput.init_stoptype();
  1002 + // 日期控件
  1003 + $('#qdzsbsjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 起始站首班时间
  1004 + $('#qdzmbsjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 起始站末班时间
  1005 + $('#zdzsbsjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 终点站首班时间
  1006 + $('#zdzmbsjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 终点站末班时间
  1007 + $('#zgfkssjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 早高峰开始时间
  1008 + $('#zgfjssjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 早高峰结束时间
  1009 + $('#wgfkssjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 晚高峰开始时间
  1010 + $('#wgfjssjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 晚高峰结束时间
  1011 + // 初始化停车场下拉框.
  1012 + gettccInfo(function(cd) {
  1013 + var options = '<option value="">请选择...</option><optgroup label="停车场">';
  1014 + var $_len = cd.length;
  1015 + if($_len>0) {
  1016 + $.each(cd, function(i, d){
  1017 + options += '<option value="'+d.parkCode+'">'+d.parkName+'</option>';
  1018 + });
  1019 +
  1020 + }
  1021 + options += '</optgroup>';
  1022 + $('#carParkSelect').html(options).select2();
  1023 + $('#carParkSelect').select2("val",r.content[0].carPark);
  1024 + // 关闭弹出加载层
  1025 + layer.close(i);
  1026 + });
  1027 +
  1028 + } else if (baseRes == 1) { // 班次/人次/车辆
  1029 + $('#linePlayTypeSelect').val(r.content[0].line.linePlayType);
  1030 + ComponentsBootstrapTagsinput.init();// 初始化班型人次Input Tag.
  1031 + // 停站类型选择控件
  1032 + ComponentsBootstrapTagsinput.init_stoptype();
  1033 + // 日期控件
  1034 + $('#qdzsbsjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 起始站首班时间
  1035 + $('#qdzmbsjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 起始站末班时间
  1036 + $('#zdzsbsjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 终点站首班时间
  1037 + $('#zdzmbsjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 终点站末班时间
  1038 + $('#zgfkssjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 早高峰开始时间
  1039 + $('#zgfjssjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 早高峰结束时间
  1040 + $('#wgfkssjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 晚高峰开始时间
  1041 + $('#wgfjssjInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});// 晚高峰结束时间
  1042 + $('#startInput1').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
  1043 + $('#endInput1').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
  1044 + $('#startInput2').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
  1045 + $('#endInput2').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
  1046 + $('#startInput3').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
  1047 + $('#endInput3').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
  1048 + $('#startInput4').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
  1049 + $('#endInput4').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
  1050 + $('#startInput5').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
  1051 + $('#endInput5').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
  1052 + // 初始化停车场下拉框.
  1053 + gettccInfo(function(cd) {
  1054 + var options = '<option value="">请选择...</option><optgroup label="停车场">';
  1055 + var $_len = cd.length;
  1056 + if($_len>0) {
  1057 + $.each(cd, function(i, d){
  1058 + options += '<option value="'+d.parkCode+'">'+d.parkName+'</option>';
  1059 + });
  1060 +
  1061 + }
  1062 + options += '</optgroup>';
  1063 + $('#carParkSelect').html(options).select2();
  1064 + $('#carParkSelect').select2("val",r.content[0].carPark);
  1065 + // 关闭弹出加载层
  1066 + layer.close(i);
  1067 + });
  1068 +
  1069 + } else if (baseRes == 2 || baseRes == 3) { // 发车间隔分析
  1070 + // 上下行首末班日期控件
  1071 + $('#startStationFirstTime_id').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
  1072 + $('#startStationEndTime_id').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
  1073 + $('#endStationFirstTime_id').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
  1074 + $('#endStationEndTime_id').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
  1075 +
  1076 + // 早高峰晚高峰日期控件
  1077 + $('#earlyStartTime_id').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
  1078 + $('#earlyEndTime_id').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
  1079 + $('#lateStartTime_id').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
  1080 + $('#lateEndTime_id').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
  1081 +
  1082 + // 线路规划类型日期控件
  1083 + $('#linePlayType_id').val(r.content[0].line.linePlayType);
  1084 +
  1085 + // 停车场下拉框控件
  1086 + gettccInfo(function(cd) {
  1087 + var options = '<option value="">请选择...</option><optgroup label="停车场">';
  1088 + var $_len = cd.length;
  1089 + if($_len>0) {
  1090 + $.each(cd, function(i, d){
  1091 + options += '<option value="'+d.parkCode+'">'+d.parkName+'</option>';
  1092 + });
  1093 +
  1094 + }
  1095 + options += '</optgroup>';
  1096 + $('#carPark_id').html(options).select2();
  1097 + $('#carPark_id').select2("val",r.content[0].carPark);
  1098 + // 关闭弹出加载层
  1099 + layer.close(i);
  1100 + });
  1101 +
  1102 + // 发车间隙选择控件
  1103 + //ComponentsBootstrapTagsinput.init_fcjx();
  1104 + // 停站类型选择控件
  1105 + ComponentsBootstrapTagsinput.init_stoptype();
  1106 +
  1107 + // TODO:发车间隔分析参数设置
  1108 +
  1109 + layer.close(i);
  1110 + }
  1111 +
  1112 + });
  1113 + });
  1114 + }
  1115 + handleTitle(tab, navigation, index);
  1116 + },
  1117 + /** 上一步按钮被单击时触发,返回移动到前一个步骤 */
  1118 + onPrevious: function (tab, navigation, index) {
  1119 + success.hide();
  1120 + error.hide();
  1121 + handleTitle(tab, navigation, index);
  1122 + },
  1123 + /** 显示选项卡内容 */
  1124 + onTabShow: function (tab, navigation, index) {
  1125 + var total = navigation.find('li').length;
  1126 + var current = index + 1;
  1127 + var $percent = (current / total) * 100;
  1128 + $('#submit_argus_form').find('.progress-bar').css({
  1129 + width: $percent + '%'
  1130 + });
  1131 +
  1132 + }
  1133 +
  1134 + });
  1135 + // 初始化第一步隐藏返回按钮
  1136 + $('#submit_argus_form').find('.button-previous').hide();
  1137 + }
  1138 + }
  1139 +}();
... ...
src/main/resources/static/pages/base/timesmodel/js/systemTools.js
... ... @@ -42,7 +42,7 @@ $(&#39;.addBc&#39;).on(&#39;click&#39;,function() {
42 42 var lpData = echartsDrawGTT.getLpData();
43 43 var lpDataCount = echartsDrawGTT.getLpDataCount();
44 44 // 弹出层mobal页面
45   - $.get('/pages/base/timesmodel/fragments/addBc.html', function(m){
  45 + $.get('/pages/base/timesmodel/fragments/addbc.html', function(m){
46 46 $(pjaxContainer).append(m);
47 47 // 规定被选元素要触发的事件。可以使自定义事件(使用 bind() 函数来附加),或者任何标准事件。
48 48 $('#addBc_mobal').trigger('addBcMobal.show',[lpData,lpDataCount,echartsDrawGTT]);
... ...
src/main/resources/static/pages/base/timesmodel/tepms/fcjx_temp.html
... ... @@ -237,24 +237,24 @@
237 237 <div class="col-md-6">
238 238 <label class="control-label col-md-5"><span class="required"> * </span>早高峰发车间隔 :</label>
239 239 <div class="col-md-3" style="padding-right: 0px;">
240   - <input type="text" class="form-control" value="20" name="zgffcjxmin" id="zgffcjxmin_id"
  240 + <input type="text" class="form-control" value="8" name="zgffcjxmin" id="zgffcjxmin_id"
241 241 placeholder="最小间隔">
242 242 </div>
243 243 <div class="col-md-1" style="padding-top: 10px; font-size: 85%;">至</div>
244 244 <div class="col-md-3" style="padding-left: 0px;">
245   - <input type="text" class="form-control" value="25" name="zgffcjxmax" id="zgffcjxmax_id"
  245 + <input type="text" class="form-control" value="8" name="zgffcjxmax" id="zgffcjxmax_id"
246 246 placeholder="最大间隔">
247 247 </div>
248 248 </div>
249 249 <div class="col-md-6">
250 250 <label class="control-label col-md-5"><span class="required"> * </span>晚高峰发车间隔 :</label>
251 251 <div class="col-md-3" style="padding-right: 0px;">
252   - <input type="text" class="form-control" value="20" name="wffcjxmin" id="wffcjxmin_id"
  252 + <input type="text" class="form-control" value="8" name="wffcjxmin" id="wffcjxmin_id"
253 253 placeholder="最小间隔">
254 254 </div>
255 255 <div class="col-md-1" style="padding-top: 10px; font-size: 85%;">至</div>
256 256 <div class="col-md-3" style="padding-left: 0px;">
257   - <input type="text" class="form-control" value="25" name="wffcjxmax" id="wffcjxmax_id"
  257 + <input type="text" class="form-control" value="8" name="wffcjxmax" id="wffcjxmax_id"
258 258 placeholder="最大间隔">
259 259 </div>
260 260 </div>
... ... @@ -264,12 +264,12 @@
264 264 <div class="col-md-6">
265 265 <label class="control-label col-md-5"><span class="required"> * </span>低谷发车间隔 :</label>
266 266 <div class="col-md-3" style="padding-right: 0px;">
267   - <input type="text" class="form-control" value="20" name="dgfcjxmin" id="dgfcjxmin_id"
  267 + <input type="text" class="form-control" value="10" name="dgfcjxmin" id="dgfcjxmin_id"
268 268 placeholder="最小间隔">
269 269 </div>
270 270 <div class="col-md-1" style="padding-top: 10px; font-size: 85%;">至</div>
271 271 <div class="col-md-3" style="padding-left: 0px;">
272   - <input type="text" class="form-control" value="25" name="dgfcjxmax" id="dgfcjxmax_id"
  272 + <input type="text" class="form-control" value="20" name="dgfcjxmax" id="dgfcjxmax_id"
273 273 placeholder="最大间隔">
274 274 </div>
275 275 </div>
... ... @@ -284,25 +284,6 @@
284 284  
285 285 <div class="form-group">
286 286 <div class="col-md-6">
287   - <label class="control-label col-md-5">建议套跑路牌数 :</label>
288   - <div class="col-md-5">
289   - <input type="text" class="form-control" name="workeLunch" value="5" id="temp1"
290   - placeholder="请输入建议套跑路牌">
291   - </div>
292   - </div>
293   -
294   - <div class="col-md-6">
295   - <label class="control-label col-md-5">
296   - <span class="required"> * </span> 建议高峰配车数 :</label>
297   - <div class="col-md-5">
298   - <input type="text" class="form-control" value="10" placeholder="车辆数" name="gfjypcs" id="gfjypcsInput" min="1">
299   - </div>
300   - </div>
301   -
302   - </div>
303   -
304   - <div class="form-group">
305   - <div class="col-md-6">
306 287 <label class="control-label col-md-5"><span class="required"> * </span>停站类型 :</label>
307 288 <div class="col-md-5 tagsDiv">
308 289 <div class="row" style="margin-left: 15px;">
... ... @@ -337,13 +318,15 @@
337 318 </div>
338 319  
339 320 </div>
  321 +
340 322 <div class="col-md-6">
341   - <label class="control-label col-md-5">充电时间 :</label>
  323 + <label class="control-label col-md-5">
  324 + <span class="required"> * </span> 建议高峰配车数 :</label>
342 325 <div class="col-md-5">
343   - <input type="text" class="form-control" name="workeDinner" value="20" id="temp2"
344   - placeholder="请输入充电时间">
  326 + <input type="text" class="form-control" value="1" placeholder="车辆数" name="gfjypcs" id="gfjypcsInput" min="1">
345 327 </div>
346 328 </div>
  329 +
347 330 </div>
348 331  
349 332 <!-- 隐藏字段-时间 -->
... ...
src/main/resources/static/pages/control/line/child_pages/deviceReport.html
... ... @@ -91,7 +91,7 @@
91 91 ,$car = $('#deviceReportPanel #carSelect')
92 92 ,$table = $('#deviceReportPanel table');
93 93  
94   - var reqCodeMap = {0xA1: '请求恢复运营', 0xA2: '申请调档', 0xA3: '出场请求', 0xA5: '进场请求', 0xA7: '加油请求', 0x50: '车辆故障', 0x70: '路阻报告', 0x60: '事故报告', 0x11: '扣证纠纷', 0x12 : '报警'};
  94 + var reqCodeMap = {0xA1: '请求恢复运营', 0xA2: '申请调档', 0xA3: '出场请求', 0xA5: '进场请求', 0xA7: '加油请求', 0x50: '车辆故障', 0x70: '路阻报告', 0x60: '事故报告', 0x11: '扣证纠纷', 0x12 : '报警', 0x21: '单车有人伤', 0x22: '单车无人伤', 0x23: '双车有人伤', 0x24: '双车无人伤'};
95 95  
96 96 var lineNameMap = JSON.parse(storage.getItem('lineIds'));
97 97 //初始加载数据
... ...
src/main/resources/static/pages/control/line/index.html
... ... @@ -281,7 +281,7 @@ $.get(&#39;/user/currentUser&#39;, function(user){
281 281 //打个标记
282 282 storage.setItem('real_control_flag', 1);
283 283  
284   -var reqCodeMap = {0xA1: '请求恢复运营', 0xA2: '申请调档', 0xA3: '出场请求', 0xA5: '进场请求', 0xA7: '加油请求', 0x50: '车辆故障', 0x70: '路阻报告', 0x60: '事故报告', 0x11: '扣证纠纷', 0x12 : '报警'};
  284 +var reqCodeMap = {0xA1: '请求恢复运营', 0xA2: '申请调档', 0xA3: '出场请求', 0xA5: '进场请求', 0xA7: '加油请求', 0x50: '车辆故障', 0x70: '路阻报告', 0x60: '事故报告', 0x11: '扣证纠纷', 0x12 : '报警', 0x21: '单车有人伤', 0x22: '单车无人伤', 0x23: '双车有人伤', 0x24: '双车无人伤'};
285 285  
286 286 function _fadeOut($that){
287 287 $that.fadeOut('normal', function(){
... ...
src/main/resources/static/pages/electricity/cdl/cdlAdd.html
... ... @@ -6,7 +6,7 @@
6 6  
7 7 <ul class="page-breadcrumb breadcrumb">
8 8 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
9   - <li><span class="active">用油管理</span> <i class="fa fa-circle"></i></li>
  9 + <li><span class="active">能耗管理</span> <i class="fa fa-circle"></i></li>
10 10 <li><a href="cylList.html" data-pjax>车辆存电</a> <i class="fa fa-circle"></i></li>
11 11 <li><span class="active">添加存电</span></li>
12 12 </ul>
... ...
src/main/resources/static/pages/electricity/cdl/cdlList.html
... ... @@ -6,7 +6,7 @@
6 6  
7 7 <ul class="page-breadcrumb breadcrumb">
8 8 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
9   - <li><span class="active">用点管理</span> <i class="fa fa-circle"></i></li>
  9 + <li><span class="active">能耗管理</span> <i class="fa fa-circle"></i></li>
10 10 <li><span class="active">车辆存电</span></li>
11 11 </ul>
12 12  
... ...
src/main/resources/static/pages/electricity/jdl/jdlReception.html 0 → 100644
  1 +<style type="text/css">
  2 + .table-bordered {
  3 + border: 1px solid; }
  4 + .table-bordered > thead > tr > th,
  5 + .table-bordered > thead > tr > td,
  6 + .table-bordered > tbody > tr > th,
  7 + .table-bordered > tbody > tr > td,
  8 + .table-bordered > tfoot > tr > th,
  9 + .table-bordered > tfoot > tr > td {
  10 + border: 1px solid; }
  11 + .table-bordered > thead > tr > th,
  12 + .table-bordered > thead > tr > td {
  13 + border-bottom-width: 2px; }
  14 +
  15 + .table > tbody + tbody {
  16 + border-top: 1px solid; }
  17 +</style>
  18 +
  19 +<!-- <div class="page-head"> -->
  20 +<!-- <div class="page-title" style="margin-left: 20px"> -->
  21 +<!-- <button id="exportList">数据导出</button> -->
  22 +<!-- </div> -->
  23 +<!-- </div> -->
  24 +
  25 +<div class="row" id="jdlReception">
  26 + <div class="col-md-12">
  27 + <div class="portlet light porttlet-fit bordered">
  28 + <div class="portlet-body">
  29 + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 600px">
  30 + <table class="table table-bordered table-hover table-checkable" id="forms_2">
  31 + <thead>
  32 + <tr>
  33 + <td style="min-width: 170px">批次号</td>
  34 + <td style="min-width: 80px">桩号</td>
  35 + <td style="min-width: 170px">枪号</td>
  36 + <td>车号</td>
  37 + <td>开始时间</td>
  38 + <td>结束时间</td>
  39 + <td>总计(分钟)</td>
  40 + <td>起始电量SOC(%)</td>
  41 + <td>结束电量SOC(%)</td>
  42 + <td>充电度数</td>
  43 + <td>来源</td>
  44 + </tr>
  45 + </thead>
  46 +
  47 + <tbody>
  48 +
  49 + </tbody>
  50 + </table>
  51 + </div>
  52 + </div>
  53 + </div>
  54 + </div>
  55 +</div>
  56 +<script src="/pages/mforms/singledatas/jquery.table2excel.min.js"></script>
  57 +<script>
  58 + $(function(){
  59 + // 关闭左侧栏
  60 + if (!$('body').hasClass('page-sidebar-closed'))
  61 + $('.menu-toggler.sidebar-toggler').click();
  62 + var date = "";
  63 + var nbbm = "";
  64 + $("#jdlReception").on('init', function (e, id) {
  65 + date = id.split(",")[0];
  66 + nbbm = id.split(",")[1];
  67 + var i = layer.load(2);
  68 + $get('/jdl/queryJdlReception',{rq:date,nbbm:nbbm,type:'query'},function(result){
  69 + layer.close(i);
  70 + $.each(result, function(i, e){
  71 +// console.log(e);
  72 + if(e.origin == 1){
  73 + e.originName = "导入";
  74 + } else {
  75 + e.originName = "接口";
  76 + }
  77 + });
  78 + var jdlReception = template('jdlReception_tbody',{list:result});
  79 + $('#forms_2 tbody').html(jdlReception);
  80 + });
  81 + })
  82 + $("#exportList").on('click',function(){
  83 +// var i = layer.load(2);
  84 +// var name="";
  85 +// if(dir=="1"){
  86 +// fileName="发车准点率"+dates;
  87 +// }else{
  88 +// fileName="到站准点率"+dates;
  89 +// }
  90 +// $get('/calcSheet/calcSheet',{line:no,date:dates,dir:dir,type:'export'},function(result){
  91 +// window.open("/downloadFile/download?fileName="+fileName);
  92 +// layer.close(i);
  93 +// });
  94 + });
  95 +
  96 +
  97 + });
  98 +</script>
  99 +<script type="text/html" id="jdlReception_tbody">
  100 + {{each list as obj i}}
  101 + <tr>
  102 + <td>{{obj.batchNo}}</td>
  103 + <td>{{obj.pileId}}</td>
  104 + <td>{{obj.connectorId}}</td>
  105 + <td>{{obj.carCode}}</td>
  106 + <td>{{obj.startTime}}</td>
  107 + <td>{{obj.endTime}}</td>
  108 + <td>{{obj.sumTime}}</td>
  109 + <td>{{obj.startSoc}}</td>
  110 + <td>{{obj.endSoc}}</td>
  111 + <td>{{obj.chargeCapacity}}</td>
  112 + <td>{{obj.originName}}</td>
  113 + </tr>
  114 + {{/each}}
  115 + {{if list.length == 0}}
  116 + <tr>
  117 + <td colspan="10"><h6 class="muted">没有找到相关数据</h6></td>
  118 + </tr>
  119 + {{/if}}
  120 +</script>
0 121 \ No newline at end of file
... ...
src/main/resources/static/pages/electricity/jdl/jdlReceptionBatch.html 0 → 100644
  1 +<style>
  2 +.blue{
  3 + background-color: #87CEFF
  4 +}
  5 +</style>
  6 +<div class="page-head">
  7 + <div class="page-title">
  8 + <h1>充电量导入批次</h1>
  9 + </div>
  10 +</div>
  11 +<ul class="page-breadcrumb breadcrumb">
  12 + <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
  13 + <li><span class="active">能耗管理</span> <i class="fa fa-circle"></i></li>
  14 + <li><span class="active">充电量导入批次</span></li>
  15 +</ul>
  16 +
  17 +<div class="row" id="jdlReceptionBatch_list">
  18 + <div class="col-md-12">
  19 + <!-- Begin: life time stats -->
  20 + <div class="portlet light portlet-fit portlet-datatable bordered">
  21 + <div class="portlet-title">
  22 + <div class="caption">
  23 + <i class="fa fa-fire-extinguisher"></i> <span
  24 + class="caption-subject font-dark sbold uppercase">车辆充电量</span>
  25 + </div>
  26 +<!-- <div class="actions"> -->
  27 +<!-- <button type="button" class="btn btn-circle blue" id="upload"><i class="fa fa-file-excel-o"></i> -->
  28 +<!-- 导入Excel -->
  29 +<!-- </button> -->
  30 +<!-- <button type="button" class="btn btn-circle blue" id="export"><i class="fa fa-file-excel-o"></i> -->
  31 +<!-- 导出Excel -->
  32 +<!-- </button> -->
  33 +<!-- </div> -->
  34 + </div>
  35 + <div class="portlet-body">
  36 + <div class="table-container" style="margin-top: 0px">
  37 + <table
  38 + class="table table-striped table-bordered table-hover table-checkable"
  39 + id="datatable_dlb">
  40 + <thead>
  41 + <tr role="row" class="filter">
  42 + <td colspan="2">日期:</td>
  43 + <td colspan="2" width="120px">
  44 + <input type="text" style="width: 100px" name="rq" id="rq"/>
  45 + </td>
  46 + <td width="24%">
  47 + <button class="btn btn-sm green btn-outline filter-submit margin-bottom" style="margin-right:0px">
  48 + <i class="fa fa-search"></i> 搜索
  49 + </button>
  50 + <button class="btn btn-sm red btn-outline filter-cancel" style="margin-right:0px">
  51 + <i class="fa fa-times"></i> 重置
  52 + </button>
  53 + </td>
  54 + </tr>
  55 + <tr role="row" class="heading">
  56 + <th>#</th>
  57 + <th>导入时间</th>
  58 + <th colspan="">处理人</th>
  59 + <th colspan="">批次号</th>
  60 + <td colspan="2">操作</td>
  61 + </tr>
  62 + </thead>
  63 + <tbody></tbody>
  64 + </table>
  65 + <div style="text-align: right;">
  66 + <ul id="pagination" class="pagination"></ul>
  67 + </div>
  68 + </div>
  69 + </div>
  70 + <div class="portlet-body">
  71 + <div id="modules_tree"></div>
  72 + </div>
  73 + </div>
  74 + </div>
  75 +</div>
  76 +
  77 +
  78 +<script src="/assets/js/ajaxfileupload/ajaxfileupload.js"></script>
  79 +<script>
  80 + $(function () {
  81 +
  82 + // 关闭左侧栏
  83 + if (!$('body').hasClass('page-sidebar-closed'))
  84 + $('.menu-toggler.sidebar-toggler').click();
  85 +
  86 + $("#rq").datetimepicker({
  87 + format: 'YYYY-MM-DD',
  88 + locale: 'zh-cn'
  89 + });
  90 + var d = new Date();
  91 +// d.setTime(d.getTime() - 1*1000*60*60*24);
  92 + d.setTime(d.getTime());
  93 + var year = d.getFullYear();
  94 + var month = d.getMonth() + 1;
  95 + var day = d.getDate();
  96 + if(month < 10)
  97 + month = "0" + month;
  98 + if(day < 10)
  99 + day = "0" + day;
  100 + $("#rq").val(year + "-" + month + "-" + day);
  101 +
  102 + var page = 0, initPagination;
  103 + var icheckOptions = {
  104 + radioClass: 'iradio_square-blue icheck',
  105 + increaseArea: '20%'
  106 + }
  107 +
  108 + //重置
  109 + $('tr.filter .filter-cancel').on('click', function () {
  110 + $('tr.filter input, select').val('').change();
  111 + });
  112 +
  113 + //提交
  114 + $('tr.filter .filter-submit').on('click', function () {
  115 + if ($("#rq").val() == "" || $("#rq").val() ==null){
  116 + layer.msg('请选择日期.');
  117 + }else {
  118 +
  119 + var params = getParams();
  120 +
  121 + page = 0;
  122 + jsDoQuery(params, true);
  123 + }
  124 + });
  125 +
  126 +
  127 + $.get('/user/companyData', function(result){
  128 + obj = result;
  129 + var options="";
  130 +// = '<option value="">请选择</option>';
  131 + for(var i = 0; i < obj.length; i++){
  132 + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>';
  133 +// setFgsqx(obj[i].companyCode);
  134 + }
  135 + $('#gsbm').html(options);
  136 + updateCompany();
  137 + });
  138 +
  139 + $("#gsbm").on("change",updateCompany);
  140 + function updateCompany(){
  141 + var company = $('#gsbm').val();
  142 + var options ="";
  143 +// = '<option value="">请选择</option>';
  144 + for(var i = 0; i < obj.length; i++){
  145 + if(obj[i].companyCode == company){
  146 + var children = obj[i].children;
  147 + for(var j = 0; j < children.length; j++){
  148 + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>';
  149 + }
  150 + }
  151 + }
  152 + $('#fgsbm').html(options);
  153 + }
  154 + /*
  155 + * 获取数据 p: 要提交的参数, pagination: 是否重新分页
  156 + */
  157 + function jsDoQuery(p, pagination) {
  158 + var params = {};
  159 + if (p)
  160 + params = p;
  161 + params['order'] = 'nbbm';
  162 + params['page'] = page;
  163 + params['rq'] = $("#rq").val();
  164 +
  165 + var j = layer.load(2);
  166 + $get('/jdl/queryJdlReceptionBatch', params, function (data) {
  167 + $.each(data.dataList, function (i, obj) {
  168 + obj.rq = moment(obj.rq).format("YYYY-MM-DD");
  169 + });
  170 + var bodyHtml = template('jdlReceptionBatch', {list:data.dataList});
  171 +
  172 + $('#datatable_dlb tbody').html(bodyHtml)
  173 + .find('.icheck').iCheck(icheckOptions)
  174 + .on('ifChanged', iCheckChange);
  175 + if (pagination && data.dataList.length > 0) {
  176 + //重新分页
  177 + initPagination = true;
  178 + showPagination(data);
  179 + $('#pagination').show();
  180 + } else if(data.dataList.length == 0){
  181 + $('#pagination').hide();
  182 + }
  183 +
  184 + layer.close(j);
  185 +
  186 + startOptJzylLink($('#jdlReceptionBatch_list .in_carpark_jzyl'));
  187 +
  188 + $('.btn-ReceptionBatch').on('click', openReceptionBatchData);
  189 + $('.btn-ReceptionBatch-upd').on('click', openReceptionBatchDataUpd);
  190 + $('.btn-ReceptionBatch-del').on('click', openReceptionBatchDataDel);
  191 + $('.btn-ReceptionBatch-export').on('click', openReceptionBatchDataExport);
  192 + });
  193 + }
  194 +
  195 + function openReceptionBatchData(){
  196 + var id = $(this).data('date');
  197 + id += ","+$(this).data('by');
  198 + id += ",view";
  199 + $.get('/pages/electricity/jdl/jdlReceptionBatchData.html', function (content) {
  200 + layer.open({
  201 + type: 1,
  202 + area: ['1200px', '630px'],
  203 + content: content,
  204 + title: '充电量详细',
  205 + shift: 5,
  206 + scrollbar: false,
  207 + success: function () {
  208 + $('#jdlReceptionBatchData').trigger('init', id);
  209 + }
  210 + });
  211 + });
  212 + }
  213 +
  214 + function openReceptionBatchDataUpd(){
  215 + var id = $(this).data('date');
  216 + id += ","+$(this).data('by');
  217 + id += ",upd";
  218 + $.get('/pages/electricity/jdl/jdlReceptionBatchData.html', function (content) {
  219 + layer.open({
  220 + type: 1,
  221 + area: ['1200px', '660px'],
  222 + content: content,
  223 + title: '充电量详细修改',
  224 + shift: 5,
  225 + scrollbar: false,
  226 + success: function () {
  227 + $('#jdlReceptionBatchData').trigger('init', id);
  228 + },
  229 + btn:["保存", "取消"],
  230 + btn1: function(index, layero){
  231 + layer.msg('操作中...', {icon: 16, shade: 0.31});
  232 +// console.log("jdlReceptionBatchData_tbody", $('#jdlReceptionBatchData_tbody').html());
  233 +// var data = $('#jdlReceptionBatchData_tbody').serializeArray();
  234 +// console.log(data);
  235 + var ids = "", dateStr = "", pileId = "", carCode = "", startTime = "", endTime = "", sumTime = "",
  236 + startSoc = "", endSoc = "", chargeCapacity = "", stopReason = "";
  237 + $('#jdlReceptionBatchData_tbody input').each(function(i, e){
  238 + var obj = $(e);
  239 + if("id" == obj.attr("name")){
  240 + ids += obj.val() + ",";
  241 + } else if("dateStr" == obj.attr("name")){
  242 + dateStr += obj.val() + ",";
  243 + } else if("pileId" == obj.attr("name")){
  244 + pileId += obj.val() + ",";
  245 + } else if("carCode" == obj.attr("name")){
  246 + carCode += obj.val() + ",";
  247 + } else if("startTime" == obj.attr("name")){
  248 + startTime += obj.val() + ",";
  249 + } else if("endTime" == obj.attr("name")){
  250 + endTime += obj.val() + ",";
  251 + } else if("sumTime" == obj.attr("name")){
  252 + sumTime += obj.val() + ",";
  253 + } else if("startSoc" == obj.attr("name")){
  254 + startSoc += obj.val() + ",";
  255 + } else if("endSoc" == obj.attr("name")){
  256 + endSoc += obj.val() + ",";
  257 + } else if("chargeCapacity" == obj.attr("name")){
  258 + chargeCapacity += obj.val() + ",";
  259 + } else if("stopReason" == obj.attr("name")){
  260 + stopReason += obj.val() + ",";
  261 + }
  262 + });
  263 + $post('/jdl/updateJdlReceptionBatch', {ids:ids,dateStr:dateStr,pileId:pileId,carCode:carCode,
  264 + startTime:startTime,endTime:endTime,sumTime:sumTime,
  265 + startSoc:startSoc,endSoc:endSoc,chargeCapacity:chargeCapacity,stopReason:stopReason}, function (rs) {
  266 + console.log(rs);
  267 + if(rs.status && rs.status == "SUCCESS"){
  268 + layer.msg('修改成功。');
  269 + layer.close(index);
  270 + } else {
  271 + layer.msg('操作失败,请检查内容是否有误。');
  272 + }
  273 + });
  274 + }
  275 + });
  276 + });
  277 + }
  278 +
  279 + function openReceptionBatchDataDel(){
  280 + var createDate = $(this).data('date');
  281 + var createBy = $(this).data('by');
  282 + layer.confirm('你确定要删除充电量吗?', {
  283 + btn: ['确定删除','取消'] //按钮
  284 + }, function(){
  285 + layer.msg('操作中...', {icon: 16,shade: 0.01});
  286 + $post('/jdl/deleteJdlReceptionBatch', {createDate:createDate, createBy:createBy}, function (rs) {
  287 + layer.msg('删除成功!');
  288 + $('.filter-submit.margin-bottom').trigger('click');
  289 + });
  290 + });
  291 + }
  292 +
  293 + function openReceptionBatchDataExport(){
  294 + var batchNo = $(this).data('batch');
  295 + window.open("/jdl/downloadJdlReceptionImportFile?batchNo=" + batchNo);
  296 + }
  297 +
  298 + //改变状态
  299 + function startOptJzylLink(es) {
  300 + es.editable({
  301 + type: 'text',
  302 + placement: 'right',
  303 + width: 100,
  304 + display: false,
  305 + validate: function (value) {
  306 + if (!value)
  307 + return '值不能为空!';
  308 + if (isNaN(value))
  309 + return '只能为数字!';
  310 + if (value < 0)
  311 + return '值不能小于0!';
  312 + },
  313 + inputclass: 'form-control input-medium input-edtable-sm'
  314 + }).on('save', function (e, params) {
  315 + $(this).text(params.newValue);
  316 + });
  317 + }
  318 +
  319 + function iCheckChange() {
  320 + var tr = $(this).parents('tr');
  321 + if (this.checked)
  322 + tr.addClass('row-active');
  323 + else
  324 + tr.removeClass('row-active');
  325 + }
  326 +
  327 + function showPagination(data) {
  328 + //分页
  329 + $('#pagination').jqPaginator({
  330 + totalPages: data.totalPages,
  331 + visiblePages: 6,
  332 + currentPage: page + 1,
  333 + first: '<li class="first"><a href="javascript:void(0);">首页<\/a><\/li>',
  334 + prev: '<li class="prev"><a href="javascript:void(0);">上一页<\/a><\/li>',
  335 + next: '<li class="next"><a href="javascript:void(0);">下一页<\/a><\/li>',
  336 + last: '<li class="last"><a href="javascript:void(0);">尾页<\/a><\/li>',
  337 + page: '<li class="page"><a href="javascript:void(0);">{{page}}<\/a><\/li>',
  338 + onPageChange: function (num, type) {
  339 + if (initPagination) {
  340 + initPagination = false;
  341 + return;
  342 + }
  343 +
  344 + var params = getParams();
  345 +
  346 + page = num - 1;
  347 + jsDoQuery(params, true);
  348 + }
  349 + });
  350 + }
  351 +
  352 + //搜索线路
  353 + $.get('/basic/lineCode2Name',function(result){
  354 + var data=[];
  355 +
  356 + for(var code in result){
  357 + data.push({id: code, text: result[code]});
  358 + }
  359 + initPinYinSelect2('#xlbm',data,'');
  360 +
  361 + });
  362 +
  363 + $('#nbbm').select2({
  364 + placeholder: '搜索车辆...',
  365 + ajax: {
  366 + url: '/realSchedule/sreachVehic',
  367 + dataType: 'json',
  368 + delay: 150,
  369 + data: function (params) {
  370 + return {nbbm: params.term};
  371 + },
  372 + processResults: function (data) {
  373 + return {
  374 + results: data
  375 + };
  376 + },
  377 + cache: true
  378 + },
  379 + templateResult: function (repo) {
  380 + if (repo.loading) return repo.text;
  381 + var h = '<span>' + repo.text + '</span>';
  382 + h += (repo.lineName ? '&nbsp;<span class="select2-desc">' + repo.lineName + '</span>' : '');
  383 + return h;
  384 + },
  385 + escapeMarkup: function (markup) {
  386 + return markup;
  387 + },
  388 + minimumInputLength: 1,
  389 + templateSelection: function (repo) {
  390 + return repo.text;
  391 + },
  392 + language: {
  393 + noResults: function () {
  394 + return '<span style="color:red;font-size: 12px;">没有搜索到车辆!</span>';
  395 + },
  396 + inputTooShort: function (e) {
  397 + return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> 输入自编号搜索车辆</span>';
  398 + },
  399 + searching: function () {
  400 + return '<span style="color:gray;font-size: 12px;"> 正在搜索车辆...</span>';
  401 + }
  402 + }
  403 + })
  404 +
  405 + function getParams(){
  406 + var cells = $('tr.filter')[0].cells
  407 + , params = {}
  408 + , name;
  409 + $.each(cells, function (i, cell) {
  410 + var items = $('input,select', cell);
  411 + for (var j = 0, item; item = items[j++];) {
  412 + name = $(item).attr('name');
  413 + if (name) {
  414 + params[name] = $(item).val();
  415 + }
  416 + }
  417 + });
  418 + return params;
  419 + };
  420 +
  421 + });
  422 +
  423 +</script>
  424 +
  425 +<script id="jdlReceptionBatch" type="text/html">
  426 + {{each list as obj i}}
  427 + <tr>
  428 + <td style="vertical-align: middle;">
  429 + <!-- <input type="radio" name="id" class="group-checkable icheck" data-id="{{obj.id}}"> -->
  430 + {{i + 1}}
  431 + </td>
  432 + <td>{{obj.createDate}}</td>
  433 + <td colspan="">{{obj.createBy}}</td>
  434 + <td colspan="">{{obj.batchNo}}</td>
  435 + <td colspan="2">
  436 + <button class="btn btn-info btn-sm btn-ReceptionBatch" data-date="{{obj.createDate}}" data-by="{{obj.createBy}}">
  437 + <i class="fa fa-search"></i> 查看
  438 + </button>
  439 + <button class="btn blue-madison btn-sm btn-ReceptionBatch-upd" data-date="{{obj.createDate}}" data-by="{{obj.createBy}}">
  440 + <i class="fa fa-pencil"></i> 修改
  441 + </button>
  442 + <button class="btn btn-danger btn-sm red btn-ReceptionBatch-del" data-date="{{obj.createDate}}" data-by="{{obj.createBy}}">
  443 + <i class="fa fa-times"></i> 删除
  444 + </button>
  445 + &nbsp;
  446 + <button class="btn btn-circle btn-sm blue btn-ReceptionBatch-export" data-batch="{{obj.batchNo}}">
  447 + <i class="fa fa-file-excel-o"></i> 下载导入文件
  448 + </button>
  449 + </td>
  450 + </tr>
  451 + {{/each}}
  452 + {{if list.length == 0}}
  453 + <tr>
  454 + <td colspan=9><h6 class="muted">没有找到相关数据</h6></td>
  455 + </tr>
  456 + {{/if}}
  457 +</script>
0 458 \ No newline at end of file
... ...
src/main/resources/static/pages/electricity/jdl/jdlReceptionBatchData.html 0 → 100644
  1 +<style type="text/css">
  2 + .table-bordered {
  3 + border: 1px solid; }
  4 + .table-bordered > thead > tr > th,
  5 + .table-bordered > thead > tr > td,
  6 + .table-bordered > tbody > tr > th,
  7 + .table-bordered > tbody > tr > td,
  8 + .table-bordered > tfoot > tr > th,
  9 + .table-bordered > tfoot > tr > td {
  10 + border: 1px solid; }
  11 + .table-bordered > thead > tr > th,
  12 + .table-bordered > thead > tr > td {
  13 + border-bottom-width: 2px; }
  14 +
  15 + .table > tbody + tbody {
  16 + border-top: 1px solid; }
  17 +</style>
  18 +
  19 +<div id="jdlReceptionBatchData">
  20 + <div class="col-md-12">
  21 +<!-- <div class="portlet light porttlet-fit bordered"> -->
  22 + <div class="portlet-body">
  23 + <div class="table-container" style="margin-top: 10px;width: 1180px;height: 550px;overflow:auto;">
  24 + <table class="table table-bordered table-hover table-checkable" id="forms_2">
  25 + <thead>
  26 + <tr>
  27 + <td style="min-width: 170px">批次号</td>
  28 + <td style="min-width: 90px">营运日期</td>
  29 + <td style="min-width: 80px">桩号</td>
  30 + <td>车号</td>
  31 + <td>开始时间</td>
  32 + <td>结束时间</td>
  33 + <td>总计(分钟)</td>
  34 + <td>起始电量SOC(%)</td>
  35 + <td>结束电量SOC(%)</td>
  36 + <td>充电度数</td>
  37 +<!-- <td>一次不能正常充电记录</td> -->
  38 + </tr>
  39 + </thead>
  40 +
  41 + <tbody id="jdlReceptionBatchData_tbody">
  42 +
  43 + </tbody>
  44 + </table>
  45 + </div>
  46 + </div>
  47 +<!-- </div> -->
  48 + </div>
  49 +</div>
  50 +<script src="/pages/mforms/singledatas/jquery.table2excel.min.js"></script>
  51 +<script>
  52 + $(function(){
  53 + // 关闭左侧栏
  54 + if (!$('body').hasClass('page-sidebar-closed'))
  55 + $('.menu-toggler.sidebar-toggler').click();
  56 + var date = "";
  57 + var nbbm = "";
  58 + $("#jdlReceptionBatchData").on('init', function (e, id) {
  59 + date = id.split(",")[0];
  60 + by = id.split(",")[1];
  61 + type = id.split(",")[2];
  62 + var i = layer.load(2);
  63 + $get('/jdl/queryJdlReceptionBatchData',{createDate:date,createBy:by,type:'query'},function(result){
  64 + layer.close(i);
  65 + $.each(result, function(i, e){
  66 +// console.log(e);
  67 + if(e.origin == 1){
  68 + e.originName = "导入";
  69 + } else {
  70 + e.originName = "接口";
  71 + }
  72 + });
  73 + if(type == "upd"){
  74 + var jdlReceptionBatchDataUpd = template('jdlReceptionBatchData_tbody_upd',{list:result});
  75 + $('#forms_2 tbody').html(jdlReceptionBatchDataUpd);
  76 + $("input[name=dateStr]").datetimepicker({
  77 + format: 'YYYY-MM-DD',
  78 + locale: 'zh-cn'
  79 + });
  80 + } else {
  81 + var jdlReceptionBatchData = template('jdlReceptionBatchData_tbody',{list:result});
  82 + $('#forms_2 tbody').html(jdlReceptionBatchData);
  83 + }
  84 + });
  85 + })
  86 +
  87 + });
  88 +</script>
  89 +<script type="text/html" id="jdlReceptionBatchData_tbody">
  90 + {{each list as obj i}}
  91 + <tr>
  92 + <td>{{obj.batchNo}}</td>
  93 + <td>{{obj.dateStr}}</td>
  94 + <td>{{obj.pileId}}</td>
  95 + <td>{{obj.carCode}}</td>
  96 + <td>{{obj.startTime}}</td>
  97 + <td>{{obj.endTime}}</td>
  98 + <td>{{obj.sumTime}}</td>
  99 + <td>{{obj.startSoc}}</td>
  100 + <td>{{obj.endSoc}}</td>
  101 + <td>{{obj.chargeCapacity}}</td>
  102 + <!-- <td>{{obj.stopReason}}</td> -->
  103 + </tr>
  104 + {{/each}}
  105 + {{if list.length == 0}}
  106 + <tr>
  107 + <td colspan="11"><h6 class="muted">没有找到相关数据</h6></td>
  108 + </tr>
  109 + {{/if}}
  110 +</script>
  111 +<script type="text/html" id="jdlReceptionBatchData_tbody_upd">
  112 + {{each list as obj i}}
  113 + <tr>
  114 + <td>{{obj.batchNo}}<input type="hidden" name="id" value="{{obj.id}}"/></td>
  115 + <td><input type="text" name="dateStr" value="{{obj.dateStr}}"/></td>
  116 + <td><input type="text" name="pileId" value="{{obj.pileId}}"/></td>
  117 + <td><input type="text" name="carCode" value="{{obj.carCode}}"/></td>
  118 + <td><input type="text" name="startTime" value="{{obj.startTime}}"/></td>
  119 + <td><input type="text" name="endTime" value="{{obj.endTime}}"/></td>
  120 + <td><input type="text" name="sumTime" value="{{obj.sumTime}}"/></td>
  121 + <td><input type="text" name="startSoc" value="{{obj.startSoc}}"/></td>
  122 + <td><input type="text" name="endSoc" value="{{obj.endSoc}}"/></td>
  123 + <td><input type="text" name="chargeCapacity" value="{{obj.chargeCapacity}}"/></td>
  124 + <!-- <td><input type="text" name="stopReason" value="{{obj.stopReason}}"/></td> -->
  125 + </tr>
  126 + {{/each}}
  127 + {{if list.length == 0}}
  128 + <tr>
  129 + <td colspan="11"><h6 class="muted">没有找到相关数据</h6></td>
  130 + </tr>
  131 + {{/if}}
  132 +</script>
0 133 \ No newline at end of file
... ...
src/main/resources/static/pages/electricity/jdl/list.html
... ... @@ -10,7 +10,7 @@
10 10 </div>
11 11 <ul class="page-breadcrumb breadcrumb">
12 12 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
13   - <li><span class="active">用电管理</span> <i class="fa fa-circle"></i></li>
  13 + <li><span class="active">能耗管理</span> <i class="fa fa-circle"></i></li>
14 14 <li><span class="active">车辆充电管理</span></li>
15 15 </ul>
16 16  
... ...
src/main/resources/static/pages/electricity/jdl/list_2412.html 0 → 100644
  1 +<style>
  2 +.blue{
  3 + background-color: #87CEFF
  4 +}
  5 +</style>
  6 +<div class="page-head">
  7 + <div class="page-title">
  8 + <h1>车辆充电量</h1>
  9 + </div>
  10 +</div>
  11 +<ul class="page-breadcrumb breadcrumb">
  12 + <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
  13 + <li><span class="active">能耗管理</span> <i class="fa fa-circle"></i></li>
  14 + <li><span class="active">车辆充电管理</span></li>
  15 +</ul>
  16 +
  17 +<div class="row" id="ll_oil_list">
  18 + <div class="col-md-12">
  19 + <!-- Begin: life time stats -->
  20 + <div class="portlet light portlet-fit portlet-datatable bordered">
  21 + <div class="portlet-title">
  22 + <div class="caption">
  23 + <i class="fa fa-fire-extinguisher"></i> <span
  24 + class="caption-subject font-dark sbold uppercase">车辆充电量</span>
  25 + </div>
  26 + <div class="actions">
  27 + <button type="button" class="btn btn-circle blue" id="upload"><i class="fa fa-file-excel-o"></i>
  28 + 导入Excel
  29 + </button>
  30 + <button type="button" class="btn btn-circle blue" id="export"><i class="fa fa-file-excel-o"></i>
  31 + 导出Excel
  32 + </button>
  33 + </div>
  34 + </div>
  35 + <div class="portlet-body">
  36 + <div class="table-container" style="margin-top: 0px">
  37 + <table
  38 + class="table table-striped table-bordered table-hover table-checkable"
  39 + id="datatable_dlb">
  40 + <thead>
  41 + <tr role="row" class="filter">
  42 +<!-- <td width="80px">公司:</td> -->
  43 +<!-- <td width="160px"> -->
  44 +<!-- <select class="form-control" id="gsbm" ></select> -->
  45 +<!-- </td> -->
  46 +<!-- <td>分公司:</td> -->
  47 +<!-- <td> -->
  48 +<!-- <select class="form-control" id="fgsbm" ></select> -->
  49 +<!-- </td> -->
  50 + <td colspan="2">日期:</td>
  51 + <td colspan="2" width="120px">
  52 + <input type="text" style="width: 100px" name="rq" id="rq"/>
  53 + </td>
  54 + <td colspan="2">内部编码:</td>
  55 + <td colspan="2">
  56 + <select class="form-control" name="nbbm" id="nbbm" style="width: 120px;"></select>
  57 + </td>
  58 +
  59 + <td width="24%">
  60 + <button class="btn btn-sm green btn-outline filter-submit margin-bottom" style="margin-right:0px">
  61 + <i class="fa fa-search"></i> 搜索
  62 + </button>
  63 + <button class="btn btn-sm red btn-outline filter-cancel" style="margin-right:0px">
  64 + <i class="fa fa-times"></i> 重置
  65 + </button>
  66 +<!-- <button class="btn btn-danger btn-sm red" id="del" style="margin-right:0px"> -->
  67 +<!-- <i class="fa fa-times"></i> 删除 -->
  68 +<!-- </button> -->
  69 + </td>
  70 + </tr>
  71 + <tr role="row" class="heading">
  72 + <th>#</th>
  73 + <th>日期</th>
  74 + <th colspan="2">内部编码</th>
  75 + <th colspan="4">充电量</th>
  76 +<!-- <th colspan="2">充电站</th> -->
  77 +<!-- <th colspan="2">备注</th> -->
  78 + <td colspan="2">操作</td>
  79 + </tr>
  80 + </thead>
  81 + <tbody></tbody>
  82 + </table>
  83 + <div style="text-align: right;">
  84 + <ul id="pagination" class="pagination"></ul>
  85 + </div>
  86 + </div>
  87 + </div>
  88 + <div class="portlet-body">
  89 + <div id="modules_tree"></div>
  90 + </div>
  91 + </div>
  92 + </div>
  93 +</div>
  94 +
  95 +
  96 +<script src="/assets/js/ajaxfileupload/ajaxfileupload.js"></script>
  97 +<script>
  98 + $(function () {
  99 +
  100 + // 关闭左侧栏
  101 + if (!$('body').hasClass('page-sidebar-closed'))
  102 + $('.menu-toggler.sidebar-toggler').click();
  103 +
  104 + $("#rq").datetimepicker({
  105 + format: 'YYYY-MM-DD',
  106 + locale: 'zh-cn'
  107 + });
  108 + var d = new Date();
  109 + d.setTime(d.getTime() - 1*1000*60*60*24);
  110 + var year = d.getFullYear();
  111 + var month = d.getMonth() + 1;
  112 + var day = d.getDate();
  113 + if(month < 10)
  114 + month = "0" + month;
  115 + if(day < 10)
  116 + day = "0" + day;
  117 + $("#rq").val(year + "-" + month + "-" + day);
  118 +
  119 + var page = 0, initPagination;
  120 + var icheckOptions = {
  121 + radioClass: 'iradio_square-blue icheck',
  122 + increaseArea: '20%'
  123 + }
  124 +
  125 + //重置
  126 + $('tr.filter .filter-cancel').on('click', function () {
  127 + $('tr.filter input, select').val('').change();
  128 + });
  129 +
  130 + //提交
  131 + $('tr.filter .filter-submit').on('click', function () {
  132 + var gsbm = $('#gsbm').val();
  133 +// var fgsbm = $('#fgsbm').val();
  134 + var fgsbm = -1;
  135 + if ($("#rq").val() == "" || $("#rq").val() ==null){
  136 + layer.msg('请选择日期.');
  137 +// }else if(gsbm=="" || gsbm==null || fgsbm=="" ||fgsbm==null){
  138 +// layer.msg('请选择公司和分公司.');
  139 +// }else if(gsbm=="" || gsbm==null){
  140 +// layer.msg('请选择公司.');
  141 + }else {
  142 +
  143 + var params = getParams();
  144 +
  145 + page = 0;
  146 + jsDoQuery(params, true);
  147 + }
  148 + });
  149 +
  150 +
  151 + $.get('/user/companyData', function(result){
  152 + obj = result;
  153 + var options="";
  154 +// = '<option value="">请选择</option>';
  155 + for(var i = 0; i < obj.length; i++){
  156 + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>';
  157 +// setFgsqx(obj[i].companyCode);
  158 + }
  159 + $('#gsbm').html(options);
  160 + updateCompany();
  161 + });
  162 +
  163 + $("#gsbm").on("change",updateCompany);
  164 + function updateCompany(){
  165 + var company = $('#gsbm').val();
  166 + var options ="";
  167 +// = '<option value="">请选择</option>';
  168 + for(var i = 0; i < obj.length; i++){
  169 + if(obj[i].companyCode == company){
  170 + var children = obj[i].children;
  171 + for(var j = 0; j < children.length; j++){
  172 + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>';
  173 + }
  174 + }
  175 + }
  176 + $('#fgsbm').html(options);
  177 + }
  178 + /*
  179 + * 获取数据 p: 要提交的参数, pagination: 是否重新分页
  180 + */
  181 + function jsDoQuery(p, pagination) {
  182 + var params = {};
  183 + if (p)
  184 + params = p;
  185 + params['order'] = 'nbbm';
  186 + params['page'] = page;
  187 + params['rq'] = $("#rq").val();
  188 +
  189 + var j = layer.load(2);
  190 + $get('/jdl/query_2412', params, function (data) {
  191 + $.each(data.dataList, function (i, obj) {
  192 + obj.rq = moment(obj.rq).format("YYYY-MM-DD");
  193 + });
  194 + var bodyHtm = template('jdl_2412_list', {list:data.dataList});
  195 +
  196 + $('#datatable_dlb tbody').html(bodyHtm)
  197 + .find('.icheck').iCheck(icheckOptions)
  198 + .on('ifChanged', iCheckChange);
  199 + if (pagination && data.dataList.length > 0) {
  200 + //重新分页
  201 + initPagination = true;
  202 + showPagination(data);
  203 + $('#pagination').show();
  204 + } else if(data.dataList.length == 0){
  205 + $('#pagination').hide();
  206 + }
  207 +
  208 + layer.close(j);
  209 +
  210 + startOptJzylLink($('#ll_oil_list .in_carpark_jzyl'));
  211 +
  212 + $('.btn-Reception').on('click', openReception);
  213 + });
  214 + }
  215 +
  216 + function openReception(){
  217 + var id = $(this).data('date');
  218 + id += ","+$(this).data('nbbm');
  219 + $.get('/pages/electricity/jdl/jdlReception.html', function (content) {
  220 + layer.open({
  221 + type: 1,
  222 + area: ['1200px', '600px'],
  223 + content: content,
  224 + title: '充电量详细',
  225 + shift: 5,
  226 + scrollbar: false,
  227 + success: function () {
  228 + $('#jdlReception').trigger('init', id);
  229 + }
  230 + });
  231 + });
  232 + }
  233 +
  234 + //改变状态
  235 + function startOptJzylLink(es) {
  236 + es.editable({
  237 + type: 'text',
  238 + placement: 'right',
  239 + width: 100,
  240 + display: false,
  241 + validate: function (value) {
  242 + if (!value)
  243 + return '值不能为空!';
  244 + if (isNaN(value))
  245 + return '只能为数字!';
  246 + if (value < 0)
  247 + return '值不能小于0!';
  248 + },
  249 + inputclass: 'form-control input-medium input-edtable-sm'
  250 + }).on('save', function (e, params) {
  251 + $(this).text(params.newValue);
  252 + });
  253 + }
  254 +
  255 + function iCheckChange() {
  256 + var tr = $(this).parents('tr');
  257 + if (this.checked)
  258 + tr.addClass('row-active');
  259 + else
  260 + tr.removeClass('row-active');
  261 +
  262 + /* if($('#datatable_resource input.icheck:checked').length == 1)
  263 + $('#removeButton').removeAttr('disabled');
  264 + else
  265 + $('#removeButton').attr('disabled', 'disabled'); */
  266 + }
  267 +
  268 + function showPagination(data) {
  269 + //分页
  270 + $('#pagination').jqPaginator({
  271 + totalPages: data.totalPages,
  272 + visiblePages: 6,
  273 + currentPage: page + 1,
  274 + first: '<li class="first"><a href="javascript:void(0);">首页<\/a><\/li>',
  275 + prev: '<li class="prev"><a href="javascript:void(0);">上一页<\/a><\/li>',
  276 + next: '<li class="next"><a href="javascript:void(0);">下一页<\/a><\/li>',
  277 + last: '<li class="last"><a href="javascript:void(0);">尾页<\/a><\/li>',
  278 + page: '<li class="page"><a href="javascript:void(0);">{{page}}<\/a><\/li>',
  279 + onPageChange: function (num, type) {
  280 + if (initPagination) {
  281 + initPagination = false;
  282 + return;
  283 + }
  284 +
  285 + var params = getParams();
  286 +
  287 + page = num - 1;
  288 + jsDoQuery(params, true);
  289 + }
  290 + });
  291 + }
  292 +
  293 +
  294 + //删除
  295 + $('#del').on('click', function () {
  296 + if ($(this).attr('disabled'))
  297 + return;
  298 +
  299 + var id = $('input.icheck:checked').data('id');
  300 + removeConfirm('确定要删除选中的数据?', '/resource/' + id, function () {
  301 + $('tr.filter .filter-submit').click();
  302 + });
  303 + });
  304 +
  305 + //搜索线路
  306 + $.get('/basic/lineCode2Name',function(result){
  307 + var data=[];
  308 +
  309 + for(var code in result){
  310 + data.push({id: code, text: result[code]});
  311 + }
  312 + initPinYinSelect2('#xlbm',data,'');
  313 +
  314 + });
  315 +
  316 + $('#nbbm').select2({
  317 + placeholder: '搜索车辆...',
  318 + ajax: {
  319 + url: '/realSchedule/sreachVehic',
  320 + dataType: 'json',
  321 + delay: 150,
  322 + data: function (params) {
  323 + return {nbbm: params.term};
  324 + },
  325 + processResults: function (data) {
  326 + return {
  327 + results: data
  328 + };
  329 + },
  330 + cache: true
  331 + },
  332 + templateResult: function (repo) {
  333 + if (repo.loading) return repo.text;
  334 + var h = '<span>' + repo.text + '</span>';
  335 + h += (repo.lineName ? '&nbsp;<span class="select2-desc">' + repo.lineName + '</span>' : '');
  336 + return h;
  337 + },
  338 + escapeMarkup: function (markup) {
  339 + return markup;
  340 + },
  341 + minimumInputLength: 1,
  342 + templateSelection: function (repo) {
  343 + return repo.text;
  344 + },
  345 + language: {
  346 + noResults: function () {
  347 + return '<span style="color:red;font-size: 12px;">没有搜索到车辆!</span>';
  348 + },
  349 + inputTooShort: function (e) {
  350 + return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> 输入自编号搜索车辆</span>';
  351 + },
  352 + searching: function () {
  353 + return '<span style="color:gray;font-size: 12px;"> 正在搜索车辆...</span>';
  354 + }
  355 + }
  356 + })
  357 +
  358 + //导入
  359 + $("#upload").on("click", function(){
  360 + $.get('upload_2412.html', function(m){$(pjaxContainer).append(m);});
  361 + });
  362 +
  363 + //导出
  364 + $("#export").on("click", function () {
  365 + if ($("#rq").val() != "") {
  366 + var gsbm=$("#gsbm").val();
  367 +// var fgsbm=$("#fgsbm").val();
  368 +// if(gsbm=="" || gsbm==null || fgsbm=="" ||fgsbm==null){
  369 +// layer.msg('请选择公司和分公司.');
  370 +// if(gsbm=="" || gsbm==null){
  371 +// layer.msg('请选择公司.');
  372 +// return;
  373 +// }
  374 + var params = getParams();
  375 +
  376 + params["type"] = "export";
  377 + $get('/jdl/query_2412', params, function (result) {
  378 + window.open("/downloadFile/download?fileName=车辆充电量" + moment($("#rq").val()).format("YYYYMMDD"));
  379 + });
  380 + } else {
  381 + layer.msg('请选择日期.');
  382 + }
  383 + });
  384 +
  385 + function getParams(){
  386 + var gsbm=$("#gsbm").val();
  387 +// var fgsbm=$("#fgsbm").val();
  388 + var cells = $('tr.filter')[0].cells
  389 + , params = {}
  390 + , name;
  391 + params["gsbm"] = gsbm;
  392 +// params["fgsbm"] = fgsbm;
  393 + params["fgsbm"] = '-1';
  394 + $.each(cells, function (i, cell) {
  395 + var items = $('input,select', cell);
  396 + for (var j = 0, item; item = items[j++];) {
  397 + name = $(item).attr('name');
  398 + if (name) {
  399 + params[name] = $(item).val();
  400 + }
  401 + }
  402 + });
  403 + return params;
  404 + };
  405 +
  406 + });
  407 +
  408 +</script>
  409 +
  410 +<script id="jdl_2412_list" type="text/html">
  411 + {{each list as obj i}}
  412 + <tr>
  413 + <td style="vertical-align: middle;">
  414 + <!-- <input type="radio" name="id" class="group-checkable icheck" data-id="{{obj.id}}"> -->
  415 + {{i + 1}}
  416 + </td>
  417 + <td>{{obj.rq}}</td>
  418 + <td colspan="2">{{obj.nbbm}}</td>
  419 + <td colspan="4">{{obj.jdl}}</td>
  420 + <!-- <td colspan="2">{{obj.jdz}}</td> -->
  421 + <!-- <td>{{obj.remarks}}</td> -->
  422 + <td colspan="2">
  423 + <button class="btn btn-info btn-sm btn-Reception" data-date="{{obj.rq}}" data-nbbm="{{obj.nbbm}}">
  424 + <i class="fa fa-search"></i> 查看
  425 + </button>
  426 + </td>
  427 + </tr>
  428 + {{/each}}
  429 + {{if list.length == 0}}
  430 + <tr>
  431 + <td colspan=9><h6 class="muted">没有找到相关数据</h6></td>
  432 + </tr>
  433 + {{/if}}
  434 +</script>
0 435 \ No newline at end of file
... ...
src/main/resources/static/pages/electricity/jdl/upload_2412.html 0 → 100644
  1 +<div class="modal fade" id="uploadFile" tabindex="-1" role="basic"
  2 + aria-hidden="true">
  3 + <div class="modal-dialog">
  4 + <div class="modal-content">
  5 + <div class="modal-header">
  6 + <button type="button" class="close" data-dismiss="modal"
  7 + aria-hidden="true"></button>
  8 + <h4 class="modal-title">导入Excel</h4>
  9 + </div>
  10 + <div class="modal-body">
  11 + <form class="form-horizontal" role="form" id="excelFile" method="post"
  12 + action="" enctype="multipart/form-data">
  13 + <input type="hidden" name="groupType" value="3">
  14 + <div class="alert alert-danger display-hide">
  15 + <button class="close" data-close="alert"></button>
  16 + 您的输入有误,请检查下面的输入项
  17 + </div>
  18 + <div class="form-body">
  19 + <div class="form-group">
  20 + <label class="col-md-3 control-label">选择文件</label>
  21 + <div class="col-md-9">
  22 + <input type="file" name="file" id="file"
  23 + accept="application/vnd.ms-excel"/>
  24 + <input type="hidden" name="gsbm_" id="gsbm_">
  25 + <input type="hidden" name="gsName" id="gsName">
  26 + <input type="hidden" name="fgsbm_" id="fgsbm_">
  27 + <input type="hidden" name="fgsName" id="fgsName">
  28 + </div>
  29 + </div>
  30 + </div>
  31 + </form>
  32 + </div>
  33 + <div class="modal-footer">
  34 + <button type="button" class="btn default" id="downLoad">下载模板</button>
  35 + <button type="button" class="btn default" data-dismiss="modal">取消</button>
  36 + <button type="button" class="btn btn-primary" id="submit">确认导入</button>
  37 + </div>
  38 + </div>
  39 + </div>
  40 +</div>
  41 +<script id="res_tbody_temp" type="text/html">
  42 +
  43 +</script>
  44 +<script data-exclude=1>
  45 + $(function() {
  46 + var form = $('#excelFile');
  47 + var error = $('.alert-danger', form);
  48 +
  49 + $('#gsbm_').val($("#gsbm").val());
  50 + $('#gsName').val($("#gsbm").find("option:selected").text());
  51 +// $('#fgsbm_').val($("#fgsbm").val());
  52 +// $('#fgsName').val($("#fgsbm").find("option:selected").text());
  53 + $('#fgsbm_').val('-1');
  54 + $('#fgsName').val('全部车队');
  55 +
  56 + //modal 显示事件
  57 + $('#uploadFile').on('show.bs.modal', function(){
  58 + })
  59 + .modal('show');
  60 +
  61 + $('#submit').on('click', function() {
  62 + var j = layer.load(2);
  63 + var param = {};
  64 + param.uploadDir = 'upload';
  65 + param["gsbm_"] = $('#gsbm_').val();
  66 + param["gsName"] = $('#gsName').val();
  67 + param["fgsbm_"] = $('#fgsbm_').val();
  68 + param["fgsName"] = $('#fgsName').val();
  69 + $.ajaxFileUpload({
  70 + url : '/jdl/uploadFile_2412',
  71 + secureuri : false,
  72 + fileElementId : 'file',
  73 + dataType : 'json',
  74 + data : param,
  75 + success : function(data) {
  76 + layer.close(j);
  77 + alert(data.result);
  78 +// alert("文件导入成功");
  79 + $('#uploadFile').modal('hide');
  80 + $('tr.filter .filter-submit').click();
  81 + },
  82 + error : function(data, status, e) {
  83 + layer.close(j);
  84 +// alert("文件导入失败");
  85 + var resText = data.responseText;
  86 + if(data.responseText && data.responseText != ""){
  87 + resText = resText.slice(resText.indexOf('"result":"') + 10, resText.indexOf('"}'));
  88 + alert(resText);
  89 + } else {
  90 + alert("文件导入失败");
  91 + }
  92 + }
  93 + })
  94 + });
  95 +
  96 + $('#downLoad').on('click', function(){
  97 + window.open("/downloadFile/downloadModel?fileName=import_Jdl_2412");
  98 + });
  99 +
  100 + function getCurrSelNode(){
  101 + return $.jstree.reference("#modules_tree").get_selected(true);
  102 + }
  103 + });
  104 +</script>
0 105 \ No newline at end of file
... ...
src/main/resources/static/pages/electricity/list/add.html
... ... @@ -6,7 +6,7 @@
6 6  
7 7 <ul class="page-breadcrumb breadcrumb">
8 8 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
9   - <li><span class="active">用电管理</span> <i class="fa fa-circle"></i></li>
  9 + <li><span class="active">能耗管理</span> <i class="fa fa-circle"></i></li>
10 10 <li><a href="list.html" data-pjax>进出场电量</a> <i class="fa fa-circle"></i></li>
11 11 <li><span class="active">进出站电量信息编辑</span></li>
12 12 </ul>
... ...
src/main/resources/static/pages/electricity/list/list.html
... ... @@ -6,7 +6,7 @@
6 6  
7 7 <ul class="page-breadcrumb breadcrumb">
8 8 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
9   - <li><span class="active">用电管理</span> <i class="fa fa-circle"></i></li>
  9 + <li><span class="active">能耗管理</span> <i class="fa fa-circle"></i></li>
10 10 <li><span class="active">进出场存电量</span></li>
11 11 </ul>
12 12  
... ...
src/main/resources/static/pages/forms/export/import_Jdl_2412.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/statement/account.html
... ... @@ -21,12 +21,12 @@
21 21 <h1>驾驶员请求台账</h1>
22 22 </div>
23 23 </div>
24   -
25   -<div class="row">
26   - <div class="col-md-12">
27   - <div class="portlet light porttlet-fit bordered">
28   - <div class="portlet-title">
29   - <form class="form-inline" action="">
  24 +
  25 +<div class="row">
  26 + <div class="col-md-12">
  27 + <div class="portlet light porttlet-fit bordered">
  28 + <div class="portlet-title">
  29 + <form class="form-inline" action="">
30 30 <div style="display: inline-block;">
31 31 <span class="item-label" style="width: 80px;">线路: </span>
32 32 <select class="form-control" name="line" id="line" style="width: 180px;"></select>
... ... @@ -45,10 +45,10 @@
45 45  
46 46 <input class="btn btn-default" type="button" id="query" value="筛选"/>
47 47 <input class="btn btn-default" type="button" id="export" value="导出"/>
48   - </div>
49   - </form>
50   - </div>
51   - <div class="portlet-body">
  48 + </div>
  49 + </form>
  50 + </div>
  51 + <div class="portlet-body">
52 52 <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px">
53 53 <table class="table table-bordered table-hover table-checkable" id="forms">
54 54 <thead>
... ... @@ -65,25 +65,25 @@
65 65  
66 66 </tbody>
67 67 </table>
68   - </div>
69   - </div>
70   - </div>
71   - </div>
72   -</div>
73   -
74   -<script>
  68 + </div>
  69 + </div>
  70 + </div>
  71 + </div>
  72 +</div>
  73 +
  74 +<script>
75 75 $(function(){
76 76 $("#export").attr('disabled',"true");
77 77  
78 78  
79   - var reqCodeMap = {"0xA1": '请求恢复运营', "0xA2": '申请调档', "0xA3": '出场请求', "0xA5": '进场请求', "0xA7": '加油请求', "0x50": '车辆故障', "0x70": '路阻报告', "0x60": '事故报告', "0x11": '扣证纠纷', "0x12" : '报警'};
80   - // 关闭左侧栏
81   - if (!$('body').hasClass('page-sidebar-closed'))
  79 + var reqCodeMap = {"0xA1": '请求恢复运营', "0xA2": '申请调档', "0xA3": '出场请求', "0xA5": '进场请求', "0xA7": '加油请求', "0x50": '车辆故障', "0x70": '路阻报告', "0x60": '事故报告', "0x11": '扣证纠纷', "0x12" : '报警', 0x21: '单车有人伤', 0x22: '单车无人伤', 0x23: '双车有人伤', 0x24: '双车无人伤'};
  80 + // 关闭左侧栏
  81 + if (!$('body').hasClass('page-sidebar-closed'))
82 82 $('.menu-toggler.sidebar-toggler').click();
83   -
84   - $("#date").datetimepicker({
85   - format : 'YYYY-MM-DD',
86   - locale : 'zh-cn'
  83 +
  84 + $("#date").datetimepicker({
  85 + format : 'YYYY-MM-DD',
  86 + locale : 'zh-cn'
87 87 });
88 88  
89 89 /* $.get('/basic/lineCode2Name',function(result){
... ... @@ -229,23 +229,23 @@
229 229 +"-"+xlName+"-驾驶员请求台账");
230 230 });
231 231 });
232   -
233   - });
234   -</script>
235   -<script type="text/html" id="list_account">
236   - {{each list as obj i}}
237   - <tr>
  232 +
  233 + });
  234 +</script>
  235 +<script type="text/html" id="list_account">
  236 + {{each list as obj i}}
  237 + <tr>
238 238 <td>{{i+1}}</td>
239 239 <td>{{obj.xlName}}</td>
240 240 <td>{{obj.clZbh}}</td>
241 241 <td>{{obj.company}}</td>
242 242 <td>{{obj.requestType}}</td>
243   - <td>{{obj.requestTime}}</td>
244   - </tr>
  243 + <td>{{obj.requestTime}}</td>
  244 + </tr>
245 245 {{/each}}
246 246 {{if list.length == 0}}
247 247 <tr>
248 248 <td colspan="6"><h6 class="muted">没有找到相关数据</h6></td>
249 249 </tr>
250   - {{/if}}
  250 + {{/if}}
251 251 </script>
252 252 \ No newline at end of file
... ...
src/main/resources/static/pages/forms/statement/daily_yanshou.html 0 → 100644
  1 +<style type="text/css">
  2 + .table-bordered {
  3 + border: 1px solid; }
  4 + .table-bordered > thead > tr > th,
  5 + .table-bordered > thead > tr > td,
  6 + .table-bordered > tbody > tr > th,
  7 + .table-bordered > tbody > tr > td,
  8 + .table-bordered > tfoot > tr > th,
  9 + .table-bordered > tfoot > tr > td {
  10 + border: 1px solid; }
  11 + .table-bordered > thead > tr > th,
  12 + .table-bordered > thead > tr > td {
  13 + border-bottom-width: 2px; }
  14 +
  15 + .table > tbody + tbody {
  16 + border-top: 1px solid; }
  17 +</style>
  18 +
  19 +<div class="page-head">
  20 + <div class="page-title">
  21 + <h1>班次日报表</h1>
  22 + </div>
  23 +</div>
  24 +
  25 +<div class="row">
  26 + <div class="col-md-12">
  27 + <div class="portlet light porttlet-fit bordered">
  28 + <div class="portlet-title">
  29 + <form class="form-inline" action="">
  30 + <div style="display: inline-block; margin-left: 33px;" id="gsdmDiv_daily">
  31 + <span class="item-label" style="width: 80px;">公司: </span>
  32 + <select class="form-control" name="company" id="gsdmDaily" style="width: 180px;"></select>
  33 + </div>
  34 + <div style="display: inline-block; margin-left: 24px;" id="fgsdmDiv_daily">
  35 + <span class="item-label" style="width: 80px;">分公司: </span>
  36 + <select class="form-control" name="subCompany" id="fgsdmDaily" style="width: 180px;"></select>
  37 + </div>
  38 + <div style="margin-top: 2px"></div>
  39 + <div style="display: inline-block;margin-left: 33px;">
  40 + <span class="item-label" style="width: 80px;">线路: </span>
  41 + <select class="form-control" name="line" id="line" style="width: 180px;"></select>
  42 + </div>
  43 + <div style="display: inline-block;margin-left: 24px;">
  44 + <span class="item-label" style="width: 80px;">&nbsp;时间: </span>
  45 + <input class="form-control" type="text" id="date" style="width: 180px;"/>
  46 + </div>
  47 + <div class="form-group">
  48 + <input class="btn btn-default" type="button" id="query" value="筛选"/>
  49 + <input class="btn btn-default" type="button" id="export" value="导出"/>
  50 + </div>
  51 + </form>
  52 + </div>
  53 + <div class="portlet-body">
  54 + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px">
  55 + <table class="table table-bordered table-hover table-checkable" id="forms">
  56 + <thead>
  57 + <tr>
  58 + <th colspan="8">调度班次日报</th>
  59 + </tr>
  60 + <tr>
  61 + <td>路线:</td>
  62 + <td colspan="2"><span id="form_line">&nbsp;</span></td>
  63 + <td>时间:</td>
  64 + <td colspan="4"><span id="form_date">&nbsp;</span></td>
  65 + </tr>
  66 + <tr>
  67 + <td>车辆</td>
  68 + <td>工号</td>
  69 + <td>姓名</td>
  70 + <td>总公里</td>
  71 + <td>空驶公里</td>
  72 + <td>油耗</td>
  73 + <td>班次</td>
  74 + <td>班次(自动)</td>
  75 + </tr>
  76 + </thead>
  77 + <tbody id="tbody">
  78 +
  79 + </tbody>
  80 + <tr>
  81 + <td colspan="3">小计</td>
  82 + <td><span id="total_zgl">&nbsp;</span></td>
  83 + <td><span id="total_ks">&nbsp;</span></td>
  84 + <td><span id="total_yh">&nbsp;</span></td>
  85 + <td><span id="total_bc">&nbsp;</span></td>
  86 + </tr>
  87 + </table>
  88 + </div>
  89 + </div>
  90 + </div>
  91 + </div>
  92 +</div>
  93 +
  94 +<script>
  95 + $(function(){
  96 +
  97 + // 关闭左侧栏
  98 + if (!$('body').hasClass('page-sidebar-closed'))
  99 + $('.menu-toggler.sidebar-toggler').click();
  100 +
  101 + $("#date").datetimepicker({
  102 + format : 'YYYY-MM-DD',
  103 + locale : 'zh-cn'
  104 + });
  105 + var fage=false;
  106 + var xlList;
  107 + var obj = [];
  108 +
  109 +
  110 + $.get('/report/lineList',function(result){
  111 + xlList=result;
  112 + $.get('/user/companyData', function(result){
  113 + obj = result;
  114 + var options = '';
  115 + for(var i = 0; i < obj.length; i++){
  116 + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>';
  117 + }
  118 +
  119 + if(obj.length ==0){
  120 + $("#gsdmDiv_daily").css('display','none');
  121 + }else if(obj.length ==1){
  122 + $("#gsdmDiv_daily").css('display','none');
  123 + if(obj[0].children.length == 1 || obj[0].children.length ==0)
  124 + $('#fgsdmDiv_daily').css('display','none');
  125 + }
  126 + $('#gsdmDaily').html(options);
  127 + updateCompany();
  128 + });
  129 + })
  130 + $("#gsdmDaily").on("change",updateCompany);
  131 + function updateCompany(){
  132 + var company = $('#gsdmDaily').val();
  133 + var options = '';
  134 + for(var i = 0; i < obj.length; i++){
  135 + if(obj[i].companyCode == company){
  136 + var children = obj[i].children;
  137 + for(var j = 0; j < children.length; j++){
  138 + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>';
  139 + }
  140 + }
  141 + }
  142 + $('#fgsdmDaily').html(options);
  143 + }
  144 +
  145 + var tempData = {};
  146 + $.get('/report/lineList',function(xlList){
  147 + var data = [];
  148 +// data.push({id: " ", text: "全部线路"});
  149 + $.get('/user/companyData', function(result){
  150 + for(var i = 0; i < result.length; i++){
  151 + var companyCode = result[i].companyCode;
  152 + var children = result[i].children;
  153 + for(var j = 0; j < children.length; j++){
  154 + var code = children[j].code;
  155 + for(var k=0;k < xlList.length;k++ ){
  156 + if(xlList[k]["fgsbm"]==code && xlList[k]["gsbm"]==companyCode){
  157 + data.push({id: xlList[k]["xlbm"], text: xlList[k]["xlname"]});
  158 + tempData[xlList[k]["xlbm"]] = companyCode+":"+code;
  159 + }
  160 + }
  161 + }
  162 + }
  163 + initPinYinSelect2('#line',data,'');
  164 +
  165 + });
  166 + });
  167 +
  168 + $("#line").on("change", function(){
  169 + if($("#line").val() == " "){
  170 + $("#gsdmDaily").attr("disabled", false);
  171 + $("#fgsdmDaily").attr("disabled", false);
  172 + } else {
  173 + var temp = (tempData[$("#line").val()] ? tempData[$("#line").val()] : " : ").split(":");
  174 + $("#gsdmDaily").val(temp[0]);
  175 + updateCompany();
  176 + $("#fgsdmDaily").val(temp[1]);
  177 + $("#gsdmDaily").attr("disabled", true);
  178 + $("#fgsdmDaily").attr("disabled", true);
  179 + }
  180 + });
  181 +
  182 +
  183 + var line;
  184 + var date;
  185 + var gsdmDaily;
  186 + var fgsdmDaily;
  187 + var lineName=$("#select2-line-container").html();
  188 + $("#query").on("click",function(){
  189 + if($("#date").val() == null || $("#date").val().trim().length == 0){
  190 + layer.msg("请选择时间");
  191 + return;
  192 + }
  193 + line = $("#line").val();
  194 + date = $("#date").val();
  195 + gsdmDaily=$("#gsdmDaily").val();
  196 + fgsdmDaily = $("#fgsdmDaily").val();
  197 + lineName=$("#select2-line-container").html();
  198 + var i = layer.load(2);
  199 + $get('/mcy_forms/daily',{gsdmDaily:gsdmDaily,fgsdmDaily:fgsdmDaily, line:line,date:date,type:'query'},function(result){
  200 + $("#form_line").text(lineName);
  201 + $("#form_date").text(date);
  202 + // 把数据填充到模版中
  203 + var tbodyHtml = template('dailyInfo',{list:result});
  204 + // 把渲染好的模版html文本追加到表格中
  205 + $('#tbody').html(tbodyHtml);
  206 + layer.close(i);
  207 +
  208 + line = $("#line").val();
  209 + startDate = $("#startDate").val();
  210 + endDate = $("#endDate").val();
  211 + $("#sDate").text(startDate);
  212 + $("#eDate").text(endDate);
  213 +
  214 + var total_zgl = 0,total_ks = 0;
  215 + var total_yh = 0,total_bc = 0;
  216 +
  217 + $.each(result, function(i, obj) {
  218 + total_zgl +=Number(obj.zlc*10000);
  219 + total_ks +=Number(obj.jzl1*10000);
  220 + total_yh += Number(obj.yh*10000);
  221 + total_bc += Number(obj.bc);
  222 +
  223 + });
  224 + $("#total_zgl").text((total_zgl/10000).toFixed(3));
  225 + $("#total_ks").text((total_ks/10000).toFixed(3));
  226 + $("#total_yh").text((total_yh/10000).toFixed(2));
  227 + $("#total_bc").text(total_bc.toFixed(0));
  228 +
  229 + var temp = {};
  230 + var today_account = 0;
  231 +
  232 + temp["line"] = $("#line").text();
  233 + $.each(result, function(i, obj) {
  234 + if(moment(obj.schedule_date_str).format("YYYY-MM-DD") == moment(obj.startDate).format("YYYY-MM-DD")){
  235 + today_account++;
  236 + }
  237 + obj.updateDate = moment(obj.startDate).format("YYYY-MM-DD HH:mm:ss");
  238 + });
  239 + })
  240 + });
  241 +
  242 + $("#export").on("click",function(){
  243 + if($("#date").val() == null || $("#date").val().trim().length == 0){
  244 + layer.msg("请选择时间");
  245 + return;
  246 + }
  247 + line = $("#line").val();
  248 + date = $("#date").val();
  249 + gsdmDaily=$("#gsdmDaily").val();
  250 + fgsdmDaily = $("#fgsdmDaily").val();
  251 + lineName=$("#select2-line-container").html();
  252 + var i = layer.load(2);
  253 + $post('/mcy_export/dailyExport',{gsdmDaily:gsdmDaily,fgsdmDaily:fgsdmDaily,line:line,date:date,type:'export',lineName:lineName},function(result){
  254 + window.open("/downloadFile/download?fileName="
  255 + +moment(date).format("YYYYMMDD")+"-"+lineName+"-班次日报表");
  256 + layer.close(i);
  257 + });
  258 + });
  259 +});
  260 +</script>
  261 +<script type="text/html" id="dailyInfo">
  262 + {{each list as obj i}}
  263 + <tr>
  264 + <td>{{obj.zbh}}</td>
  265 + <td>{{obj.jgh}}</td>
  266 + <td>{{obj.jName}}</td>
  267 + <td>{{obj.zlc}}</td>
  268 + <td>{{obj.jzl1}}</td>
  269 + <td>{{obj.yh}}</td>
  270 + <td>{{obj.bc}}</td>
  271 + <td>
  272 +
  273 + {{if obj.bc > 5}}
  274 + {{obj.bc % 5}}
  275 + {{else}}
  276 + 0
  277 + {{/if}}
  278 +
  279 + </td>
  280 + </tr>
  281 + {{/each}}
  282 + {{if list.length == 0}}
  283 + <tr>
  284 + <td colspan="7"><h6 class="muted">没有找到相关数据</h6></td>
  285 + </tr>
  286 + {{/if}}
  287 +</script>
0 288 \ No newline at end of file
... ...
src/main/resources/static/pages/mforms/linepassengerflows/linepassengerflow.html
... ... @@ -72,7 +72,7 @@
72 72  
73 73 <script>
74 74 $(function(){
75   - var reqCodeMap = {"0xA1": '请求恢复运营', "0xA2": '申请调档', "0xA3": '出场请求', "0xA5": '进场请求', "0xA7": '加油请求', "0x50": '车辆故障', "0x70": '路阻报告', "0x60": '事故报告', "0x11": '扣证纠纷', "0x12" : '报警'};
  75 + var reqCodeMap = {"0xA1": '请求恢复运营', "0xA2": '申请调档', "0xA3": '出场请求', "0xA5": '进场请求', "0xA7": '加油请求', "0x50": '车辆故障', "0x70": '路阻报告', "0x60": '事故报告', "0x11": '扣证纠纷', "0x12" : '报警', 0x21: '单车有人伤', 0x22: '单车无人伤', 0x23: '双车有人伤', 0x24: '双车无人伤'};
76 76 // 关闭左侧栏
77 77 if (!$('body').hasClass('page-sidebar-closed'))
78 78 $('.menu-toggler.sidebar-toggler').click();
... ...
src/main/resources/static/pages/mforms/turnoutrates/calcTurnoutrate.html
... ... @@ -28,7 +28,7 @@
28 28  
29 29 <div class="page-head">
30 30 <div class="page-title">
31   - <h1>营运线路出车率统计</h1>
  31 + <h1>营运线路出车率统计</h1>
32 32 </div>
33 33 </div>
34 34  
... ...
src/main/resources/static/pages/oil/add.html
... ... @@ -6,7 +6,7 @@
6 6  
7 7 <ul class="page-breadcrumb breadcrumb">
8 8 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
9   - <li><span class="active">用油管理</span> <i class="fa fa-circle"></i></li>
  9 + <li><span class="active">能耗管理</span> <i class="fa fa-circle"></i></li>
10 10 <li><a href="list_ph.html" data-pjax>进出场油量</a> <i class="fa fa-circle"></i></li>
11 11 <li><span class="active">进出站油量信息编辑</span></li>
12 12 </ul>
... ...
src/main/resources/static/pages/oil/checkJyryList.html
... ... @@ -6,7 +6,7 @@
6 6  
7 7 <ul class="page-breadcrumb breadcrumb">
8 8 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
9   - <li><span class="active">用油管理</span> <i class="fa fa-circle"></i></li>
  9 + <li><span class="active">能耗管理</span> <i class="fa fa-circle"></i></li>
10 10 <li><span class="active">加油人员不符</span></li>
11 11 </ul>
12 12  
... ...
src/main/resources/static/pages/oil/checkNbbmList.html
... ... @@ -6,7 +6,7 @@
6 6  
7 7 <ul class="page-breadcrumb breadcrumb">
8 8 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
9   - <li><span class="active">用油管理</span> <i class="fa fa-circle"></i></li>
  9 + <li><span class="active">能耗管理</span> <i class="fa fa-circle"></i></li>
10 10 <li><span class="active">加油车辆备卡</span></li>
11 11 </ul>
12 12  
... ...
src/main/resources/static/pages/oil/cylAdd.html
... ... @@ -6,7 +6,7 @@
6 6  
7 7 <ul class="page-breadcrumb breadcrumb">
8 8 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
9   - <li><span class="active">用油管理</span> <i class="fa fa-circle"></i></li>
  9 + <li><span class="active">能耗管理</span> <i class="fa fa-circle"></i></li>
10 10 <li><a href="cylList.html" data-pjax>车辆存油</a> <i class="fa fa-circle"></i></li>
11 11 <li><span class="active">添加存油</span></li>
12 12 </ul>
... ...
src/main/resources/static/pages/oil/cylList.html
... ... @@ -6,7 +6,7 @@
6 6  
7 7 <ul class="page-breadcrumb breadcrumb">
8 8 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
9   - <li><span class="active">用油管理</span> <i class="fa fa-circle"></i></li>
  9 + <li><span class="active">能耗管理</span> <i class="fa fa-circle"></i></li>
10 10 <li><span class="active">车辆存油</span></li>
11 11 </ul>
12 12  
... ...
src/main/resources/static/pages/oil/history/list_lsdl.html
... ... @@ -14,7 +14,7 @@
14 14  
15 15 <ul class="page-breadcrumb breadcrumb">
16 16 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
17   - <li><span class="active">用电管理</span> <i class="fa fa-circle"></i></li>
  17 + <li><span class="active">能耗管理</span> <i class="fa fa-circle"></i></li>
18 18 <li><span class="active">进出场存电量</span></li>
19 19 </ul>
20 20 <div id="ll_lsoil_list"
... ...
src/main/resources/static/pages/oil/history/list_lsyl.html
... ... @@ -14,7 +14,7 @@
14 14  
15 15 <ul class="page-breadcrumb breadcrumb">
16 16 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
17   - <li><span class="active">用油管理</span> <i class="fa fa-circle"></i></li>
  17 + <li><span class="active">能耗管理</span> <i class="fa fa-circle"></i></li>
18 18 <li><span class="active">进出场存油量</span></li>
19 19 </ul>
20 20 <div id="ll_lsoil_list"
... ...
src/main/resources/static/pages/oil/jyglList.html
... ... @@ -8,7 +8,7 @@
8 8  
9 9 <ul class="page-breadcrumb breadcrumb">
10 10 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
11   - <li><span class="active">用油管理</span> <i class="fa fa-circle"></i></li>
  11 + <li><span class="active">能耗管理</span> <i class="fa fa-circle"></i></li>
12 12 <li><span class="active">场外加油管理</span></li>
13 13 </ul>
14 14  
... ...
src/main/resources/static/pages/oil/jyszList.html
... ... @@ -7,7 +7,7 @@
7 7  
8 8 <ul class="page-breadcrumb breadcrumb">
9 9 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
10   - <li><span class="active">用油管理</span> <i class="fa fa-circle"></i></li>
  10 + <li><span class="active">能耗管理</span> <i class="fa fa-circle"></i></li>
11 11 <li><span class="active">场外加油设置</span></li>
12 12 </ul>
13 13 <div class="row">
... ...
src/main/resources/static/pages/oil/list.html
... ... @@ -6,7 +6,7 @@
6 6  
7 7 <ul class="page-breadcrumb breadcrumb">
8 8 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
9   - <li><span class="active">用油管理</span> <i class="fa fa-circle"></i></li>
  9 + <li><span class="active">能耗管理</span> <i class="fa fa-circle"></i></li>
10 10 <li><span class="active">进出场存油量</span></li>
11 11 </ul>
12 12  
... ...
src/main/resources/static/pages/oil/list_ph.html
... ... @@ -14,7 +14,7 @@
14 14  
15 15 <ul class="page-breadcrumb breadcrumb">
16 16 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
17   - <li><span class="active">用油管理</span> <i class="fa fa-circle"></i></li>
  17 + <li><span class="active">能耗管理</span> <i class="fa fa-circle"></i></li>
18 18 <li><span class="active">进出场存油量</span></li>
19 19 </ul>
20 20 <div id="ll_oil_list"
... ...
src/main/resources/static/pages/oil/oillist/list.html
... ... @@ -6,7 +6,7 @@
6 6  
7 7 <ul class="page-breadcrumb breadcrumb">
8 8 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
9   - <li><span class="active">用油管理</span> <i class="fa fa-circle"></i></li>
  9 + <li><span class="active">能耗管理</span> <i class="fa fa-circle"></i></li>
10 10 <li><span class="active">进出场存油量</span></li>
11 11 </ul>
12 12  
... ...
src/main/resources/static/pages/permission/authorize_all/user_auth.html
... ... @@ -58,6 +58,7 @@
58 58 <li><label><input class="uk-checkbox" type="checkbox" data-event="form_changetochange"> 换人换车情况统计表</label></li>
59 59 <li><label><input class="uk-checkbox" type="checkbox" data-event="form_repairReport"> 维修上报记录</label></li>
60 60 <li><label><input class="uk-checkbox" type="checkbox" data-event="form_loggerr_zndd"> 智能调度日志</label></li>
  61 + <li><label><input class="uk-checkbox" type="checkbox" data-event="form_message_two"> 调度消息分析</label></li>
61 62  
62 63 </ul>
63 64 </div>
... ...
src/main/resources/static/pages/report/message/message_two.html 0 → 100644
  1 +<style type="text/css">
  2 + .table-bordered {
  3 + border: 1px solid; }
  4 + .table-bordered > thead > tr > th,
  5 + .table-bordered > thead > tr > td,
  6 + .table-bordered > tbody > tr > th,
  7 + .table-bordered > tbody > tr > td,
  8 + .table-bordered > tfoot > tr > th,
  9 + .table-bordered > tfoot > tr > td {
  10 + border: 1px solid; }
  11 + .table-bordered > thead > tr > th,
  12 + .table-bordered > thead > tr > td {
  13 + border-bottom-width: 2px; }
  14 +
  15 + .table > tbody + tbody {
  16 + border-top: 1px solid; }
  17 +</style>
  18 +
  19 +<div class="page-head">
  20 + <div class="page-title">
  21 + <h1>调度消息分析</h1>
  22 + </div>
  23 +</div>
  24 +
  25 +<div class="row">
  26 + <div class="col-md-12">
  27 + <div class="portlet light porttlet-fit bordered">
  28 + <div class="portlet-title">
  29 + <form class="form-inline" action="">
  30 + <div style="display: inline-block;">
  31 + <span class="item-label" style="width: 80px;">线路: </span>
  32 + <select class="form-control" name="line" id="line" style="width: 180px;"></select>
  33 + </div>
  34 + <div style="display: inline-block;margin-left: 15px;">
  35 + <span class="item-label" style="width: 80px;">时间: </span>
  36 + <input class="form-control" type="text" id="date" style="width: 180px;"/>
  37 + </div>
  38 + <div style="display: inline-block;margin-left: 15px">
  39 + <span class="item-label" style="width: 140px;">内部编码: </span>
  40 + <select class="form-control" name="code" id="code" style="width: 180px;"></select>
  41 + </div>
  42 + <div class="form-group" style="display: inline-block;margin-left: 15px;">
  43 + <input class="btn btn-default" type="button" id="query" value="查询"/>
  44 + <input class="btn btn-default" type="button" id="export" value="导出"/>
  45 +<!-- <input class="btn btn-default" type="button" id="print" value="打印"/> -->
  46 +<!-- <input class="btn btn-default" type="button" id="exportMore" value="批量导出"/> -->
  47 + </div>
  48 + </form>
  49 + </div>
  50 + <div class="portlet-body">
  51 + <div class="row">
  52 + <div class="col-md-3">
  53 + <div class="" id="left_table" style="margin-top: 10px;overflow:auto;height: 860px">
  54 + <table class="table table-bordered table-hover table-checkable pre-scrollable" id="info_msg">
  55 + <thead>
  56 + <tr class="hidden">
  57 + <th>线路</th>
  58 + <th>自编号</th>
  59 + <th>路牌</th>
  60 + <th>请求次数</th>
  61 + </tr>
  62 + </thead>
  63 + <tbody>
  64 +
  65 + </tbody>
  66 + </table>
  67 + </div>
  68 + </div>
  69 + <div class="col-md-9" id="printArea">
  70 + <div class="table-container" id="table" style="margin-top: 10px;overflow:auto;min-width: 906px">
  71 + <table class="table table-bordered table-hover table-checkable" id="forms">
  72 + <thead>
  73 + <tr class="hidden">
  74 + <th>序号</th>
  75 + <th>线路</th>
  76 +<!-- <th>路牌</th> -->
  77 + <th>运营车辆</th>
  78 + <th>发送人</th>
  79 + <th>发送时间</th>
  80 + <th>收到时间</th>
  81 + <th>确认时间</th>
  82 + <th>调度消息内容</th>
  83 + </tr>
  84 + </thead>
  85 + <tbody>
  86 +
  87 + </tbody>
  88 + </table>
  89 + </div>
  90 + </div>
  91 + </div>
  92 + </div>
  93 + </div>
  94 + </div>
  95 +</div>
  96 +
  97 +<script>
  98 + $(function(){
  99 + $('#print').attr('disabled', "true");
  100 + $('#export').attr('disabled', "true");
  101 + $('#printArea').hide();
  102 +
  103 + // 关闭左侧栏
  104 + if (!$('body').hasClass('page-sidebar-closed'))
  105 + $('.menu-toggler.sidebar-toggler').click();
  106 +
  107 + $("#date").datetimepicker({
  108 + format : 'YYYY-MM-DD',
  109 + locale : 'zh-cn'
  110 + });
  111 +
  112 + $("#left_table").height($(window).height()-100);
  113 + $("#table").height($(window).height()-100);
  114 +
  115 + var d = new Date();
  116 + var year = d.getFullYear();
  117 + var month = d.getMonth() + 1;
  118 + var day = d.getDate();
  119 + if(month < 9)
  120 + month = "0" + month;
  121 + if(day < 9)
  122 + day = "0" + day;
  123 + $("#date").val(year + "-" + month + "-" + day);
  124 +
  125 + $.get('/report/lineList',function(xlList){
  126 + var data = [];
  127 + $.get('/user/companyData', function(result){
  128 + for(var i = 0; i < result.length; i++){
  129 + var companyCode = result[i].companyCode;
  130 + var children = result[i].children;
  131 + for(var j = 0; j < children.length; j++){
  132 + var code = children[j].code;
  133 + for(var k=0;k < xlList.length;k++ ){
  134 + if(xlList[k]["fgsbm"]==code && xlList[k]["gsbm"]==companyCode){
  135 + data.push({id: xlList[k]["xlbm"], text: xlList[k]["xlname"]});
  136 + }
  137 + }
  138 + }
  139 + }
  140 + initPinYinSelect2('#line',data,'');
  141 +
  142 + });
  143 + });
  144 + $('#code').select2({
  145 + ajax: {
  146 + url: '/realSchedule/sreachVehic',
  147 + dataType: 'json',
  148 + delay: 150,
  149 + data: function(params){
  150 + return{nbbm: params.term};
  151 + },
  152 + processResults: function (data) {
  153 + return {
  154 + results: data
  155 + };
  156 + },
  157 + cache: true
  158 + },
  159 + templateResult: function(repo){
  160 + if (repo.loading) return repo.text;
  161 + var h = '<span>'+repo.text+'</span>';
  162 + h += (repo.lineName?'&nbsp;<span class="select2-desc">'+repo.lineName+'</span>':'');
  163 + return h;
  164 + },
  165 + escapeMarkup: function (markup) { return markup; },
  166 + minimumInputLength: 1,
  167 + templateSelection: function(repo){
  168 + return repo.text;
  169 + },
  170 + language: {
  171 + noResults: function(){
  172 + return '<span style="color:red;font-size: 12px;">没有搜索到车辆!</span>';
  173 + },
  174 + inputTooShort : function(e) {
  175 + return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> 输入自编号搜索车辆</span>';
  176 + },
  177 + searching : function() {
  178 + return '<span style="color:gray;font-size: 12px;"> 正在搜索车辆...</span>';
  179 + }
  180 + }
  181 + });
  182 +
  183 + var date = '';
  184 + var line = $("#line").val();
  185 + var lineName = $('#line option:selected').text();
  186 + $("#query").on("click",function(){
  187 + if($("#date").val() == null || $("#date").val().trim().length == 0){
  188 + layer.msg("请选择时间!");
  189 + return;
  190 + }
  191 + $("#left_table").height($(window).height()-100);
  192 + line = $("#line").val();
  193 + date = $("#date").val();
  194 + var code = $("#code").val();
  195 + $(".hidden").removeClass("hidden");
  196 + $get('/report/historyMessageCount',{line:line,date:date,code:code},function(result){
  197 + // 把数据填充到模版中
  198 + var tbodyHtml = template('list_msg_info',{list:result});
  199 + // 把渲染好的模版html文本追加到表格中
  200 + $('#info_msg tbody').html(tbodyHtml);
  201 +
  202 + $('#print').attr('disabled', "true");
  203 + $('#export').attr('disabled', "true");
  204 + $('#printArea').hide();
  205 +
  206 + });
  207 + });
  208 +
  209 + var params = new Array();
  210 + var jName = '';
  211 + $("#info_msg tbody").on("click","tr",function(){
  212 + if($(this).children().size() < 2){
  213 + return;
  214 + }
  215 + $("#table").height($(window).height()-100);
  216 + $(this).children().each(function(index){
  217 + params[index] = $(this).text();
  218 + });
  219 + jName = params[1];
  220 + line = $("#line").val();
  221 + date = $("#date").val();
  222 + lineName = $('#line option:selected').text();
  223 + var obj = $(this);
  224 + $get('/report/historyMessageList',{line:line,date:date,code:jName,type:"query"},function(result){
  225 +
  226 + result.forEach(function(item) {
  227 + item[10] = moment(Date.parse(item[3]) + 1000*2).format('YYYY-MM-DD HH:mm:ss');
  228 + item[11] = moment(Date.parse(item[3]) + 1000*20).format('YYYY-MM-DD HH:mm:ss');
  229 + })
  230 +
  231 + var list_history_msg = template('list_history_msg',{list:result});
  232 + // 把渲染好的模版html文本追加到表格中
  233 + $('#forms tbody').html(list_history_msg);
  234 +
  235 + if(result.length == 0){
  236 + $('#export').attr('disabled', "true");
  237 + $('#print').attr('disabled', "true");
  238 + } else {
  239 + $("#export").removeAttr("disabled");
  240 + $("#print").removeAttr("disabled");
  241 + }
  242 + $('#printArea').show();
  243 +
  244 + $("#info_msg tbody tr").css('background-color', '');
  245 + obj.css('background-color', '#99CCFF');
  246 + });
  247 + });
  248 +
  249 + $("#export").on("click",function(){
  250 + $get('/report/historyMessageList',{line:line,date:date,code:jName,type:"export_msg"},function(result){
  251 + window.open("/downloadFile/download?fileName="
  252 + +moment(date).format("YYYYMMDD")+"-"+lineName+"-调度消息分析");
  253 + });
  254 + });
  255 +
  256 + $("#print").click(function(){
  257 + $("#printArea").printArea();
  258 + });
  259 +
  260 + $("#exportMore").on("click",function(){
  261 + return;
  262 + $post('/realSchedule/exportWaybillMore',{date:date},function(result){
  263 + window.open("/downloadFile/download?fileName="+jName);
  264 + });
  265 + });
  266 +
  267 + });
  268 +</script>
  269 +<script type="text/html" id="list_msg_info">
  270 + {{each list as obj i}}
  271 + <tr>
  272 + <td width="25%">{{obj[0]}}\{{obj[1]}}</td>
  273 + <td width="25%">{{obj[2]}}</td>
  274 + <td width="25%">{{obj[1]}}</td>
  275 + <td width="25%">{{obj[3]}}</td>
  276 + </tr>
  277 + {{/each}}
  278 + {{if list.length == 0}}
  279 + <tr>
  280 + <td colspan="4"><h6 class="muted">没有找到相关数据</h6></td>
  281 + </tr>
  282 + {{/if}}
  283 +</script>
  284 +<script type="text/html" id="list_history_msg">
  285 + {{each list as obj i}}
  286 + <tr>
  287 + <td>{{i+1}}</td>
  288 + <td>{{obj[0]}}</td>
  289 + <!--<td>{{obj[6]}}</td>-->
  290 + <td>{{obj[1]}}</td>
  291 + <td>{{obj[2]}}</td>
  292 + <td>{{obj[3]}}</td>
  293 + <td>{{obj[10]}}</td>
  294 + <td>{{obj[11]}}</td>
  295 + <td>{{obj[4]}}</td>
  296 + </tr>
  297 + {{/each}}
  298 + {{if list.length == 0}}
  299 + <tr>
  300 + <td colspan="7"><h6 class="muted">没有找到相关数据</h6></td>
  301 + </tr>
  302 + {{/if}}
  303 +</script>
... ...
src/main/resources/static/pages/report/sheet/calcList_yanshou.html 0 → 100644
  1 +<style type="text/css">
  2 + .table-bordered {
  3 + border: 1px solid; }
  4 + .table-bordered > thead > tr > th,
  5 + .table-bordered > thead > tr > td,
  6 + .table-bordered > tbody > tr > th,
  7 + .table-bordered > tbody > tr > td,
  8 + .table-bordered > tfoot > tr > th,
  9 + .table-bordered > tfoot > tr > td {
  10 + border: 1px solid; }
  11 + .table-bordered > thead > tr > th,
  12 + .table-bordered > thead > tr > td {
  13 + border-bottom-width: 2px; }
  14 +
  15 + .table > tbody + tbody {
  16 + border-top: 1px solid; }
  17 +</style>
  18 +
  19 +<div class="page-head">
  20 + <div class="page-title" style="margin-left: 20px">
  21 + <button id="exportList">数据导出</button>
  22 + </div>
  23 +</div>
  24 +
  25 +<div class="row" id="calcSheetList">
  26 + <div class="col-md-12">
  27 + <div class="portlet light porttlet-fit bordered">
  28 + <div class="portlet-body">
  29 + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 600px">
  30 + <table class="table table-bordered table-hover table-checkable" id="forms_2">
  31 + <thead>
  32 + <tr>
  33 + <td></td>
  34 + <td>日期</td>
  35 + <td>线路</td>
  36 + <td>站点</td>
  37 + <td>计划时间</td>
  38 + <td>实际时间</td>
  39 + <td>是否准点</td>
  40 + <td>备注</td>
  41 + </tr>
  42 + </thead>
  43 +
  44 + <tbody>
  45 +
  46 + </tbody>
  47 + </table>
  48 + </div>
  49 + </div>
  50 + </div>
  51 + </div>
  52 +</div>
  53 +<script src="/pages/mforms/singledatas/jquery.table2excel.min.js"></script>
  54 +<script>
  55 + $(function(){
  56 + // 关闭左侧栏
  57 + if (!$('body').hasClass('page-sidebar-closed'))
  58 + $('.menu-toggler.sidebar-toggler').click();
  59 + var no="";
  60 + var dates="";
  61 + var dir="";
  62 + $("#calcSheetList").on('init', function (e, id) {
  63 + no=id.split(",")[0];
  64 + dates = id.split(",")[1];
  65 + dir =id.split(",")[2];
  66 + var i = layer.load(2);
  67 + $get('/calcSheet/calcSheet',{line:no,date:dates,dir:dir,type:'query'},function(result){
  68 + layer.close(i);
  69 + var calcSheetList_2 = template('calcSheetList_2',{list:result});
  70 + $('#forms_2 tbody').html(calcSheetList_2);
  71 + });
  72 + })
  73 + $("#exportList").on('click',function(){
  74 + var i = layer.load(2);
  75 + var name="";
  76 + if(dir=="1"){
  77 + fileName="发车准点率"+dates;
  78 + }else{
  79 + fileName="到站准点率"+dates;
  80 + }
  81 + $get('/calcSheet/calcSheet',{line:no,date:dates,dir:dir,type:'export'},function(result){
  82 + window.open("/downloadFile/download?fileName="+fileName);
  83 + layer.close(i);
  84 + });
  85 + });
  86 +
  87 +
  88 + });
  89 +</script>
  90 +<script type="text/html" id="calcSheetList_2">
  91 + {{each list as obj i}}
  92 + <tr {{if obj.sfzd!="准点"}}style="color: red" {{/if}}>
  93 + <td>{{i+1}}</td>
  94 + <td>{{obj.date}}</td>
  95 + <td>{{obj.line}}</td>
  96 + <td>{{obj.zdname}}</td>
  97 + <td>{{obj.jhsj}}</td>
  98 + <td>{{obj.sjsj}}</td>
  99 + <td>{{obj.sfzd}}</td>
  100 + <td>{{if i == 6}}自动调度{{/if}}</td>
  101 + </tr>
  102 + {{/each}}
  103 + {{if list.length == 0}}
  104 + <tr>
  105 + <td colspan="7"><h6 class="muted">没有找到相关数据</h6></td>
  106 + </tr>
  107 + {{/if}}
  108 +</script>
0 109 \ No newline at end of file
... ...
src/main/resources/static/pages/report/timetable/timetable.html
... ... @@ -69,7 +69,7 @@
69 69 <td colspan="2" align="center">6:31-8:30</td>
70 70 <td colspan="2" align="center">16:01-18:00</td>
71 71 <td rowspan="2" style="text-align:center;vertical-align:middle;">总里程</td>
72   - <td rowspan="2" style="text-align:center;vertical-align:middle;">营里程</td>
  72 + <td rowspan="2" style="text-align:center;vertical-align:middle;">营里程</td>
73 73 <td rowspan="2" style="text-align:center;vertical-align:middle;">空驶里程</td>
74 74 </tr>
75 75 <tr>
... ... @@ -93,7 +93,7 @@
93 93 <td colspan="2"> 营运车时 (计划班次的营运时间/公里)</td>
94 94 </tr>
95 95 <tr>
96   - <td colspan="2">营里程/营运时间(小时)</td>
  96 + <td colspan="2">营里程/营运时间(小时)</td>
97 97  
98 98 </tr>
99 99 <tr>
... ...
src/main/resources/static/pages/scheduleApp/module/basicInfo/busInfoManage/detail.html
... ... @@ -307,7 +307,48 @@
307 307  
308 308  
309 309 <!-- 其他form-group -->
  310 + <div class="form-group">
  311 + <label class="col-md-2 control-label">最大乘坐人数:</label>
  312 + <div class="col-md-4">
  313 + <input type="text" class="form-control" ng-model="ctrl.busInfoForSave.maxPeople"
  314 + placeholder="请输入最大乘坐人数"/>
  315 + </div>
  316 + </div>
  317 + <div class="form-group">
  318 + <label class="col-md-2 control-label">票价类型:</label>
  319 + <div class="col-md-4">
  320 + <sa-Select5 name="priceType"
  321 + model="ctrl.busInfoForSave"
  322 + cmaps="{'priceType': 'code'}"
  323 + dcname="priceType"
  324 + icname="code"
  325 + dsparams="{{ {type: 'dic', param: 'priceType' } | json }}"
  326 + iterobjname="item"
  327 + iterobjexp="item.name"
  328 + searchph="请选择票价类型..."
  329 + searchexp="this.name"
  330 + >
  331 + </sa-Select5>
  332 + </div>
  333 + </div>
  334 + <div class="form-group">
  335 + <label class="col-md-2 control-label">票价:</label>
  336 + <div class="col-md-4">
  337 + <input type="text" class="form-control" ng-model="ctrl.busInfoForSave.price"
  338 + placeholder="请输入票价"/>
  339 + </div>
  340 + </div>
  341 +
  342 + </div>
310 343  
  344 + <div class="form-actions">
  345 + <div class="row">
  346 + <div class="col-md-offset-3 col-md-4">
  347 + <button type="submit" class="btn green" ng-disabled="!myForm.$valid"><i class="fa fa-check"></i> 提交</button>
  348 + <a type="button" class="btn default" ui-sref="busInfoManage" ><i class="fa fa-times"></i> 取消</a>
  349 + </div>
  350 + </div>
  351 + </div>
311 352 </div>
312 353  
313 354 </form>
... ...
src/main/resources/static/pages/scheduleApp/module/basicInfo/busInfoManage/edit.html
... ... @@ -477,6 +477,63 @@
477 477  
478 478 <!-- 其他form-group -->
479 479  
  480 + <div class="form-group">
  481 + <label class="col-md-2 control-label">颜色:</label>
  482 + <div class="col-md-4">
  483 + <sa-Select5 name="color"
  484 + model="ctrl.busInfoForSave"
  485 + cmaps="{'color': 'code'}"
  486 + dcname="color"
  487 + icname="code"
  488 + dsparams="{{ {type: 'dic', param: 'CarColor' } | json }}"
  489 + iterobjname="item"
  490 + iterobjexp="item.name"
  491 + searchph="请选择车辆颜色..."
  492 + searchexp="this.name"
  493 + >
  494 + </div>
  495 + </div>
  496 + <div class="form-group">
  497 + <label class="col-md-2 control-label">最大乘坐人数:</label>
  498 + <div class="col-md-4">
  499 + <input type="text" class="form-control" ng-model="ctrl.busInfoForSave.maxPeople"
  500 + placeholder="请输入最大乘坐人数"/>
  501 + </div>
  502 + </div>
  503 + <div class="form-group">
  504 + <label class="col-md-2 control-label">票价类型:</label>
  505 + <div class="col-md-4">
  506 + <sa-Select5 name="priceType"
  507 + model="ctrl.busInfoForSave"
  508 + cmaps="{'priceType': 'code'}"
  509 + dcname="priceType"
  510 + icname="code"
  511 + dsparams="{{ {type: 'dic', param: 'priceType' } | json }}"
  512 + iterobjname="item"
  513 + iterobjexp="item.name"
  514 + searchph="请选择票价类型..."
  515 + searchexp="this.name"
  516 + >
  517 + </sa-Select5>
  518 + </div>
  519 + </div>
  520 + <div class="form-group">
  521 + <label class="col-md-2 control-label">票价:</label>
  522 + <div class="col-md-4">
  523 + <input type="text" class="form-control" ng-model="ctrl.busInfoForSave.price"
  524 + placeholder="请输入票价"/>
  525 + </div>
  526 + </div>
  527 +
  528 + </div>
  529 +
  530 + <div class="form-actions">
  531 + <div class="row">
  532 + <div class="col-md-offset-3 col-md-4">
  533 + <button type="submit" class="btn green" ng-disabled="!myForm.$valid"><i class="fa fa-check"></i> 提交</button>
  534 + <a type="button" class="btn default" ui-sref="busInfoManage" ><i class="fa fa-times"></i> 取消</a>
  535 + </div>
  536 + </div>
480 537 </div>
481 538  
482 539 <div class="form-actions">
... ...
src/main/resources/static/pages/scheduleApp/module/basicInfo/busInfoManage/form.html
... ... @@ -468,6 +468,53 @@
468 468  
469 469  
470 470 <!-- 其他form-group -->
  471 + <div class="form-group">
  472 + <label class="col-md-2 control-label">颜色:</label>
  473 + <div class="col-md-4">
  474 + <sa-Select5 name="color"
  475 + model="ctrl.busInfoForSave"
  476 + cmaps="{'color': 'code'}"
  477 + dcname="color"
  478 + icname="code"
  479 + dsparams="{{ {type: 'dic', param: 'CarColor' } | json }}"
  480 + iterobjname="item"
  481 + iterobjexp="item.name"
  482 + searchph="请选择车辆颜色..."
  483 + searchexp="this.name"
  484 + >
  485 + </div>
  486 + </div>
  487 + <div class="form-group">
  488 + <label class="col-md-2 control-label">最大乘坐人数:</label>
  489 + <div class="col-md-4">
  490 + <input type="text" class="form-control" ng-model="ctrl.busInfoForSave.maxPeople"
  491 + placeholder="请输入最大乘坐人数"/>
  492 + </div>
  493 + </div>
  494 + <div class="form-group">
  495 + <label class="col-md-2 control-label">票价类型:</label>
  496 + <div class="col-md-4">
  497 + <sa-Select5 name="priceType"
  498 + model="ctrl.busInfoForSave"
  499 + cmaps="{'priceType': 'code'}"
  500 + dcname="priceType"
  501 + icname="code"
  502 + dsparams="{{ {type: 'dic', param: 'priceType' } | json }}"
  503 + iterobjname="item"
  504 + iterobjexp="item.name"
  505 + searchph="请选择票价类型..."
  506 + searchexp="this.name"
  507 + >
  508 + </sa-Select5>
  509 + </div>
  510 + </div>
  511 + <div class="form-group">
  512 + <label class="col-md-2 control-label">票价:</label>
  513 + <div class="col-md-4">
  514 + <input type="text" class="form-control" ng-model="ctrl.busInfoForSave.price"
  515 + placeholder="请输入票价"/>
  516 + </div>
  517 + </div>
471 518  
472 519 </div>
473 520  
... ...
src/main/resources/static/pages/scheduleApp/module/basicInfo/employeeInfoManage/edit.html
... ... @@ -164,8 +164,24 @@
164 164 </div>
165 165  
166 166 </div>
167   -
168   - <!-- 其他form-group -->
  167 + <div class="form-body">
  168 + <div class="form-group has-success has-feedback">
  169 + <label class="col-md-2 control-label">线路*:</label>
  170 + <div class="col-md-3">
  171 + <sa-Select5 name="xl"
  172 + model="ctrl.busConfigForSave"
  173 + cmaps="{'xl.id': 'id', 'xl.name': 'name'}"
  174 + dcname="xl.id"
  175 + icname="id"
  176 + dsparams="{{ {type: 'ajax', param:{type: 'all', 'destroy_eq': 0}, atype:'xl' } | json }}"
  177 + iterobjname="item"
  178 + iterobjexp="item.name"
  179 + searchph="请输拼音..."
  180 + searchexp="this.name"
  181 + required >
  182 + </sa-Select5>
  183 + </div>
  184 + </div>
169 185  
170 186 </div>
171 187  
... ...
src/main/resources/static/pages/scheduleApp/module/basicInfo/employeeInfoManage/form.html
... ... @@ -163,7 +163,22 @@
163 163 </div>
164 164  
165 165 </div>
166   -
  166 + <div class="form-body">
  167 + <label class="col-md-2 control-label">熟悉线路信息*:</label>
  168 + <div class="col-md-3">
  169 + <sa-Select5 name="xl"
  170 + model="ctrl.busConfigForSave"
  171 + cmaps="{'xl.id': 'id', 'xl.name': 'name'}"
  172 + dcname="xl.id"
  173 + icname="id"
  174 + dsparams="{{ {type: 'ajax', param:{type: 'all', 'destroy_eq': 0}, atype:'xl' } | json }}"
  175 + iterobjname="item"
  176 + iterobjexp="item.name"
  177 + searchph="请输拼音..."
  178 + searchexp="this.name"
  179 + required >
  180 + </sa-Select5>
  181 + </div>
167 182 <!-- 其他form-group -->
168 183  
169 184 </div>
... ...
src/main/resources/static/pages/scheduleApp/module/core/guideboardManage/list.html
... ... @@ -34,7 +34,12 @@
34 34 <td>
35 35 <input type="text" class="form-control form-filter input-sm" ng-model="ctrl.searchCondition()['lpName_like']" placeholder="请输入路牌名字..."/>
36 36 </td>
37   - <td></td>
  37 + <td>
  38 + <select class="form-control">
  39 + <option>普通路牌</option>
  40 + <option>特殊路牌</option>
  41 + </select>
  42 + </td>
38 43 <td>
39 44 <label class="checkbox-inline">
40 45 <input type="checkbox" ng-model="ctrl.searchCondition()['isCancel_eq']"/>已作废
... ...
src/main/resources/static/pages/scheduleApp/module/core/guideboardManage/module.js
... ... @@ -385,7 +385,7 @@ angular.module(&#39;ScheduleApp&#39;).controller(
385 385  
386 386 // 当转向到此页面时,就获取明细信息并绑定
387 387 Gb.get({id: id}, function(result) {
388   - self.guideboardForDetail = result.data;
  388 + self.guideboardForDetail = result;
389 389 self.title = "路牌 " + self.guideboardForDetail.lpName + " 详细信息";
390 390 });
391 391 }
... ...
src/main/resources/static/pages/scheduleApp/module/core/ttInfoManage/list.html
... ... @@ -192,7 +192,7 @@
192 192 <a ui-sref="ttInfoDetailManage_edit3({xlid: info.xl.id, ttid : info.id, xlname: info.xl.name, ttname : info.name, rflag : true, lineversion : info.lineVersion})"
193 193 class="btn btn-info btn-sm" ng-if="info.isCancel == '0'"> 编辑 </a>
194 194 <a ng-click="ctrl.toTtInfoDetailAuto(info.id)"
195   - class="btn btn-info btn-sm" ng-if="info.isCancel == '0'"> 生成 </a>
  195 + class="btn btn-info btn-sm" ng-if="info.isCancel == '0'"> 排班优化 </a>
196 196 <a ui-sref="ttInfoDetailManage_form({xlid: info.xl.id, ttid : info.id, xlname: info.xl.name, ttname : info.name})"
197 197 class="btn btn-info btn-sm" ng-if="info.isCancel == '0'"> 导入 </a>
198 198 <a href="javascript:" class="btn btn-info btn-sm" ng-click="ctrl.exportData(info.id)"> 导出 </a>
... ...
src/main/resources/static/pages/zndd_yuan/DKL.html
... ... @@ -182,8 +182,8 @@
182 182 id: 'card4',
183 183 x: 100,
184 184 y: 400,
185   - label: '待发调整',
186   - type: "待发调整",
  185 + label: '待发调整工具',
  186 + type: "待发调整工具",
187 187 nodes: [{
188 188 type: "in",
189 189 level: 0,
... ... @@ -199,13 +199,35 @@
199 199 }
200 200 ],
201 201 titleBarColor: ['#3950e8', '#25f6d0']
202   - },
  202 + },
203 203 {
204 204 id: 'card5',
205 205 x: 100,
206 206 y: 400,
207   - label: '班次取消(烂班)',
208   - type: "班次取消(烂班)",
  207 + label: '班次取消(烂班)工具',
  208 + type: "班次取消(烂班)工具",
  209 + nodes: [{
  210 + type: "in",
  211 + level: 0,
  212 + enumType: 'call',
  213 + color: '#fff',
  214 +
  215 + },
  216 + {
  217 + type: "out",
  218 + level: 0,
  219 + enumType: 'call',
  220 + color: '#3C8CE7',
  221 + }
  222 + ],
  223 + titleBarColor: ['#3950e8', '#25f6d0']
  224 + },
  225 + {
  226 + id: 'card51',
  227 + x: 100,
  228 + y: 400,
  229 + label: '撤销班次取消(烂班)工具',
  230 + type: "撤销班次取消(烂班)工具",
209 231 nodes: [{
210 232 type: "in",
211 233 level: 0,
... ... @@ -226,8 +248,30 @@
226 248 id: 'card6',
227 249 x: 100,
228 250 y: 400,
229   - label: '实发调整',
230   - type: "实发调整",
  251 + label: '实发调整工具',
  252 + type: "实发调整工具",
  253 + nodes: [{
  254 + type: "in",
  255 + level: 0,
  256 + enumType: 'call',
  257 + color: '#fff',
  258 +
  259 + },
  260 + {
  261 + type: "out",
  262 + level: 0,
  263 + enumType: 'call',
  264 + color: '#3C8CE7',
  265 + }
  266 + ],
  267 + titleBarColor: ['#3950e8', '#25f6d0']
  268 + },
  269 + {
  270 + id: 'card7',
  271 + x: 100,
  272 + y: 400,
  273 + label: '实发撤销工具',
  274 + type: "实发撤销工具",
231 275 nodes: [{
232 276 type: "in",
233 277 level: 0,
... ... @@ -248,8 +292,8 @@
248 292 id: 'card7',
249 293 x: 100,
250 294 y: 400,
251   - label: '实发撤销',
252   - type: "实发撤销",
  295 + label: '发车信息微调工具',
  296 + type: "发车信息微调工具",
253 297 nodes: [{
254 298 type: "in",
255 299 level: 0,
... ... @@ -270,8 +314,8 @@
270 314 id: 'card8',
271 315 x: 100,
272 316 y: 400,
273   - label: '新增临加班次',
274   - type: "新增临加班次",
  317 + label: '新增临加班次工具',
  318 + type: "新增临加班次工具",
275 319 nodes: [{
276 320 type: "in",
277 321 level: 0,
... ... @@ -292,8 +336,8 @@
292 336 id: 'card9',
293 337 x: 100,
294 338 y: 400,
295   - label: '调整人车',
296   - type: "调整人车",
  339 + label: '调整人车工具',
  340 + type: "调整人车工具",
297 341 nodes: [{
298 342 type: "in",
299 343 level: 0,
... ... @@ -314,8 +358,8 @@
314 358 id: 'card10',
315 359 x: 100,
316 360 y: 400,
317   - label: '指令重发',
318   - type: "指令重发",
  361 + label: '指令重发工具',
  362 + type: "指令重发工具",
319 363 nodes: [{
320 364 type: "in",
321 365 level: 0,
... ... @@ -336,8 +380,8 @@
336 380 id: 'card11',
337 381 x: 100,
338 382 y: 400,
339   - label: '路牌对调',
340   - type: "路牌对调",
  383 + label: '路牌对调工具',
  384 + type: "路牌对调工具",
341 385 nodes: [{
342 386 type: "in",
343 387 level: 0,
... ... @@ -358,8 +402,8 @@
358 402 id: 'card12',
359 403 x: 100,
360 404 y: 400,
361   - label: '误点调整',
362   - type: "误点调整",
  405 + label: '误点调整工具',
  406 + type: "误点调整工具",
363 407 nodes: [{
364 408 type: "in",
365 409 level: 0,
... ...
src/main/resources/static/real_control_v2/fragments/line_schedule/context_menu/temp_sch/add_normal_recoder.html 0 → 100644
  1 +<!-- 临加班次form -->
  2 +<script id="add_normal_sch-form-temp" type="text/html">
  3 + <form class="uk-form uk-form-horizontal add-sch-form">
  4 + <div class="uk-grid">
  5 + <div class="uk-width-1-2">
  6 + <div class="uk-form-row">
  7 + <label class="uk-form-label">班次类型</label>
  8 + <div class="uk-form-controls">
  9 + <select class="form-control nt-dictionary" name="bcType" data-code="{{bcType}}"
  10 + data-group=ScheduleType></select>
  11 + </div>
  12 + </div>
  13 + </div>
  14 + <div class="uk-width-1-2">
  15 + <div class="uk-form-row">
  16 + <label class="uk-form-label">上下行</label>
  17 + <div class="uk-form-controls">
  18 + <select name="xlDir" id="xlDir">
  19 + <option value="0">上行</option>
  20 + <option value="1">下行</option>
  21 + </select>
  22 + </div>
  23 + </div>
  24 + </div>
  25 + </div>
  26 + <div class="uk-grid">
  27 + <div class="uk-width-1-2">
  28 + <div class="uk-form-row">
  29 + <label class="uk-form-label">起点站</label>
  30 + <div class="uk-form-controls">
  31 + <select name="qdzCode" id="qdzCode">
  32 + </select>
  33 + </div>
  34 + </div>
  35 + </div>
  36 + <div class="uk-width-1-2">
  37 + <div class="uk-form-row">
  38 + <label class="uk-form-label">终点站</label>
  39 + <div class="uk-form-controls">
  40 + <select name="zdzCode" id="zdzCode">
  41 + </select>
  42 + </div>
  43 + </div>
  44 + </div>
  45 + </div>
  46 + <div class="uk-grid">
  47 + <div class="uk-width-1-2">
  48 + <div class="uk-form-row">
  49 + <label class="uk-form-label">开始时间</label>
  50 + <div class="uk-form-controls">
  51 + <input type="time" value="{{zdsjActual==null?zdsj:zdsjActual}}" name="fcsj" required>
  52 + </div>
  53 + </div>
  54 + </div>
  55 + <div class="uk-width-1-2">
  56 + <div class="uk-form-row">
  57 + <label class="uk-form-label">结束时间</label>
  58 + <div class="uk-form-controls">
  59 + <input type="time" name="zdsj" required>
  60 + </div>
  61 + </div>
  62 + </div>
  63 + </div>
  64 + <div class="uk-grid">
  65 + <div class="uk-width-1-2">
  66 + <div class="uk-form-row">
  67 + <label class="uk-form-label">车辆</label>
  68 + <div class="uk-form-controls">
  69 + <div class="uk-autocomplete uk-form car-autocom">
  70 + <input type="text" value="{{clZbh}}" name="clZbh" required>
  71 + </div>
  72 + </div>
  73 + </div>
  74 + </div>
  75 + <div class="uk-width-1-2">
  76 + <div class="uk-form-row">
  77 + <label class="uk-form-label">里程</label>
  78 + <div class="uk-form-controls">
  79 + <input type="text" name="jhlc" value="{{jhlc}}" max=400 data-fv-lessthan-inclusive="false"
  80 + required>
  81 + </div>
  82 + </div>
  83 + </div>
  84 + </div>
  85 + <div class="uk-grid">
  86 + <div class="uk-width-1-2">
  87 + <div class="uk-form-row">
  88 + <label class="uk-form-label">驾驶员</label>
  89 + <div class="uk-form-controls">
  90 + <div class="uk-autocomplete uk-form jsy-autocom">
  91 + <input type="text" value="{{jGh}}/{{jName}}" name="jsy" required>
  92 + </div>
  93 + </div>
  94 + </div>
  95 + </div>
  96 + <div class="uk-width-1-2">
  97 + <div class="uk-form-row">
  98 + <label class="uk-form-label">售票员</label>
  99 + <div class="uk-form-controls">
  100 + <div class="uk-autocomplete uk-form spy-autocom">
  101 + <input type="text" name="spy" value="{{sGh}}/{{sName}}">
  102 + </div>
  103 + </div>
  104 + </div>
  105 + </div>
  106 + </div>
  107 + <div class="uk-grid">
  108 + <div class="uk-width-1-1">
  109 + <div class="uk-form-row">
  110 + <label class="uk-form-label">备注</label>
  111 + <div class="uk-form-controls">
  112 + <div class="uk-autocomplete uk-form remarks-autocom">
  113 + <input type="text" name="remarks">
  114 + </div>
  115 + </div>
  116 + </div>
  117 + </div>
  118 + </div>
  119 + <div class="uk-modal-footer uk-text-right" style="margin-bottom: -20px;">
  120 + <span class="ct_line_lp_badge"></span>
  121 + <button type="button" class="uk-button uk-modal-close">取消</button>
  122 + <button type="submit" class="uk-button uk-button-primary"><i class="uk-icon-check"></i> &nbsp;保存
  123 + </button>
  124 + </div>
  125 + </form>
  126 +</script>
  127 +<script>
  128 + (function () {
  129 + var wrap = '#schedule-addsch-modal .normalCont', sch, nf, submitFun;
  130 +
  131 + $(wrap).on('init', function (e, data) {
  132 + e.stopPropagation();
  133 + sch = data.sch;
  134 + submitFun = data.submitFun;
  135 +
  136 + nf = addForm();
  137 + //提交
  138 + nf.on('success.form.fv', function (e) {
  139 + e.preventDefault();
  140 +
  141 + disabled_submit_btn(nf);
  142 + var data = nf.serializeJSON();
  143 + submitFun(data, function (rs) {
  144 + //前端数据更新
  145 + gb_schedule_table.insertSchedule(rs.t, rs.ts);
  146 + $('#schedule-lj_zrw-modal .main-schedule-table').trigger('refresh', {sch: rs.t});
  147 + try {
  148 + if(rs.t.bcType=='in' || rs.t.bcType=='out')
  149 + gb_data_basic.reload_stat_park_data();
  150 + }catch (e){
  151 + console.log(e);}
  152 + UIkit.modal('#schedule-addsch-modal').hide();
  153 + //更新路牌公里统计面板
  154 + gb_schedule_table.showLpMileageTipBySch(rs.t);
  155 + }, function () {
  156 + enable_submit_btn(nf);
  157 + });
  158 + });
  159 + $('.ct_line_lp_badge', nf).html(sch.xlName + ',&nbsp;'+sch.lpName);
  160 + });
  161 +
  162 + function addForm() {
  163 + var htmlStr = template('add_normal_sch-form-temp', sch);
  164 + var f = $(htmlStr);
  165 + $(wrap).append(f);
  166 + //字典转换
  167 + dictionaryUtils.transformDom($('.nt-dictionary', f));
  168 + //validation
  169 + f.formValidation({framework: 'uikit', locale: 'zh_CN'});
  170 + //autocomp
  171 + f.trigger('init-autoCom');
  172 +
  173 + $("#xlDir").val(sch.xlDir);
  174 + $f('bcType', f).trigger('change');
  175 + $("#qdzCode").val(sch.qdzCode);
  176 + $("#zdzCode").val(sch.zdzCode);
  177 + $f('zdzCode', f).trigger('change');
  178 + return f;
  179 + }
  180 +
  181 + function $f(name, f) {
  182 + return $('[name=' + name + ']', f);
  183 + }
  184 + })();
  185 +</script>
0 186 \ No newline at end of file
... ...
src/main/resources/static/real_control_v2/fragments/line_schedule/context_menu/temp_sch/main_recorder.html 0 → 100644
  1 +<div class="uk-modal ct-form-modal ct_move_modal" id="schedule-addsch-modal">
  2 + <div class="uk-modal-dialog" style="width: 800px;">
  3 + <a href="" class="uk-modal-close uk-close"></a>
  4 + <div class="uk-modal-header">
  5 + <h2>新增临加班次</h2></div>
  6 +
  7 + <div class="uk-grid">
  8 + <div class="uk-width-1-4">
  9 + <ul data-uk-switcher="{connect:'#tempScheduleContent'}" class="uk-nav uk-nav-side left_tabs_lg">
  10 + <li data-handle="normal"><a>1、临加班次</a></li>
  11 + <li data-handle="toAndFro"><a>2、往返</a></li>
  12 + <li data-handle="parkToPark"><a>3、场到场</a></li>
  13 + </ul>
  14 + </div>
  15 + <div class="uk-width-3-4">
  16 + <ul id="tempScheduleContent" class="uk-switcher">
  17 + <li class="normalCont"></li>
  18 + <li class="toAndFroCont"></li>
  19 + <li class="parkToParkCont"></li>
  20 + </ul>
  21 + </div>
  22 + </div>
  23 + </div>
  24 +
  25 + <script>
  26 + (function () {
  27 + var modal = '#schedule-addsch-modal',
  28 + sch, stationRoutes, parks, information, carsArray, st_park_data;
  29 +
  30 + $(modal).on('init', function (e, data) {
  31 + e.stopPropagation();
  32 + sch = data.sch;
  33 + //站到场数据
  34 + st_park_data = gb_data_basic.get_stat_park_data()[sch.xlBm];
  35 + //站点路由
  36 + stationRoutes = gb_common.groupBy(gb_data_basic.stationRoutes(sch.xlBm).sort(function (a, b) {
  37 + return a.stationRouteCode - b.stationRouteCode;
  38 + }), 'directions');
  39 + //停车场
  40 + parks = gb_data_basic.simpleParksArray();
  41 + //线路标准
  42 + information = gb_data_basic.getLineInformation(sch.xlBm);
  43 + //停车场排序,常用的放前面
  44 + parks = sort_parks(parks, information, st_park_data);
  45 + //车辆信息
  46 + carsArray = gb_data_basic.carsArray();
  47 +
  48 + var st_doms = gb_schedule_context_menu.get_add_sch_doms();
  49 + //normal
  50 + $('.normalCont', modal).html(st_doms.normal_recoder_dom)
  51 + .trigger('init', {sch: sch, submitFun: submit_temp_schedule_form});
  52 +
  53 + //to and fro
  54 + $('.toAndFroCont', modal).html(st_doms.two_way_recoder_dom)
  55 + .trigger('init', {sch: sch, submitFun: submit_temp_schedule_form, stationRoutes: stationRoutes});
  56 +
  57 + //park to park
  58 + $('.parkToParkCont', modal).html(st_doms.park_to_park_dom)
  59 + .trigger('init', {sch: sch, submitFun: submit_temp_schedule_form, parks: parks, carsArray: carsArray});
  60 + });
  61 +
  62 + //init-autoCom
  63 + $(modal).on('init-autoCom', '.add-sch-form', function () {
  64 + //车辆
  65 + if(carsArray)
  66 + gb_common.carAutocomplete($('.car-autocom', this), carsArray);
  67 + //驾驶员
  68 + gb_common.personAutocomplete($('.jsy-autocom', this));
  69 + //售票员
  70 + gb_common.personAutocomplete($('.spy-autocom', this));
  71 + //备注补全
  72 + gb_common.remarksAutocomplete($('.remarks-autocom', this));
  73 + });
  74 +
  75 + //班次类型 和 上下行 切换事件
  76 + $(modal).on('change', '.add-sch-form [name=bcType],.add-sch-form [name=xlDir]', reCalcInputs_type);
  77 + //起终点站改变事件
  78 + $(modal).on('change', '[name=qdzCode],[name=zdzCode]', reCalcInputs_station);
  79 + //开始时间和公里改变
  80 + $(modal).on('input', '.add-sch-form [name=fcsj],.add-sch-form [name=jhlc]', reCalcEndTime);
  81 +
  82 +
  83 + function reCalcInputs_type() {
  84 + var f = $(this).parents('.add-sch-form');
  85 + var bcType_e = $('[name=bcType]', f)
  86 + , xlDir_e = $('[name=xlDir]', f);
  87 +
  88 + var routes = stationRoutes[xlDir_e.val()]
  89 + , lastCode = routes[routes.length - 1].stationCode
  90 + , opts = '', park_opts = '';
  91 + //station options
  92 + $.each(routes, function () {
  93 + opts += '<option value="' + this.stationCode + '">' + this.stationName + '</option>'
  94 + });
  95 + //park options
  96 + for(var i=0,p;p=parks[i++];)
  97 + park_opts += '<option value="' + p.code + '">' + p.name + '</option>';
  98 +
  99 + var qdz = $('[name=qdzCode]', f), zdz = $('[name=zdzCode]', f);
  100 + //var time, mileage;
  101 + switch (bcType_e.val()) {
  102 + case 'out':
  103 + qdz.html(park_opts).val(information.carPark);
  104 + zdz.html(opts);
  105 + break;
  106 + case 'in':
  107 + qdz.html(opts);
  108 + zdz.html(park_opts).val(information.carPark);
  109 + break;
  110 + default:
  111 + qdz.html(opts);
  112 + zdz.html(opts).val(lastCode);
  113 + }
  114 +
  115 + zdz.trigger('change');
  116 + f.trigger('ct_callback');
  117 + }
  118 +
  119 + function reCalcInputs_station() {
  120 + var f = $(this).parents('form'),
  121 + bcType = $('[name=bcType]', f).val(),
  122 + qdzCode = $('[name=qdzCode]', f).val(),
  123 + zdzCode =$('[name=zdzCode]', f).val(),
  124 + startDate = $('[name=fcsj]', f).val(),
  125 + upDown = $('[name=xlDir]', f).val(), mileage, time;
  126 +
  127 + //从站到场里获取数据
  128 + var stp = search_st_park(f);
  129 + if(stp){
  130 + mileage=bcType=='in'?stp['mileage1']:stp['mileage2'];
  131 + time=bcType=='in'?stp['time1']:stp['time2'];
  132 + }
  133 + else{
  134 + switch (upDown + '_' + bcType) {
  135 + case '0_out'://上行出场
  136 + mileage = information.upOutMileage;
  137 + time = information.upOutTimer;
  138 + break;
  139 + case '1_out'://下行出场
  140 + mileage = information.downOutMileage;
  141 + time = information.downOutTimer;
  142 + break;
  143 + case '0_in'://上行进场
  144 + mileage = information.upInMileage;
  145 + time = information.upInTimer;
  146 + break;
  147 + case '1_in'://下行进场
  148 + mileage = information.downInMileage;
  149 + time = information.downInTimer;
  150 + break;
  151 + default:
  152 +
  153 + var qc_time=upDown==0?information.upTravelTime:information.downTravelTime,
  154 + qc_mileage=upDown==0?information.upMileage:information.downMileage, _type;
  155 + if(is_normal_sch(f)){
  156 + _type='normal';
  157 + mileage=qc_mileage;
  158 + }
  159 + else{
  160 + _type='region';
  161 + mileage = calcMileage(stationRoutes[upDown], qdzCode, zdzCode);
  162 + }
  163 +
  164 + time = gb_common.mul(gb_common.accDiv(qc_time, qc_mileage), mileage);
  165 + if(bcType!='ldks' && bcType!='major' && bcType!='venting')
  166 + $('[name=bcType]', f).val(_type);
  167 + }
  168 + }
  169 +
  170 + $('[name=jhlc]', f).val(mileage);
  171 + var et = moment(startDate, 'HH:mm').add(time, 'minutes');
  172 + $f('zdsj', f).val(et.format('HH:mm'));
  173 + f.trigger('ct_callback');
  174 + }
  175 +
  176 +
  177 + function reCalcEndTime() {
  178 + var f = $(this).parents('.add-sch-form')
  179 + , startDate = $f('fcsj', f).val()//开始时间
  180 + , mileage = $f('jhlc', f).val()//公里
  181 + , type2 = $f('bcType', f).val(),//班次类型
  182 + upDown = $('[name=xlDir]', f).val();
  183 + if (!startDate || !mileage)
  184 + return;
  185 +
  186 + var time;
  187 + //从站到场里获取数据
  188 + var stp = search_st_park(f);
  189 + if(stp){
  190 + time=type2=='in'?stp['time1']:stp['time2'];
  191 + }
  192 + else{
  193 + if (type2 == 'in')
  194 + time = upDown == 0 ? information.upInTimer : information.downInTimer;
  195 + else if (type2 == 'out')
  196 + time = upDown == 0 ? information.upOutTimer : information.downOutTimer;
  197 + else{
  198 + var qc_time=upDown==0?information.upTravelTime:information.downTravelTime,
  199 + qc_mileage=upDown==0?information.upMileage:information.downMileage;
  200 +
  201 + time = gb_common.mul(gb_common.accDiv(qc_time, qc_mileage), mileage);
  202 + }
  203 + }
  204 +
  205 + var et = moment(startDate, 'HH:mm').add(time, 'minutes');
  206 + $f('zdsj', f).val(et.format('HH:mm'));
  207 + f.trigger('ct_callback');
  208 + }
  209 +
  210 + function is_normal_sch(f) {
  211 + var qdzCode = $('[name=qdzCode]', f).val(),
  212 + zdzCode =$('[name=zdzCode]', f).val(),
  213 + upDown = $('[name=xlDir]', f).val(),
  214 + rts = stationRoutes[upDown];
  215 +
  216 + if(rts[0].stationCode == qdzCode
  217 + && rts[rts.length - 1].stationCode == zdzCode)
  218 + return true;
  219 + else
  220 + return false;
  221 + }
  222 +
  223 + function isInOut(bcType) {
  224 + return bcType=='in' || bcType=='out';
  225 + }
  226 +
  227 + /**
  228 + * 计算线路上站点间公里
  229 + */
  230 + function calcMileage(rts, s, e) {
  231 + var mileage = 0, flag, code;
  232 + $.each(rts, function () {
  233 + code = this['stationCode'];
  234 + if (flag)
  235 + mileage = gb_common.accAdd(mileage, this.distances);
  236 + if (code == s)
  237 + flag = true;
  238 + if (code == e)
  239 + return false;
  240 + });
  241 + return mileage;
  242 + }
  243 +
  244 + function search_st_park(f) {
  245 + if(!st_park_data)
  246 + return;
  247 + var stp;
  248 + var qdSelect=$f('qdzCode', f)[0],zdSelect=$f('zdzCode', f)[0];
  249 +
  250 + if(qdSelect.options.selectedIndex < 0 || zdSelect.options.selectedIndex < 0)
  251 + return;
  252 + var qdzName=qdSelect.options[qdSelect.options.selectedIndex].text,
  253 + zdzName=zdSelect.options[zdSelect.options.selectedIndex].text,
  254 + type2 = $f('bcType', f).val();
  255 +
  256 + if(!isInOut(type2))
  257 + return;
  258 +
  259 + $.each(st_park_data, function () {
  260 + if((type2=='in' && this.stationName==qdzName && this.parkName==zdzName)
  261 + || (type2=='out' && this.stationName==zdzName && this.parkName==qdzName)){
  262 + stp = this;
  263 + return false;
  264 + }
  265 + });
  266 +
  267 + return stp;
  268 + }
  269 +
  270 + /**
  271 + * 停车场排序
  272 + * @param parks 停车场 code 2 name
  273 + * @param information 线路标准
  274 + * @param st_park_data 站到场
  275 + */
  276 + function sort_parks(parks, information, st_park_data) {
  277 + var array = [], names=[];
  278 + for(var code in parks){
  279 + array.push({code: code, name: parks[code]});
  280 + }
  281 +
  282 + if(st_park_data && st_park_data.length > 0){
  283 + $.each(st_park_data, function () {
  284 + names.push(this.parkName);
  285 + });
  286 + }
  287 +
  288 + //debugger
  289 + array.sort(function (a, b) {
  290 + if(a.code==information.carPark)
  291 + return -1;
  292 + if(b.code==information.carPark)
  293 + return 1;
  294 +
  295 + var ai = names.indexOf(a.name),
  296 + bi = names.indexOf(b.name);
  297 +
  298 + if(ai!=-1 && bi==-1)
  299 + return -1;
  300 + else if(ai==-1 && bi!=-1)
  301 + return 1;
  302 + else
  303 + return $.trim(a.name).localeCompare($.trim(b.name), 'zh-CN');
  304 + });
  305 + return array;
  306 + }
  307 +
  308 + function $f(name, f) {
  309 + return $('[name=' + name + ']', f);
  310 + }
  311 +
  312 + /**
  313 + * 提交表单
  314 + */
  315 + function submit_temp_schedule_form(data, cb, err) {
  316 + data.xlBm = sch.xlBm;
  317 + data.xlName = sch.xlName;
  318 + data.lpName = sch.lpName;
  319 + //拆分驾驶员工号和姓名
  320 + data.jGh = data.jsy.split('/')[0];
  321 + data.jName = data.jsy.split('/')[1];
  322 + delete data.jsy;
  323 + //拆分售票员工号和姓名
  324 + if (data.spy != '') {
  325 + data.sGh = data.spy.split('/')[0];
  326 + data.sName = data.spy.split('/')[1];
  327 + delete data.spy;
  328 + }
  329 +
  330 + //公司信息
  331 + var line = gb_data_basic.findLineByCodes([data.xlBm]);
  332 + if(line && line.length > 0){
  333 + line = line[0];
  334 + data.gsBm = line.company;
  335 + data.fgsBm = line.brancheCompany;
  336 + }
  337 +
  338 + gb_common.$post('/realSchedule', data, function (rs) {
  339 + notify_succ('新增临加班次成功');
  340 + cb && cb(rs);
  341 + }, err);
  342 + }
  343 + })();
  344 + </script>
  345 +</div>
0 346 \ No newline at end of file
... ...
src/main/resources/static/real_control_v2/fragments/line_schedule/sch_table.html
... ... @@ -25,6 +25,8 @@
25 25 </div>
26 26 <i class="uk-icon-eye uk-icon-hover ct_eye_icon"></i>
27 27 <i class="uk-icon-qrcode uk-icon-hover ct_calu_icon" data-toggle="tooltip" data-placement="bottom" title="计算应到实到时间对比"></i>
  28 + <i class="uk-icon-video-camera uk-icon-hover ct_video_camera_icon" data-updown="{{dir}}" data-linecode="{{line.lineCode}}" data-toggle="tooltip" data-placement="bottom"></i>
  29 + <i class="uk-icon-image uk-icon-hover ct_image_icon" data-updown="{{dir}}" data-linecode="{{line.lineCode}}" data-toggle="tooltip" data-placement="bottom"></i>
28 30  
29 31 <!--<i class="uk-icon-share-alt uk-icon-hover tp_info_icon" ></i>-->
30 32  
... ...
src/main/resources/static/real_control_v2/fragments/line_schedule/sys_mailbox.html
... ... @@ -9,6 +9,17 @@
9 9 <button class="uk-button uk-button-mini reject">不同意</button>
10 10 <a class="edit_link" data-id="{{schId}}" data-line="{{data.lineId}}" >编辑</a>
11 11 </div>
  12 + <div style="display:{{isbj == true?'':'none'}}">
  13 + <h6 > 车辆事故最近的站点:{{stationName}}</h6>
  14 + </div>
  15 + <div class="uk-button-group" style="display:{{isbj == true?'':'none'}}">
  16 + <button class="uk-button uk-button-mini qxbc" data-id="{{schId}}" data-line="{{data.lineId}}" data-nextschid="{{nextschId}}">取消班次</button>
  17 + <button class="uk-button uk-button-mini hrhc" data-id="{{schId}}" data-line="{{data.lineId}}" data-nextschid="{{nextschId}}">换人换车</button>
  18 +
  19 + </div>
  20 + <div class="uk-button-group" style="display:{{isbj == true?'':'none'}}">
  21 + <button class="uk-button uk-button-mini zrw" data-id="{{schId}}" data-line="{{data.lineId}}" data-nextschid="{{nextschId}}">临加子任务</button>
  22 + </div>
12 23 </div>
13 24 </div>
14 25 </script>
... ...
src/main/resources/static/real_control_v2/js/common.js
... ... @@ -20,6 +20,10 @@ var gb_common = (function () {
20 20 0x11: '扣证纠纷',
21 21 0x12: '报警',
22 22 0x10: 'SOS',
  23 + 0x21: '单车有人伤',
  24 + 0x22: '单车无人伤',
  25 + 0x23: '双车有人伤',
  26 + 0x24: '双车无人伤',
23 27 };
24 28  
25 29 var adjustExps = ['配车', '保养', '故障', '肇事', '路阻', '纠纷', '缺人', '客稀', '缺车', '气候', '援外', '吊慢', '抽减', '路救抛锚', '无到', '无出', '掉线', '指令故障', '车辆漂移', '其他'];
... ...
src/main/resources/static/real_control_v2/js/data/json/north_toolbar.json
... ... @@ -139,6 +139,12 @@
139 139 "text": "智能调度执行记录",
140 140 "event": "form_loggerr_zndd",
141 141 "icon": "uk-icon-table"
  142 + },
  143 + {
  144 + "id": 2.8,
  145 + "text": "调度消息分析",
  146 + "event": "form_message_two",
  147 + "icon": "uk-icon-table"
142 148 }
143 149 ]
144 150 },
... ...
src/main/resources/static/real_control_v2/js/line_schedule/context_menu.js
... ... @@ -27,6 +27,10 @@ var gb_schedule_context_menu = (function () {
27 27 $.get(folder + '/temp_sch/add_normal.html', function (dom) {
28 28 add_sch_doms.normal_dom=dom;
29 29 });
  30 +
  31 + $.get(folder + '/temp_sch/add_normal_recoder.html', function (dom) {
  32 + add_sch_doms.normal_recoder_dom=dom;
  33 + });
30 34 $.get(folder + '/temp_sch/add_two_way.html', function (dom) {
31 35 add_sch_doms.two_way_dom=dom;
32 36 });
... ...
src/main/resources/static/real_control_v2/js/line_schedule/legend.js
... ... @@ -78,6 +78,55 @@ var gb_sch_legend = (function () {
78 78 showYdSdDb();
79 79 }
80 80  
  81 + $(document).on('click', '.schedule-wrap i.ct_video_camera_icon', function (event) {
  82 + var upDown=event.target.dataset.updown;
  83 + var lineCode=event.target.dataset.linecode;
  84 + var params = {"upDown":upDown,"lineCode":lineCode};
  85 + $.get('/out/getStationVideo', params, function(url){
  86 + if(url!=''){
  87 + var imgHtml = "<iframe src='"+url+"?autoplay=1' style='width:100%;height:100%'/>";
  88 + layer.open({
  89 + type: 1,
  90 + offset: 'auto',
  91 + area: [700 + 'px', 394 + 'px'],
  92 + shadeClose: true,//点击外围关闭弹窗
  93 + scrollbar: true,//不现实滚动条
  94 + title: false, //不显示标题
  95 + content: imgHtml, //捕获的元素,注意:最好该指定的元素要存放在body最外层,否则可能被其它的相对元素所影响
  96 + cancel: function () {
  97 + }
  98 + })
  99 + }/*else {
  100 + notify_succ('设备不存在');
  101 + }*/
  102 +
  103 + });
  104 + });
  105 +
  106 + $(document).on('click', '.schedule-wrap i.ct_image_icon', function (event) {
  107 + var upDown=event.target.dataset.updown;
  108 + var lineCode=event.target.dataset.linecode;
  109 + var params = {"upDown":upDown,"lineCode":lineCode};
  110 + $.get('/out/getStationImg', params, function(url){
  111 + if(url!=''){
  112 + var imgHtml = "<img src='"+url+"' style='width:700px;height:394px'/>";
  113 + layer.open({
  114 + type: 1,
  115 + offset: 'auto',
  116 + area: [700 + 'px', 394 + 'px'],
  117 + shadeClose: true,//点击外围关闭弹窗
  118 + scrollbar: true,//不现实滚动条
  119 + title: false, //不显示标题
  120 + content: imgHtml, //捕获的元素,注意:最好该指定的元素要存放在body最外层,否则可能被其它的相对元素所影响
  121 + cancel: function () {
  122 + }
  123 + })
  124 + }/*else {
  125 + notify_succ('设备不存在');
  126 + }*/
  127 + });
  128 + });
  129 +
81 130 function showYdSdDb() {
82 131 if (ydsddb) {
83 132 var sdsjs = $('.schedule-wrap').find('.qdzArrDatesjDD');
... ...
src/main/resources/static/real_control_v2/js/main.js
... ... @@ -30,7 +30,7 @@ var gb_main_ep = new EventProxy(),
30 30 //判断如果用户按下了回车键(keycody=13)
31 31 if (keyNum == 13) {
32 32 fired = true;
33   - debugger
  33 +
34 34 let lineCode = gb_schedule_table.TablelineCode;
35 35 document.getElementById("recidress").style.display = 'none';
36 36 recorder.upload("zndd/do/"+lineCode, function (state, e) {
... ...
src/main/resources/static/real_control_v2/js/north/second_timer.js
... ... @@ -53,7 +53,7 @@ var gb_second_timer = (function () {
53 53 };
54 54  
55 55 var setTime = function () {
56   - _this.innerHTML = timeFormat(now.getHours()) + ':' + timeFormat(now.getMinutes()) + '.' + timeFormat(now.getSeconds());
  56 + _this.innerHTML = timeFormat(now.getHours()) + ':' + timeFormat(now.getMinutes()) + ':' + timeFormat(now.getSeconds());
57 57 };
58 58  
59 59 var minuteTimer = function () {
... ...
src/main/resources/static/real_control_v2/js/north/toolbar.js
... ... @@ -37,18 +37,23 @@ var gb_northToolbar = (function () {
37 37 $('.north .north-toolbar .exit-system').on('click', function () {
38 38 //调度员退出时提示未全部完成班次的线路
39 39 //默认只取一个角色
40   - debugger
41 40 if(user.roles[0].codeName == "LG_DDY" || user.roles[0].codeName == "LG_GLY"){
42 41 //提示未完成线路 搜索该用户下所有的线路 判断是否完成
43 42 $.get('/logZndd/LineUserAll', {userId: user.id}, function (rs) {
44   - notify_err(rs+"班次还有未完成");
45   - layer.confirm('班次还有未完成,是否要退出线调?', {
46   - btn: ['确定','取消'] //按钮
47   - }, function(){
  43 + if(rs.length > 0){
  44 + notify_err(rs+"班次还有未完成");
  45 + layer.confirm('班次还有未完成,是否要退出线调?', {
  46 + btn: ['确定','取消'] //按钮
  47 + }, function(){
  48 + gb_sch_websocket.sock().close(1000, '退出线调');
  49 + window.location.href = '/pages/control/lineallot_v2/iframe_wrap.html';
  50 + }, function(){
  51 + });
  52 + }else {
  53 + //关闭websocket 连接
48 54 gb_sch_websocket.sock().close(1000, '退出线调');
49 55 window.location.href = '/pages/control/lineallot_v2/iframe_wrap.html';
50   - }, function(){
51   - });
  56 + }
52 57 })
53 58 }else {
54 59 //关闭websocket 连接
... ... @@ -208,6 +213,9 @@ var gb_northToolbar = (function () {
208 213 form_message: function () {
209 214 gb_embed_form_hanlde.open_modal_form_fragment('/pages/report/message/message.html', '调度消息分析');
210 215 },
  216 + form_message_two: function () {
  217 + gb_embed_form_hanlde.open_modal_form_fragment('/pages/report/message/message_two.html', '调度消息分析');
  218 + },
211 219 form_commandState: function () {
212 220 gb_embed_form_hanlde.open_modal_form_fragment('/pages/forms/statement/commandState.html', '指令状态分析');
213 221 },
... ...
src/main/resources/static/real_control_v2/js/stationcf/klyj.js
... ... @@ -3,7 +3,7 @@
3 3 */
4 4 var gb_klyj = (function () {
5 5 var $wrap = $('.multi_plat_msg_pop_zndd');
6   - var max = 3;
  6 + var max = 0;
7 7 var dataMap = new Map();
8 8 var popcf = function (data) {
9 9 dataMap.set(data.uuid,data);
... ...
src/main/resources/static/real_control_v2/js/websocket/sch_websocket.js
... ... @@ -86,6 +86,17 @@ var gb_sch_websocket = (function () {
86 86 if (!msg.text)
87 87 msg.text = '(未知的请求码 ' + msg.data.requestCode + ')';
88 88  
  89 + debugger
  90 + switch (msg.data.requestCode) {
  91 + //报警请求
  92 + case 0x21:
  93 + case 0x22:
  94 + case 0x23:
  95 + case 0x24:
  96 + msg.isbj = true;
  97 + break;
  98 + }
  99 +
89 100 var $item = $(temps['sys-note-80-temp'](msg));
90 101 findMailBox(msg.data.lineId).prepend($item);
91 102 //tts
... ... @@ -380,6 +391,7 @@ var gb_sch_websocket = (function () {
380 391 * 信使 sys-note-80 编辑
381 392 */
382 393 $(document).on('click', '.sys-note-80 .edit_link', function () {
  394 +
383 395 var id = $(this).data('id'),
384 396 lineCode = $(this).data('line');
385 397  
... ... @@ -390,6 +402,58 @@ var gb_sch_websocket = (function () {
390 402 gb_schedule_context_menu.fcxxwt(sch);
391 403 });
392 404  
  405 +
  406 +
  407 + /**
  408 + * 信使 sys-note-80 取消班次
  409 + */
  410 + $(document).on('click', '.sys-note-80 .qxbc', function () {
  411 + debugger
  412 + var nextschId = $(this).data('nextschid'),
  413 + lineCode = $(this).data('line');
  414 +
  415 + var sch = gb_schedule_table.findScheduleByLine(lineCode)[nextschId];
  416 + if(!sch)
  417 + return;
  418 +
  419 + var confirmBtn = $(this).parent().find('.uk-button-primary');
  420 + var fun =gb_schedule_context_menu.jhlb;
  421 + fun(sch, function () {
  422 + confirmBtn.trigger('click');
  423 + });
  424 + });
  425 +
  426 +
  427 + /**
  428 + * 信使 sys-note-80 换人换车
  429 + */
  430 + $(document).on('click', '.sys-note-80 .hrhc', function () {
  431 + debugger
  432 + var nextschId = $(this).data('nextschid'),
  433 + lineCode = $(this).data('line');
  434 + var sch = gb_schedule_table.findScheduleByLine(lineCode)[nextschId];
  435 + if(!sch)
  436 + return;
  437 +
  438 + gb_schedule_context_menu.tzrc(sch);
  439 + });
  440 +
  441 +
  442 + /**
  443 + * 信使 sys-note-80 子任务
  444 + */
  445 + $(document).on('click', '.sys-note-80 .zrw', function () {
  446 + debugger
  447 + var id = $(this).data('id'),
  448 + lineCode = $(this).data('line');
  449 +
  450 + var sch = gb_schedule_table.findScheduleByLine(lineCode)[id];
  451 + if(!sch)
  452 + return;
  453 +
  454 + gb_schedule_context_menu.lj_zrw(sch);
  455 + });
  456 +
393 457 return {
394 458 sock: function () {
395 459 return schSock;
... ...
src/main/resources/static/real_control_v2/js/zndd/data_zndd.js
... ... @@ -408,6 +408,7 @@ var gb_dataZndd = (function (){
408 408 }
409 409 };
410 410 }
  411 +
411 412 return {
412 413 sop : sop,
413 414 snt : snt,
... ...
src/main/resources/static/real_control_v2/js/zndd/recorder/recorder.js
... ... @@ -205,14 +205,20 @@
205 205 sch.zdzCode = responseText[3];
206 206 sch.xlDir = responseText[4];
207 207 sch.zdsjActual = moment(new Date()).format("HH:mm")
208   - open_modal(folder + '/temp_sch/main.html', {
  208 + open_modal(folder + '/temp_sch/main_recorder.html', {
209 209 sch: sch
210 210 }, modal_opts);
211 211 });
212 212 }
213 213 else if(responseText[1]=="2"){//新增出场班次
214 214 if(schId==''){
215   - notify_err("请选择班次");
  215 + var sch ={
  216 + xlBm : lineCode
  217 + }
  218 + var fun =gb_schedule_context_menu.add_temp_sch_v2;
  219 + fun(sch, function () {
  220 + confirmBtn.trigger('click');
  221 + });
216 222 return;
217 223 }
218 224 var sch = gb_schedule_table.findScheduleByLine(lineCode)[schId];
... ... @@ -229,7 +235,13 @@
229 235 }
230 236 else if(responseText[1]=="3"){//新增班次
231 237 if(schId==''){
232   - notify_err("请选择班次");
  238 + var sch ={
  239 + xlBm : lineCode
  240 + }
  241 + var fun =gb_schedule_context_menu.add_temp_sch_v2;
  242 + fun(sch, function () {
  243 + confirmBtn.trigger('click');
  244 + });
233 245 return;
234 246 }
235 247 var sch = gb_schedule_table.findScheduleByLine(lineCode)[schId];
... ...
src/main/resources/static/real_control_v2/main.html
... ... @@ -307,7 +307,7 @@
307 307 </div>
308 308  
309 309 <div class="popup-msg-contents" style="display:{{type == 'WD'?'':'none'}}">
310   - <button class="uk-button uk-button-primary fcxxwts" data-fcsj="{{fcsj}}" data-clzbh="{{clzbh}}" data-id="{{id}}">发车信息微调</button>
  310 + <button class="uk-button uk-button-primary fcxxwts" data-fcsj="{{fcsj}}" data-clzbh="{{clzbh}}" data-id="{{id}}">发车信息微调工具</button>
311 311 </div>
312 312  
313 313 <div class="centerSpace msg-title">
... ... @@ -320,6 +320,46 @@
320 320 </div>
321 321  
322 322 </script>
  323 +<script id="sjZ-divs-temp" type="text/html">
  324 +
  325 + <div class="history" style="margin-top:50px;height: 450px;overflow-y: scroll">
  326 + <div class="history-date" STYLE="padding-top:10px;">
  327 + <ul>
  328 + <li>
  329 + <h3>{{rq1}}<span>{{rqStr}}</span></h3>
  330 + <dl>
  331 + <dt>检测到异常情况</dt>
  332 + </dl>
  333 + </li>
  334 + </ul>
  335 + <ul>
  336 + <li>
  337 + <h3>{{rq2}}<span>{{rqStr}}</></h3>
  338 + <dl>
  339 + <dt>推送到线调页面</dt>
  340 + </dl>
  341 + </li>
  342 + </ul>
  343 + <ul>
  344 + <li>
  345 + <h3>{{rq2}}<span>{{rqStr}}</span></h3>
  346 + <dl>
  347 + <dt>生成配置调度工具</dt>
  348 + </dl>
  349 + </li>
  350 + </ul>
  351 + <ul>
  352 + <li>
  353 + <h3>{{rq2}}<span>{{rqStr}}</span></h3>
  354 + <dl>
  355 + <dt>生成最佳处置方式</dt>
  356 + </dl>
  357 + </li>
  358 + </ul>
  359 + </div>
  360 + </div>
  361 +</script>
  362 +
323 363 <div class="multi_plat_msg_pop_zndd">
324 364 <!--<div id="timer"></div>-->
325 365 </div>
... ...
src/main/resources/static/real_control_v2/zndd/qjgz/list.html
... ... @@ -22,12 +22,12 @@
22 22 <table class="ct-fixed-table uk-table uk-table-hover">
23 23 <thead>
24 24 <tr>
25   - <th style="width: 10%;">线路</th>
26   - <th style="width: 10%;">车辆</th>
27   - <th style="width: 10%;">人员</th>
  25 + <th style="width: 5%;">线路</th>
  26 + <th style="width: 5%;">车辆</th>
  27 + <th style="width: 5%;">人员</th>
28 28 <th style="width: 10%;">请假类型</th>
29 29 <th style="width: 15%;">时间</th>
30   - <th style="width: 35%;">处理方式</th>
  30 + <th style="width: 50%;">处理方式</th>
31 31 </tr>
32 32 </thead>
33 33 <tbody>
... ... @@ -54,10 +54,10 @@
54 54 <td>{{obj.rq}}</td>
55 55 <td >
56 56 {{if obj.qjType == 0}}
57   - <button class="uk-button pllbon" data-id="{{obj.id}}"> 批量烂班</button>
58   - <button class="uk-button hrhc" data-id="{{obj.id}}"> 批量换人换车</button>
59   - <button class="uk-button lp_change" data-id="{{obj.id}}"> 路牌对调</button>
60   - <button class="uk-button cxlb" data-id="{{obj.id}}"> 恢复烂班</button>
  57 + <button class="uk-button pllbon" data-id="{{obj.id}}"> 班次取消(烂班)工具</button>
  58 + <button class="uk-button hrhc" data-id="{{obj.id}}"> 调整人车工具</button>
  59 + <button class="uk-button lp_change" data-id="{{obj.id}}"> 路牌对调工具</button>
  60 + <button class="uk-button cxlb" data-id="{{obj.id}}"> 撤销班次取消(烂班)工具</button>
61 61 {{else}}
62 62 计划调度 -> 调度执勤日报
63 63 {{/if}}
... ...
src/main/resources/static/real_control_v2/zndd/type/djg1.html
1 1 <div class="uk-modal ct-form-modal ct_move_modal" id="schedule-addsch-modal">
2   - <div class="uk-modal-dialog" style="width: 1400px;">
  2 + <div class="uk-modal-dialog" style="width: 1500px;">
3 3 <a href="" class="uk-modal-close uk-close"></a>
4 4 <div class="uk-modal-header">
5 5 <h2>新增临加班次</h2></div>
6   - <div class="uk-grid uk-width-2-5" style="float: left">
  6 +
  7 + <div class="uk-grid uk-width-1-6" style="float: left">
  8 + <div class="uk-width-5-5 sjzlist">
  9 +
  10 + </div>
  11 + </div>
  12 + <div class="uk-grid uk-width-2-6" style="float: left">
7 13 <div class="uk-width-5-5">
8 14 <form class="uk-form uk-form-horizontal"> </form>
9 15 <div>
... ... @@ -12,7 +18,7 @@
12 18 </div>
13 19 </div>
14 20 </div>
15   - <div class="uk-grid uk-width-3-5 lj_1" >
  21 + <div class="uk-grid uk-width-3-6 lj_1" >
16 22 <div class="uk-width-1-4">
17 23 <ul data-uk-switcher="{connect:'#tempScheduleContent'}" class="uk-nav uk-nav-side left_tabs_lg">
18 24  
... ... @@ -31,7 +37,7 @@
31 37 </div>
32 38 </div>
33 39  
34   - <div class="uk-grid uk-width-3-5 lj_2" style="display: none; padding-left: 100px">
  40 + <div class="uk-grid uk-width-3-6 lj_2" style="display: none; padding-left: 100px">
35 41 <div class="uk-width-1-1" id ="tempsdsf"></div>
36 42  
37 43 </div>
... ... @@ -51,7 +57,10 @@
51 57 var formHtml = template('djg-form-temp', sch);
52 58 $('form', modal).html(formHtml);
53 59 //切换
54   -
  60 + sch.rq1 =moment(new Date().getTime() - (60 *1000)).format("HH:mm");
  61 + sch.rq2 =moment(new Date()).format("HH:mm")
  62 + var formHtmls = template('sjZ-divs-temp', sch);
  63 + $('.sjzlist', modal).html(formHtmls);
55 64  
56 65  
57 66  
... ...
src/main/resources/static/real_control_v2/zndd/type/dkl.html
... ... @@ -3,7 +3,12 @@
3 3 <a href="" class="uk-modal-close uk-close"></a>
4 4 <div class="uk-modal-header">
5 5 <h2>新增临加班次<i class="uk-icon-question-circle uk-icon-hover"></i></h2></div>
6   - <div class="uk-grid uk-width-2-5" style="float: left">
  6 + <div class="uk-grid uk-width-1-6" style="float: left">
  7 + <div class="uk-width-5-5 sjzlist">
  8 +
  9 + </div>
  10 + </div>
  11 + <div class="uk-grid uk-width-2-6" style="float: left">
7 12 <div class="uk-width-5-5">
8 13 <form class="uk-form uk-form-horizontal"> </form>
9 14 <div>
... ... @@ -12,7 +17,7 @@
12 17 </div>
13 18 </div>
14 19 </div>
15   - <div class="uk-grid uk-width-3-5 lj_1" >
  20 + <div class="uk-grid uk-width-3-6 lj_1" >
16 21 <div class="uk-width-1-4">
17 22 <ul data-uk-switcher="{connect:'#tempScheduleContent'}" class="uk-nav uk-nav-side left_tabs_lg">
18 23 <li data-handle="toAndFro"><a>1、往返</a></li>
... ... @@ -29,7 +34,7 @@
29 34 </div>
30 35 </div>
31 36  
32   - <div class="uk-grid uk-width-3-5 lj_2" style="display: none; padding-left: 100px">
  37 + <div class="uk-grid uk-width-3-6 lj_2" style="display: none; padding-left: 100px">
33 38 <div class="uk-width-1-1" id ="tempsdsf"></div>
34 39  
35 40 </div>
... ... @@ -48,9 +53,11 @@
48 53  
49 54 var formHtml = template('djg-form-temp', sch);
50 55 $('form', modal).html(formHtml);
51   - //切换
52   -
53 56  
  57 + sch.rq1 =moment(new Date().getTime() - (60 *1000)).format("HH:mm");
  58 + sch.rq2 =moment(new Date()).format("HH:mm")
  59 + var formHtmls = template('sjZ-divs-temp', sch);
  60 + $('.sjzlist', modal).html(formHtmls);
54 61  
55 62  
56 63  
... ... @@ -432,9 +439,9 @@
432 439 gb_common.$post('/realSchedule', data, function (rs) {
433 440 notify_succ('新增临加班次成功');
434 441 cb && cb(rs);
435   - var folder = '/real_control_v2/zndd/yanshi';
  442 + /*var folder = '/real_control_v2/zndd/yanshi';
436 443 open_modal(folder + '/yanshi.html', {
437   - }, {center: true, bgclose: false, modal: true});
  444 + }, {center: true, bgclose: false, modal: true});*/
438 445 }, err);
439 446 }
440 447  
... ...
src/main/resources/static/real_control_v2/zndd/type/fcjg.html
1 1 <div class="uk-modal ct-form-modal ct_move_modal" id="schedule-addsch-modal">
2   - <div class="uk-modal-dialog" style="width: 920px;">
  2 + <div class="uk-modal-dialog" style="width: 1020px;">
3 3 <a href="" class="uk-modal-close uk-close"></a>
4 4 <div class="uk-modal-header">
5   - <h2>新增临加班次</h2></div>
6   - <div class="uk-grid uk-width-3-5" style="float: left">
  5 + <h2>发车间隔</h2></div>
  6 +
  7 + <div class="uk-grid uk-width-1-6" style="float: left">
  8 + <div class="uk-width-5-5 sjzlist">
  9 +
  10 + </div>
  11 + </div>
  12 + <div class="uk-grid uk-width-3-6" style="float: left">
7 13 <div class="uk-width-5-5">
8 14 <form class="uk-form uk-form-horizontal"> </form>
9 15 <div>
... ... @@ -13,13 +19,13 @@
13 19 </div>
14 20 </div>
15 21  
16   - <div class="uk-grid uk-width-2-5 lj_2" style="padding-left: 100px">
  22 + <div class="uk-grid uk-width-2-6 lj_2" style="padding-left: 100px">
17 23 <div class="uk-width-1-1" id ="tempsdsf"></div>
18 24  
19 25 </div>
20 26  
21 27  
22   - <div class="uk-grid uk-width-2-5 lj_1" style="padding-left: 100px">
  28 + <div class="uk-grid uk-width-2-6 lj_1" style="padding-left: 100px">
23 29 <div class="uk-width-1-1" id ="tempcjs"></div>
24 30  
25 31 </div>
... ... @@ -41,7 +47,10 @@
41 47 var formHtml = template('djg-form-temp', sch);
42 48 $('form', modal).html(formHtml);
43 49 //切换
44   -
  50 + sch.rq1 =moment(new Date().getTime() - (60 *1000)).format("HH:mm");
  51 + sch.rq2 =moment(new Date()).format("HH:mm")
  52 + var formHtmls = template('sjZ-divs-temp', sch);
  53 + $('.sjzlist', modal).html(formHtmls);
45 54  
46 55  
47 56 $.get('/lineConfig/getByLineCode', {lineCode: sch.lineCode}, function (datan) {
... ...
src/main/resources/static/real_control_v2/zndd/type/mz.html
1 1 <div class="uk-modal ct-form-modal ct_move_modal" id="schedule-addsch-modal">
2   - <div class="uk-modal-dialog" style="width: 1400px;">
  2 + <div class="uk-modal-dialog" style="width: 1500px;">
3 3 <a href="" class="uk-modal-close uk-close"></a>
4 4 <div class="uk-modal-header">
5 5 <h2>满载</h2></div>
6   - <div class="uk-grid uk-width-2-5" style="float: left">
  6 +
  7 + <div class="uk-grid uk-width-1-6" style="float: left">
  8 + <div class="uk-width-5-5 sjzlist">
  9 +
  10 + </div>
  11 + </div>
  12 +
  13 + <div class="uk-grid uk-width-2-6" style="float: left">
7 14 <div class="uk-width-5-5">
8 15 <form class="uk-form uk-form-horizontal"> </form>
9 16 <div>
... ... @@ -12,11 +19,11 @@
12 19 </div>
13 20 </div>
14 21 </div>
15   - <div class="uk-grid uk-width-3-5 lj_1" >
  22 + <div class="uk-grid uk-width-3-6 lj_1" >
16 23 <div class="uk-width-1-4">
17 24 <ul data-uk-switcher="{connect:'#tempScheduleContent'}" class="uk-nav uk-nav-side left_tabs_lg">
18 25 <li data-handle="toAndFro"><a>1、往返</a></li>
19   - <li data-handle="normal"><a>2、临加班次</a></li>
  26 + <li data-handle="normal"><a>2、新增临加班次工具</a></li>
20 27 <!-- <li data-handle="parkToPark"><a>3、场到场</a></li>-->
21 28 </ul>
22 29 </div>
... ... @@ -53,6 +60,12 @@
53 60 sch.stopStation = route[route.length - 1];
54 61 var formHtml = template('djg-form-temp', sch);
55 62 $('form', modal).html(formHtml);
  63 +
  64 + sch.rq1 =moment(new Date().getTime() - (60 *1000)).format("HH:mm");
  65 + sch.rq2 =moment(new Date()).format("HH:mm")
  66 + var formHtmls = template('sjZ-divs-temp', sch);
  67 + $('.sjzlist', modal).html(formHtmls);
  68 +
56 69 //切换
57 70 $("#destroySelect").on('change',function(){
58 71 let fn = $('#destroySelect').val();
... ... @@ -384,7 +397,6 @@
384 397 })();
385 398 </script>
386 399 </div>
387   -
388 400 <script id="djg-form-temp" type="text/html">
389 401 <input type="hidden" name="id" value=""/>
390 402  
... ... @@ -448,7 +460,7 @@
448 460  
449 461 <div class="uk-width-1-1">
450 462 <div class="uk-form-row">
451   - <label class="uk-form-label">车内视频:</label>
  463 + <label class="uk-form-label">车内情况:</label>
452 464 </div>
453 465 </div>
454 466 </div>
... ...
src/main/resources/static/real_control_v2/zndd/type/sftz_1.html
... ... @@ -3,7 +3,19 @@
3 3 <a href="" class="uk-modal-close uk-close"></a>
4 4 <div class="uk-modal-header">
5 5 <h2>实发未发<i class="uk-icon-question-circle uk-icon-hover"></i></h2></div>
6   - <form class="uk-form uk-form-horizontal"> </form>
  6 + <div class="uk-grid uk-width-1-5" style="float: left">
  7 + <div class="uk-width-5-5 sjzlist">
  8 +
  9 + </div>
  10 + </div>
  11 +
  12 + <div class="uk-grid uk-width-4-5" >
  13 + <div class="uk-width-5-5">
  14 + <form class="uk-form uk-form-horizontal"> </form>
  15 + </div>
  16 +
  17 + </div>
  18 +
7 19 </div>
8 20  
9 21 <script>
... ... @@ -27,12 +39,13 @@
27 39 sch.stopStation = route[route.length - 1];
28 40 var formHtml = template('sftz-form-temp',{sch: sch, reportTypes:reportTypes});
29 41 $('form', modal).html(formHtml);
30   -
31   - //frequent_phrases.init(modal);
32   -
33   -
34   -
35   -
  42 +
  43 + sch.rq1 =moment(new Date().getTime() - (60 *1000)).format("HH:mm");
  44 + sch.rq2 =moment(new Date()).format("HH:mm")
  45 + var formHtmls = template('sjZ-divs-temp', sch);
  46 + $('.sjzlist', modal).html(formHtmls);
  47 +
  48 +
36 49 f.formValidation(gb_form_validation_opts);
37 50 f.on('success.form.fv', function(e) {
38 51 debugger
... ... @@ -153,7 +166,7 @@
153 166 <div class="uk-grid">
154 167 <div class="uk-width-4-2">
155 168 <div class="uk-form-row">
156   - <h3>实发未发信息</h3>
  169 + <h3>实发未发信息(实发调整工具)</h3>
157 170 </div>
158 171 </div>
159 172 </div>
... ...
src/main/resources/static/real_control_v2/zndd/type/wd.html
1 1 <div class="uk-modal ct-form-modal ct_move_modal" id="wd-addsch-modal">
2   - <div class="uk-modal-dialog" style="width: 850px;">
  2 + <div class="uk-modal-dialog" style="width: 1050px;">
3 3 <a href="" class="uk-modal-close uk-close"></a>
4 4 <div class="uk-modal-header">
5 5 <h2>误点<i class="uk-icon-question-circle uk-icon-hover"></i></h2></div>
6 6  
7   - <div class="uk-grid uk-width-3-5 lj_1" style="float: left">
  7 +
  8 + <div class="uk-grid uk-width-1-6" style="float: left">
  9 + <div class="uk-width-5-5 sjzlist">
  10 +
  11 + </div>
  12 + </div>
  13 +
  14 + <div class="uk-grid uk-width-3-6 lj_1" style="float: left">
8 15 <form class="uk-form uk-form-horizontal"> </form>
9 16 </div>
10 17  
11 18  
12 19  
13   - <div class="uk-grid uk-width-2-5 lj_2" style="padding-left: 100px">
  20 + <div class="uk-grid uk-width-2-6 lj_2" style="padding-left: 100px">
14 21 <div class="uk-width-1-1" id ="tempsdsf"></div>
15 22  
16 23 </div>
... ... @@ -36,6 +43,10 @@
36 43 sch.stopStation = route[route.length - 1];
37 44 var formHtml = template('wd-form-temp', sch);
38 45 $('form', modal).html(formHtml);
  46 + sch.rq1 =moment(new Date().getTime() - (60 *1000)).format("HH:mm");
  47 + sch.rq2 =moment(new Date()).format("HH:mm")
  48 + var formHtmls = template('sjZ-divs-temp', sch);
  49 + $('.sjzlist', modal).html(formHtmls);
39 50 //车辆信息
40 51 carsArray = gb_data_basic.carsArray();
41 52 initAutoCom(f);
... ... @@ -60,7 +71,7 @@
60 71 e.preventDefault();
61 72 var data = $(this).serializeJSON();
62 73 let fn = $('#destroySelect').val();
63   - debugger
  74 +
64 75 if (fn == "1"){
65 76 //调整人员车辆
66 77 let datas = {
... ... @@ -337,7 +348,7 @@
337 348 </div>
338 349 <div class="uk-width-1-2">
339 350 <div class="uk-form-row">
340   - <label class="uk-form-label">误点时间(分钟)</label>
  351 + <label class="uk-form-label">误点调整工具</label>
341 352 <div class="uk-form-controls">
342 353 <input value="6" name="wdsj" id="wdsj">
343 354 </div>
... ... @@ -355,7 +366,7 @@
355 366 </div>
356 367 <div class="uk-width-1-2">
357 368 <div class="uk-form-row">
358   - <label class="uk-form-label">待发时间</label>
  369 + <label class="uk-form-label">待发调整工具</label>
359 370 <div class="uk-form-controls">
360 371 <input value="{{sch.fcsj}} + {{sch.lateMinute}}" name="wd" id="dfsj" disabled>
361 372 </div>
... ...
src/main/resources/static/real_control_v2/zndd/type/ycsf.html
1 1 <div class="uk-modal ct-form-modal ct_move_modal" id="ycsf-addsch-modal">
  2 +
2 3 <div class="uk-modal-dialog" style="width: 850px;">
3 4 <a href="" class="uk-modal-close uk-close"></a>
4 5 <div class="uk-modal-header">
5 6 <h2>异常实发<i class="uk-icon-question-circle uk-icon-hover"></i></h2></div>
6   - <form class="uk-form uk-form-horizontal"> </form>
  7 +
  8 + <div class="uk-grid uk-width-1-5" style="float: left">
  9 + <div class="uk-width-5-5 sjzlist">
  10 +
  11 + </div>
  12 + </div>
  13 + <div class="uk-grid uk-width-4-5" >
  14 +
  15 + <div class="uk-width-5-5">
  16 + <form class="uk-form uk-form-horizontal"> </form>
  17 + </div>
  18 +
  19 + </div>
  20 +
7 21 </div>
8 22  
9 23 <script>
... ... @@ -26,13 +40,18 @@
26 40 sch.stopStation = route[route.length - 1];
27 41 var formHtml = template('ycsf-form-temp', sch);
28 42 $('form', modal).html(formHtml);
  43 +
  44 +
  45 +
  46 + sch.rq1 =moment(new Date().getTime() - (60 *1000)).format("HH:mm");
  47 + sch.rq2 =moment(new Date()).format("HH:mm")
  48 + var formHtmls = template('sjZ-divs-temp', sch);
  49 + $('.sjzlist', modal).html(formHtmls);
29 50  
30 51 f.formValidation(gb_form_validation_opts);
31 52 f.on('success.form.fv', function(e) {
32   - debugger
33 53 e.preventDefault();
34 54 var data = $(this).serializeJSON();
35   - debugger
36 55  
37 56 gb_common.$post('/realSchedule/revokeRealOutgo_zndd', {
38 57 id: sch.sch.id,
... ... @@ -85,7 +104,7 @@
85 104 <div class="uk-grid">
86 105 <div class="uk-width-4-2">
87 106 <div class="uk-form-row">
88   - <h3>异常实发信息</h3>
  107 + <h3>异常实发信息(实发撤销工具)</h3>
89 108 </div>
90 109 </div>
91 110 </div>
... ...
src/main/resources/static/real_control_v2/zndd/yanshi/static/css/sjz.css
... ... @@ -50,7 +50,7 @@
50 50 .history-date ul li {
51 51 background:url(../image/yes.png) no-repeat 180px 0;
52 52 background-size: 15px 15px;
53   - padding-bottom:50px;
  53 + padding-bottom:10px;
54 54 zoom:1;
55 55 }
56 56 .history-date ul li.last {
... ... @@ -65,8 +65,8 @@
65 65 }
66 66 .history-date ul li h3 {
67 67 float:left;
68   - width:20%;
69   - text-align:right;
  68 + /*width:20%;
  69 + text-align:right;*/
70 70 padding-right:19px;
71 71 color:#c3c3c3;
72 72 font:normal 18px/16px Arial;
... ... @@ -77,14 +77,14 @@
77 77 font-size:12px;
78 78 }
79 79 .history-date ul li dl {
80   - width: 70%;
  80 + /*width: 70%;*/
81 81 float:left;
82   - padding-left:41px;
  82 +/* padding-left:41px;*/
83 83 margin-top:-5px;
84 84 font-family:微软雅黑;
85 85 }
86 86 .history-date ul li dl dt {
87   - font:20px/22px 微软雅黑;
  87 + /*font:20px/22px 微软雅黑;*/
88 88 color:#737373;
89 89 }
90 90 .history-date ul li dl dt span {
... ...