Commit 7f781316db3944896cce910fee365ea8c3d89c0b
1 parent
d8547d46
报表
Showing
22 changed files
with
2965 additions
and
2 deletions
src/main/java/com/bsth/controller/forms/MCY_FormsController.java
0 → 100644
| 1 | +package com.bsth.controller.forms; | |
| 2 | + | |
| 3 | +import java.util.List; | |
| 4 | +import java.util.Map; | |
| 5 | + | |
| 6 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 7 | +import org.springframework.web.bind.annotation.RequestMapping; | |
| 8 | +import org.springframework.web.bind.annotation.RequestMethod; | |
| 9 | +import org.springframework.web.bind.annotation.RequestParam; | |
| 10 | +import org.springframework.web.bind.annotation.RestController; | |
| 11 | + | |
| 12 | +import com.bsth.entity.mcy_forms.Changetochange; | |
| 13 | +import com.bsth.entity.mcy_forms.Linepasswengerflow; | |
| 14 | +import com.bsth.entity.mcy_forms.Operationservice; | |
| 15 | +import com.bsth.entity.mcy_forms.Shifday; | |
| 16 | +import com.bsth.entity.mcy_forms.Shiftuehiclemanth; | |
| 17 | +import com.bsth.entity.mcy_forms.Singledata; | |
| 18 | +import com.bsth.entity.mcy_forms.Vehicleloading; | |
| 19 | +import com.bsth.entity.mcy_forms.Waybillday; | |
| 20 | +import com.bsth.service.forms.FormsService; | |
| 21 | +import com.bsth.service.realcontrol.ScheduleRealInfoService; | |
| 22 | + | |
| 23 | +@RestController | |
| 24 | +@RequestMapping("mcy_forms") | |
| 25 | +public class MCY_FormsController { | |
| 26 | + | |
| 27 | + @Autowired | |
| 28 | + FormsService formsService; | |
| 29 | + | |
| 30 | + @Autowired | |
| 31 | + ScheduleRealInfoService scheduleRealInfoService; | |
| 32 | + | |
| 33 | + //行车路单日报表 | |
| 34 | + @RequestMapping(value = "/waybillday",method = RequestMethod.POST) | |
| 35 | + public List<Waybillday> waybillday(@RequestParam Map<String, Object> map){ | |
| 36 | + | |
| 37 | + | |
| 38 | +// scheduleRealInfoService.findKMBC(jName, clZbh, lpName, date) | |
| 39 | + return formsService.waybillday(map); | |
| 40 | + } | |
| 41 | + | |
| 42 | + @RequestMapping(value = "/waybilldayExcel") | |
| 43 | + public List<Waybillday> dailyInfo(@RequestParam Map<String, Object> map) { | |
| 44 | + return formsService.waybilldayExcel(map); | |
| 45 | + } | |
| 46 | + | |
| 47 | + | |
| 48 | + //线路客流量报表 | |
| 49 | + @RequestMapping(value = "/linepasswengerflow",method = RequestMethod.POST) | |
| 50 | + public List<Linepasswengerflow> linepasswengerflow(@RequestParam Map<String, Object> map){ | |
| 51 | + | |
| 52 | + return formsService.linepasswengerflow(map); | |
| 53 | + } | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + //班次车辆人员月报表 | |
| 58 | + @RequestMapping(value = "/shiftuehiclemanth",method = RequestMethod.POST) | |
| 59 | + public List<Shiftuehiclemanth> shiftuehiclemanth(@RequestParam Map<String, Object> map){ | |
| 60 | + | |
| 61 | + return formsService.shiftuehiclemanth(map); | |
| 62 | + } | |
| 63 | + | |
| 64 | + | |
| 65 | + //班次车辆人员日统计 | |
| 66 | + @RequestMapping(value = "/shifday",method = RequestMethod.POST) | |
| 67 | + public List<Shifday> shifday(@RequestParam Map<String, Object> map){ | |
| 68 | + | |
| 69 | + return formsService.shifday(map); | |
| 70 | + } | |
| 71 | + | |
| 72 | + //换人换车情况统计表 | |
| 73 | + @RequestMapping(value = "/changetochange",method = RequestMethod.POST) | |
| 74 | + public List<Changetochange> changetochange(@RequestParam Map<String, Object> map){ | |
| 75 | + | |
| 76 | + return formsService.changetochange(map); | |
| 77 | + } | |
| 78 | + | |
| 79 | + //路单数据 | |
| 80 | + @RequestMapping(value = "/singledata",method = RequestMethod.POST) | |
| 81 | + public List<Singledata> singledata(@RequestParam Map<String, Object> map){ | |
| 82 | + | |
| 83 | + return formsService.singledata(map); | |
| 84 | + } | |
| 85 | + | |
| 86 | + //车辆加注 | |
| 87 | + @RequestMapping(value = "/vehicleloading",method = RequestMethod.POST) | |
| 88 | + public List<Vehicleloading> vehicleloading(@RequestParam String line ,@RequestParam String data){ | |
| 89 | + return formsService.vehicleloading(line,data); | |
| 90 | + } | |
| 91 | + //运营服务阶段报表 | |
| 92 | + @RequestMapping(value = "/operationservice",method = RequestMethod.POST) | |
| 93 | + public List<Operationservice> operationservice(@RequestParam Map<String, Object> map){ | |
| 94 | + | |
| 95 | + return formsService.operationservice(map); | |
| 96 | + } | |
| 97 | + | |
| 98 | + | |
| 99 | +} | ... | ... |
src/main/java/com/bsth/entity/mcy_forms/Changetochange.java
0 → 100644
src/main/java/com/bsth/entity/mcy_forms/Linepasswengerflow.java
0 → 100644
| 1 | +package com.bsth.entity.mcy_forms; | |
| 2 | + | |
| 3 | +public class Linepasswengerflow { | |
| 4 | + | |
| 5 | + private String stationName;//站点名字 | |
| 6 | + | |
| 7 | + public String getStationName() { | |
| 8 | + return stationName; | |
| 9 | + } | |
| 10 | + | |
| 11 | + public void setStationName(String stationName) { | |
| 12 | + this.stationName = stationName; | |
| 13 | + } | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | +} | ... | ... |
src/main/java/com/bsth/entity/mcy_forms/Operationservice.java
0 → 100644
| 1 | +package com.bsth.entity.mcy_forms; | |
| 2 | + | |
| 3 | +public class Operationservice { | |
| 4 | + | |
| 5 | + private String xlName;//线路 | |
| 6 | + | |
| 7 | + private String jzl;//加注量 | |
| 8 | + | |
| 9 | + private String xhl;//消耗量 | |
| 10 | + | |
| 11 | + private String xsgl;//行驶公里 | |
| 12 | + | |
| 13 | + private String emptMileage;//空驶里程 | |
| 14 | + | |
| 15 | + private String sjbc;//实际班次 | |
| 16 | + | |
| 17 | + public String getXlName() { | |
| 18 | + return xlName; | |
| 19 | + } | |
| 20 | + | |
| 21 | + public void setXlName(String xlName) { | |
| 22 | + this.xlName = xlName; | |
| 23 | + } | |
| 24 | + | |
| 25 | + public String getJzl() { | |
| 26 | + return jzl; | |
| 27 | + } | |
| 28 | + | |
| 29 | + public void setJzl(String jzl) { | |
| 30 | + this.jzl = jzl; | |
| 31 | + } | |
| 32 | + | |
| 33 | + public String getXhl() { | |
| 34 | + return xhl; | |
| 35 | + } | |
| 36 | + | |
| 37 | + public void setXhl(String xhl) { | |
| 38 | + this.xhl = xhl; | |
| 39 | + } | |
| 40 | + | |
| 41 | + public String getXsgl() { | |
| 42 | + return xsgl; | |
| 43 | + } | |
| 44 | + | |
| 45 | + public void setXsgl(String xsgl) { | |
| 46 | + this.xsgl = xsgl; | |
| 47 | + } | |
| 48 | + | |
| 49 | + public String getEmptMileage() { | |
| 50 | + return emptMileage; | |
| 51 | + } | |
| 52 | + | |
| 53 | + public void setEmptMileage(String emptMileage) { | |
| 54 | + this.emptMileage = emptMileage; | |
| 55 | + } | |
| 56 | + | |
| 57 | + public String getSjbc() { | |
| 58 | + return sjbc; | |
| 59 | + } | |
| 60 | + | |
| 61 | + public void setSjbc(String sjbc) { | |
| 62 | + this.sjbc = sjbc; | |
| 63 | + } | |
| 64 | + | |
| 65 | + | |
| 66 | +} | ... | ... |
src/main/java/com/bsth/entity/mcy_forms/Shifday.java
0 → 100644
| 1 | +package com.bsth.entity.mcy_forms; | |
| 2 | + | |
| 3 | +public class Shifday { | |
| 4 | + | |
| 5 | + private String jName;//驾驶员 | |
| 6 | + | |
| 7 | + private String sName;//售票员 | |
| 8 | + | |
| 9 | + private String lpName;//路牌 | |
| 10 | + | |
| 11 | + private String carPlate;//车辆 | |
| 12 | + | |
| 13 | + private String jhlc;//计划里程 | |
| 14 | + | |
| 15 | + private String sjjhlc;//实际计划里程 | |
| 16 | + | |
| 17 | + private String yygl;//运营里程 | |
| 18 | + | |
| 19 | + private String emptMileage;//空驶里程 | |
| 20 | + | |
| 21 | + private String remMileage;//实际公里 | |
| 22 | + | |
| 23 | + private String addMileage;//增加公里 | |
| 24 | + | |
| 25 | + private String totalm;//总公里 | |
| 26 | + | |
| 27 | + private String jhbc;//计划班次 | |
| 28 | + | |
| 29 | + private String sjjhbc;//实际计划班次 | |
| 30 | + | |
| 31 | + private String cjbc;//抽减班次 | |
| 32 | + | |
| 33 | + private String ljbc;//增加班次 | |
| 34 | + | |
| 35 | + private String sjbc;//实际班次 | |
| 36 | + | |
| 37 | + | |
| 38 | + public String getJhlc() { | |
| 39 | + return jhlc; | |
| 40 | + } | |
| 41 | + | |
| 42 | + public void setJhlc(String jhlc) { | |
| 43 | + this.jhlc = jhlc; | |
| 44 | + } | |
| 45 | + | |
| 46 | + public String getSjjhlc() { | |
| 47 | + return sjjhlc; | |
| 48 | + } | |
| 49 | + | |
| 50 | + public void setSjjhlc(String sjjhlc) { | |
| 51 | + this.sjjhlc = sjjhlc; | |
| 52 | + } | |
| 53 | + | |
| 54 | + public String getYygl() { | |
| 55 | + return yygl; | |
| 56 | + } | |
| 57 | + | |
| 58 | + public void setYygl(String yygl) { | |
| 59 | + this.yygl = yygl; | |
| 60 | + } | |
| 61 | + | |
| 62 | + public String getEmptMileage() { | |
| 63 | + return emptMileage; | |
| 64 | + } | |
| 65 | + | |
| 66 | + public void setEmptMileage(String emptMileage) { | |
| 67 | + this.emptMileage = emptMileage; | |
| 68 | + } | |
| 69 | + | |
| 70 | + public String getRemMileage() { | |
| 71 | + return remMileage; | |
| 72 | + } | |
| 73 | + | |
| 74 | + public void setRemMileage(String remMileage) { | |
| 75 | + this.remMileage = remMileage; | |
| 76 | + } | |
| 77 | + | |
| 78 | + public String getAddMileage() { | |
| 79 | + return addMileage; | |
| 80 | + } | |
| 81 | + | |
| 82 | + public void setAddMileage(String addMileage) { | |
| 83 | + this.addMileage = addMileage; | |
| 84 | + } | |
| 85 | + | |
| 86 | + public String getTotalm() { | |
| 87 | + return totalm; | |
| 88 | + } | |
| 89 | + | |
| 90 | + public void setTotalm(String totalm) { | |
| 91 | + this.totalm = totalm; | |
| 92 | + } | |
| 93 | + | |
| 94 | + public String getJhbc() { | |
| 95 | + return jhbc; | |
| 96 | + } | |
| 97 | + | |
| 98 | + public void setJhbc(String jhbc) { | |
| 99 | + this.jhbc = jhbc; | |
| 100 | + } | |
| 101 | + | |
| 102 | + public String getSjjhbc() { | |
| 103 | + return sjjhbc; | |
| 104 | + } | |
| 105 | + | |
| 106 | + public void setSjjhbc(String sjjhbc) { | |
| 107 | + this.sjjhbc = sjjhbc; | |
| 108 | + } | |
| 109 | + | |
| 110 | + public String getCjbc() { | |
| 111 | + return cjbc; | |
| 112 | + } | |
| 113 | + | |
| 114 | + public void setCjbc(String cjbc) { | |
| 115 | + this.cjbc = cjbc; | |
| 116 | + } | |
| 117 | + | |
| 118 | + public String getLjbc() { | |
| 119 | + return ljbc; | |
| 120 | + } | |
| 121 | + | |
| 122 | + public void setLjbc(String ljbc) { | |
| 123 | + this.ljbc = ljbc; | |
| 124 | + } | |
| 125 | + | |
| 126 | + public String getSjbc() { | |
| 127 | + return sjbc; | |
| 128 | + } | |
| 129 | + | |
| 130 | + public void setSjbc(String sjbc) { | |
| 131 | + this.sjbc = sjbc; | |
| 132 | + } | |
| 133 | + | |
| 134 | + | |
| 135 | + public String getjName() { | |
| 136 | + return jName; | |
| 137 | + } | |
| 138 | + | |
| 139 | + public void setjName(String jName) { | |
| 140 | + this.jName = jName; | |
| 141 | + } | |
| 142 | + | |
| 143 | + public String getsName() { | |
| 144 | + return sName; | |
| 145 | + } | |
| 146 | + | |
| 147 | + public void setsName(String sName) { | |
| 148 | + this.sName = sName; | |
| 149 | + } | |
| 150 | + | |
| 151 | + public String getLpName() { | |
| 152 | + return lpName; | |
| 153 | + } | |
| 154 | + | |
| 155 | + public void setLpName(String lpName) { | |
| 156 | + this.lpName = lpName; | |
| 157 | + } | |
| 158 | + | |
| 159 | + public String getCarPlate() { | |
| 160 | + return carPlate; | |
| 161 | + } | |
| 162 | + | |
| 163 | + public void setCarPlate(String carPlate) { | |
| 164 | + this.carPlate = carPlate; | |
| 165 | + } | |
| 166 | + | |
| 167 | + | |
| 168 | +} | ... | ... |
src/main/java/com/bsth/entity/mcy_forms/Shiftuehiclemanth.java
0 → 100644
| 1 | +package com.bsth.entity.mcy_forms; | |
| 2 | + | |
| 3 | +public class Shiftuehiclemanth { | |
| 4 | + | |
| 5 | + private String jName;//驾驶员名字 | |
| 6 | + | |
| 7 | + private String jhlc;//运营里程 | |
| 8 | + | |
| 9 | + private String emptMileage;//空驶里程 | |
| 10 | + | |
| 11 | + private String remMileage;//抽减公里 | |
| 12 | + | |
| 13 | + private String addMileage;//增加公里 | |
| 14 | + | |
| 15 | + private String totalm;//总公里 | |
| 16 | + | |
| 17 | + private String cjbc;//抽减班次 | |
| 18 | + | |
| 19 | + private String ljbc;//增加班次 | |
| 20 | + | |
| 21 | + private String sjbc;//实际班次 | |
| 22 | + | |
| 23 | + | |
| 24 | + public String getCjbc() { | |
| 25 | + return cjbc; | |
| 26 | + } | |
| 27 | + | |
| 28 | + public void setCjbc(String cjbc) { | |
| 29 | + this.cjbc = cjbc; | |
| 30 | + } | |
| 31 | + | |
| 32 | + public String getLjbc() { | |
| 33 | + return ljbc; | |
| 34 | + } | |
| 35 | + | |
| 36 | + public void setLjbc(String ljbc) { | |
| 37 | + this.ljbc = ljbc; | |
| 38 | + } | |
| 39 | + | |
| 40 | + public String getSjbc() { | |
| 41 | + return sjbc; | |
| 42 | + } | |
| 43 | + | |
| 44 | + public void setSjbc(String sjbc) { | |
| 45 | + this.sjbc = sjbc; | |
| 46 | + } | |
| 47 | + | |
| 48 | + | |
| 49 | + public String getjName() { | |
| 50 | + return jName; | |
| 51 | + } | |
| 52 | + | |
| 53 | + public void setjName(String jName) { | |
| 54 | + this.jName = jName; | |
| 55 | + } | |
| 56 | + | |
| 57 | + public String getJhlc() { | |
| 58 | + return jhlc; | |
| 59 | + } | |
| 60 | + | |
| 61 | + public void setJhlc(String jhlc) { | |
| 62 | + this.jhlc = jhlc; | |
| 63 | + } | |
| 64 | + | |
| 65 | + public String getEmptMileage() { | |
| 66 | + return emptMileage; | |
| 67 | + } | |
| 68 | + | |
| 69 | + public void setEmptMileage(String emptMileage) { | |
| 70 | + this.emptMileage = emptMileage; | |
| 71 | + } | |
| 72 | + | |
| 73 | + public String getRemMileage() { | |
| 74 | + return remMileage; | |
| 75 | + } | |
| 76 | + | |
| 77 | + public void setRemMileage(String remMileage) { | |
| 78 | + this.remMileage = remMileage; | |
| 79 | + } | |
| 80 | + | |
| 81 | + public String getAddMileage() { | |
| 82 | + return addMileage; | |
| 83 | + } | |
| 84 | + | |
| 85 | + public void setAddMileage(String addMileage) { | |
| 86 | + this.addMileage = addMileage; | |
| 87 | + } | |
| 88 | + | |
| 89 | + public String getTotalm() { | |
| 90 | + return totalm; | |
| 91 | + } | |
| 92 | + | |
| 93 | + public void setTotalm(String totalm) { | |
| 94 | + this.totalm = totalm; | |
| 95 | + } | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | +} | ... | ... |
src/main/java/com/bsth/entity/mcy_forms/Singledata.java
0 → 100644
| 1 | +package com.bsth.entity.mcy_forms; | |
| 2 | + | |
| 3 | +public class Singledata { | |
| 4 | + | |
| 5 | + private String rQ;//日期 | |
| 6 | + | |
| 7 | + private String gS;//所属公司 | |
| 8 | + | |
| 9 | + private String xL;//线路 | |
| 10 | + | |
| 11 | + private String clzbh;//车号 | |
| 12 | + | |
| 13 | + private String jsy;//驾驶员职号 | |
| 14 | + | |
| 15 | + private String jName;//驾驶员名字 | |
| 16 | + | |
| 17 | + private String sgh;//售票员职号 | |
| 18 | + | |
| 19 | + private String sName;//售票员名称 | |
| 20 | + | |
| 21 | + private String jhlc;//运营里程 | |
| 22 | + | |
| 23 | + private String emptMileage;//空驶里程 | |
| 24 | + | |
| 25 | + private String hyl;//耗油量 | |
| 26 | + | |
| 27 | + private String jzl;//加注量 | |
| 28 | + | |
| 29 | + private String unyyyl;//非商业用油 | |
| 30 | + | |
| 31 | + private String jhjl;//计划公里 | |
| 32 | + | |
| 33 | + public String getrQ() { | |
| 34 | + return rQ; | |
| 35 | + } | |
| 36 | + | |
| 37 | + public void setrQ(String rQ) { | |
| 38 | + this.rQ = rQ; | |
| 39 | + } | |
| 40 | + | |
| 41 | + public String getgS() { | |
| 42 | + return gS; | |
| 43 | + } | |
| 44 | + | |
| 45 | + public void setgS(String gS) { | |
| 46 | + this.gS = gS; | |
| 47 | + } | |
| 48 | + | |
| 49 | + public String getxL() { | |
| 50 | + return xL; | |
| 51 | + } | |
| 52 | + | |
| 53 | + public void setxL(String xL) { | |
| 54 | + this.xL = xL; | |
| 55 | + } | |
| 56 | + | |
| 57 | + public String getClzbh() { | |
| 58 | + return clzbh; | |
| 59 | + } | |
| 60 | + | |
| 61 | + public void setClzbh(String clzbh) { | |
| 62 | + this.clzbh = clzbh; | |
| 63 | + } | |
| 64 | + | |
| 65 | + public String getJsy() { | |
| 66 | + return jsy; | |
| 67 | + } | |
| 68 | + | |
| 69 | + public void setJsy(String jsy) { | |
| 70 | + this.jsy = jsy; | |
| 71 | + } | |
| 72 | + | |
| 73 | + public String getjName() { | |
| 74 | + return jName; | |
| 75 | + } | |
| 76 | + | |
| 77 | + public void setjName(String jName) { | |
| 78 | + this.jName = jName; | |
| 79 | + } | |
| 80 | + | |
| 81 | + public String getSgh() { | |
| 82 | + return sgh; | |
| 83 | + } | |
| 84 | + | |
| 85 | + public void setSgh(String sgh) { | |
| 86 | + this.sgh = sgh; | |
| 87 | + } | |
| 88 | + | |
| 89 | + public String getsName() { | |
| 90 | + return sName; | |
| 91 | + } | |
| 92 | + | |
| 93 | + public void setsName(String sName) { | |
| 94 | + this.sName = sName; | |
| 95 | + } | |
| 96 | + | |
| 97 | + public String getJhlc() { | |
| 98 | + return jhlc; | |
| 99 | + } | |
| 100 | + | |
| 101 | + public void setJhlc(String jhlc) { | |
| 102 | + this.jhlc = jhlc; | |
| 103 | + } | |
| 104 | + | |
| 105 | + public String getEmptMileage() { | |
| 106 | + return emptMileage; | |
| 107 | + } | |
| 108 | + | |
| 109 | + public void setEmptMileage(String emptMileage) { | |
| 110 | + this.emptMileage = emptMileage; | |
| 111 | + } | |
| 112 | + | |
| 113 | + public String getHyl() { | |
| 114 | + return hyl; | |
| 115 | + } | |
| 116 | + | |
| 117 | + public void setHyl(String hyl) { | |
| 118 | + this.hyl = hyl; | |
| 119 | + } | |
| 120 | + | |
| 121 | + public String getJzl() { | |
| 122 | + return jzl; | |
| 123 | + } | |
| 124 | + | |
| 125 | + public void setJzl(String jzl) { | |
| 126 | + this.jzl = jzl; | |
| 127 | + } | |
| 128 | + | |
| 129 | + public String getUnyyyl() { | |
| 130 | + return unyyyl; | |
| 131 | + } | |
| 132 | + | |
| 133 | + public void setUnyyyl(String unyyyl) { | |
| 134 | + this.unyyyl = unyyyl; | |
| 135 | + } | |
| 136 | + | |
| 137 | + public String getJhjl() { | |
| 138 | + return jhjl; | |
| 139 | + } | |
| 140 | + | |
| 141 | + public void setJhjl(String jhjl) { | |
| 142 | + this.jhjl = jhjl; | |
| 143 | + } | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | +} | ... | ... |
src/main/java/com/bsth/entity/mcy_forms/Vehicleloading.java
0 → 100644
| 1 | +package com.bsth.entity.mcy_forms; | |
| 2 | + | |
| 3 | +public class Vehicleloading { | |
| 4 | + | |
| 5 | + private String rQ;//日期 | |
| 6 | + | |
| 7 | + private String gS;//所属公司 | |
| 8 | + | |
| 9 | + private String xL;//线路 | |
| 10 | + | |
| 11 | + private String clzbh;//车号 | |
| 12 | + | |
| 13 | + private String hyl;//耗油量 | |
| 14 | + | |
| 15 | + private String jzl;//加注量 | |
| 16 | + | |
| 17 | + private String ls;//尿素 | |
| 18 | + | |
| 19 | + private String jhlc;//实际里程 | |
| 20 | + | |
| 21 | + private String unyyyl;//非商业用油 | |
| 22 | + | |
| 23 | + private String jhbc;//计划班次 | |
| 24 | + | |
| 25 | + private String sjbc;//实际班次 | |
| 26 | + | |
| 27 | + public String getLs() { | |
| 28 | + return ls; | |
| 29 | + } | |
| 30 | + | |
| 31 | + public void setLs(String ls) { | |
| 32 | + this.ls = ls; | |
| 33 | + } | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + public String getrQ() { | |
| 38 | + return rQ; | |
| 39 | + } | |
| 40 | + | |
| 41 | + public void setrQ(String rQ) { | |
| 42 | + this.rQ = rQ; | |
| 43 | + } | |
| 44 | + | |
| 45 | + public String getgS() { | |
| 46 | + return gS; | |
| 47 | + } | |
| 48 | + | |
| 49 | + public void setgS(String gS) { | |
| 50 | + this.gS = gS; | |
| 51 | + } | |
| 52 | + | |
| 53 | + public String getxL() { | |
| 54 | + return xL; | |
| 55 | + } | |
| 56 | + | |
| 57 | + public void setxL(String xL) { | |
| 58 | + this.xL = xL; | |
| 59 | + } | |
| 60 | + | |
| 61 | + public String getClzbh() { | |
| 62 | + return clzbh; | |
| 63 | + } | |
| 64 | + | |
| 65 | + public void setClzbh(String clzbh) { | |
| 66 | + this.clzbh = clzbh; | |
| 67 | + } | |
| 68 | + | |
| 69 | + public String getHyl() { | |
| 70 | + return hyl; | |
| 71 | + } | |
| 72 | + | |
| 73 | + public void setHyl(String hyl) { | |
| 74 | + this.hyl = hyl; | |
| 75 | + } | |
| 76 | + | |
| 77 | + public String getJzl() { | |
| 78 | + return jzl; | |
| 79 | + } | |
| 80 | + | |
| 81 | + public void setJzl(String jzl) { | |
| 82 | + this.jzl = jzl; | |
| 83 | + } | |
| 84 | + | |
| 85 | + public String getJhlc() { | |
| 86 | + return jhlc; | |
| 87 | + } | |
| 88 | + | |
| 89 | + public void setJhlc(String jhlc) { | |
| 90 | + this.jhlc = jhlc; | |
| 91 | + } | |
| 92 | + | |
| 93 | + public String getUnyyyl() { | |
| 94 | + return unyyyl; | |
| 95 | + } | |
| 96 | + | |
| 97 | + public void setUnyyyl(String unyyyl) { | |
| 98 | + this.unyyyl = unyyyl; | |
| 99 | + } | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + public String getJhbc() { | |
| 104 | + return jhbc; | |
| 105 | + } | |
| 106 | + | |
| 107 | + public void setJhbc(String jhbc) { | |
| 108 | + this.jhbc = jhbc; | |
| 109 | + } | |
| 110 | + | |
| 111 | + public String getSjbc() { | |
| 112 | + return sjbc; | |
| 113 | + } | |
| 114 | + | |
| 115 | + public void setSjbc(String sjbc) { | |
| 116 | + this.sjbc = sjbc; | |
| 117 | + } | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | +} | ... | ... |
src/main/java/com/bsth/entity/mcy_forms/Waybillday.java
0 → 100644
| 1 | +package com.bsth.entity.mcy_forms; | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * | |
| 5 | + * @author 马陈艳 | |
| 6 | + * 线路调度日报表统计 | |
| 7 | + * | |
| 8 | + */ | |
| 9 | +public class Waybillday { | |
| 10 | + | |
| 11 | + private String carPlate;//车牌号 | |
| 12 | + | |
| 13 | + private String jzl;//加注量 | |
| 14 | + | |
| 15 | + private String jzl1;//空驶公里 | |
| 16 | + | |
| 17 | + private String yh;//油耗 | |
| 18 | + | |
| 19 | + private String jName;//驾驶员 | |
| 20 | + | |
| 21 | + private String zlc;//里程 | |
| 22 | + | |
| 23 | + private String yl;//用油 | |
| 24 | + | |
| 25 | + private String nbbm;//机油 | |
| 26 | + | |
| 27 | + public String getCarPlate() { | |
| 28 | + return carPlate; | |
| 29 | + } | |
| 30 | + | |
| 31 | + public void setCarPlate(String carPlate) { | |
| 32 | + this.carPlate = carPlate; | |
| 33 | + } | |
| 34 | + | |
| 35 | + | |
| 36 | + public String getJzl1() { | |
| 37 | + return jzl1; | |
| 38 | + } | |
| 39 | + | |
| 40 | + public void setJzl1(String jzl1) { | |
| 41 | + this.jzl1 = jzl1; | |
| 42 | + } | |
| 43 | + | |
| 44 | + | |
| 45 | + public String getJzl() { | |
| 46 | + return jzl; | |
| 47 | + } | |
| 48 | + | |
| 49 | + public void setJzl(String jzl) { | |
| 50 | + this.jzl = jzl; | |
| 51 | + } | |
| 52 | + | |
| 53 | + public String getYh() { | |
| 54 | + return yh; | |
| 55 | + } | |
| 56 | + | |
| 57 | + public void setYh(String yh) { | |
| 58 | + this.yh = yh; | |
| 59 | + } | |
| 60 | + | |
| 61 | + public String getjName() { | |
| 62 | + return jName; | |
| 63 | + } | |
| 64 | + | |
| 65 | + public void setjName(String jName) { | |
| 66 | + this.jName = jName; | |
| 67 | + } | |
| 68 | + | |
| 69 | + public String getZlc() { | |
| 70 | + return zlc; | |
| 71 | + } | |
| 72 | + | |
| 73 | + public void setZlc(String string) { | |
| 74 | + this.zlc = string; | |
| 75 | + } | |
| 76 | + | |
| 77 | + | |
| 78 | + public String getNbbm() { | |
| 79 | + return nbbm; | |
| 80 | + } | |
| 81 | + | |
| 82 | + public void setNbbm(String nbbm) { | |
| 83 | + this.nbbm = nbbm; | |
| 84 | + } | |
| 85 | + | |
| 86 | + public String getYl() { | |
| 87 | + return yl; | |
| 88 | + } | |
| 89 | + | |
| 90 | + public void setYl(String yl) { | |
| 91 | + this.yl = yl; | |
| 92 | + } | |
| 93 | + | |
| 94 | + | |
| 95 | +} | ... | ... |
src/main/java/com/bsth/repository/realcontrol/ScheduleRealInfoRepository.java
| ... | ... | @@ -81,8 +81,8 @@ public interface ScheduleRealInfoRepository extends BaseRepository<ScheduleRealI |
| 81 | 81 | @Query(value="select s from ScheduleRealInfo s where s.jName = ?1 and s.clZbh = ?2 and s.lpName = ?3 and s.scheduleDate = str_to_date(?4,'%Y-%m-%d') and bcType='normal' order by bcs") |
| 82 | 82 | List<ScheduleRealInfo> queryListWaybill2(String jName,String clZbh,String lpName,String date); |
| 83 | 83 | |
| 84 | - @Query(value="select s from ScheduleRealInfo s where s.jGh = ?1 and s.clZbh = ?2 and s.lpName = ?3 and s.scheduleDate = str_to_date(?4,'%Y-%m-%d') and bcType='normal' order by bcs") | |
| 85 | - List<ScheduleRealInfo> queryListWaybill3(String jName,String clZbh,String lpName,String date); | |
| 84 | + @Query(value="select s from ScheduleRealInfo s where s.jGh = ?1 and s.clZbh = ?2 and s.scheduleDate = str_to_date(?3,'%Y-%m-%d') and bcType='normal' order by bcs") | |
| 85 | + List<ScheduleRealInfo> queryListWaybill3(String jName,String clZbh,String date); | |
| 86 | 86 | |
| 87 | 87 | @Query(value="select s from ScheduleRealInfo s where s.xlBm = ?1 and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?2") |
| 88 | 88 | List<ScheduleRealInfo> scheduleDaily(String line,String date); | ... | ... |
src/main/java/com/bsth/service/forms/FormsService.java
0 → 100644
| 1 | +package com.bsth.service.forms; | |
| 2 | + | |
| 3 | +import java.util.List; | |
| 4 | +import java.util.Map; | |
| 5 | + | |
| 6 | +import com.bsth.entity.mcy_forms.Changetochange; | |
| 7 | +import com.bsth.entity.mcy_forms.Linepasswengerflow; | |
| 8 | +import com.bsth.entity.mcy_forms.Operationservice; | |
| 9 | +import com.bsth.entity.mcy_forms.Shifday; | |
| 10 | +import com.bsth.entity.mcy_forms.Shiftuehiclemanth; | |
| 11 | +import com.bsth.entity.mcy_forms.Singledata; | |
| 12 | +import com.bsth.entity.mcy_forms.Vehicleloading; | |
| 13 | +import com.bsth.entity.mcy_forms.Waybillday; | |
| 14 | + | |
| 15 | + | |
| 16 | +public interface FormsService { | |
| 17 | + | |
| 18 | + public List<Waybillday> waybillday(Map<String, Object> map); | |
| 19 | + | |
| 20 | + List<Waybillday> waybilldayExcel(Map<String, Object> map); | |
| 21 | + | |
| 22 | + public List<Linepasswengerflow> linepasswengerflow(Map<String, Object> map); | |
| 23 | + | |
| 24 | + public List<Shiftuehiclemanth> shiftuehiclemanth(Map<String, Object> map); | |
| 25 | + | |
| 26 | + public List<Changetochange> changetochange(Map<String, Object> map); | |
| 27 | + | |
| 28 | + public List<Shifday> shifday(Map<String, Object> map); | |
| 29 | + | |
| 30 | + public List<Singledata> singledata(Map<String, Object> map); | |
| 31 | + | |
| 32 | + public List<Vehicleloading> vehicleloading(String line,String data); | |
| 33 | + | |
| 34 | + public List<Operationservice> operationservice(Map<String, Object> map); | |
| 35 | +} | ... | ... |
src/main/java/com/bsth/service/forms/impl/FormsServiceImpl.java
0 → 100644
| 1 | +package com.bsth.service.forms.impl; | |
| 2 | + | |
| 3 | +import java.sql.ResultSet; | |
| 4 | +import java.sql.SQLException; | |
| 5 | +import java.text.DecimalFormat; | |
| 6 | +import java.text.SimpleDateFormat; | |
| 7 | +import java.util.ArrayList; | |
| 8 | +import java.util.HashMap; | |
| 9 | +import java.util.Iterator; | |
| 10 | +import java.util.List; | |
| 11 | +import java.util.Map; | |
| 12 | + | |
| 13 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 14 | +import org.springframework.jdbc.core.JdbcTemplate; | |
| 15 | +import org.springframework.jdbc.core.RowMapper; | |
| 16 | +import org.springframework.stereotype.Service; | |
| 17 | + | |
| 18 | +import com.bsth.entity.mcy_forms.Linepasswengerflow; | |
| 19 | +import com.bsth.entity.mcy_forms.Operationservice; | |
| 20 | +import com.bsth.entity.mcy_forms.Shifday; | |
| 21 | +import com.bsth.entity.mcy_forms.Shiftuehiclemanth; | |
| 22 | +import com.bsth.entity.mcy_forms.Singledata; | |
| 23 | +import com.bsth.entity.mcy_forms.Vehicleloading; | |
| 24 | +import com.bsth.entity.mcy_forms.Waybillday; | |
| 25 | +import com.bsth.entity.mcy_forms.Changetochange; | |
| 26 | +import com.bsth.service.forms.FormsService; | |
| 27 | +import com.bsth.service.realcontrol.ScheduleRealInfoService; | |
| 28 | +import com.bsth.util.ReportRelatedUtils; | |
| 29 | +import com.bsth.util.ReportUtils; | |
| 30 | + | |
| 31 | +@Service | |
| 32 | +public class FormsServiceImpl implements FormsService{ | |
| 33 | + | |
| 34 | + @Autowired | |
| 35 | + JdbcTemplate jdbcTemplate; | |
| 36 | + | |
| 37 | + @Autowired | |
| 38 | + ScheduleRealInfoService scheduleRealInfoService; | |
| 39 | + | |
| 40 | + //行车路单日报表 | |
| 41 | + @Override | |
| 42 | + public List<Waybillday> waybillday(Map<String, Object> map) { | |
| 43 | + List list1=new ArrayList<>();// | |
| 44 | + String sql = "select y.RQ,y.XLBM,y.NBBM,y.JSY,y.JZL,y.YH,y.YH,c.personnel_name from bsth_c_ylb y" + | |
| 45 | + " LEFT JOIN bsth_c_personnel c ON c.job_code=y.JSY " + | |
| 46 | + " where to_days(y.RQ)=to_days('"+map.get("date").toString()+"') " + | |
| 47 | + " and y.XLBM="+map.get("line").toString()+ | |
| 48 | + " GROUP BY y.NBBM"; | |
| 49 | + | |
| 50 | + List<Waybillday> list = jdbcTemplate.query(sql, new RowMapper<Waybillday>() { | |
| 51 | + @Override | |
| 52 | + public Waybillday mapRow(ResultSet arg0, int arg1) throws SQLException { | |
| 53 | + Waybillday wbd = new Waybillday(); | |
| 54 | + wbd.setCarPlate(arg0.getString("NBBM")); | |
| 55 | + wbd.setJzl(arg0.getString("JZL")); | |
| 56 | + wbd.setYh(arg0.getString("YH")); | |
| 57 | + wbd.setjName(arg0.getString("personnel_name")); | |
| 58 | + //wbd.setZlc(arg0.getInt("zlc")); | |
| 59 | + //System.out.println(arg0.getObject("yl")); | |
| 60 | + //wbd.setYl(arg0.getString("yl")); | |
| 61 | + //wbd.setNbbm(arg0.getString("nbbm")); | |
| 62 | + Map<String, Object> maps=new HashMap<>(); | |
| 63 | + maps=scheduleRealInfoService.findKMBC2(arg0.getString("JSY"), arg0.getString("nbbm"), arg0.getString("RQ")); | |
| 64 | + wbd.setJzl1(maps.get("ksgl").toString()); | |
| 65 | + wbd.setZlc(maps.get("realMileage").toString()); | |
| 66 | +// {realMileage=211.20, cjbc=2, ljbc=0, remMileage=38.40, ksgl=0.00, | |
| 67 | +// jhlc=211.20, sjbc=9, jhbc=11, addMileage=0.00, yygl=211.20 | |
| 68 | + | |
| 69 | + return wbd; | |
| 70 | + | |
| 71 | + } | |
| 72 | + }); | |
| 73 | + return list; | |
| 74 | + } | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + //线路客流量报表 | |
| 79 | + @Override | |
| 80 | + public List<Linepasswengerflow> linepasswengerflow(Map<String, Object> map) { | |
| 81 | + String sql = " SELECT s.station_name,l.name,l.create_date from bsth_c_stationroute s " + | |
| 82 | + " LEFT JOIN bsth_c_line l on s.line_code=l.line_code " + | |
| 83 | + " where to_days(l.create_date)=to_days('"+map.get("date").toString()+"') " + | |
| 84 | + " and l.line_code="+map.get("line").toString()+ | |
| 85 | + " GROUP BY s.station_name "; | |
| 86 | + | |
| 87 | + List<Linepasswengerflow> list = jdbcTemplate.query(sql, new RowMapper<Linepasswengerflow>() { | |
| 88 | + | |
| 89 | + @Override | |
| 90 | + public Linepasswengerflow mapRow(ResultSet arg0, int arg1) throws SQLException { | |
| 91 | + Linepasswengerflow lin = new Linepasswengerflow(); | |
| 92 | + lin.setStationName(arg0.getString("station_name")); | |
| 93 | + | |
| 94 | + return lin; | |
| 95 | + } | |
| 96 | + }); | |
| 97 | + return list; | |
| 98 | + } | |
| 99 | + | |
| 100 | + | |
| 101 | + //导出 | |
| 102 | + @Override | |
| 103 | + public List<Waybillday> waybilldayExcel(Map<String,Object> map) { | |
| 104 | + ReportUtils ee = new ReportUtils(); | |
| 105 | + ReportRelatedUtils rru = new ReportRelatedUtils(); | |
| 106 | + List<Iterator<?>> list = new ArrayList<Iterator<?>>(); | |
| 107 | + List<Waybillday> Waybilldays = waybillday(map); | |
| 108 | + List<Map<String,Object>> listMap = new ArrayList<Map<String,Object>>(); | |
| 109 | + | |
| 110 | + DecimalFormat format = new DecimalFormat("0.00"); | |
| 111 | + String jName=null; | |
| 112 | + Map<String,Object> map1 = new HashMap<>(); | |
| 113 | + for(Waybillday Waybillday : Waybilldays){ | |
| 114 | + map1.put("carPlate", Waybillday.getCarPlate()); | |
| 115 | + map1.put("jzl1", Waybillday.getJzl1()); | |
| 116 | + map1.put("jzl", Waybillday.getJzl()); | |
| 117 | + map1.put("yh", Waybillday.getYh()); | |
| 118 | + map1.put("jName", Waybillday.getjName()); | |
| 119 | + jName=Waybillday.getjName(); | |
| 120 | + map1.put("zlc", Waybillday.getZlc()); | |
| 121 | + } | |
| 122 | +// | |
| 123 | +// //计算里程和班次数,并放入Map里 | |
| 124 | +// map1 = new HashMap<String, Object>(); | |
| 125 | +// map1.put("jhlc", format.format(jhlc)); | |
| 126 | +// map1.put("remMileage", format.format(remMileage)); | |
| 127 | +// map1.put("addMileage", format.format(addMileage)); | |
| 128 | +// map1.put("yygl", format.format(yygl)); | |
| 129 | +// map1.put("ksgl", format.format(ksgl)); | |
| 130 | +// map1.put("realMileage", format.format(yygl+ksgl)); | |
| 131 | +// map1.put("jhbc", jhbc); | |
| 132 | +// map1.put("cjbc", cjbc); | |
| 133 | +// map1.put("ljbc", ljbc); | |
| 134 | +// map1.put("sjbc", jhbc-cjbc+ljbc); | |
| 135 | + | |
| 136 | + String path = this.getClass().getResource("/").getPath()+"static\\pages\\forms\\"; | |
| 137 | + | |
| 138 | + list.add(listMap.iterator()); | |
| 139 | + ee.excelReplace(list, new Object[] { Waybilldays.get(0),map1 }, path+"mould\\waybill_minhang.xls", | |
| 140 | + path+"export\\" + jName + ".xls"); | |
| 141 | + return Waybilldays; | |
| 142 | + } | |
| 143 | + | |
| 144 | + | |
| 145 | + //班次车辆人员月统计 | |
| 146 | + String startDate; | |
| 147 | + String endDate; | |
| 148 | + @Override | |
| 149 | + public List<Shiftuehiclemanth> shiftuehiclemanth( Map<String, Object> map) { | |
| 150 | + List list1=new ArrayList<>();// | |
| 151 | + String sql = "select r.j_name,r.schedule_date_str,r.update_date,r.cl_zbh " + | |
| 152 | + " from bsth_c_s_sp_info_real r " + | |
| 153 | + " LEFT JOIN bsth_c_s_ttinfo_detail d on r.lp_name=d.lp " + | |
| 154 | + " LEFT JOIN bsth_c_line_information l on l.line=r.lp_name " + | |
| 155 | + " where to_days(r.schedule_date_str) BETWEEN to_days('"+map.get("startDate").toString()+"') " + | |
| 156 | + " and to_days('"+map.get("endDate").toString()+"') " + | |
| 157 | + " and r.xl_bm='"+map.get("line").toString() +"' " + | |
| 158 | + " GROUP BY r.j_name" + | |
| 159 | + " ORDER BY r.j_name"; | |
| 160 | + startDate=map.get("startDate").toString(); | |
| 161 | + endDate=map.get("endDate").toString(); | |
| 162 | + List<Shiftuehiclemanth> list = jdbcTemplate.query(sql, new RowMapper<Shiftuehiclemanth>() { | |
| 163 | + | |
| 164 | + @Override | |
| 165 | + public Shiftuehiclemanth mapRow(ResultSet arg0, int arg1) throws SQLException { | |
| 166 | + Shiftuehiclemanth shif = new Shiftuehiclemanth(); | |
| 167 | + shif.setjName(arg0.getString("j_name")); | |
| 168 | + | |
| 169 | + Map<String, Object> maps=new HashMap<>(); | |
| 170 | + | |
| 171 | + maps=scheduleRealInfoService.findKMBC1(arg0.getString("j_name"), arg0.getString("cl_zbh"), startDate , endDate ); | |
| 172 | + shif.setJhlc(maps.get("jhlc").toString()); | |
| 173 | + shif.setEmptMileage(maps.get("ksgl").toString()); | |
| 174 | + shif.setRemMileage(maps.get("remMileage").toString()); | |
| 175 | + shif.setAddMileage(maps.get("addMileage").toString()); | |
| 176 | + shif.setTotalm(maps.get("realMileage").toString()); | |
| 177 | + shif.setCjbc(maps.get("cjbc").toString()); | |
| 178 | + shif.setLjbc(maps.get("ljbc").toString()); | |
| 179 | + shif.setSjbc(maps.get("sjbc").toString()); | |
| 180 | + | |
| 181 | + return shif; | |
| 182 | + | |
| 183 | + } | |
| 184 | + }); | |
| 185 | + | |
| 186 | + return list; | |
| 187 | + } | |
| 188 | + | |
| 189 | + | |
| 190 | + //班次车辆人员日统计 | |
| 191 | + @Override | |
| 192 | + public List<Shifday> shifday(Map<String, Object> map) { | |
| 193 | + String sql = " select r.lp_name,r.xl_name,r.j_name,r.s_name, r.cl_zbh,r.xl_bm,r.schedule_date,r.cl_zbh,r.j_gh " + | |
| 194 | + " FROM bsth_c_s_sp_info_real r " + | |
| 195 | + " where to_days(r.schedule_date)=to_days('"+map.get("date").toString()+"') and r.xl_bm="+map.get("line").toString()+ | |
| 196 | + " GROUP BY r.j_name "; | |
| 197 | + | |
| 198 | + List<Shifday> list = jdbcTemplate.query(sql, new RowMapper<Shifday>() { | |
| 199 | + | |
| 200 | + @Override | |
| 201 | + public Shifday mapRow(ResultSet arg0, int arg1) throws SQLException { | |
| 202 | + Shifday shifday = new Shifday(); | |
| 203 | + shifday.setjName(arg0.getString("j_name").toString()); | |
| 204 | + shifday.setsName(arg0.getString("s_name")==null?"":arg0.getString("s_name").toString()); | |
| 205 | + shifday.setLpName(arg0.getString("r.lp_name").toString()); | |
| 206 | + shifday.setCarPlate(arg0.getString("cl_zbh").toString()); | |
| 207 | + | |
| 208 | + Map<String, Object> map=new HashMap<>(); | |
| 209 | + map=scheduleRealInfoService.findKMBC2(arg0.getString("j_gh"), arg0.getString("cl_zbh"), arg0.getString("schedule_date")); | |
| 210 | + shifday.setJhlc(map.get("jhlc").toString());//计划里程 | |
| 211 | + //shifday.setSjjhlc(map.get("remMileage").toString());//实际计划里程 | |
| 212 | + shifday.setYygl(map.get("yygl").toString());//营运里程 | |
| 213 | + shifday.setEmptMileage(map.get("ksgl").toString());//空驶里程 | |
| 214 | + shifday.setRemMileage(map.get("remMileage").toString());//抽减里程 | |
| 215 | + shifday.setAddMileage(map.get("addMileage").toString());//增加里程 | |
| 216 | + shifday.setTotalm(map.get("realMileage").toString());//总里程 | |
| 217 | + shifday.setJhbc(map.get("jhbc").toString());//计划班次 | |
| 218 | + //shifday.setSjjhbc(map.get("sjjhbc").toString());//实际计划班次 | |
| 219 | + shifday.setCjbc(map.get("cjbc").toString());//抽减班次 | |
| 220 | + shifday.setLjbc(map.get("ljbc").toString());//增加班次 | |
| 221 | + shifday.setSjbc(map.get("sjbc").toString());//实际班次 | |
| 222 | + return shifday; | |
| 223 | + } | |
| 224 | + }); | |
| 225 | + return list; | |
| 226 | + } | |
| 227 | + | |
| 228 | + //换人换车情况日统计 | |
| 229 | + @Override | |
| 230 | + public List<Changetochange> changetochange(Map<String, Object> map) { | |
| 231 | + | |
| 232 | + return null; | |
| 233 | + } | |
| 234 | + | |
| 235 | + | |
| 236 | + //路单数据 | |
| 237 | + @Override | |
| 238 | + public List<Singledata> singledata(Map<String, Object> map) { | |
| 239 | + | |
| 240 | + String sql = " SELECT y.RQ,y.SSGSDM,y.XLBM,y.NBBM,y.JSY,y.YH,y.JZL " + | |
| 241 | + " FROM bsth_c_ylb y" + | |
| 242 | + " where y.RQ BETWEEN '"+map.get("startDate").toString() +"'" + | |
| 243 | + " and '"+map.get("endDate").toString()+"'"+ | |
| 244 | + " and y.XLBM='"+map.get("line").toString()+"'"+ | |
| 245 | + " GROUP BY y.NBBM "; | |
| 246 | + | |
| 247 | + List<Singledata> list = jdbcTemplate.query(sql, new RowMapper<Singledata>() { | |
| 248 | + SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd"); | |
| 249 | + @Override | |
| 250 | + public Singledata mapRow(ResultSet arg0, int arg1) throws SQLException { | |
| 251 | + Singledata sin = new Singledata(); | |
| 252 | + sin.setrQ(sdf.format(arg0.getDate("rq"))); | |
| 253 | + sin.setgS(arg0.getString("SSGSDM").toString()); | |
| 254 | + sin.setxL(arg0.getString("XLBM").toString()); | |
| 255 | + sin.setClzbh(arg0.getString("NBBM").toString()); | |
| 256 | + sin.setJsy(arg0.getString("JSY").toString()); | |
| 257 | + sin.setHyl(arg0.getString("YH").toString()); | |
| 258 | + sin.setJzl(arg0.getString("JZL").toString()); | |
| 259 | + // sin.setJzl(arg0.getString(""));//非营业性用油 | |
| 260 | + sin.setJhjl(arg0.getString("JZL")); | |
| 261 | + Map<String, Object> maps=new HashMap<>(); | |
| 262 | + maps=scheduleRealInfoService.findKMBC2(sin.getJsy(),sin.getClzbh(),sin.getrQ()); | |
| 263 | + sin.setjName(maps.get("j_name")==null?"":maps.get("j_name").toString()); | |
| 264 | + sin.setSgh(maps.get("s_gh")==null?"":maps.get("s_gh").toString()); | |
| 265 | + sin.setsName(maps.get("s_name")==null?"":maps.get("s_name").toString()); | |
| 266 | + sin.setJhlc(maps.get("yygl")==null?"":maps.get("yygl").toString()); | |
| 267 | + sin.setEmptMileage(maps.get("ksgl")==null?"":maps.get("ksgl").toString()); | |
| 268 | + sin.setJhjl(maps.get("jhlc")==null?"":maps.get("jhlc").toString()); | |
| 269 | + | |
| 270 | + return sin; | |
| 271 | + } | |
| 272 | + }); | |
| 273 | + return list; | |
| 274 | +} | |
| 275 | + | |
| 276 | + | |
| 277 | + //运营服务阶段报表 | |
| 278 | + @Override | |
| 279 | + public List<Operationservice> operationservice(Map<String, Object> map) { | |
| 280 | + | |
| 281 | + String sql = " SELECT y.RQ,y.XLBM,y.NBBM,y.JSY,y.YH,y.JZL " + | |
| 282 | + " FROM bsth_c_ylb y" + | |
| 283 | + " where y.RQ BETWEEN '"+map.get("startDate").toString() +"'" + | |
| 284 | + " and '"+map.get("endDate").toString()+"'"+ | |
| 285 | + " and y.XLBM='"+map.get("line").toString()+"'"+ | |
| 286 | + " GROUP BY y.NBBM "; | |
| 287 | + | |
| 288 | + List<Operationservice> list = jdbcTemplate.query(sql, new RowMapper<Operationservice>() { | |
| 289 | + SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd"); | |
| 290 | + @Override | |
| 291 | + public Operationservice mapRow(ResultSet arg0, int arg1) throws SQLException { | |
| 292 | + Singledata sin = new Singledata(); | |
| 293 | + Operationservice op = new Operationservice(); | |
| 294 | + op.setXlName(arg0.getString("XLBM").toString()); | |
| 295 | + op.setJzl(arg0.getString("JZL").toString()); | |
| 296 | + op.setXhl(arg0.getString("YH").toString()); | |
| 297 | + Map<String, Object> maps=new HashMap<>(); | |
| 298 | + maps=scheduleRealInfoService.findKMBC2(sin.getJsy(),sin.getClzbh(),sin.getrQ()); | |
| 299 | + op.setXsgl(maps.get("yygl").toString()==null?"":maps.get("yygl").toString()); | |
| 300 | + op.setEmptMileage(maps.get("ksgl").toString()==null?"":maps.get("ksgl").toString()); | |
| 301 | + op.setSjbc(maps.get("sjbc").toString()==null?"":maps.get("sjbc").toString()); | |
| 302 | + return op; | |
| 303 | + } | |
| 304 | + }); | |
| 305 | + return list; | |
| 306 | + } | |
| 307 | + | |
| 308 | + | |
| 309 | + //车辆加注 | |
| 310 | + @Override | |
| 311 | + public List<Vehicleloading> vehicleloading(String line,String data) { | |
| 312 | + | |
| 313 | + String sql = " SELECT y.RQ,y.SSGSDM,y.XLBM,y.NBBM,y.JSY,y.YH,y.JZL " + | |
| 314 | + " FROM bsth_c_ylb y " + | |
| 315 | + " where to_days(y.RQ)=to_days('"+data +"')" + | |
| 316 | + " and y.XLBM='"+line+"' "+ | |
| 317 | + " GROUP BY y.NBBM "; | |
| 318 | + | |
| 319 | + List<Vehicleloading> list = jdbcTemplate.query(sql, new RowMapper<Vehicleloading>() { | |
| 320 | + @Override | |
| 321 | + public Vehicleloading mapRow(ResultSet arg0, int arg1) throws SQLException { | |
| 322 | + Vehicleloading ve = new Vehicleloading(); | |
| 323 | + ve.setrQ(arg0.getString("RQ").toString()); | |
| 324 | + ve.setgS(arg0.getString("SSGSDM").toString()); | |
| 325 | + ve.setxL(arg0.getString("XLBM").toString()); | |
| 326 | + ve.setClzbh(arg0.getString("NBBM").toString()); | |
| 327 | + ve.setHyl(arg0.getString("YH").toString()); | |
| 328 | + ve.setJzl(arg0.getString("JZL").toString()); | |
| 329 | + //ve.setLs(arg0.getString("").toString());//尿素 | |
| 330 | + Map<String, Object> maps=new HashMap<>(); | |
| 331 | + maps=scheduleRealInfoService.findKMBC2(arg0.getString("JSY"), arg0.getString("NBBM"), arg0.getString("RQ")); | |
| 332 | + ve.setJhlc(maps.get("yygl")==null?"":maps.get("yygl").toString()); | |
| 333 | + ve.setJhbc(maps.get("jhbc").toString()==null?"":maps.get("jhbc").toString());//计划班次 | |
| 334 | + ve.setSjbc(maps.get("sjbc").toString()==null?"":maps.get("sjbc").toString());//实际班次 | |
| 335 | + return ve; | |
| 336 | + } | |
| 337 | + }); | |
| 338 | + return list; | |
| 339 | + } | |
| 340 | + | |
| 341 | + | |
| 342 | +} | ... | ... |
src/main/java/com/bsth/service/realcontrol/ScheduleRealInfoService.java
| ... | ... | @@ -86,8 +86,12 @@ public interface ScheduleRealInfoService extends BaseService<ScheduleRealInfo, L |
| 86 | 86 | |
| 87 | 87 | List<Map<String,String>> findLine(String line); |
| 88 | 88 | |
| 89 | + Map<String,Object> findKMBC1(String jName,String clZbh, String date,String enddate); | |
| 90 | + | |
| 89 | 91 | Map<String,Object> findKMBC(String jName,String clZbh,String lpName,String date); |
| 90 | 92 | |
| 93 | + Map<String,Object> findKMBC2(String jName,String clZbh,String date); | |
| 94 | + | |
| 91 | 95 | List<Map<String,String>> findLpName(String lpName); |
| 92 | 96 | |
| 93 | 97 | List<Map<String,Object>> account(String line,String date,String code,String xlName); | ... | ... |
src/main/java/com/bsth/service/realcontrol/impl/ScheduleRealInfoServiceImpl.java
| ... | ... | @@ -1072,6 +1072,74 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 1072 | 1072 | } |
| 1073 | 1073 | |
| 1074 | 1074 | @Override |
| 1075 | + public Map<String, Object> findKMBC2(String jName, String clZbh,String date) { | |
| 1076 | + List<ScheduleRealInfo> list = scheduleRealInfoRepository.queryListWaybill3(jName, clZbh , date); | |
| 1077 | + | |
| 1078 | + DecimalFormat format = new DecimalFormat("0.00"); | |
| 1079 | +// int cjbc = scheduleRealInfoRepository.findCjbc(jName, clZbh, lpName); | |
| 1080 | +// int ljbc = scheduleRealInfoRepository.findLjbc(jName, clZbh, lpName); | |
| 1081 | + int jhbc = 0,cjbc = 0,ljbc = 0; | |
| 1082 | + double jhlc = 0, yygl = 0, ksgl = 0,tempJhlc = 0; | |
| 1083 | + float addMileage = 0l,remMileage = 0l; | |
| 1084 | + String j_Name=""; | |
| 1085 | + Map<String,Object> map = new HashMap<String, Object>(); | |
| 1086 | + for(ScheduleRealInfo scheduleRealInfo : list){ | |
| 1087 | + if(scheduleRealInfo != null){ | |
| 1088 | + j_Name=scheduleRealInfo.getjName(); | |
| 1089 | + //计划里程(主任务过滤掉临加班次), | |
| 1090 | + //烂班里程(主任务烂班), | |
| 1091 | + //临加里程(主任务临加), | |
| 1092 | + //计划班次,烂班班次,增加班次 | |
| 1093 | + tempJhlc = scheduleRealInfo.getJhlc()==null?0:scheduleRealInfo.getJhlc(); | |
| 1094 | + if(scheduleRealInfo.isSflj()){ | |
| 1095 | + addMileage += tempJhlc; | |
| 1096 | + ljbc++; | |
| 1097 | + }else{ | |
| 1098 | + jhlc += tempJhlc; | |
| 1099 | + jhbc++; | |
| 1100 | + if(scheduleRealInfo.getStatus() == -1){ | |
| 1101 | + remMileage += tempJhlc; | |
| 1102 | + cjbc++; | |
| 1103 | + } | |
| 1104 | + } | |
| 1105 | + Set<ChildTaskPlan> childTaskPlans = scheduleRealInfo.getcTasks(); | |
| 1106 | + //计算营运里程,空驶里程 | |
| 1107 | + if(childTaskPlans.isEmpty()){ | |
| 1108 | + if(scheduleRealInfo.getBcType().equals("in") || scheduleRealInfo.getBcType().equals("out") | |
| 1109 | + || scheduleRealInfo.getBcType().equals("venting")){ | |
| 1110 | + ksgl += tempJhlc; | |
| 1111 | + }else{ | |
| 1112 | + yygl += tempJhlc; | |
| 1113 | + } | |
| 1114 | + }else{ | |
| 1115 | + Iterator<ChildTaskPlan> it = childTaskPlans.iterator(); | |
| 1116 | + while(it.hasNext()){ | |
| 1117 | + ChildTaskPlan childTaskPlan = it.next(); | |
| 1118 | + if(childTaskPlan.getMileageType().equals("empty")){ | |
| 1119 | + ksgl += childTaskPlan.getMileage()==null?0:childTaskPlan.getMileage(); | |
| 1120 | + }else{ | |
| 1121 | + yygl += childTaskPlan.getMileage()==null?0:childTaskPlan.getMileage(); | |
| 1122 | + } | |
| 1123 | + } | |
| 1124 | + } | |
| 1125 | + } | |
| 1126 | + } | |
| 1127 | + map.put("j_name", j_Name); | |
| 1128 | + map.put("jhlc", format.format(jhlc)); | |
| 1129 | + map.put("remMileage", format.format(remMileage)); | |
| 1130 | + map.put("addMileage", format.format(addMileage)); | |
| 1131 | + map.put("yygl", format.format(yygl)); | |
| 1132 | + map.put("ksgl", format.format(ksgl)); | |
| 1133 | + map.put("realMileage", format.format(yygl+ksgl)); | |
| 1134 | + map.put("jhbc", jhbc); | |
| 1135 | + map.put("cjbc", cjbc); | |
| 1136 | + map.put("ljbc", ljbc); | |
| 1137 | + map.put("sjbc", jhbc-cjbc+ljbc); | |
| 1138 | + return map; | |
| 1139 | + } | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + @Override | |
| 1075 | 1143 | public Map<String, Object> findKMBC(String jName, String clZbh, |
| 1076 | 1144 | String lpName,String date) { |
| 1077 | 1145 | List<ScheduleRealInfo> list = scheduleRealInfoRepository.queryListWaybill(jName, clZbh, lpName, date); |
| ... | ... | @@ -1611,6 +1679,71 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 1611 | 1679 | rs.put("ts", list); |
| 1612 | 1680 | return rs; |
| 1613 | 1681 | } |
| 1682 | + | |
| 1683 | + | |
| 1684 | + @Override | |
| 1685 | + public Map<String, Object> findKMBC1(String jName, String clZbh, | |
| 1686 | + String date, String enddate) { | |
| 1687 | + List<ScheduleRealInfo> list = scheduleRealInfoRepository.queryListWaybill2(jName, clZbh, date, enddate); | |
| 1688 | + DecimalFormat format = new DecimalFormat("0.00"); | |
| 1689 | +// int cjbc = scheduleRealInfoRepository.findCjbc(jName, clZbh, lpName); | |
| 1690 | +// int ljbc = scheduleRealInfoRepository.findLjbc(jName, clZbh, lpName); | |
| 1691 | + int jhbc = 0,cjbc = 0,ljbc = 0; | |
| 1692 | + double jhlc = 0, yygl = 0, ksgl = 0,tempJhlc = 0; | |
| 1693 | + float addMileage = 0l,remMileage = 0l; | |
| 1694 | + Map<String,Object> map = new HashMap<String, Object>(); | |
| 1695 | + for(ScheduleRealInfo scheduleRealInfo : list){ | |
| 1696 | + if(scheduleRealInfo != null){ | |
| 1697 | + //计划里程(主任务过滤掉临加班次), | |
| 1698 | + //烂班里程(主任务烂班), | |
| 1699 | + //临加里程(主任务临加), | |
| 1700 | + //计划班次,烂班班次,增加班次 | |
| 1701 | + tempJhlc = scheduleRealInfo.getJhlc()==null?0:scheduleRealInfo.getJhlc(); | |
| 1702 | + if(scheduleRealInfo.isSflj()){ | |
| 1703 | + addMileage += tempJhlc; | |
| 1704 | + ljbc++; | |
| 1705 | + }else{ | |
| 1706 | + jhlc += tempJhlc; | |
| 1707 | + jhbc++; | |
| 1708 | + if(scheduleRealInfo.getStatus() == -1){ | |
| 1709 | + remMileage += tempJhlc; | |
| 1710 | + cjbc++; | |
| 1711 | + } | |
| 1712 | + } | |
| 1713 | + Set<ChildTaskPlan> childTaskPlans = scheduleRealInfo.getcTasks(); | |
| 1714 | + //计算营运里程,空驶里程 | |
| 1715 | + if(childTaskPlans.isEmpty()){ | |
| 1716 | + if(scheduleRealInfo.getBcType().equals("in") || scheduleRealInfo.getBcType().equals("out") | |
| 1717 | + || scheduleRealInfo.getBcType().equals("venting")){ | |
| 1718 | + ksgl += tempJhlc; | |
| 1719 | + }else{ | |
| 1720 | + yygl += tempJhlc; | |
| 1721 | + } | |
| 1722 | + }else{ | |
| 1723 | + Iterator<ChildTaskPlan> it = childTaskPlans.iterator(); | |
| 1724 | + while(it.hasNext()){ | |
| 1725 | + ChildTaskPlan childTaskPlan = it.next(); | |
| 1726 | + if(childTaskPlan.getMileageType().equals("empty")){ | |
| 1727 | + ksgl += childTaskPlan.getMileage()==null?0:childTaskPlan.getMileage(); | |
| 1728 | + }else{ | |
| 1729 | + yygl += childTaskPlan.getMileage()==null?0:childTaskPlan.getMileage(); | |
| 1730 | + } | |
| 1731 | + } | |
| 1732 | + } | |
| 1733 | + } | |
| 1734 | + } | |
| 1735 | + map.put("jhlc", format.format(jhlc)); | |
| 1736 | + map.put("remMileage", format.format(remMileage)); | |
| 1737 | + map.put("addMileage", format.format(addMileage)); | |
| 1738 | + map.put("yygl", format.format(yygl)); | |
| 1739 | + map.put("ksgl", format.format(ksgl)); | |
| 1740 | + map.put("realMileage", format.format(yygl+ksgl)); | |
| 1741 | + map.put("jhbc", jhbc); | |
| 1742 | + map.put("cjbc", cjbc); | |
| 1743 | + map.put("ljbc", ljbc); | |
| 1744 | + map.put("sjbc", jhbc-cjbc+ljbc); | |
| 1745 | + return map; | |
| 1746 | + } | |
| 1614 | 1747 | |
| 1615 | 1748 | @Override |
| 1616 | 1749 | public List<Map<String, Object>> yesterdayDataList(String line) { | ... | ... |
src/main/resources/static/pages/forms/statement/changetochange.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-body"> | |
| 29 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | |
| 30 | + <table class="table table-bordered table-hover table-checkable" id="forms"> | |
| 31 | + <thead> | |
| 32 | + <tr> | |
| 33 | + <th colspan="13">换人换车情况统计表</th> | |
| 34 | + </tr> | |
| 35 | + <!-- <tr> | |
| 36 | + <td colspan="12">车队 站 <span id="sDate"></span>至<span id="eDate"></span></td> | |
| 37 | + </tr> --> | |
| 38 | + <tr> | |
| 39 | + <td rowspan="3">日期</td> | |
| 40 | + <td rowspan="3">公司</td> | |
| 41 | + <td rowspan="3">分公司</td> | |
| 42 | + <td rowspan="3">线路</td> | |
| 43 | + <td rowspan="3">路牌</td> | |
| 44 | + <td rowspan="3">发生时间</td> | |
| 45 | + <td rowspan="3">修改时间</td> | |
| 46 | + <td colspan="3">配车</td> | |
| 47 | + <td colspan="3">人员</td> | |
| 48 | + <td rowspan="3">原因</td> | |
| 49 | + <td rowspan="3">修改人</td> | |
| 50 | + </tr> | |
| 51 | + <tr> | |
| 52 | + <td>计划</td> | |
| 53 | + <td>实际</td> | |
| 54 | + <td>计划</td> | |
| 55 | + <td>实际</td> | |
| 56 | + </tr> | |
| 57 | + <tr> | |
| 58 | + <td>计划</td> | |
| 59 | + <td>实际</td> | |
| 60 | + <td>计划</td> | |
| 61 | + <td>实际</td> | |
| 62 | + </tr> | |
| 63 | + </thead> | |
| 64 | + <tbody class="list_correctForm"> | |
| 65 | + | |
| 66 | + </tbody> | |
| 67 | + <tbody class="list_correctForm_statistics"> | |
| 68 | + | |
| 69 | + </tbody> | |
| 70 | + </table> | |
| 71 | + </div> | |
| 72 | + </div> | |
| 73 | + </div> | |
| 74 | + </div> | |
| 75 | +</div> | |
| 76 | + | |
| 77 | +<script> | |
| 78 | + $(function(){ | |
| 79 | + // 关闭左侧栏 | |
| 80 | + if (!$('body').hasClass('page-sidebar-closed')) | |
| 81 | + $('.menu-toggler.sidebar-toggler').click(); | |
| 82 | + | |
| 83 | + $("#startDate,#endDate").datetimepicker({ | |
| 84 | + format : 'YYYY-MM-DD', | |
| 85 | + locale : 'zh-cn' | |
| 86 | + }); | |
| 87 | + | |
| 88 | + $('#line').select2({ | |
| 89 | + ajax: { | |
| 90 | + url: '/realSchedule/findLine', | |
| 91 | + type: 'post', | |
| 92 | + dataType: 'json', | |
| 93 | + delay: 150, | |
| 94 | + data: function(params){ | |
| 95 | + return{line: params.term}; | |
| 96 | + }, | |
| 97 | + processResults: function (data) { | |
| 98 | + return { | |
| 99 | + results: data | |
| 100 | + }; | |
| 101 | + }, | |
| 102 | + cache: true | |
| 103 | + }, | |
| 104 | + templateResult: function(repo){ | |
| 105 | + if (repo.loading) return repo.text; | |
| 106 | + var h = '<span>'+repo.text+'</span>'; | |
| 107 | + return h; | |
| 108 | + }, | |
| 109 | + escapeMarkup: function (markup) { return markup; }, | |
| 110 | + minimumInputLength: 1, | |
| 111 | + templateSelection: function(repo){ | |
| 112 | + return repo.text; | |
| 113 | + }, | |
| 114 | + language: { | |
| 115 | + noResults: function(){ | |
| 116 | + return '<span style="color:red;font-size: 12px;">没有搜索到线路!</span>'; | |
| 117 | + }, | |
| 118 | + inputTooShort : function(e) { | |
| 119 | + return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> 输入线路搜索线路</span>'; | |
| 120 | + }, | |
| 121 | + searching : function() { | |
| 122 | + return '<span style="color:gray;font-size: 12px;"> 正在搜索线路...</span>'; | |
| 123 | + } | |
| 124 | + } | |
| 125 | + }); | |
| 126 | + $('#lpName').select2({ | |
| 127 | + ajax: { | |
| 128 | + url: '/realSchedule/findLpName', | |
| 129 | + type: 'post', | |
| 130 | + dataType: 'json', | |
| 131 | + delay: 150, | |
| 132 | + data: function(params){ | |
| 133 | + return{lpName: params.term}; | |
| 134 | + }, | |
| 135 | + processResults: function (data) { | |
| 136 | + return { | |
| 137 | + results: data | |
| 138 | + }; | |
| 139 | + }, | |
| 140 | + cache: true | |
| 141 | + }, | |
| 142 | + templateResult: function(repo){ | |
| 143 | + if (repo.loading) return repo.text; | |
| 144 | + var h = '<span>'+repo.text+'</span>'; | |
| 145 | + return h; | |
| 146 | + }, | |
| 147 | + escapeMarkup: function (markup) { return markup; }, | |
| 148 | + minimumInputLength: 1, | |
| 149 | + templateSelection: function(repo){ | |
| 150 | + return repo.text; | |
| 151 | + }, | |
| 152 | + language: { | |
| 153 | + noResults: function(){ | |
| 154 | + return '<span style="color:red;font-size: 12px;">没有搜索到路牌!</span>'; | |
| 155 | + }, | |
| 156 | + inputTooShort : function(e) { | |
| 157 | + return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> 输入路牌搜索路牌</span>'; | |
| 158 | + }, | |
| 159 | + searching : function() { | |
| 160 | + return '<span style="color:gray;font-size: 12px;"> 正在搜索路牌...</span>'; | |
| 161 | + } | |
| 162 | + } | |
| 163 | + }); | |
| 164 | + $('#code').select2({ | |
| 165 | + ajax: { | |
| 166 | + url: '/realSchedule/sreachVehic', | |
| 167 | + dataType: 'json', | |
| 168 | + delay: 150, | |
| 169 | + data: function(params){ | |
| 170 | + return{nbbm: params.term}; | |
| 171 | + }, | |
| 172 | + processResults: function (data) { | |
| 173 | + return { | |
| 174 | + results: data | |
| 175 | + }; | |
| 176 | + }, | |
| 177 | + cache: true | |
| 178 | + }, | |
| 179 | + templateResult: function(repo){ | |
| 180 | + if (repo.loading) return repo.text; | |
| 181 | + var h = '<span>'+repo.text+'</span>'; | |
| 182 | + h += (repo.lineName?' <span class="select2-desc">'+repo.lineName+'</span>':''); | |
| 183 | + return h; | |
| 184 | + }, | |
| 185 | + escapeMarkup: function (markup) { return markup; }, | |
| 186 | + minimumInputLength: 1, | |
| 187 | + templateSelection: function(repo){ | |
| 188 | + return repo.text; | |
| 189 | + }, | |
| 190 | + language: { | |
| 191 | + noResults: function(){ | |
| 192 | + return '<span style="color:red;font-size: 12px;">没有搜索到车辆!</span>'; | |
| 193 | + }, | |
| 194 | + inputTooShort : function(e) { | |
| 195 | + return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> 输入自编号搜索车辆</span>'; | |
| 196 | + }, | |
| 197 | + searching : function() { | |
| 198 | + return '<span style="color:gray;font-size: 12px;"> 正在搜索车辆...</span>'; | |
| 199 | + } | |
| 200 | + } | |
| 201 | + }); | |
| 202 | + | |
| 203 | + $("#query").on("click",function(){ | |
| 204 | + var line = $("#line").val(); | |
| 205 | + var startDate = $("#startDate").val(); | |
| 206 | + var endDate = $("#endDate").val(); | |
| 207 | + var lpName = $("#lpName").val(); | |
| 208 | + var code = $("#code").val(); | |
| 209 | + $post("/realSchedule/correctForm",{line:line,startDate:startDate,endDate:endDate,lpName:lpName,code:code},function(result){ | |
| 210 | + $("#sDate").text(startDate); | |
| 211 | + $("#eDate").text(endDate); | |
| 212 | + var temp = {}; | |
| 213 | + var today_account = 0; | |
| 214 | + temp["line"] = $("#line").text() ; | |
| 215 | + temp["totalAdjustment"] = result.length; | |
| 216 | + | |
| 217 | + $.each(result, function(i, obj) { | |
| 218 | + if(moment(obj.scheduleDate).format("YYYY-MM-DD") == moment(obj.updateDate).format("YYYY-MM-DD")){ | |
| 219 | + today_account++; | |
| 220 | + } | |
| 221 | + obj.updateDate = moment(obj.updateDate).format("YYYY-MM-DD HH:mm:ss"); | |
| 222 | + }); | |
| 223 | + | |
| 224 | + temp["todayAdjustment"] = today_account; | |
| 225 | + temp["beforeAdjustment"] = result.length-today_account; | |
| 226 | + temp["historyAdjustment"] = 0; | |
| 227 | + | |
| 228 | + var list_correctForm = template('list_correctForm',{list:result}); | |
| 229 | + // 把渲染好的模版html文本追加到表格中 | |
| 230 | + $('#forms .list_correctForm').html(list_correctForm); | |
| 231 | + | |
| 232 | + var list_correctForm_statistics = template('list_correctForm_statistics',temp); | |
| 233 | + $('#forms .list_correctForm_statistics').html(list_correctForm_statistics); | |
| 234 | + }); | |
| 235 | + }); | |
| 236 | + }); | |
| 237 | +</script> | |
| 238 | +<script type="text/html" id="list_correctForm"> | |
| 239 | + {{each list as obj i}} | |
| 240 | + <tr> | |
| 241 | + <td>{{obj.xlName}}</td> | |
| 242 | + <td>{{obj.lpName}}</td> | |
| 243 | + <td>{{obj.clZbh}}</td> | |
| 244 | + <td>{{obj.jName}}</td> | |
| 245 | + <td>{{obj.sName}}</td> | |
| 246 | + <td>{{obj.fcsj}}</td> | |
| 247 | + <td>{{obj.fcsjActual}}</td> | |
| 248 | + <td>{{obj.zdsj}}</td> | |
| 249 | + <td>{{obj.zdsjActual}}</td> | |
| 250 | + <td>{{obj.updateBy}}</td> | |
| 251 | + <td>{{obj.updateDate}}</td> | |
| 252 | + <td>{{obj.remarks}}</td> | |
| 253 | + </tr> | |
| 254 | + {{/each}} | |
| 255 | + {{if list.length == 0}} | |
| 256 | + <tr> | |
| 257 | + <td colspan="12"><h6 class="muted">没有找到相关数据</h6></td> | |
| 258 | + </tr> | |
| 259 | + {{/if}} | |
| 260 | +</script> | |
| 261 | +<script type="text/html" id="list_correctForm_statistics"> | |
| 262 | + <tr> | |
| 263 | + <td colspan="2">线路:</td> | |
| 264 | + <td>{{line}}</td> | |
| 265 | + <td>调整总数</td> | |
| 266 | + <td>{{totalAdjustment}}</td> | |
| 267 | + <td>事先调整</td> | |
| 268 | + <td>{{beforeAdjustment}}</td> | |
| 269 | + <td>当日调整</td> | |
| 270 | + <td>{{todayAdjustment}}</td> | |
| 271 | + <td>历史调整</td> | |
| 272 | + <td colspan="2">{{historyAdjustment}}</td> | |
| 273 | + </tr> | |
| 274 | +</script> | |
| 0 | 275 | \ No newline at end of file | ... | ... |
src/main/resources/static/pages/forms/statement/linepassengerflow.html
0 → 100644
| 1 | +<style type="text/css"> | |
| 2 | + .table-bordered { | |
| 3 | + border: 1px solid; } | |
| 4 | + .table-bordered > thead > tr > th, | |
| 5 | + .table-bordered > thead > tr > td, | |
| 6 | + .table-bordered > tbody > tr > th, | |
| 7 | + .table-bordered > tbody > tr > td, | |
| 8 | + .table-bordered > tfoot > tr > th, | |
| 9 | + .table-bordered > tfoot > tr > td { | |
| 10 | + border: 1px solid; } | |
| 11 | + .table-bordered > thead > tr > th, | |
| 12 | + .table-bordered > thead > tr > td { | |
| 13 | + border-bottom-width: 2px; } | |
| 14 | + | |
| 15 | + .table > tbody + tbody { | |
| 16 | + border-top: 1px solid; } | |
| 17 | +</style> | |
| 18 | + | |
| 19 | +<div class="page-head"> | |
| 20 | + <div class="page-title"> | |
| 21 | + <h1>线路客流量报表</h1> | |
| 22 | + </div> | |
| 23 | +</div> | |
| 24 | + | |
| 25 | +<div class="row"> | |
| 26 | + <div class="col-md-12"> | |
| 27 | + <div class="portlet light porttlet-fit bordered"> | |
| 28 | + <div class="portlet-title"> | |
| 29 | + <form class="form-inline" action=""> | |
| 30 | + <div style="display: inline-block;"> | |
| 31 | + <span class="item-label" style="width: 80px;">线路: </span> | |
| 32 | + <select class="form-control" name="line" id="line" style="width: 180px;"></select> | |
| 33 | + </div> | |
| 34 | + <div style="display: inline-block;margin-left: 15px;"> | |
| 35 | + <span class="item-label" style="width: 80px;">时间: </span> | |
| 36 | + <input class="form-control" type="text" id="date" style="width: 180px;"/> | |
| 37 | + </div> | |
| 38 | + <div class="form-group"> | |
| 39 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | |
| 40 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | |
| 41 | + </div> | |
| 42 | + </form> | |
| 43 | + </div> | |
| 44 | + <div class="portlet-body"> | |
| 45 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | |
| 46 | + <table class="table table-bordered table-hover table-checkable" id="forms"> | |
| 47 | + <thead> | |
| 48 | + <tr> | |
| 49 | + <th>序号</th> | |
| 50 | + <th>站点名称</th> | |
| 51 | + <th>pos机刷卡金额</th> | |
| 52 | + <th>投币金额</th> | |
| 53 | + </tr> | |
| 54 | + </thead> | |
| 55 | + <tbody> | |
| 56 | + | |
| 57 | + </tbody> | |
| 58 | + </table> | |
| 59 | + </div> | |
| 60 | + </div> | |
| 61 | + </div> | |
| 62 | + </div> | |
| 63 | +</div> | |
| 64 | + | |
| 65 | +<script> | |
| 66 | + $(function(){ | |
| 67 | + var reqCodeMap = {"0xA1": '请求恢复运营', "0xA2": '申请调档', "0xA3": '出场请求', "0xA5": '进场请求', "0xA7": '加油请求', "0x50": '车辆故障', "0x70": '路阻报告', "0x60": '事故报告', "0x11": '扣证纠纷', "0x12" : '报警'}; | |
| 68 | + // 关闭左侧栏 | |
| 69 | + if (!$('body').hasClass('page-sidebar-closed')) | |
| 70 | + $('.menu-toggler.sidebar-toggler').click(); | |
| 71 | + | |
| 72 | + $("#date").datetimepicker({ | |
| 73 | + format : 'YYYY-MM-DD', | |
| 74 | + locale : 'zh-cn' | |
| 75 | + }); | |
| 76 | + | |
| 77 | + $('#line').select2({ | |
| 78 | + ajax: { | |
| 79 | + url: '/realSchedule/findLine', | |
| 80 | + type: 'post', | |
| 81 | + dataType: 'json', | |
| 82 | + delay: 150, | |
| 83 | + data: function(params){ | |
| 84 | + return{line: params.term}; | |
| 85 | + }, | |
| 86 | + processResults: function (data) { | |
| 87 | + return { | |
| 88 | + results: data | |
| 89 | + }; | |
| 90 | + }, | |
| 91 | + cache: true | |
| 92 | + }, | |
| 93 | + templateResult: function(repo){ | |
| 94 | + if (repo.loading) return repo.text; | |
| 95 | + var h = '<span>'+repo.text+'</span>'; | |
| 96 | + return h; | |
| 97 | + }, | |
| 98 | + escapeMarkup: function (markup) { return markup; }, | |
| 99 | + minimumInputLength: 1, | |
| 100 | + templateSelection: function(repo){ | |
| 101 | + return repo.text; | |
| 102 | + }, | |
| 103 | + language: { | |
| 104 | + noResults: function(){ | |
| 105 | + return '<span style="color:red;font-size: 12px;">没有搜索到线路!</span>'; | |
| 106 | + }, | |
| 107 | + inputTooShort : function(e) { | |
| 108 | + return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> 输入线路搜索线路</span>'; | |
| 109 | + }, | |
| 110 | + searching : function() { | |
| 111 | + return '<span style="color:gray;font-size: 12px;"> 正在搜索线路...</span>'; | |
| 112 | + } | |
| 113 | + } | |
| 114 | + }); | |
| 115 | + | |
| 116 | + | |
| 117 | + $("#query").on("click",function(){ | |
| 118 | + var line = $("#line").val(); | |
| 119 | + var date = $("#date").val(); | |
| 120 | + $post('/mcy_forms/linepasswengerflow',{line:line,date:date},function(result){ | |
| 121 | + $.each(result, function(i, obj) { | |
| 122 | + obj.requestType = reqCodeMap[obj.requestType]; | |
| 123 | + }); | |
| 124 | + // 把数据填充到模版中 | |
| 125 | + var tbodyHtml = template('list_linepasswengerflow',{list:result}); | |
| 126 | + // 把渲染好的模版html文本追加到表格中 | |
| 127 | + $('#forms tbody').html(tbodyHtml); | |
| 128 | + }); | |
| 129 | + }); | |
| 130 | + }); | |
| 131 | +</script> | |
| 132 | +<script type="text/html" id="list_linepasswengerflow"> | |
| 133 | + {{each list as obj i}} | |
| 134 | + <tr> | |
| 135 | + <td>{{i+1}}</td> | |
| 136 | + <td>{{obj.stationName}}</td> | |
| 137 | + <td> </td> | |
| 138 | + <td> </td> | |
| 139 | + </tr> | |
| 140 | + {{/each}} | |
| 141 | + {{if list.length == 0}} | |
| 142 | + <tr> | |
| 143 | + <td colspan="6"><h6 class="muted">没有找到相关数据</h6></td> | |
| 144 | + </tr> | |
| 145 | + {{/if}} | |
| 146 | +</script> | |
| 0 | 147 | \ No newline at end of file | ... | ... |
src/main/resources/static/pages/forms/statement/operationservice.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 | + text-align: center; } | |
| 15 | + | |
| 16 | + .table > tbody + tbody { | |
| 17 | + border-top: 1px solid; } | |
| 18 | +</style> | |
| 19 | + | |
| 20 | +<div class="page-head"> | |
| 21 | + <div class="page-title"> | |
| 22 | + <h1>运营服务阶段报表</h1> | |
| 23 | + </div> | |
| 24 | +</div> | |
| 25 | + | |
| 26 | +<div class="row"> | |
| 27 | + <div class="col-md-12"> | |
| 28 | + <div class="portlet light porttlet-fit bordered"> | |
| 29 | + <div class="portlet-title"> | |
| 30 | + <form class="form-inline" action=""> | |
| 31 | + <!-- <div style="display: inline-block;"> | |
| 32 | + <span class="item-label" style="width: 120px;">公司: </span> | |
| 33 | + <select class="form-control"> | |
| 34 | + <option value="normal">请选择</option> | |
| 35 | + <option value="22">金高公司</option> | |
| 36 | + <option value="05">杨高公司</option> | |
| 37 | + <option value="26">南汇公司</option> | |
| 38 | + <option value="55">上南公司</option> | |
| 39 | + <option value="77">闵行公司</option> | |
| 40 | + </select> | |
| 41 | + <select class="form-control"> | |
| 42 | + <option value="22">金高公司</option> | |
| 43 | + <option value="05">杨高公司</option> | |
| 44 | + <option value="26">南汇公司</option> | |
| 45 | + <option value="55">上南公司</option> | |
| 46 | + <option value="77">闵行公司</option> | |
| 47 | + </select> | |
| 48 | + </div> --> | |
| 49 | + <div style="display: inline-block;"> | |
| 50 | + <span class="item-label" style="width: 80px;">线路: </span> | |
| 51 | + <select class="form-control" name="line" id="line" style="width: 136px;"></select> | |
| 52 | + </div> | |
| 53 | + <div style="display: inline-block;margin-left: 15px;"> | |
| 54 | + <span class="item-label" style="width: 80px;">开始时间: </span> | |
| 55 | + <input class="form-control" type="text" id="startDate" style="width: 120px;"/> | |
| 56 | + </div> | |
| 57 | + <div style="display: inline-block;margin-left: 15px;"> | |
| 58 | + <span class="item-label" style="width: 80px;">结束时间: </span> | |
| 59 | + <input class="form-control" type="text" id="endDate" style="width: 120px;"/> | |
| 60 | + </div> | |
| 61 | + <div style="display: inline-block;margin-left: 15px"> | |
| 62 | + <span class="item-label" style="width: 150px;">统计: </span> | |
| 63 | + </div> | |
| 64 | + <div class="form-group"> | |
| 65 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | |
| 66 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | |
| 67 | + </div> | |
| 68 | + </form> | |
| 69 | + </div> | |
| 70 | + <div class="portlet-body"> | |
| 71 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | |
| 72 | + <table class="table table-bordered table-hover table-checkable" id="forms"> | |
| 73 | + <thead> | |
| 74 | + <tr> | |
| 75 | + <th>序号</th> | |
| 76 | + <th>线路名称</th> | |
| 77 | + <th>加注量</th> | |
| 78 | + <th>消耗量</th> | |
| 79 | + <th>行驶公里(含空放里程)</th> | |
| 80 | + <th>空驶里程</th> | |
| 81 | + <th>实际班次(包含空放把班次)</th> | |
| 82 | + </tr> | |
| 83 | + </thead> | |
| 84 | + <tbody> | |
| 85 | + | |
| 86 | + </tbody> | |
| 87 | + </table> | |
| 88 | + </div> | |
| 89 | + </div> | |
| 90 | + </div> | |
| 91 | + </div> | |
| 92 | +</div> | |
| 93 | + | |
| 94 | +<script> | |
| 95 | + $(function(){ | |
| 96 | + // 关闭左侧栏 | |
| 97 | + if (!$('body').hasClass('page-sidebar-closed')) | |
| 98 | + $('.menu-toggler.sidebar-toggler').click(); | |
| 99 | + | |
| 100 | + $("#startDate,#endDate").datetimepicker({ | |
| 101 | + format : 'YYYY-MM-DD', | |
| 102 | + locale : 'zh-cn' | |
| 103 | + }); | |
| 104 | + | |
| 105 | + $('#line').select2({ | |
| 106 | + ajax: { | |
| 107 | + url: '/realSchedule/findLine', | |
| 108 | + type: 'post', | |
| 109 | + dataType: 'json', | |
| 110 | + delay: 150, | |
| 111 | + data: function(params){ | |
| 112 | + return{line: params.term}; | |
| 113 | + }, | |
| 114 | + processResults: function (data) { | |
| 115 | + return { | |
| 116 | + results: data | |
| 117 | + }; | |
| 118 | + }, | |
| 119 | + cache: true | |
| 120 | + }, | |
| 121 | + templateResult: function(repo){ | |
| 122 | + if (repo.loading) return repo.text; | |
| 123 | + var h = '<span>'+repo.text+'</span>'; | |
| 124 | + return h; | |
| 125 | + }, | |
| 126 | + escapeMarkup: function (markup) { return markup; }, | |
| 127 | + minimumInputLength: 1, | |
| 128 | + templateSelection: function(repo){ | |
| 129 | + return repo.text; | |
| 130 | + }, | |
| 131 | + language: { | |
| 132 | + noResults: function(){ | |
| 133 | + return '<span style="color:red;font-size: 12px;">没有搜索到线路!</span>'; | |
| 134 | + }, | |
| 135 | + inputTooShort : function(e) { | |
| 136 | + return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> 输入线路搜索线路</span>'; | |
| 137 | + }, | |
| 138 | + searching : function() { | |
| 139 | + return '<span style="color:gray;font-size: 12px;"> 正在搜索线路...</span>'; | |
| 140 | + } | |
| 141 | + } | |
| 142 | + }); | |
| 143 | + $('#lpName').select2({ | |
| 144 | + ajax: { | |
| 145 | + url: '/realSchedule/findLpName', | |
| 146 | + type: 'post', | |
| 147 | + dataType: 'json', | |
| 148 | + delay: 150, | |
| 149 | + data: function(params){ | |
| 150 | + return{lpName: 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 | + return h; | |
| 163 | + }, | |
| 164 | + escapeMarkup: function (markup) { return markup; }, | |
| 165 | + minimumInputLength: 1, | |
| 166 | + templateSelection: function(repo){ | |
| 167 | + return repo.text; | |
| 168 | + }, | |
| 169 | + language: { | |
| 170 | + noResults: function(){ | |
| 171 | + return '<span style="color:red;font-size: 12px;">没有搜索到路牌!</span>'; | |
| 172 | + }, | |
| 173 | + inputTooShort : function(e) { | |
| 174 | + return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> 输入路牌搜索路牌</span>'; | |
| 175 | + }, | |
| 176 | + searching : function() { | |
| 177 | + return '<span style="color:gray;font-size: 12px;"> 正在搜索路牌...</span>'; | |
| 178 | + } | |
| 179 | + } | |
| 180 | + }); | |
| 181 | + $("#query").on("click",function(){ | |
| 182 | + var line = $("#line").val(); | |
| 183 | + var startDate = $("#startDate").val(); | |
| 184 | + var endDate = $("#endDate").val(); | |
| 185 | + var lpName = $("#lpName").val(); | |
| 186 | + $post("/mcy_forms/operationservice",{line:line,startDate:startDate,endDate:endDate ,lpName:lpName},function(result){ | |
| 187 | + $("#sDate").text(startDate); | |
| 188 | + $("#eDate").text(endDate); | |
| 189 | + var temp = {}; | |
| 190 | + var today_account = 0; | |
| 191 | + temp["line"] = $("#line").text(); | |
| 192 | + $.each(result, function(i, obj) { | |
| 193 | + if(moment(obj.schedule_date_str).format("YYYY-MM-DD") == moment(obj.startDate).format("YYYY-MM-DD")){ | |
| 194 | + today_account++; | |
| 195 | + } | |
| 196 | + obj.updateDate = moment(obj.startDate).format("YYYY-MM-DD HH:mm:ss"); | |
| 197 | + }); | |
| 198 | + console.log(result); | |
| 199 | + var operationservice = template('operationservice',{list:result}); | |
| 200 | + // 把渲染好的模版html文本追加到表格中 | |
| 201 | + $('#forms tbody').html(operationservice); | |
| 202 | + | |
| 203 | + }); | |
| 204 | + }); | |
| 205 | + }); | |
| 206 | +</script> | |
| 207 | +<script type="text/html" id="operationservice"> | |
| 208 | + {{each list as obj i}} | |
| 209 | + <tr> | |
| 210 | + <td>{{i+1}}</td> | |
| 211 | + <td>{{obj.xlName}}</td> | |
| 212 | + <td>{{obj.jzl}}</td> | |
| 213 | + <td>{{obj.xhl}}</td> | |
| 214 | + <td>{{obj.xsgl}}</td> | |
| 215 | + <td>{{obj.emptMileage}}</td> | |
| 216 | + <td>{{obj.sjbc}}</td> | |
| 217 | + </tr> | |
| 218 | + {{/each}} | |
| 219 | + {{if list.length == 0}} | |
| 220 | + <tr> | |
| 221 | + <td colspan="6"><h6 class="muted">没有找到相关数据</h6></td> | |
| 222 | + </tr> | |
| 223 | + {{/if}} | |
| 224 | +</script> | |
| 225 | +</script> | |
| 0 | 226 | \ No newline at end of file | ... | ... |
src/main/resources/static/pages/forms/statement/shifday.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 | + text-align: center; } | |
| 15 | + | |
| 16 | + .table > tbody + tbody { | |
| 17 | + border-top: 1px solid; } | |
| 18 | +</style> | |
| 19 | + | |
| 20 | +<div class="page-head"> | |
| 21 | + <div class="page-title"> | |
| 22 | + <h1>班次车辆人员日报表</h1> | |
| 23 | + </div> | |
| 24 | +</div> | |
| 25 | + | |
| 26 | +<div class="row"> | |
| 27 | + <div class="col-md-12"> | |
| 28 | + <div class="portlet light porttlet-fit bordered"> | |
| 29 | + <div class="portlet-title"> | |
| 30 | + <form class="form-inline" action="" method="post"> | |
| 31 | + <div style="display: inline-block;"> | |
| 32 | + <span class="item-label" style="width: 80px;">线路: </span> | |
| 33 | + <select class="form-control" name="line" id="line" style="width: 180px;"></select> | |
| 34 | + </div> | |
| 35 | + <div style="display: inline-block;margin-left: 15px;"> | |
| 36 | + <span class="item-label" style="width: 80px;">时间: </span> | |
| 37 | + <input class="form-control" type="text" id="date" style="width: 180px;"/> | |
| 38 | + </div> | |
| 39 | + <div class="form-group"> | |
| 40 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | |
| 41 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | |
| 42 | + </div> | |
| 43 | + </form> | |
| 44 | + </div> | |
| 45 | + <div> | |
| 46 | + <h3>数据显示</h3> | |
| 47 | + <a>驾驶员 售票员 路牌</a> | |
| 48 | + <a>售票员 路牌 车辆</a> | |
| 49 | + <a>车辆 人员 车辆</a> | |
| 50 | + <a>驾驶员</a> | |
| 51 | + <a>售票员</a> | |
| 52 | + <a>路牌</a> | |
| 53 | + <a>车辆</a> | |
| 54 | + </div> | |
| 55 | + <div class="portlet-body" style="text-align:center"> | |
| 56 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | |
| 57 | + <table class="table table-bordered table-hover table-checkable" id="forms"> | |
| 58 | + <thead> | |
| 59 | + <tr> | |
| 60 | + <th>驾驶员</th> | |
| 61 | + <th>售票员</th> | |
| 62 | + <th>路牌</th> | |
| 63 | + <th>车辆</th> | |
| 64 | + <th>计划里程</th> | |
| 65 | + <th>实际计划里程</th> | |
| 66 | + <th>运营</th> | |
| 67 | + <th>空驶里程</th> | |
| 68 | + <th>抽减里程</th> | |
| 69 | + <th>增加里程</th> | |
| 70 | + <th>总里程</th> | |
| 71 | + <th>计划班次</th> | |
| 72 | + <th>实际计划班次</th> | |
| 73 | + <th>抽减班次</th> | |
| 74 | + <th>增加班次</th> | |
| 75 | + <th>实际班次</th> | |
| 76 | + </tr> | |
| 77 | + </thead> | |
| 78 | + <tbody> | |
| 79 | + | |
| 80 | + </tbody> | |
| 81 | + </table> | |
| 82 | + </div> | |
| 83 | + </div> | |
| 84 | + </div> | |
| 85 | + </div> | |
| 86 | +</div> | |
| 87 | + | |
| 88 | +<script> | |
| 89 | +$(function(){ | |
| 90 | + var reqCodeMap = {"0xA1": '请求恢复运营', "0xA2": '申请调档', "0xA3": '出场请求', "0xA5": '进场请求', "0xA7": '加油请求', "0x50": '车辆故障', "0x70": '路阻报告', "0x60": '事故报告', "0x11": '扣证纠纷', "0x12" : '报警'}; | |
| 91 | + // 关闭左侧栏 | |
| 92 | + if (!$('body').hasClass('page-sidebar-closed')) | |
| 93 | + $('.menu-toggler.sidebar-toggler').click(); | |
| 94 | + | |
| 95 | + $("#date").datetimepicker({ | |
| 96 | + format : 'YYYY-MM-DD', | |
| 97 | + locale : 'zh-cn' | |
| 98 | + }); | |
| 99 | + | |
| 100 | + $('#line').select2({ | |
| 101 | + ajax: { | |
| 102 | + url: '/realSchedule/findLine', | |
| 103 | + type: 'post', | |
| 104 | + dataType: 'json', | |
| 105 | + delay: 150, | |
| 106 | + data: function(params){ | |
| 107 | + return{line: params.term}; | |
| 108 | + }, | |
| 109 | + processResults: function (data) { | |
| 110 | + return { | |
| 111 | + results: data | |
| 112 | + }; | |
| 113 | + }, | |
| 114 | + cache: true | |
| 115 | + }, | |
| 116 | + templateResult: function(repo){ | |
| 117 | + if (repo.loading) return repo.text; | |
| 118 | + var h = '<span>'+repo.text+'</span>'; | |
| 119 | + return h; | |
| 120 | + }, | |
| 121 | + escapeMarkup: function (markup) { return markup; }, | |
| 122 | + minimumInputLength: 1, | |
| 123 | + templateSelection: function(repo){ | |
| 124 | + return repo.text; | |
| 125 | + }, | |
| 126 | + language: { | |
| 127 | + noResults: function(){ | |
| 128 | + return '<span style="color:red;font-size: 12px;">没有搜索到线路!</span>'; | |
| 129 | + }, | |
| 130 | + inputTooShort : function(e) { | |
| 131 | + return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> 输入线路搜索线路</span>'; | |
| 132 | + }, | |
| 133 | + searching : function() { | |
| 134 | + return '<span style="color:gray;font-size: 12px;"> 正在搜索线路...</span>'; | |
| 135 | + } | |
| 136 | + } | |
| 137 | + }); | |
| 138 | + | |
| 139 | + $("#query").on("click",function(){ | |
| 140 | + var line = $("#line").val(); | |
| 141 | + var date = $("#date").val(); | |
| 142 | + $post('/mcy_forms/shifday',{line:line,date:date},function(result){ | |
| 143 | + $.each(result, function(i, obj) { | |
| 144 | + obj.requestType = reqCodeMap[obj.requestType]; | |
| 145 | + }); | |
| 146 | + // 把数据填充到模版中 | |
| 147 | + var tbodyHtml = template('shifday',{list:result}); | |
| 148 | + // 把渲染好的模版html文本追加到表格中 | |
| 149 | + $('#forms tbody').html(tbodyHtml); | |
| 150 | + }); | |
| 151 | + }); | |
| 152 | +}); | |
| 153 | +</script> | |
| 154 | +<script type="text/html" id="shifday"> | |
| 155 | + {{each list as obj i}} | |
| 156 | + <tr> | |
| 157 | + <td>{{obj.jName}}</td> | |
| 158 | + <td>{{obj.sName}}</td> | |
| 159 | + <td>{{obj.lpName}}</td> | |
| 160 | + <td>{{obj.carPlate}}</td> | |
| 161 | + | |
| 162 | + <td>{{obj.jhlc}}</td> | |
| 163 | + <td>{{obj.sjjhlc}}</td> | |
| 164 | + <td>{{obj.yygl}}</td> | |
| 165 | + <td>{{obj.emptMileage}}</td> | |
| 166 | + <td>{{obj.remMileage}}</td> | |
| 167 | + <td>{{obj.addMileage}}</td> | |
| 168 | + <td>{{obj.totalm}}</td> | |
| 169 | + <td>{{obj.jhbc}}</td> | |
| 170 | + <td>{{obj.sjjhbc}}</td> | |
| 171 | + <td>{{obj.cjbc}}</td> | |
| 172 | + <td>{{obj.ljbc}}</td> | |
| 173 | + <td>{{obj.sjbc}}</td> | |
| 174 | + </tr> | |
| 175 | + {{/each}} | |
| 176 | + {{if list.length == 0}} | |
| 177 | + <tr> | |
| 178 | + <td colspan="16"><h6 class="muted">没有找到相关数据</h6></td> | |
| 179 | + </tr> | |
| 180 | + {{/if}} | |
| 181 | +</script> | |
| 182 | +</script> | |
| 0 | 183 | \ No newline at end of file | ... | ... |
src/main/resources/static/pages/forms/statement/shiftuehiclemanth.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 | + text-align: center; } | |
| 15 | + | |
| 16 | + .table > tbody + tbody { | |
| 17 | + border-top: 1px solid; } | |
| 18 | +</style> | |
| 19 | + | |
| 20 | +<div class="page-head"> | |
| 21 | + <div class="page-title"> | |
| 22 | + <h1>班次车辆人员月报表</h1> | |
| 23 | + </div> | |
| 24 | +</div> | |
| 25 | + | |
| 26 | +<div class="row"> | |
| 27 | + <div class="col-md-12"> | |
| 28 | + <div class="portlet light porttlet-fit bordered"> | |
| 29 | + <div class="portlet-title"> | |
| 30 | + <form class="form-inline" action=""> | |
| 31 | + <div style="display: inline-block;"> | |
| 32 | + <span class="item-label" style="width: 80px;">线路: </span> | |
| 33 | + <select class="form-control" name="line" id="line" style="width: 136px;"></select> | |
| 34 | + </div> | |
| 35 | + <div style="display: inline-block;margin-left: 15px;"> | |
| 36 | + <span class="item-label" style="width: 80px;">开始时间: </span> | |
| 37 | + <input class="form-control" type="text" id="startDate" style="width: 120px;"/> | |
| 38 | + </div> | |
| 39 | + <div style="display: inline-block;margin-left: 15px;"> | |
| 40 | + <span class="item-label" style="width: 80px;">结束时间: </span> | |
| 41 | + <input class="form-control" type="text" id="endDate" style="width: 120px;"/> | |
| 42 | + </div> | |
| 43 | + <div style="display: inline-block;margin-left: 15px"> | |
| 44 | + <span class="item-label" style="width: 150px;">统计: </span> | |
| 45 | + </div> | |
| 46 | + <div class="form-group"> | |
| 47 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | |
| 48 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | |
| 49 | + </div> | |
| 50 | + </form> | |
| 51 | + </div> | |
| 52 | + <div class="portlet-body"> | |
| 53 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | |
| 54 | + <table class="table table-bordered table-hover table-checkable" id="forms"> | |
| 55 | + <thead> | |
| 56 | + <tr> | |
| 57 | + <th>序号</th> | |
| 58 | + <th>驾驶员</th> | |
| 59 | + <th>运营里程</th> | |
| 60 | + <th>空驶里程</th> | |
| 61 | + <th>抽减里程</th> | |
| 62 | + <th>增加里程</th> | |
| 63 | + <th>总里程</th> | |
| 64 | + <th>抽减班次</th> | |
| 65 | + <th>增加班次</th> | |
| 66 | + <th>实际班次</th> | |
| 67 | + </tr> | |
| 68 | + </thead> | |
| 69 | + <tbody> | |
| 70 | + | |
| 71 | + </tbody> | |
| 72 | + </table> | |
| 73 | + </div> | |
| 74 | + </div> | |
| 75 | + </div> | |
| 76 | + </div> | |
| 77 | +</div> | |
| 78 | + | |
| 79 | +<script> | |
| 80 | + $(function(){ | |
| 81 | + // 关闭左侧栏 | |
| 82 | + if (!$('body').hasClass('page-sidebar-closed')) | |
| 83 | + $('.menu-toggler.sidebar-toggler').click(); | |
| 84 | + | |
| 85 | + $("#startDate,#endDate").datetimepicker({ | |
| 86 | + format : 'YYYY-MM-DD', | |
| 87 | + locale : 'zh-cn' | |
| 88 | + }); | |
| 89 | + | |
| 90 | + $('#line').select2({ | |
| 91 | + ajax: { | |
| 92 | + url: '/realSchedule/findLine', | |
| 93 | + type: 'post', | |
| 94 | + dataType: 'json', | |
| 95 | + delay: 150, | |
| 96 | + data: function(params){ | |
| 97 | + return{line: params.term}; | |
| 98 | + }, | |
| 99 | + processResults: function (data) { | |
| 100 | + return { | |
| 101 | + results: data | |
| 102 | + }; | |
| 103 | + }, | |
| 104 | + cache: true | |
| 105 | + }, | |
| 106 | + templateResult: function(repo){ | |
| 107 | + if (repo.loading) return repo.text; | |
| 108 | + var h = '<span>'+repo.text+'</span>'; | |
| 109 | + return h; | |
| 110 | + }, | |
| 111 | + escapeMarkup: function (markup) { return markup; }, | |
| 112 | + minimumInputLength: 1, | |
| 113 | + templateSelection: function(repo){ | |
| 114 | + return repo.text; | |
| 115 | + }, | |
| 116 | + language: { | |
| 117 | + noResults: function(){ | |
| 118 | + return '<span style="color:red;font-size: 12px;">没有搜索到线路!</span>'; | |
| 119 | + }, | |
| 120 | + inputTooShort : function(e) { | |
| 121 | + return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> 输入线路搜索线路</span>'; | |
| 122 | + }, | |
| 123 | + searching : function() { | |
| 124 | + return '<span style="color:gray;font-size: 12px;"> 正在搜索线路...</span>'; | |
| 125 | + } | |
| 126 | + } | |
| 127 | + }); | |
| 128 | + $('#lpName').select2({ | |
| 129 | + ajax: { | |
| 130 | + url: '/realSchedule/findLpName', | |
| 131 | + type: 'post', | |
| 132 | + dataType: 'json', | |
| 133 | + delay: 150, | |
| 134 | + data: function(params){ | |
| 135 | + return{lpName: params.term}; | |
| 136 | + }, | |
| 137 | + processResults: function (data) { | |
| 138 | + return { | |
| 139 | + results: data | |
| 140 | + }; | |
| 141 | + }, | |
| 142 | + cache: true | |
| 143 | + }, | |
| 144 | + templateResult: function(repo){ | |
| 145 | + if (repo.loading) return repo.text; | |
| 146 | + var h = '<span>'+repo.text+'</span>'; | |
| 147 | + return h; | |
| 148 | + }, | |
| 149 | + escapeMarkup: function (markup) { return markup; }, | |
| 150 | + minimumInputLength: 1, | |
| 151 | + templateSelection: function(repo){ | |
| 152 | + return repo.text; | |
| 153 | + }, | |
| 154 | + language: { | |
| 155 | + noResults: function(){ | |
| 156 | + return '<span style="color:red;font-size: 12px;">没有搜索到路牌!</span>'; | |
| 157 | + }, | |
| 158 | + inputTooShort : function(e) { | |
| 159 | + return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> 输入路牌搜索路牌</span>'; | |
| 160 | + }, | |
| 161 | + searching : function() { | |
| 162 | + return '<span style="color:gray;font-size: 12px;"> 正在搜索路牌...</span>'; | |
| 163 | + } | |
| 164 | + } | |
| 165 | + }); | |
| 166 | + $("#query").on("click",function(){ | |
| 167 | + var line = $("#line").val(); | |
| 168 | + var startDate = $("#startDate").val(); | |
| 169 | + var endDate = $("#endDate").val(); | |
| 170 | + var lpName = $("#lpName").val(); | |
| 171 | + $post("/mcy_forms/shiftuehiclemanth",{line:line,startDate:startDate,endDate:endDate ,lpName:lpName},function(result){ | |
| 172 | + $("#sDate").text(startDate); | |
| 173 | + $("#eDate").text(endDate); | |
| 174 | + var temp = {}; | |
| 175 | + var today_account = 0; | |
| 176 | + temp["line"] = $("#line").text(); | |
| 177 | + $.each(result, function(i, obj) { | |
| 178 | + if(moment(obj.schedule_date_str).format("YYYY-MM-DD") == moment(obj.startDate).format("YYYY-MM-DD")){ | |
| 179 | + today_account++; | |
| 180 | + } | |
| 181 | + obj.updateDate = moment(obj.startDate).format("YYYY-MM-DD HH:mm:ss"); | |
| 182 | + }); | |
| 183 | + console.log(result); | |
| 184 | + var list_shiftuehiclemanth = template('list_shiftuehiclemanth',{list:result}); | |
| 185 | + // 把渲染好的模版html文本追加到表格中 | |
| 186 | + $('#forms tbody').html(list_shiftuehiclemanth); | |
| 187 | + | |
| 188 | + }); | |
| 189 | + }); | |
| 190 | + }); | |
| 191 | +</script> | |
| 192 | +<script type="text/html" id="list_shiftuehiclemanth"> | |
| 193 | + {{each list as obj i}} | |
| 194 | + <tr> | |
| 195 | + <td>{{i+1}}</td> | |
| 196 | + <td>{{obj.jName}}</td> | |
| 197 | + <td>{{obj.jhlc}}</td> | |
| 198 | + <td>{{obj.emptMileage}}</td> | |
| 199 | + <td>{{obj.remMileage}}</td> | |
| 200 | + <td>{{obj.addMileage}}</td> | |
| 201 | + <td>{{obj.totalm}}</td> | |
| 202 | + <td>{{obj.cjbc}}</td> | |
| 203 | + <td>{{obj.ljbc}}</td> | |
| 204 | + <td>{{obj.sjbc}}</td> | |
| 205 | + </tr> | |
| 206 | + {{/each}} | |
| 207 | + {{if list.length == 0}} | |
| 208 | + <tr> | |
| 209 | + <td colspan="10"><h6 class="muted">没有找到相关数据</h6></td> | |
| 210 | + </tr> | |
| 211 | + {{/if}} | |
| 212 | +</script> | |
| 213 | +</script> | |
| 0 | 214 | \ No newline at end of file | ... | ... |
src/main/resources/static/pages/forms/statement/singledata.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 | + text-align: center; } | |
| 15 | + | |
| 16 | + .table > tbody + tbody { | |
| 17 | + border-top: 1px solid; } | |
| 18 | +</style> | |
| 19 | + | |
| 20 | +<div class="page-head"> | |
| 21 | + <div class="page-title"> | |
| 22 | + <h1>路单数据</h1> | |
| 23 | + </div> | |
| 24 | +</div> | |
| 25 | + | |
| 26 | +<div class="row"> | |
| 27 | + <div class="col-md-12"> | |
| 28 | + <div class="portlet light porttlet-fit bordered"> | |
| 29 | + <div class="portlet-title"> | |
| 30 | + <form class="form-inline" action=""> | |
| 31 | + <div style="display: inline-block;"> | |
| 32 | + <span class="item-label" style="width: 80px;">线路: </span> | |
| 33 | + <select class="form-control" name="line" id="line" style="width: 136px;"></select> | |
| 34 | + </div> | |
| 35 | + <div style="display: inline-block;margin-left: 15px;"> | |
| 36 | + <span class="item-label" style="width: 80px;">开始时间: </span> | |
| 37 | + <input class="form-control" type="text" id="startDate" style="width: 120px;"/> | |
| 38 | + </div> | |
| 39 | + <div style="display: inline-block;margin-left: 15px;"> | |
| 40 | + <span class="item-label" style="width: 80px;">结束时间: </span> | |
| 41 | + <input class="form-control" type="text" id="endDate" style="width: 120px;"/> | |
| 42 | + </div> | |
| 43 | + <div style="display: inline-block;margin-left: 15px"> | |
| 44 | + <span class="item-label" style="width: 150px;">统计: </span> | |
| 45 | + </div> | |
| 46 | + <div class="form-group"> | |
| 47 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | |
| 48 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | |
| 49 | + </div> | |
| 50 | + </form> | |
| 51 | + </div> | |
| 52 | + <div class="portlet-body"> | |
| 53 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | |
| 54 | + <table class="table table-bordered table-hover table-checkable" id="forms"> | |
| 55 | + <thead> | |
| 56 | + <tr> | |
| 57 | + <th>序号</th> | |
| 58 | + <th>日期</th> | |
| 59 | + <th>所属公司</th> | |
| 60 | + <th>线路</th> | |
| 61 | + <th>车号</th> | |
| 62 | + <th>司机职号</th> | |
| 63 | + <th>司机姓名</th> | |
| 64 | + <th>售票员职号</th> | |
| 65 | + <th>售票员姓名</th> | |
| 66 | + <th>行驶里程(包括空放)</th> | |
| 67 | + <th>空驶里程</th> | |
| 68 | + <th>耗油量</th> | |
| 69 | + <th>加注量</th> | |
| 70 | + <th>非营业用油</th> | |
| 71 | + <th>计划公里</th> | |
| 72 | + </tr> | |
| 73 | + </thead> | |
| 74 | + <tbody> | |
| 75 | + | |
| 76 | + </tbody> | |
| 77 | + </table> | |
| 78 | + </div> | |
| 79 | + </div> | |
| 80 | + </div> | |
| 81 | + </div> | |
| 82 | +</div> | |
| 83 | + | |
| 84 | +<script> | |
| 85 | + $(function(){ | |
| 86 | + // 关闭左侧栏 | |
| 87 | + if (!$('body').hasClass('page-sidebar-closed')) | |
| 88 | + $('.menu-toggler.sidebar-toggler').click(); | |
| 89 | + | |
| 90 | + $("#startDate,#endDate").datetimepicker({ | |
| 91 | + format : 'YYYY-MM-DD', | |
| 92 | + locale : 'zh-cn' | |
| 93 | + }); | |
| 94 | + | |
| 95 | + $('#line').select2({ | |
| 96 | + ajax: { | |
| 97 | + url: '/realSchedule/findLine', | |
| 98 | + type: 'post', | |
| 99 | + dataType: 'json', | |
| 100 | + delay: 150, | |
| 101 | + data: function(params){ | |
| 102 | + return{line: params.term}; | |
| 103 | + }, | |
| 104 | + processResults: function (data) { | |
| 105 | + return { | |
| 106 | + results: data | |
| 107 | + }; | |
| 108 | + }, | |
| 109 | + cache: true | |
| 110 | + }, | |
| 111 | + templateResult: function(repo){ | |
| 112 | + if (repo.loading) return repo.text; | |
| 113 | + var h = '<span>'+repo.text+'</span>'; | |
| 114 | + return h; | |
| 115 | + }, | |
| 116 | + escapeMarkup: function (markup) { return markup; }, | |
| 117 | + minimumInputLength: 1, | |
| 118 | + templateSelection: function(repo){ | |
| 119 | + return repo.text; | |
| 120 | + }, | |
| 121 | + language: { | |
| 122 | + noResults: function(){ | |
| 123 | + return '<span style="color:red;font-size: 12px;">没有搜索到线路!</span>'; | |
| 124 | + }, | |
| 125 | + inputTooShort : function(e) { | |
| 126 | + return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> 输入线路搜索线路</span>'; | |
| 127 | + }, | |
| 128 | + searching : function() { | |
| 129 | + return '<span style="color:gray;font-size: 12px;"> 正在搜索线路...</span>'; | |
| 130 | + } | |
| 131 | + } | |
| 132 | + }); | |
| 133 | + $('#lpName').select2({ | |
| 134 | + ajax: { | |
| 135 | + url: '/realSchedule/findLpName', | |
| 136 | + type: 'post', | |
| 137 | + dataType: 'json', | |
| 138 | + delay: 150, | |
| 139 | + data: function(params){ | |
| 140 | + return{lpName: params.term}; | |
| 141 | + }, | |
| 142 | + processResults: function (data) { | |
| 143 | + return { | |
| 144 | + results: data | |
| 145 | + }; | |
| 146 | + }, | |
| 147 | + cache: true | |
| 148 | + }, | |
| 149 | + templateResult: function(repo){ | |
| 150 | + if (repo.loading) return repo.text; | |
| 151 | + var h = '<span>'+repo.text+'</span>'; | |
| 152 | + return h; | |
| 153 | + }, | |
| 154 | + escapeMarkup: function (markup) { return markup; }, | |
| 155 | + minimumInputLength: 1, | |
| 156 | + templateSelection: function(repo){ | |
| 157 | + return repo.text; | |
| 158 | + }, | |
| 159 | + language: { | |
| 160 | + noResults: function(){ | |
| 161 | + return '<span style="color:red;font-size: 12px;">没有搜索到路牌!</span>'; | |
| 162 | + }, | |
| 163 | + inputTooShort : function(e) { | |
| 164 | + return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> 输入路牌搜索路牌</span>'; | |
| 165 | + }, | |
| 166 | + searching : function() { | |
| 167 | + return '<span style="color:gray;font-size: 12px;"> 正在搜索路牌...</span>'; | |
| 168 | + } | |
| 169 | + } | |
| 170 | + }); | |
| 171 | + $("#query").on("click",function(){ | |
| 172 | + var line = $("#line").val(); | |
| 173 | + var startDate = $("#startDate").val(); | |
| 174 | + var endDate = $("#endDate").val(); | |
| 175 | + var lpName = $("#lpName").val(); | |
| 176 | + $post("/mcy_forms/singledata",{line:line,startDate:startDate,endDate:endDate ,lpName:lpName},function(result){ | |
| 177 | + $("#sDate").text(startDate); | |
| 178 | + $("#eDate").text(endDate); | |
| 179 | + var temp = {}; | |
| 180 | + var today_account = 0; | |
| 181 | + temp["line"] = $("#line").text(); | |
| 182 | + $.each(result, function(i, obj) { | |
| 183 | + if(moment(obj.schedule_date_str).format("YYYY-MM-DD") == moment(obj.startDate).format("YYYY-MM-DD")){ | |
| 184 | + today_account++; | |
| 185 | + } | |
| 186 | + obj.updateDate = moment(obj.startDate).format("YYYY-MM-DD HH:mm:ss"); | |
| 187 | + }); | |
| 188 | + console.log(result); | |
| 189 | + var singledata = template('singledata',{list:result}); | |
| 190 | + // 把渲染好的模版html文本追加到表格中 | |
| 191 | + $('#forms tbody').html(singledata); | |
| 192 | + | |
| 193 | + }); | |
| 194 | + }); | |
| 195 | + }); | |
| 196 | +</script> | |
| 197 | +<script type="text/html" id="singledata"> | |
| 198 | + {{each list as obj i}} | |
| 199 | + <tr> | |
| 200 | + <td>{{i+1}}</td> | |
| 201 | + <td>{{obj.rQ}}</td> | |
| 202 | + <td>{{obj.gS}}</td> | |
| 203 | + <td>{{obj.xL}}</td> | |
| 204 | + <td>{{obj.clzbh}}</td> | |
| 205 | + <td>{{obj.jsy}}</td> | |
| 206 | + <td>{{obj.jName}}</td> | |
| 207 | + <td>{{obj.sgh}}</td> | |
| 208 | + <td>{{obj.sName}}</td> | |
| 209 | + <td>{{obj.jhlc}}</td> | |
| 210 | + <td>{{obj.emptMileage}}</td> | |
| 211 | + <td>{{obj.hyl}}</td> | |
| 212 | + <td>{{obj.jzl}}</td> | |
| 213 | + <td> </td> | |
| 214 | + <td>{{obj.jhjl}}</td> | |
| 215 | + </tr> | |
| 216 | + {{/each}} | |
| 217 | + {{if list.length == 0}} | |
| 218 | + <tr> | |
| 219 | + <td colspan="16"><h6 class="muted">没有找到相关数据</h6></td> | |
| 220 | + </tr> | |
| 221 | + {{/if}} | |
| 222 | +</script> | |
| 223 | +</script> | |
| 0 | 224 | \ No newline at end of file | ... | ... |
src/main/resources/static/pages/forms/statement/vehicleloading.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 | + text-align: center; } | |
| 15 | + | |
| 16 | + .table > tbody + tbody { | |
| 17 | + border-top: 1px solid; } | |
| 18 | +</style> | |
| 19 | + | |
| 20 | +<div class="page-head"> | |
| 21 | + <div class="page-title"> | |
| 22 | + <h1>车辆加注</h1> | |
| 23 | + </div> | |
| 24 | +</div> | |
| 25 | + | |
| 26 | +<div class="row"> | |
| 27 | + <div class="col-md-12"> | |
| 28 | + <div class="portlet light porttlet-fit bordered"> | |
| 29 | + <div class="portlet-title"> | |
| 30 | + <form class="form-inline" action="" method="post"> | |
| 31 | + <div style="display: inline-block;"> | |
| 32 | + <span class="item-label" style="width: 80px;">线路: </span> | |
| 33 | + <select class="form-control" name="line" id="line" style="width: 180px;"></select> | |
| 34 | + </div> | |
| 35 | + <div style="display: inline-block;margin-left: 15px;"> | |
| 36 | + <span class="item-label" style="width: 80px;">时间: </span> | |
| 37 | + <input class="form-control" type="text" id="date" style="width: 180px;"/> | |
| 38 | + </div> | |
| 39 | + <div class="form-group"> | |
| 40 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | |
| 41 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | |
| 42 | + </div> | |
| 43 | + </form> | |
| 44 | + </div> | |
| 45 | + <div class="portlet-body"> | |
| 46 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | |
| 47 | + <table class="table table-bordered table-hover table-checkable" id="forms" > | |
| 48 | + <thead> | |
| 49 | + <tr> | |
| 50 | + <th>序号</th> | |
| 51 | + <th>日期</th> | |
| 52 | + <th>所属公司</th> | |
| 53 | + <th>线路</th> | |
| 54 | + <th>车号</th> | |
| 55 | + <th>加注量</th> | |
| 56 | + <th>耗油量(不含非营业性用油)</th> | |
| 57 | + <th>尿素</th> | |
| 58 | + <th>实际公里(含空放公里)</th> | |
| 59 | + <th>非商业性用油</th> | |
| 60 | + <th>计划班次</th> | |
| 61 | + <th>实际班次</th> | |
| 62 | + </tr> | |
| 63 | + </thead> | |
| 64 | + <tbody> | |
| 65 | + | |
| 66 | + </tbody> | |
| 67 | + </table> | |
| 68 | + </div> | |
| 69 | + </div> | |
| 70 | + </div> | |
| 71 | + </div> | |
| 72 | +</div> | |
| 73 | +<script> | |
| 74 | + $(function(){ | |
| 75 | + // 关闭左侧栏 | |
| 76 | + if (!$('body').hasClass('page-sidebar-closed')) | |
| 77 | + $('.menu-toggler.sidebar-toggler').click(); | |
| 78 | + | |
| 79 | + | |
| 80 | + $("#date").datetimepicker({ | |
| 81 | + format : 'YYYY-MM-DD', | |
| 82 | + locale : 'zh-cn' | |
| 83 | + }); | |
| 84 | + | |
| 85 | + $('#line').select2({ | |
| 86 | + ajax: { | |
| 87 | + url: '/realSchedule/findLine', | |
| 88 | + type: 'post', | |
| 89 | + dataType: 'json', | |
| 90 | + delay: 150, | |
| 91 | + data: function(params){ | |
| 92 | + return{line: params.term}; | |
| 93 | + }, | |
| 94 | + processResults: function (data) { | |
| 95 | + return { | |
| 96 | + results: data | |
| 97 | + }; | |
| 98 | + }, | |
| 99 | + cache: true | |
| 100 | + }, | |
| 101 | + templateResult: function(repo){ | |
| 102 | + if (repo.loading) return repo.text; | |
| 103 | + var h = '<span>'+repo.text+'</span>'; | |
| 104 | + return h; | |
| 105 | + }, | |
| 106 | + escapeMarkup: function (markup) { return markup; }, | |
| 107 | + minimumInputLength: 1, | |
| 108 | + templateSelection: function(repo){ | |
| 109 | + return repo.text; | |
| 110 | + }, | |
| 111 | + language: { | |
| 112 | + noResults: function(){ | |
| 113 | + return '<span style="color:red;font-size: 12px;">没有搜索到线路!</span>'; | |
| 114 | + }, | |
| 115 | + inputTooShort : function(e) { | |
| 116 | + return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> 输入线路搜索线路</span>'; | |
| 117 | + }, | |
| 118 | + searching : function() { | |
| 119 | + return '<span style="color:gray;font-size: 12px;"> 正在搜索线路...</span>'; | |
| 120 | + } | |
| 121 | + } | |
| 122 | + }); | |
| 123 | + $('#lpName').select2({ | |
| 124 | + ajax: { | |
| 125 | + url: '/realSchedule/findLpName', | |
| 126 | + type: 'post', | |
| 127 | + dataType: 'json', | |
| 128 | + delay: 150, | |
| 129 | + data: function(params){ | |
| 130 | + return{lpName: params.term}; | |
| 131 | + }, | |
| 132 | + processResults: function (data) { | |
| 133 | + return { | |
| 134 | + results: data | |
| 135 | + }; | |
| 136 | + }, | |
| 137 | + cache: true | |
| 138 | + }, | |
| 139 | + templateResult: function(repo){ | |
| 140 | + if (repo.loading) return repo.text; | |
| 141 | + var h = '<span>'+repo.text+'</span>'; | |
| 142 | + return h; | |
| 143 | + }, | |
| 144 | + escapeMarkup: function (markup) { return markup; }, | |
| 145 | + minimumInputLength: 1, | |
| 146 | + templateSelection: function(repo){ | |
| 147 | + return repo.text; | |
| 148 | + }, | |
| 149 | + language: { | |
| 150 | + noResults: function(){ | |
| 151 | + return '<span style="color:red;font-size: 12px;">没有搜索到路牌!</span>'; | |
| 152 | + }, | |
| 153 | + inputTooShort : function(e) { | |
| 154 | + return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> 输入路牌搜索路牌</span>'; | |
| 155 | + }, | |
| 156 | + searching : function() { | |
| 157 | + return '<span style="color:gray;font-size: 12px;"> 正在搜索路牌...</span>'; | |
| 158 | + } | |
| 159 | + } | |
| 160 | + }); | |
| 161 | + $("#query").on("click",function(){ | |
| 162 | + var line = $("#line").val(); | |
| 163 | + var date = $("#date").val(); | |
| 164 | + $(".hidden").removeClass("hidden"); | |
| 165 | + $post("/mcy_forms/vehicleloading",{line:line,data:date},function(result){ | |
| 166 | + // 把数据填充到模版中 | |
| 167 | + var tbodyHtml = template('vehicleloading',{list:result}); | |
| 168 | + // 把渲染好的模版html文本追加到表格中 | |
| 169 | + $('#forms tbody').html(tbodyHtml); | |
| 170 | + }); | |
| 171 | + }); | |
| 172 | + }); | |
| 173 | +</script> | |
| 174 | +<script type="text/html" id="vehicleloading"> | |
| 175 | + {{each list as obj i}} | |
| 176 | + <tr> | |
| 177 | + <td>{{i+1}}</td> | |
| 178 | + <td>{{obj.rQ}}</td> | |
| 179 | + <td>{{obj.gS}}</td> | |
| 180 | + <td>{{obj.xL}}</td> | |
| 181 | + <td>{{obj.clzbh}}</td> | |
| 182 | + <td>{{obj.hyl}}</td> | |
| 183 | + <td>{{obj.jzl}}</td> | |
| 184 | + <td> </td> | |
| 185 | + <td>{{obj.jhlc}}</td> | |
| 186 | + <td> </td> | |
| 187 | + <td>{{obj.jhbc}}</td> | |
| 188 | + <td>{{obj.sjbc}}</td> | |
| 189 | + </tr> | |
| 190 | + {{/each}} | |
| 191 | + {{if list.length == 0}} | |
| 192 | + <tr> | |
| 193 | + <td colspan="12"><h6 class="muted">没有找到相关数据</h6></td> | |
| 194 | + </tr> | |
| 195 | + {{/if}} | |
| 196 | +</script> | ... | ... |
src/main/resources/static/pages/forms/statement/waybillday.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 | + text-align: center; } | |
| 15 | + | |
| 16 | + .table > tbody + tbody { | |
| 17 | + border-top: 1px solid; } | |
| 18 | +</style> | |
| 19 | + | |
| 20 | +<div class="page-head"> | |
| 21 | + <div class="page-title"> | |
| 22 | + <h1>行车路单日报表</h1> | |
| 23 | + </div> | |
| 24 | +</div> | |
| 25 | + | |
| 26 | +<div class="row"> | |
| 27 | + <div class="col-md-12"> | |
| 28 | + <div class="portlet light porttlet-fit bordered"> | |
| 29 | + <div class="portlet-title"> | |
| 30 | + <form class="form-inline" action="" method="post"> | |
| 31 | + <div style="display: inline-block;"> | |
| 32 | + <span class="item-label" style="width: 80px;">线路: </span> | |
| 33 | + <select class="form-control" name="line" id="line" style="width: 180px;"></select> | |
| 34 | + </div> | |
| 35 | + <div style="display: inline-block;margin-left: 15px;"> | |
| 36 | + <span class="item-label" style="width: 80px;">时间: </span> | |
| 37 | + <input class="form-control" type="text" id="date" style="width: 180px;"/> | |
| 38 | + </div> | |
| 39 | + <div class="form-group"> | |
| 40 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | |
| 41 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | |
| 42 | + </div> | |
| 43 | + </form> | |
| 44 | + </div> | |
| 45 | + <div class="portlet-body"> | |
| 46 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | |
| 47 | + <table class="table table-bordered table-hover table-checkable" id="forms" > | |
| 48 | + <thead> | |
| 49 | + <tr> | |
| 50 | + <th>车号</th> | |
| 51 | + <th>空驶公里</th> | |
| 52 | + <th>加注量</th> | |
| 53 | + <th>机油</th> | |
| 54 | + <th>油耗</th> | |
| 55 | + <th>驾驶员</th> | |
| 56 | + <th>里程</th> | |
| 57 | + <th>用油</th> | |
| 58 | + </tr> | |
| 59 | + </thead> | |
| 60 | + <tbody> | |
| 61 | + | |
| 62 | + </tbody> | |
| 63 | + </table> | |
| 64 | + </div> | |
| 65 | + </div> | |
| 66 | + </div> | |
| 67 | + </div> | |
| 68 | +</div> | |
| 69 | + | |
| 70 | +<script> | |
| 71 | + $(function(){ | |
| 72 | + var reqCodeMap = {"0xA1": '请求恢复运营', "0xA2": '申请调档', "0xA3": '出场请求', "0xA5": '进场请求', "0xA7": '加油请求', "0x50": '车辆故障', "0x70": '路阻报告', "0x60": '事故报告', "0x11": '扣证纠纷', "0x12" : '报警'}; | |
| 73 | + // 关闭左侧栏 | |
| 74 | + if (!$('body').hasClass('page-sidebar-closed')) | |
| 75 | + $('.menu-toggler.sidebar-toggler').click(); | |
| 76 | + | |
| 77 | + $("#date").datetimepicker({ | |
| 78 | + format : 'YYYY-MM-DD', | |
| 79 | + locale : 'zh-cn' | |
| 80 | + }); | |
| 81 | + | |
| 82 | + $('#line').select2({ | |
| 83 | + ajax: { | |
| 84 | + url: '/realSchedule/findLine', | |
| 85 | + type: 'post', | |
| 86 | + dataType: 'json', | |
| 87 | + delay: 150, | |
| 88 | + data: function(params){ | |
| 89 | + return{line: params.term}; | |
| 90 | + }, | |
| 91 | + processResults: function (data) { | |
| 92 | + return { | |
| 93 | + results: data | |
| 94 | + }; | |
| 95 | + }, | |
| 96 | + cache: true | |
| 97 | + }, | |
| 98 | + templateResult: function(repo){ | |
| 99 | + if (repo.loading) return repo.text; | |
| 100 | + var h = '<span>'+repo.text+'</span>'; | |
| 101 | + return h; | |
| 102 | + }, | |
| 103 | + escapeMarkup: function (markup) { return markup; }, | |
| 104 | + minimumInputLength: 1, | |
| 105 | + templateSelection: function(repo){ | |
| 106 | + return repo.text; | |
| 107 | + }, | |
| 108 | + language: { | |
| 109 | + noResults: function(){ | |
| 110 | + return '<span style="color:red;font-size: 12px;">没有搜索到线路!</span>'; | |
| 111 | + }, | |
| 112 | + inputTooShort : function(e) { | |
| 113 | + return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> 输入线路搜索线路</span>'; | |
| 114 | + }, | |
| 115 | + searching : function() { | |
| 116 | + return '<span style="color:gray;font-size: 12px;"> 正在搜索线路...</span>'; | |
| 117 | + } | |
| 118 | + } | |
| 119 | + }); | |
| 120 | + | |
| 121 | + $("#query").on("click",function(){ | |
| 122 | + var line = $("#line").val(); | |
| 123 | + var date = $("#date").val(); | |
| 124 | + $post('/mcy_forms/waybillday',{line:line,date:date},function(result){ | |
| 125 | + $.each(result, function(i, obj) { | |
| 126 | + obj.requestType = reqCodeMap[obj.requestType]; | |
| 127 | + }); | |
| 128 | + // 把数据填充到模版中 | |
| 129 | + var tbodyHtml = template('waybillday',{list:result}); | |
| 130 | + // 把渲染好的模版html文本追加到表格中 | |
| 131 | + $('#forms tbody').html(tbodyHtml); | |
| 132 | + }); | |
| 133 | + }); | |
| 134 | + | |
| 135 | + //导出 | |
| 136 | +// $("#export").on("click",function(){ | |
| 137 | +// $get('/mcy_forms/waybilldayExcel',{line:line,date:date,type:'export'},function(result){ | |
| 138 | +// window.open("/downloadFile/download?fileName=行车路单日报表"+moment(date).format("YYYYMMDD")); | |
| 139 | +// }); | |
| 140 | +// }); | |
| 141 | + $("#export").on("click",function(){ | |
| 142 | + | |
| 143 | + $post('/mcy_forms/waybilldayExcel',{line:line,date:date},function(result){ | |
| 144 | + window.open("/downloadFile/download?fileName="+line); | |
| 145 | + }); | |
| 146 | + }); | |
| 147 | + }); | |
| 148 | +</script> | |
| 149 | +<script type="text/html" id="waybillday"> | |
| 150 | + {{each list as obj i}} | |
| 151 | + <tr> | |
| 152 | + <td>{{obj.carPlate}}</td> | |
| 153 | + <td>{{obj.jzl1}} </td> | |
| 154 | + <td>{{obj.jzl}}</td> | |
| 155 | + <td> </td> | |
| 156 | + <td>{{obj.yh}}</td> | |
| 157 | + <td>{{obj.jName}}</td> | |
| 158 | + <td>{{obj.zlc}}</td> | |
| 159 | + <td>{{obj.yh}}</td> | |
| 160 | + </tr> | |
| 161 | + {{/each}} | |
| 162 | + {{if list.length == 0}} | |
| 163 | + <tr> | |
| 164 | + <td colspan="8"><h6 class="muted">没有找到相关数据</h6></td> | |
| 165 | + </tr> | |
| 166 | + {{/if}} | |
| 167 | +</script> | |
| 0 | 168 | \ No newline at end of file | ... | ... |