Commit eefecb073b591bf6f19288eb86a5466a2df71c4d

Authored by 潘钊
1 parent 26197ee3

update...

Showing 63 changed files with 7436 additions and 0 deletions
.gitignore 0 → 100644
  1 +.classpath
  2 +.project
  3 +.springBeans
  4 +.settings/*
  5 +/target/*
  6 +node_modules/
  7 +test_junitReport/
  8 +test_coverage/
  9 +.idea
  10 +.DS_Store
  11 +*.iml
  12 +tmp
  13 +
  14 +# git忽略空文件夹,按照惯例,空文件夹下放置.gitkeep文件避免文件夹被忽略不上传。
  15 +!.gitkeep
  16 +/target/
... ...
pom.xml 0 → 100644
  1 +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3 +
  4 + <modelVersion>4.0.0</modelVersion>
  5 + <groupId>com.bsth</groupId>
  6 + <artifactId>control_service_data_interface</artifactId>
  7 + <version>0.0.1-SNAPSHOT</version>
  8 + <packaging>war</packaging>
  9 +
  10 + <parent>
  11 + <groupId>org.springframework.boot</groupId>
  12 + <artifactId>spring-boot-starter-parent</artifactId>
  13 + <version>1.5.2.RELEASE</version>
  14 + </parent>
  15 +
  16 + <dependencies>
  17 + <dependency>
  18 + <groupId>org.apache.cxf</groupId>
  19 + <artifactId>cxf-rt-frontend-jaxws</artifactId>
  20 + <version>3.1.10</version>
  21 + </dependency>
  22 +
  23 + <dependency>
  24 + <groupId>org.apache.cxf</groupId>
  25 + <artifactId>cxf-rt-transports-http</artifactId>
  26 + <version>3.1.10</version>
  27 + </dependency>
  28 +
  29 + <dependency>
  30 + <groupId>org.apache.cxf</groupId>
  31 + <artifactId>cxf-rt-rs-service-description</artifactId>
  32 + <version>3.1.10</version>
  33 + </dependency>
  34 +
  35 + <dependency>
  36 + <groupId>org.springframework.boot</groupId>
  37 + <artifactId>spring-boot-starter-web</artifactId>
  38 + </dependency>
  39 +
  40 + <dependency>
  41 + <groupId>org.springframework.boot</groupId>
  42 + <artifactId>spring-boot-starter-tomcat</artifactId>
  43 + <scope>provided</scope>
  44 + </dependency>
  45 +
  46 + <dependency>
  47 + <groupId>org.springframework.boot</groupId>
  48 + <artifactId>spring-boot-starter-data-jpa</artifactId>
  49 + </dependency>
  50 + <dependency>
  51 + <groupId>org.springframework.boot</groupId>
  52 + <artifactId>spring-boot-starter-aop</artifactId>
  53 + </dependency>
  54 +
  55 + <dependency>
  56 + <groupId>org.springframework.boot</groupId>
  57 + <artifactId>spring-boot-starter-data-redis</artifactId>
  58 + </dependency>
  59 +
  60 + <dependency>
  61 + <groupId>org.springframework</groupId>
  62 + <artifactId>spring-context-support</artifactId>
  63 + </dependency>
  64 + <dependency>
  65 + <groupId>mysql</groupId>
  66 + <artifactId>mysql-connector-java</artifactId>
  67 + </dependency>
  68 +
  69 + <dependency>
  70 + <groupId>joda-time</groupId>
  71 + <artifactId>joda-time</artifactId>
  72 + </dependency>
  73 + <dependency>
  74 + <groupId>com.alibaba</groupId>
  75 + <artifactId>fastjson</artifactId>
  76 + <version>1.2.4</version>
  77 + </dependency>
  78 +
  79 + <dependency>
  80 + <groupId>org.apache.httpcomponents</groupId>
  81 + <artifactId>httpclient</artifactId>
  82 + </dependency>
  83 +
  84 + <dependency>
  85 + <groupId>commons-dbcp</groupId>
  86 + <artifactId>commons-dbcp</artifactId>
  87 + </dependency>
  88 + <dependency>
  89 + <groupId>commons-lang</groupId>
  90 + <artifactId>commons-lang</artifactId>
  91 + <version>2.6</version>
  92 + </dependency>
  93 + <dependency>
  94 + <groupId>org.apache.commons</groupId>
  95 + <artifactId>commons-lang3</artifactId>
  96 + <version>3.4</version>
  97 + </dependency>
  98 + <dependency>
  99 + <groupId>commons-fileupload</groupId>
  100 + <artifactId>commons-fileupload</artifactId>
  101 + <version>1.2.2</version>
  102 + </dependency>
  103 + <dependency>
  104 + <groupId>commons-io</groupId>
  105 + <artifactId>commons-io</artifactId>
  106 + <version>2.4</version>
  107 + </dependency>
  108 + <dependency>
  109 + <groupId>org.codehaus.janino</groupId>
  110 + <artifactId>janino</artifactId>
  111 + </dependency>
  112 +
  113 + <dependency>
  114 + <groupId>org.apache.poi</groupId>
  115 + <artifactId>poi</artifactId>
  116 + <version>3.13</version>
  117 + </dependency>
  118 +
  119 + <dependency>
  120 + <groupId>com.google.guava</groupId>
  121 + <artifactId>guava</artifactId>
  122 + <version>19.0</version>
  123 + </dependency>
  124 +
  125 + <dependency>
  126 + <groupId>c3p0</groupId>
  127 + <artifactId>c3p0</artifactId>
  128 + <version>0.9.1.2</version>
  129 + </dependency>
  130 +
  131 + <dependency>
  132 + <groupId>axis</groupId>
  133 + <artifactId>axis</artifactId>
  134 + <version>1.4</version>
  135 + </dependency>
  136 + </dependencies>
  137 +
  138 + <build>
  139 + <plugins>
  140 + <plugin>
  141 + <artifactId>maven-compiler-plugin</artifactId>
  142 + <version>2.3.2</version><!--$NO-MVN-MAN-VER$ -->
  143 + <configuration>
  144 + <source>1.7</source>
  145 + <target>1.7</target>
  146 + </configuration>
  147 + </plugin>
  148 + <plugin>
  149 + <artifactId>maven-war-plugin</artifactId>
  150 + <version>2.2</version><!--$NO-MVN-MAN-VER$ -->
  151 + <configuration>
  152 + <failOnMissingWebXml>false</failOnMissingWebXml>
  153 + </configuration>
  154 + </plugin>
  155 + <plugin>
  156 + <groupId>org.springframework.boot</groupId>
  157 + <artifactId>spring-boot-maven-plugin</artifactId>
  158 + </plugin>
  159 + </plugins>
  160 + <resources>
  161 + <resource>
  162 + <directory>src/main/resources</directory>
  163 + <filtering>false</filtering>
  164 + </resource>
  165 + </resources>
  166 + </build>
  167 + <repositories>
  168 + <repository>
  169 + <id>spring-snapshots</id>
  170 + <url>http://repo.spring.io/snapshot</url>
  171 + <snapshots>
  172 + <enabled>true</enabled>
  173 + </snapshots>
  174 + </repository>
  175 + <repository>
  176 + <id>spring-milestones</id>
  177 + <url>http://repo.spring.io/milestone</url>
  178 + </repository>
  179 + </repositories>
  180 + <pluginRepositories>
  181 + <pluginRepository>
  182 + <id>spring-snapshots</id>
  183 + <url>http://repo.spring.io/snapshot</url>
  184 + </pluginRepository>
  185 + <pluginRepository>
  186 + <id>spring-milestones</id>
  187 + <url>http://repo.spring.io/milestone</url>
  188 + </pluginRepository>
  189 + </pluginRepositories>
  190 +
  191 + <properties>
  192 + <start-class>com.bsth.Application</start-class>
  193 + </properties>
  194 +</project>
... ...
src/main/java/com/bsth/Application.java 0 → 100644
  1 +package com.bsth;
  2 +
  3 +import org.springframework.boot.SpringApplication;
  4 +import org.springframework.boot.autoconfigure.SpringBootApplication;
  5 +import org.springframework.boot.builder.SpringApplicationBuilder;
  6 +import org.springframework.boot.web.support.SpringBootServletInitializer;
  7 +
  8 +import java.util.concurrent.Executors;
  9 +import java.util.concurrent.ScheduledExecutorService;
  10 +
  11 +@SpringBootApplication
  12 +public class Application extends SpringBootServletInitializer {
  13 +
  14 + public static ScheduledExecutorService mainServices = Executors.newScheduledThreadPool(1);
  15 +
  16 + @Override
  17 + protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
  18 + return application.sources(Application.class);
  19 + }
  20 +
  21 + public static void main(String[] args) throws Exception {
  22 + SpringApplication.run(Application.class, args);
  23 + }
  24 +
  25 +}
0 26 \ No newline at end of file
... ...
src/main/java/com/bsth/CXFConfig.java 0 → 100644
  1 +package com.bsth;
  2 +
  3 +import com.bsth.ws_server.park_station.CompanyServiceSoap;
  4 +import com.bsth.ws_server.waybill.LD_ServiceSoap;
  5 +import org.apache.cxf.Bus;
  6 +import org.apache.cxf.bus.spring.SpringBus;
  7 +import org.apache.cxf.jaxws.EndpointImpl;
  8 +import org.apache.cxf.transport.servlet.CXFServlet;
  9 +import org.springframework.boot.web.servlet.ServletRegistrationBean;
  10 +import org.springframework.context.annotation.Bean;
  11 +import org.springframework.context.annotation.Configuration;
  12 +import org.springframework.core.Ordered;
  13 +
  14 +import javax.xml.ws.Endpoint;
  15 +
  16 +/**
  17 + * Created by panzhao on 2017/3/9.
  18 + */
  19 +@Configuration
  20 +public class CXFConfig {
  21 +
  22 + @Bean(name = Bus.DEFAULT_BUS_ID)
  23 + public SpringBus springBus() {
  24 + return new SpringBus();
  25 + }
  26 +
  27 + public CompanyServiceSoap companyService(){
  28 + return new CompanyServiceSoap();
  29 + }
  30 +
  31 + public LD_ServiceSoap ldServiceSoap(){
  32 + return new LD_ServiceSoap();
  33 + }
  34 +
  35 + @Bean
  36 + public Endpoint companyEndpoint() {
  37 + EndpointImpl endpoint = new EndpointImpl(springBus(), companyService());
  38 + endpoint.publish("/CompanyService");
  39 + //endpoint.getInInterceptors().add(new AuthInterceptor());
  40 + return endpoint;
  41 + }
  42 +
  43 + @Bean
  44 + public Endpoint ldServiceEndpoint() {
  45 + EndpointImpl endpoint = new EndpointImpl(springBus(), ldServiceSoap());
  46 + endpoint.publish("/LD_Service");
  47 + //endpoint.getInInterceptors().add(new AuthInterceptor());
  48 + return endpoint;
  49 + }
  50 +
  51 + @Bean
  52 + public ServletRegistrationBean servletRegistrationBean() {
  53 + ServletRegistrationBean bean = new ServletRegistrationBean(new CXFServlet(), "/webservice/*");
  54 + bean.setLoadOnStartup(0);
  55 + bean.setOrder(Ordered.HIGHEST_PRECEDENCE);
  56 + return bean;
  57 + }
  58 +}
... ...
src/main/java/com/bsth/StartCommand.java 0 → 100644
  1 +package com.bsth;
  2 +
  3 +
  4 +import com.bsth.service.Line2SystemService;
  5 +import org.springframework.beans.factory.annotation.Autowired;
  6 +import org.springframework.boot.CommandLineRunner;
  7 +import org.springframework.stereotype.Component;
  8 +
  9 +
  10 +/**
  11 + * 随应用启动运行
  12 + * @author PanZhao
  13 + *
  14 + */
  15 +@Component
  16 +public class StartCommand implements CommandLineRunner{
  17 +
  18 + @Autowired
  19 + Line2SystemService line2SystemService;
  20 +
  21 + @Override
  22 + public void run(String... arg0){
  23 +
  24 + try {
  25 + //将增量的线路load到对照清单
  26 + line2SystemService.loadByLineInfo();
  27 +
  28 + //OldWSClient.returnCCInfo();
  29 + //OldWSClient.getCurrentDayPlan();
  30 + } catch (Exception e) {
  31 + e.printStackTrace();
  32 + }
  33 + }
  34 +}
... ...
src/main/java/com/bsth/WebAppConfiguration.java 0 → 100644
  1 +package com.bsth;
  2 +
  3 +import org.springframework.context.annotation.Bean;
  4 +import org.springframework.context.annotation.ComponentScan;
  5 +import org.springframework.context.annotation.Configuration;
  6 +import org.springframework.web.filter.CharacterEncodingFilter;
  7 +import org.springframework.web.filter.HttpPutFormContentFilter;
  8 +import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
  9 +
  10 +import javax.servlet.Filter;
  11 +
  12 +@Configuration
  13 +@ComponentScan
  14 +public class WebAppConfiguration extends WebMvcConfigurerAdapter {
  15 +
  16 + /**
  17 + * @Title: httpPutFormContentFilter
  18 + * @Description: TODO(弥补浏览器不支持PUT/DELETE,对携带 _method 参数的请求进行转换)
  19 + */
  20 + @Bean
  21 + public Filter httpPutFormContentFilter() {
  22 + return new HttpPutFormContentFilter();
  23 + }
  24 +
  25 + /**
  26 + * @Title: characterEncodingFilter
  27 + * @Description: TODO(编码过滤器)
  28 + */
  29 + @Bean
  30 + public Filter characterEncodingFilter(){
  31 + return new CharacterEncodingFilter("UTF-8");
  32 + }
  33 +}
... ...
src/main/java/com/bsth/common/ResponseCode.java 0 → 100644
  1 +package com.bsth.common;
  2 +
  3 +/**
  4 + *
  5 + * @ClassName: ResponseCode
  6 + * @Description: TODO(响应状态码)
  7 + * @author PanZhao
  8 + * @date 2016年3月18日 下午11:12:08
  9 + *
  10 + */
  11 +public enum ResponseCode {
  12 +
  13 + SUCCESS("操作成功", 200),
  14 + NO_PERMISSION("无资源访问权限", 403),
  15 + NO_AUTHENTICATION("客户端未授权", 407),
  16 + ERROR("服务器异常", 500);
  17 +
  18 + private String text;
  19 + private int code;
  20 +
  21 + ResponseCode(String text, int code) {
  22 + this.text = text;
  23 + this.code = code;
  24 + }
  25 +
  26 + @Override
  27 + public String toString() {
  28 + return this.code + "";
  29 + }
  30 +
  31 + public String getText() {
  32 + return this.text;
  33 + }
  34 +}
... ...
src/main/java/com/bsth/controller/Line2SystemController.java 0 → 100644
  1 +package com.bsth.controller;
  2 +
  3 +import com.bsth.entity.Line2System;
  4 +import com.bsth.service.Line2SystemService;
  5 +import org.springframework.beans.factory.annotation.Autowired;
  6 +import org.springframework.web.bind.annotation.RequestMapping;
  7 +import org.springframework.web.bind.annotation.RequestMethod;
  8 +import org.springframework.web.bind.annotation.RestController;
  9 +
  10 +/**
  11 + * Created by panzhao on 2017/3/14.
  12 + */
  13 +@RestController
  14 +@RequestMapping("/line2System")
  15 +public class Line2SystemController {
  16 +
  17 + @Autowired
  18 + Line2SystemService line2SystemService;
  19 +
  20 + @RequestMapping(value = "/update", method = RequestMethod.POST)
  21 + public Line2System update(Line2System line2System){
  22 + return line2SystemService.update(line2System);
  23 + }
  24 +
  25 + @RequestMapping("/all")
  26 + public Iterable<Line2System> findAll(){
  27 + return line2SystemService.findAll();
  28 + }
  29 +}
... ...
src/main/java/com/bsth/entity/ChildTaskPlan.java 0 → 100644
  1 +package com.bsth.entity;
  2 +
  3 +import com.fasterxml.jackson.annotation.JsonIgnore;
  4 +
  5 +import javax.persistence.*;
  6 +import java.io.Serializable;
  7 +import java.util.Date;
  8 +
  9 +
  10 +/**
  11 + *
  12 + * @ClassName: ChildTaskPlan
  13 + * @Description: TODO(子任务)
  14 + * @author PanZhao
  15 + * @date 2016年6月20日 上午11:22:22
  16 + *
  17 + */
  18 +@Entity
  19 +@Table(name = "bsth_c_s_child_task")
  20 +@NamedEntityGraphs({
  21 + @NamedEntityGraph(name = "childTaskPlan_schedule", attributeNodes = {
  22 + @NamedAttributeNode("schedule")
  23 + })
  24 +})
  25 +public class ChildTaskPlan implements Serializable {
  26 +
  27 + @Id
  28 + private Long id;
  29 +
  30 + /**
  31 + * 任务类型1
  32 + * 正常,临加
  33 + */
  34 + private String type1;
  35 +
  36 + /**
  37 + * 任务类型2
  38 + */
  39 + private String type2;
  40 +
  41 + /**
  42 + * 起点
  43 + */
  44 + private String startStation;
  45 +
  46 + /**
  47 + * 起点站名称
  48 + */
  49 + private String startStationName;
  50 +
  51 + /**
  52 + * 终点
  53 + */
  54 + private String endStation;
  55 +
  56 + /**
  57 + * 终点站名称
  58 + */
  59 + private String endStationName;
  60 +
  61 + /**
  62 + * 里程类型
  63 + */
  64 + private String mileageType;
  65 +
  66 + /**
  67 + * 里程
  68 + */
  69 + private Float mileage;
  70 +
  71 + /**
  72 + * 开始时间 HH:mm
  73 + */
  74 + private String startDate;
  75 +
  76 + /**
  77 + * 结束时间 HH:mm
  78 + */
  79 + private String endDate;
  80 +
  81 + /**
  82 + * 是否烂班
  83 + */
  84 + private boolean destroy;
  85 +
  86 + /**
  87 + * 烂班原因
  88 + */
  89 + private String destroyReason;
  90 +
  91 + /** 创建日期 */
  92 + private Date createDate;
  93 +
  94 + /**
  95 + * 主排班计划
  96 + */
  97 + @JsonIgnore
  98 + @ManyToOne(fetch = FetchType.LAZY)
  99 + @JoinColumn(name = "schedule")
  100 + private ScheduleRealInfo schedule;
  101 +
  102 + private String remarks;
  103 +
  104 + public Long getId() {
  105 + return id;
  106 + }
  107 +
  108 + public void setId(Long id) {
  109 + this.id = id;
  110 + }
  111 +
  112 + public String getType1() {
  113 + return type1;
  114 + }
  115 +
  116 + public void setType1(String type1) {
  117 + this.type1 = type1;
  118 + }
  119 +
  120 + public String getType2() {
  121 + return type2;
  122 + }
  123 +
  124 + public void setType2(String type2) {
  125 + this.type2 = type2;
  126 + }
  127 +
  128 + public String getStartStation() {
  129 + return startStation;
  130 + }
  131 +
  132 + public void setStartStation(String startStation) {
  133 + this.startStation = startStation;
  134 + }
  135 +
  136 + public String getEndStation() {
  137 + return endStation;
  138 + }
  139 +
  140 + public void setEndStation(String endStation) {
  141 + this.endStation = endStation;
  142 + }
  143 +
  144 + public String getMileageType() {
  145 + return mileageType;
  146 + }
  147 +
  148 + public void setMileageType(String mileageType) {
  149 + this.mileageType = mileageType;
  150 + }
  151 +
  152 + public Float getMileage() {
  153 + return mileage;
  154 + }
  155 +
  156 + public void setMileage(Float mileage) {
  157 + this.mileage = mileage;
  158 + }
  159 +
  160 + public String getStartDate() {
  161 + return startDate;
  162 + }
  163 +
  164 + public void setStartDate(String startDate) {
  165 + this.startDate = startDate;
  166 + }
  167 +
  168 + public String getEndDate() {
  169 + return endDate;
  170 + }
  171 +
  172 + public void setEndDate(String endDate) {
  173 + this.endDate = endDate;
  174 + }
  175 +
  176 + public boolean isDestroy() {
  177 + return destroy;
  178 + }
  179 +
  180 + public void setDestroy(boolean destroy) {
  181 + this.destroy = destroy;
  182 + }
  183 +
  184 + public String getDestroyReason() {
  185 + return destroyReason;
  186 + }
  187 +
  188 + public void setDestroyReason(String destroyReason) {
  189 + this.destroyReason = destroyReason;
  190 + }
  191 +
  192 + public ScheduleRealInfo getSchedule() {
  193 + return schedule;
  194 + }
  195 +
  196 + public void setSchedule(ScheduleRealInfo schedule) {
  197 + this.schedule = schedule;
  198 + }
  199 +
  200 + public String getRemarks() {
  201 + return remarks;
  202 + }
  203 +
  204 + public void setRemarks(String remarks) {
  205 + this.remarks = remarks;
  206 + }
  207 +
  208 + public String getStartStationName() {
  209 + return startStationName;
  210 + }
  211 +
  212 + public void setStartStationName(String startStationName) {
  213 + this.startStationName = startStationName;
  214 + }
  215 +
  216 + public String getEndStationName() {
  217 + return endStationName;
  218 + }
  219 +
  220 + public void setEndStationName(String endStationName) {
  221 + this.endStationName = endStationName;
  222 + }
  223 +
  224 + @Override
  225 + public int hashCode() {
  226 + return ("" + this.getId() + this.getSchedule().getId()).hashCode();
  227 + }
  228 +
  229 + @Override
  230 + public boolean equals(Object obj) {
  231 + return this.id.equals(((ChildTaskPlan)obj).getId());
  232 + }
  233 +
  234 + public Date getCreateDate() {
  235 + return createDate;
  236 + }
  237 +
  238 + public void setCreateDate(Date createDate) {
  239 + this.createDate = createDate;
  240 + }
  241 +}
... ...
src/main/java/com/bsth/entity/Line2System.java 0 → 100644
  1 +package com.bsth.entity;
  2 +
  3 +import javax.persistence.Entity;
  4 +import javax.persistence.Id;
  5 +import javax.persistence.Table;
  6 +
  7 +/**
  8 + * 线路映射到某个系统(新老系统并行时需要这个对照)
  9 + * Created by panzhao on 2017/3/14.
  10 + */
  11 +@Entity
  12 +@Table(name = "interface_line_system_mapp")
  13 +public class Line2System {
  14 +
  15 + @Id
  16 + private String lineCode;
  17 +
  18 + private String lineName;
  19 +
  20 + /**
  21 + * 是否从新系统接入数据
  22 + */
  23 + private boolean isNew;
  24 +
  25 + public String getLineCode() {
  26 + return lineCode;
  27 + }
  28 +
  29 + public void setLineCode(String lineCode) {
  30 + this.lineCode = lineCode;
  31 + }
  32 +
  33 + public boolean isNew() {
  34 + return isNew;
  35 + }
  36 +
  37 + public void setNew(boolean aNew) {
  38 + isNew = aNew;
  39 + }
  40 +
  41 + public String getLineName() {
  42 + return lineName;
  43 + }
  44 +
  45 + public void setLineName(String lineName) {
  46 + this.lineName = lineName;
  47 + }
  48 +}
... ...
src/main/java/com/bsth/entity/OilInfo.java 0 → 100644
  1 +package com.bsth.entity;
  2 +
  3 +
  4 +import org.springframework.format.annotation.DateTimeFormat;
  5 +
  6 +import javax.persistence.Entity;
  7 +import javax.persistence.Id;
  8 +import javax.persistence.Table;
  9 +import java.io.Serializable;
  10 +import java.util.Date;
  11 +
  12 +/**
  13 + * 油量信息表
  14 + */
  15 +@Entity
  16 +@Table(name = "bsth_c_ylb")
  17 +public class OilInfo implements Serializable {
  18 + @Id
  19 + private Integer id;
  20 + /**
  21 + * 日期
  22 + */
  23 + @DateTimeFormat(pattern = "yyyy-MM-dd")
  24 + private Date rq;
  25 + /**
  26 + * 线路编码
  27 + */
  28 + private String xlbm;
  29 + /**
  30 + * 所属公司代码
  31 + */
  32 + private String ssgsdm;
  33 + /**
  34 + * 分公司代码
  35 + */
  36 + private String fgsdm;
  37 + /**
  38 + * 内部编码
  39 + */
  40 + private String nbbm;
  41 + /**
  42 + * 驾驶员
  43 + */
  44 + private String jsy;
  45 + /**
  46 + * 出站里程
  47 + */
  48 + private Double czlc = 0.0;
  49 + /**
  50 + * 进站里程
  51 + */
  52 + private Double jzlc = 0.0;
  53 + /**
  54 + * 出站油量
  55 + */
  56 + private Double czyl = 0.0;
  57 + /**
  58 + * 进站油量
  59 + */
  60 + private Double jzyl = 0.0;
  61 + /**
  62 + * 加注量
  63 + */
  64 + private Double jzl;
  65 +
  66 + private int sfkt;
  67 + /**
  68 + * 开始营运时间(12:12)
  69 + */
  70 + private String jhsj;
  71 + /**
  72 + * 油耗
  73 + */
  74 + private Double yh = 0.0;
  75 + /**
  76 + * 损耗
  77 + */
  78 + private Double sh = 0.0;
  79 + /**
  80 + * 损耗原因
  81 + */
  82 + private String shyy;
  83 + /**
  84 + * 总里程
  85 + */
  86 + private Double zlc = 0.0;
  87 + /**
  88 + * 数据类型
  89 + */
  90 + private int yhlx;
  91 + /**
  92 + * 燃油类型
  93 + */
  94 + private String rylx;
  95 + /**
  96 + * 尿素
  97 + */
  98 + private Double ns = 0.0;
  99 + private Double fyylc = 0.0;
  100 + /**
  101 + * 计划总里程
  102 + */
  103 + private Double jhzlc = 0.0;
  104 + private Double jhfyylc = 0.0;
  105 + private int jhzbc;
  106 + private int jhbc;
  107 + private int sjzbc;
  108 + private int sjbc;
  109 + /**
  110 + * 编辑用户
  111 + */
  112 + private String edituser;
  113 + /**
  114 + * 编辑时间
  115 + */
  116 + private Date edittime;
  117 + /**
  118 + * 创建时间
  119 + */
  120 + private Date createtime;
  121 + /**
  122 + * 能源类型,0加油,1充电,2混合
  123 + */
  124 + private int nylx;
  125 +
  126 + public Integer getId() {
  127 + return id;
  128 + }
  129 +
  130 + public void setId(Integer id) {
  131 + this.id = id;
  132 + }
  133 +
  134 +
  135 + public void setRq(Date rq) {
  136 + this.rq = rq;
  137 + }
  138 +
  139 + public String getXlbm() {
  140 + return xlbm;
  141 + }
  142 +
  143 + public void setXlbm(String xlbm) {
  144 + this.xlbm = xlbm;
  145 + }
  146 +
  147 + public String getSsgsdm() {
  148 + return ssgsdm;
  149 + }
  150 +
  151 + public void setSsgsdm(String ssgsdm) {
  152 + this.ssgsdm = ssgsdm;
  153 + }
  154 +
  155 + public String getFgsdm() {
  156 + return fgsdm;
  157 + }
  158 +
  159 + public void setFgsdm(String fgsdm) {
  160 + this.fgsdm = fgsdm;
  161 + }
  162 +
  163 + public String getNbbm() {
  164 + return nbbm;
  165 + }
  166 +
  167 + public void setNbbm(String nbbm) {
  168 + this.nbbm = nbbm;
  169 + }
  170 +
  171 + public String getJsy() {
  172 + return jsy;
  173 + }
  174 +
  175 + public void setJsy(String jsy) {
  176 + this.jsy = jsy;
  177 + }
  178 +
  179 + public Double getCzlc() {
  180 + return czlc;
  181 + }
  182 +
  183 + public void setCzlc(Double czlc) {
  184 + this.czlc = czlc;
  185 + }
  186 +
  187 + public Double getJzlc() {
  188 + return jzlc;
  189 + }
  190 +
  191 + public void setJzlc(Double jzlc) {
  192 + this.jzlc = jzlc;
  193 + }
  194 +
  195 + public Double getCzyl() {
  196 + return czyl;
  197 + }
  198 +
  199 + public void setCzyl(Double czyl) {
  200 + this.czyl = czyl;
  201 + }
  202 +
  203 + public Double getJzyl() {
  204 + return jzyl;
  205 + }
  206 +
  207 + public void setJzyl(Double jzyl) {
  208 + this.jzyl = jzyl;
  209 + }
  210 +
  211 + public Double getJzl() {
  212 + return jzl;
  213 + }
  214 +
  215 + public void setJzl(Double jzl) {
  216 + this.jzl = jzl;
  217 + }
  218 +
  219 + public int getSfkt() {
  220 + return sfkt;
  221 + }
  222 +
  223 + public void setSfkt(int sfkt) {
  224 + this.sfkt = sfkt;
  225 + }
  226 +
  227 + public String getJhsj() {
  228 + return jhsj;
  229 + }
  230 +
  231 + public void setJhsj(String jhsj) {
  232 + this.jhsj = jhsj;
  233 + }
  234 +
  235 + public Double getYh() {
  236 + return yh;
  237 + }
  238 +
  239 + public void setYh(Double yh) {
  240 + this.yh = yh;
  241 + }
  242 +
  243 + public Double getSh() {
  244 + return sh;
  245 + }
  246 +
  247 + public void setSh(Double sh) {
  248 + this.sh = sh;
  249 + }
  250 +
  251 + public String getShyy() {
  252 + return shyy;
  253 + }
  254 +
  255 + public void setShyy(String shyy) {
  256 + this.shyy = shyy;
  257 + }
  258 +
  259 + public Double getZlc() {
  260 + return zlc;
  261 + }
  262 +
  263 + public void setZlc(Double zlc) {
  264 + this.zlc = zlc;
  265 + }
  266 +
  267 + public int getYhlx() {
  268 + return yhlx;
  269 + }
  270 +
  271 + public void setYhlx(int yhlx) {
  272 + this.yhlx = yhlx;
  273 + }
  274 +
  275 + public String getRylx() {
  276 + return rylx;
  277 + }
  278 +
  279 + public void setRylx(String rylx) {
  280 + this.rylx = rylx;
  281 + }
  282 +
  283 + public Double getNs() {
  284 + return ns;
  285 + }
  286 +
  287 + public void setNs(Double ns) {
  288 + this.ns = ns;
  289 + }
  290 +
  291 + public Double getFyylc() {
  292 + return fyylc;
  293 + }
  294 +
  295 + public void setFyylc(Double fyylc) {
  296 + this.fyylc = fyylc;
  297 + }
  298 +
  299 + public Double getJhzlc() {
  300 + return jhzlc;
  301 + }
  302 +
  303 + public void setJhzlc(Double jhzlc) {
  304 + this.jhzlc = jhzlc;
  305 + }
  306 +
  307 + public Double getJhfyylc() {
  308 + return jhfyylc;
  309 + }
  310 +
  311 + public void setJhfyylc(Double jhfyylc) {
  312 + this.jhfyylc = jhfyylc;
  313 + }
  314 +
  315 + public int getJhzbc() {
  316 + return jhzbc;
  317 + }
  318 +
  319 + public void setJhzbc(int jhzbc) {
  320 + this.jhzbc = jhzbc;
  321 + }
  322 +
  323 + public int getJhbc() {
  324 + return jhbc;
  325 + }
  326 +
  327 + public void setJhbc(int jhbc) {
  328 + this.jhbc = jhbc;
  329 + }
  330 +
  331 + public int getSjzbc() {
  332 + return sjzbc;
  333 + }
  334 +
  335 + public void setSjzbc(int sjzbc) {
  336 + this.sjzbc = sjzbc;
  337 + }
  338 +
  339 + public int getSjbc() {
  340 + return sjbc;
  341 + }
  342 +
  343 + public void setSjbc(int sjbc) {
  344 + this.sjbc = sjbc;
  345 + }
  346 +
  347 + public String getEdituser() {
  348 + return edituser;
  349 + }
  350 +
  351 + public void setEdituser(String edituser) {
  352 + this.edituser = edituser;
  353 + }
  354 +
  355 + public Date getEdittime() {
  356 + return edittime;
  357 + }
  358 +
  359 + public void setEdittime(Date edittime) {
  360 + this.edittime = edittime;
  361 + }
  362 +
  363 + public Date getCreatetime() {
  364 + return createtime;
  365 + }
  366 +
  367 + public void setCreatetime(Date createtime) {
  368 + this.createtime = createtime;
  369 + }
  370 +
  371 + public int getNylx() {
  372 + return nylx;
  373 + }
  374 +
  375 + public void setNylx(int nylx) {
  376 + this.nylx = nylx;
  377 + }
  378 +
  379 + public Date getRq() {
  380 + return rq;
  381 + }
  382 +}
... ...
src/main/java/com/bsth/entity/ScheduleRealInfo.java 0 → 100644
  1 +package com.bsth.entity;
  2 +
  3 +import javax.persistence.*;
  4 +import java.io.Serializable;
  5 +import java.util.Date;
  6 +import java.util.HashSet;
  7 +import java.util.Set;
  8 +
  9 +/**
  10 + * 实际排班计划明细。
  11 + */
  12 +@Entity
  13 +@Table(name = "bsth_c_s_sp_info_real")
  14 +@NamedEntityGraphs({
  15 + @NamedEntityGraph(name = "scheduleRealInfo_cTasks", attributeNodes = {
  16 + @NamedAttributeNode("cTasks")
  17 + })
  18 +})
  19 +public class ScheduleRealInfo implements Serializable{
  20 +
  21 +
  22 +
  23 + /** 主键Id */
  24 + @Id
  25 + private Long id;
  26 +
  27 + /** 计划ID */
  28 + private Long spId;
  29 +
  30 + /** 排班计划日期 */
  31 + private Date scheduleDate;
  32 + private String scheduleDateStr;
  33 +
  34 + /** 真实执行时间 yyyy-MM-dd */
  35 + private String realExecDate;
  36 +
  37 + /** 线路名称 */
  38 + private String xlName;
  39 + /** 线路编码 */
  40 + private String xlBm;
  41 +
  42 + /** 路牌名称 */
  43 + private String lpName;
  44 +
  45 + /** 车辆自编号 */
  46 + private String clZbh;
  47 +
  48 + /** 驾驶员工号 */
  49 + private String jGh;
  50 + /** 驾驶员名字 */
  51 + private String jName;
  52 + /** 售票员工号 */
  53 + private String sGh;
  54 + /** 售票员名字 */
  55 + private String sName;
  56 +
  57 + /** 线路方向 */
  58 + private String xlDir;
  59 + /** 起点站code*/
  60 + private String qdzCode;
  61 + /** 起点站名字 */
  62 + private String qdzName;
  63 +
  64 + /** 终点站code*/
  65 + private String zdzCode;
  66 + /** 终点站名字 */
  67 + private String zdzName;
  68 +
  69 + /** 计划发车时间(格式 HH:mm) */
  70 + private String fcsj;
  71 + /** 计划发车时间戳*/
  72 + @Transient
  73 + private Long fcsjT;
  74 +
  75 + /** 计划终点时间(格式 HH:mm) */
  76 + private String zdsj;
  77 + /** 计划终点时间戳*/
  78 + @Transient
  79 + private Long zdsjT;
  80 +
  81 + /** 发车顺序号 */
  82 + private Integer fcno;
  83 + /** 对应班次数 */
  84 + private Integer bcs;
  85 + /** 计划里程 */
  86 + private Double jhlc;
  87 +
  88 + /** 原始计划里程 (原计调的数据) */
  89 + private Double jhlcOrig;
  90 +
  91 + /** 班次历时 */
  92 + private Integer bcsj;
  93 +
  94 + /**
  95 + * 班次类型 TODO:正常班次、出场、进场、加油、区间班次、放空班次、放大站班次、两点间空驶
  96 + */
  97 + private String bcType;
  98 +
  99 + /** 创建日期 */
  100 + @Column(name = "create_date")
  101 + private Date createDate;
  102 + /** 修改日期 */
  103 + @Column(name = "update_date")
  104 + private Date updateDate;
  105 +
  106 + /** 实际发车时间*/
  107 + private String fcsjActual;
  108 + /** 实际发车时间戳*/
  109 + @Transient
  110 + private Long fcsjActualTime;
  111 + /**实际终点时间 */
  112 + private String zdsjActual;
  113 + /** 实际终点时间戳*/
  114 + @Transient
  115 + private Long zdsjActualTime;
  116 +
  117 + /**班次状态 0 未执行 1 正在执行 2 已执行 -1 已烂班 */
  118 + private int status;
  119 +
  120 + private String adjustExps;
  121 +
  122 + /** 是否是临加班次 */
  123 + private boolean sflj;
  124 +
  125 + /** 是否误点*/
  126 + @Transient
  127 + private boolean late;
  128 +
  129 + /** 备注*/
  130 + private String remarks;
  131 +
  132 + /**待发时间(格式 HH:mm) */
  133 + private String dfsj;
  134 +
  135 + /**待发时间戳 */
  136 + @Transient
  137 + private Long dfsjT;
  138 +
  139 + /** 指令下发状态 60: 已发送, 100: 设备确认收到, 200:驾驶员确认 0:失败 */
  140 + private Integer directiveState = -1;
  141 +
  142 + /** “运营状态” 指令下发状态 60: 已发送, 100: 设备确认收到 0:失败*/
  143 + private Integer opDirectiveState;
  144 +
  145 + /** 起点站计划到达时间 */
  146 + @Transient
  147 + private String qdzArrDatejh;
  148 +
  149 + /** 起点站实际到达时间 */
  150 + @Transient
  151 + private String qdzArrDatesj;
  152 +
  153 + /** 子任务 */
  154 + @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
  155 + @JoinTable(name = "bsth_c_s_sp_info_real_c_tasks",
  156 + joinColumns = @JoinColumn(name = "bsth_c_s_sp_info_real"),
  157 + inverseJoinColumns = @JoinColumn(name = "c_tasks"))
  158 + private Set<ChildTaskPlan> cTasks = new HashSet<>();
  159 +
  160 + /** 关联的公司名称 */
  161 + private String gsName;
  162 + /** 关联的公司编码 */
  163 + private String gsBm;
  164 + /** 关联的分公司名称 */
  165 + private String fgsName;
  166 + /** 关联的分公司编码 */
  167 + private String fgsBm;
  168 + /** 出场顺序号 */
  169 + private Integer ccno;
  170 +
  171 + //待发调试(是否自动调整)
  172 + private boolean dfAuto;
  173 + //是否有GPS信号
  174 + private boolean online;
  175 +
  176 + /** 是否有补发GPS信号 */
  177 + private boolean reissue;
  178 +
  179 + @Override
  180 + public int hashCode() {
  181 + return (this.id + this.scheduleDateStr + this.xlBm + this.fcsj).hashCode();
  182 + }
  183 +
  184 + @Override
  185 + public boolean equals(Object obj) {
  186 + return this.id.equals(((ScheduleRealInfo)obj).getId());
  187 + }
  188 +
  189 + public Long getId() {
  190 + return id;
  191 + }
  192 +
  193 + public void setId(Long id) {
  194 + this.id = id;
  195 + }
  196 +
  197 + public Long getSpId() {
  198 + return spId;
  199 + }
  200 +
  201 + public void setSpId(Long spId) {
  202 + this.spId = spId;
  203 + }
  204 +
  205 + public Date getScheduleDate() {
  206 + return scheduleDate;
  207 + }
  208 +
  209 + public void setScheduleDate(Date scheduleDate) {
  210 + this.scheduleDate = scheduleDate;
  211 + }
  212 +
  213 + public String getScheduleDateStr() {
  214 + return scheduleDateStr;
  215 + }
  216 +
  217 + public void setScheduleDateStr(String scheduleDateStr) {
  218 + this.scheduleDateStr = scheduleDateStr;
  219 + }
  220 +
  221 + public String getRealExecDate() {
  222 + return realExecDate;
  223 + }
  224 +
  225 + public void setRealExecDate(String realExecDate) {
  226 + this.realExecDate = realExecDate;
  227 + }
  228 +
  229 + public String getXlName() {
  230 + return xlName;
  231 + }
  232 +
  233 + public void setXlName(String xlName) {
  234 + this.xlName = xlName;
  235 + }
  236 +
  237 + public String getXlBm() {
  238 + return xlBm;
  239 + }
  240 +
  241 + public void setXlBm(String xlBm) {
  242 + this.xlBm = xlBm;
  243 + }
  244 +
  245 + public String getLpName() {
  246 + return lpName;
  247 + }
  248 +
  249 + public void setLpName(String lpName) {
  250 + this.lpName = lpName;
  251 + }
  252 +
  253 + public String getClZbh() {
  254 + return clZbh;
  255 + }
  256 +
  257 + public void setClZbh(String clZbh) {
  258 + this.clZbh = clZbh;
  259 + }
  260 +
  261 + public String getjGh() {
  262 + return jGh;
  263 + }
  264 +
  265 + public void setjGh(String jGh) {
  266 + this.jGh = jGh;
  267 + }
  268 +
  269 + public String getjName() {
  270 + return jName;
  271 + }
  272 +
  273 + public void setjName(String jName) {
  274 + this.jName = jName;
  275 + }
  276 +
  277 + public String getsGh() {
  278 + return sGh;
  279 + }
  280 +
  281 + public void setsGh(String sGh) {
  282 + this.sGh = sGh;
  283 + }
  284 +
  285 + public String getsName() {
  286 + return sName;
  287 + }
  288 +
  289 + public void setsName(String sName) {
  290 + this.sName = sName;
  291 + }
  292 +
  293 + public String getXlDir() {
  294 + return xlDir;
  295 + }
  296 +
  297 + public void setXlDir(String xlDir) {
  298 + this.xlDir = xlDir;
  299 + }
  300 +
  301 + public String getQdzCode() {
  302 + return qdzCode;
  303 + }
  304 +
  305 + public void setQdzCode(String qdzCode) {
  306 + this.qdzCode = qdzCode;
  307 + }
  308 +
  309 + public String getQdzName() {
  310 + return qdzName;
  311 + }
  312 +
  313 + public void setQdzName(String qdzName) {
  314 + this.qdzName = qdzName;
  315 + }
  316 +
  317 + public String getZdzCode() {
  318 + return zdzCode;
  319 + }
  320 +
  321 + public void setZdzCode(String zdzCode) {
  322 + this.zdzCode = zdzCode;
  323 + }
  324 +
  325 + public String getZdzName() {
  326 + return zdzName;
  327 + }
  328 +
  329 + public void setZdzName(String zdzName) {
  330 + this.zdzName = zdzName;
  331 + }
  332 +
  333 + public String getFcsj() {
  334 + return fcsj;
  335 + }
  336 +
  337 + public void setFcsj(String fcsj) {
  338 + this.fcsj = fcsj;
  339 + }
  340 +
  341 + public Long getFcsjT() {
  342 + return fcsjT;
  343 + }
  344 +
  345 + public void setFcsjT(Long fcsjT) {
  346 + this.fcsjT = fcsjT;
  347 + }
  348 +
  349 + public String getZdsj() {
  350 + return zdsj;
  351 + }
  352 +
  353 + public void setZdsj(String zdsj) {
  354 + this.zdsj = zdsj;
  355 + }
  356 +
  357 + public Long getZdsjT() {
  358 + return zdsjT;
  359 + }
  360 +
  361 + public void setZdsjT(Long zdsjT) {
  362 + this.zdsjT = zdsjT;
  363 + }
  364 +
  365 + public Integer getFcno() {
  366 + return fcno;
  367 + }
  368 +
  369 + public void setFcno(Integer fcno) {
  370 + this.fcno = fcno;
  371 + }
  372 +
  373 + public Integer getBcs() {
  374 + return bcs;
  375 + }
  376 +
  377 + public void setBcs(Integer bcs) {
  378 + this.bcs = bcs;
  379 + }
  380 +
  381 + public Double getJhlc() {
  382 + return jhlc;
  383 + }
  384 +
  385 + public void setJhlc(Double jhlc) {
  386 + this.jhlc = jhlc;
  387 + }
  388 +
  389 + public Integer getBcsj() {
  390 + return bcsj;
  391 + }
  392 +
  393 + public void setBcsj(Integer bcsj) {
  394 + this.bcsj = bcsj;
  395 + }
  396 +
  397 + public String getBcType() {
  398 + return bcType;
  399 + }
  400 +
  401 + public void setBcType(String bcType) {
  402 + this.bcType = bcType;
  403 + }
  404 +
  405 + public Date getCreateDate() {
  406 + return createDate;
  407 + }
  408 +
  409 + public void setCreateDate(Date createDate) {
  410 + this.createDate = createDate;
  411 + }
  412 +
  413 + public Date getUpdateDate() {
  414 + return updateDate;
  415 + }
  416 +
  417 + public void setUpdateDate(Date updateDate) {
  418 + this.updateDate = updateDate;
  419 + }
  420 +
  421 + public String getFcsjActual() {
  422 + return fcsjActual;
  423 + }
  424 +
  425 + public void setFcsjActual(String fcsjActual) {
  426 + this.fcsjActual = fcsjActual;
  427 + }
  428 +
  429 + public Long getFcsjActualTime() {
  430 + return fcsjActualTime;
  431 + }
  432 +
  433 + public void setFcsjActualTime(Long fcsjActualTime) {
  434 + this.fcsjActualTime = fcsjActualTime;
  435 + }
  436 +
  437 + public String getZdsjActual() {
  438 + return zdsjActual;
  439 + }
  440 +
  441 + public void setZdsjActual(String zdsjActual) {
  442 + this.zdsjActual = zdsjActual;
  443 + }
  444 +
  445 + public Long getZdsjActualTime() {
  446 + return zdsjActualTime;
  447 + }
  448 +
  449 + public void setZdsjActualTime(Long zdsjActualTime) {
  450 + this.zdsjActualTime = zdsjActualTime;
  451 + }
  452 +
  453 + public int getStatus() {
  454 + return status;
  455 + }
  456 +
  457 + public void setStatus(int status) {
  458 + this.status = status;
  459 + }
  460 +
  461 + public String getAdjustExps() {
  462 + return adjustExps;
  463 + }
  464 +
  465 + public void setAdjustExps(String adjustExps) {
  466 + this.adjustExps = adjustExps;
  467 + }
  468 +
  469 + public boolean isSflj() {
  470 + return sflj;
  471 + }
  472 +
  473 + public void setSflj(boolean sflj) {
  474 + this.sflj = sflj;
  475 + }
  476 +
  477 + public boolean isLate() {
  478 + return late;
  479 + }
  480 +
  481 + public void setLate(boolean late) {
  482 + this.late = late;
  483 + }
  484 +
  485 + public String getRemarks() {
  486 + return remarks;
  487 + }
  488 +
  489 + public void setRemarks(String remarks) {
  490 + this.remarks = remarks;
  491 + }
  492 +
  493 + public String getDfsj() {
  494 + return dfsj;
  495 + }
  496 +
  497 + public void setDfsj(String dfsj) {
  498 + this.dfsj = dfsj;
  499 + }
  500 +
  501 + public Long getDfsjT() {
  502 + return dfsjT;
  503 + }
  504 +
  505 + public void setDfsjT(Long dfsjT) {
  506 + this.dfsjT = dfsjT;
  507 + }
  508 +
  509 + public Integer getDirectiveState() {
  510 + return directiveState;
  511 + }
  512 +
  513 + public void setDirectiveState(Integer directiveState) {
  514 + this.directiveState = directiveState;
  515 + }
  516 +
  517 + public Integer getOpDirectiveState() {
  518 + return opDirectiveState;
  519 + }
  520 +
  521 + public void setOpDirectiveState(Integer opDirectiveState) {
  522 + this.opDirectiveState = opDirectiveState;
  523 + }
  524 +
  525 + public String getQdzArrDatejh() {
  526 + return qdzArrDatejh;
  527 + }
  528 +
  529 + public void setQdzArrDatejh(String qdzArrDatejh) {
  530 + this.qdzArrDatejh = qdzArrDatejh;
  531 + }
  532 +
  533 + public String getQdzArrDatesj() {
  534 + return qdzArrDatesj;
  535 + }
  536 +
  537 + public void setQdzArrDatesj(String qdzArrDatesj) {
  538 + this.qdzArrDatesj = qdzArrDatesj;
  539 + }
  540 +
  541 + public Set<ChildTaskPlan> getcTasks() {
  542 + return cTasks;
  543 + }
  544 +
  545 + public void setcTasks(Set<ChildTaskPlan> cTasks) {
  546 + this.cTasks = cTasks;
  547 + }
  548 +
  549 + public String getGsName() {
  550 + return gsName;
  551 + }
  552 +
  553 + public void setGsName(String gsName) {
  554 + this.gsName = gsName;
  555 + }
  556 +
  557 + public String getGsBm() {
  558 + return gsBm;
  559 + }
  560 +
  561 + public void setGsBm(String gsBm) {
  562 + this.gsBm = gsBm;
  563 + }
  564 +
  565 + public String getFgsName() {
  566 + return fgsName;
  567 + }
  568 +
  569 + public void setFgsName(String fgsName) {
  570 + this.fgsName = fgsName;
  571 + }
  572 +
  573 + public String getFgsBm() {
  574 + return fgsBm;
  575 + }
  576 +
  577 + public void setFgsBm(String fgsBm) {
  578 + this.fgsBm = fgsBm;
  579 + }
  580 +
  581 + public Integer getCcno() {
  582 + return ccno;
  583 + }
  584 +
  585 + public void setCcno(Integer ccno) {
  586 + this.ccno = ccno;
  587 + }
  588 +
  589 + public boolean isDfAuto() {
  590 + return dfAuto;
  591 + }
  592 +
  593 + public void setDfAuto(boolean dfAuto) {
  594 + this.dfAuto = dfAuto;
  595 + }
  596 +
  597 + public boolean isOnline() {
  598 + return online;
  599 + }
  600 +
  601 + public void setOnline(boolean online) {
  602 + this.online = online;
  603 + }
  604 +
  605 + public boolean isReissue() {
  606 + return reissue;
  607 + }
  608 +
  609 + public void setReissue(boolean reissue) {
  610 + this.reissue = reissue;
  611 + }
  612 +
  613 + public Double getJhlcOrig() {
  614 + return jhlcOrig;
  615 + }
  616 +
  617 + public void setJhlcOrig(Double jhlcOrig) {
  618 + this.jhlcOrig = jhlcOrig;
  619 + }
  620 +}
... ...
src/main/java/com/bsth/filter/BaseFilter.java 0 → 100644
  1 +package com.bsth.filter;
  2 +
  3 +import org.springframework.util.AntPathMatcher;
  4 +import org.springframework.util.PathMatcher;
  5 +
  6 +import javax.servlet.*;
  7 +import javax.servlet.http.HttpServletRequest;
  8 +import javax.servlet.http.HttpServletResponse;
  9 +import java.io.IOException;
  10 +
  11 +public abstract class BaseFilter implements Filter {
  12 +
  13 + private final PathMatcher pathMatcher = new AntPathMatcher();
  14 +
  15 + /**
  16 + * 白名单
  17 + */
  18 + private String[] whiteListURLs = { };
  19 +
  20 + @Override
  21 + public void destroy() {
  22 +
  23 + }
  24 +
  25 + @Override
  26 + public void doFilter(ServletRequest request, ServletResponse response,
  27 + FilterChain chain) throws IOException, ServletException {
  28 +
  29 + HttpServletRequest httpRequest = (HttpServletRequest) request;
  30 + HttpServletResponse httpResponse = (HttpServletResponse) response;
  31 +
  32 + String currentURL = httpRequest.getServletPath();
  33 +
  34 + if (isWhiteURL(currentURL)) {
  35 + chain.doFilter(request, response);
  36 + return;
  37 + }
  38 +
  39 + doFilter(httpRequest, httpResponse, chain);
  40 + return;
  41 + }
  42 +
  43 + public void doFilter(HttpServletRequest request,
  44 + HttpServletResponse response, FilterChain chain)
  45 + throws IOException, ServletException {
  46 + chain.doFilter(request, response);
  47 + }
  48 +
  49 + @Override
  50 + public void init(FilterConfig arg0) throws ServletException {
  51 +
  52 + }
  53 +
  54 + private boolean isWhiteURL(String currentURL) {
  55 + for (String whiteURL : whiteListURLs) {
  56 + if (pathMatcher.match(whiteURL, currentURL)) {
  57 + return true;
  58 + }
  59 + }
  60 + return false;
  61 + }
  62 +}
... ...
src/main/java/com/bsth/filter/CORSFilter.java 0 → 100644
  1 +package com.bsth.filter;
  2 +
  3 +import java.io.IOException;
  4 +
  5 +import javax.servlet.FilterChain;
  6 +import javax.servlet.FilterConfig;
  7 +import javax.servlet.ServletException;
  8 +import javax.servlet.http.HttpServletRequest;
  9 +import javax.servlet.http.HttpServletResponse;
  10 +
  11 +import org.springframework.stereotype.Component;
  12 +
  13 +@Component
  14 +public class CORSFilter extends BaseFilter {
  15 +
  16 + public void init(FilterConfig filterConfig) {
  17 + }
  18 +
  19 + @Override
  20 + public void doFilter(HttpServletRequest request,
  21 + HttpServletResponse response, FilterChain chain)
  22 + throws IOException, ServletException {
  23 +
  24 + response.setHeader("Access-Control-Allow-Origin", "*");
  25 + response.setHeader("Access-Control-Allow-Methods",
  26 + "POST, GET, OPTIONS, DELETE");
  27 + response.setHeader("Access-Control-Max-Age", "3600");
  28 + response.setHeader("Access-Control-Allow-Headers", "x-requested-with");
  29 + chain.doFilter(request, response);
  30 + }
  31 +
  32 + public void destroy() {
  33 + }
  34 +
  35 +}
... ...
src/main/java/com/bsth/filter/XssFilter.java 0 → 100644
  1 +package com.bsth.filter;
  2 +
  3 +import org.springframework.stereotype.Component;
  4 +
  5 +import javax.servlet.FilterChain;
  6 +import javax.servlet.ServletException;
  7 +import javax.servlet.http.HttpServletRequest;
  8 +import javax.servlet.http.HttpServletResponse;
  9 +import java.io.IOException;
  10 +
  11 +@Component
  12 +public class XssFilter extends BaseFilter{
  13 +
  14 + @Override
  15 + public void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
  16 + throws IOException, ServletException {
  17 +
  18 + chain.doFilter(new XssHttpServletRequestWrapper((HttpServletRequest) request), response);
  19 + }
  20 +}
... ...
src/main/java/com/bsth/filter/XssHttpServletRequestWrapper.java 0 → 100644
  1 +package com.bsth.filter;
  2 +
  3 +import javax.servlet.http.HttpServletRequest;
  4 +import javax.servlet.http.HttpServletRequestWrapper;
  5 +
  6 +import org.apache.commons.lang3.StringEscapeUtils;
  7 +
  8 +public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper {
  9 + public XssHttpServletRequestWrapper(HttpServletRequest request) {
  10 + super(request);
  11 + }
  12 +
  13 + @Override
  14 + public String getHeader(String name) {
  15 + return StringEscapeUtils.escapeHtml4(super.getHeader(name));
  16 + }
  17 +
  18 + @Override
  19 + public String getQueryString() {
  20 + return StringEscapeUtils.escapeHtml4(super.getQueryString());
  21 + }
  22 +
  23 + @Override
  24 + public String getParameter(String name) {
  25 + return StringEscapeUtils.escapeHtml4(super.getParameter(name));
  26 + }
  27 +
  28 + @Override
  29 + public String[] getParameterValues(String name) {
  30 + String[] values = super.getParameterValues(name);
  31 + if (values != null) {
  32 + int length = values.length;
  33 + String[] escapseValues = new String[length];
  34 + for (int i = 0; i < length; i++) {
  35 + escapseValues[i] = StringEscapeUtils.escapeHtml4(values[i]);
  36 + }
  37 + return escapseValues;
  38 + }
  39 + return super.getParameterValues(name);
  40 + }
  41 +}
... ...
src/main/java/com/bsth/old_sys_wsclient/CompanyService.java 0 → 100644
  1 +/**
  2 + * CompanyService.java
  3 + *
  4 + * This file was auto-generated from WSDL
  5 + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6 + */
  7 +
  8 +package com.bsth.old_sys_wsclient;
  9 +
  10 +public interface CompanyService extends javax.xml.rpc.Service {
  11 + public String getCompanyServiceSoapAddress();
  12 +
  13 + public CompanyServiceSoap getCompanyServiceSoap() throws javax.xml.rpc.ServiceException;
  14 +
  15 + public CompanyServiceSoap getCompanyServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
  16 +}
... ...
src/main/java/com/bsth/old_sys_wsclient/CompanyServiceLocator.java 0 → 100644
  1 +/**
  2 + * CompanyServiceLocator.java
  3 + *
  4 + * This file was auto-generated from WSDL
  5 + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6 + */
  7 +
  8 +package com.bsth.old_sys_wsclient;
  9 +
  10 +@SuppressWarnings("serial")
  11 +public class CompanyServiceLocator extends org.apache.axis.client.Service implements CompanyService {
  12 +
  13 + public CompanyServiceLocator() {
  14 + }
  15 +
  16 +
  17 + public CompanyServiceLocator(org.apache.axis.EngineConfiguration config) {
  18 + super(config);
  19 + }
  20 +
  21 + public CompanyServiceLocator(String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
  22 + super(wsdlLoc, sName);
  23 + }
  24 +
  25 + // Use to get a proxy class for CompanyServiceSoap
  26 + private String CompanyServiceSoap_address = "http://114.80.178.12:8030/CompanyService.asmx";
  27 +
  28 + public String getCompanyServiceSoapAddress() {
  29 + return CompanyServiceSoap_address;
  30 + }
  31 +
  32 + // The WSDD service name defaults to the port name.
  33 + private String CompanyServiceSoapWSDDServiceName = "CompanyServiceSoap";
  34 +
  35 + public String getCompanyServiceSoapWSDDServiceName() {
  36 + return CompanyServiceSoapWSDDServiceName;
  37 + }
  38 +
  39 + public void setCompanyServiceSoapWSDDServiceName(String name) {
  40 + CompanyServiceSoapWSDDServiceName = name;
  41 + }
  42 +
  43 + public CompanyServiceSoap getCompanyServiceSoap() throws javax.xml.rpc.ServiceException {
  44 + java.net.URL endpoint;
  45 + try {
  46 + endpoint = new java.net.URL(CompanyServiceSoap_address);
  47 + }
  48 + catch (java.net.MalformedURLException e) {
  49 + throw new javax.xml.rpc.ServiceException(e);
  50 + }
  51 + return getCompanyServiceSoap(endpoint);
  52 + }
  53 +
  54 + public CompanyServiceSoap getCompanyServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
  55 + try {
  56 + CompanyServiceSoapStub _stub = new CompanyServiceSoapStub(portAddress, this);
  57 + _stub.setPortName(getCompanyServiceSoapWSDDServiceName());
  58 + _stub.setTimeout(6000);
  59 + return _stub;
  60 + }
  61 + catch (org.apache.axis.AxisFault e) {
  62 + return null;
  63 + }
  64 + }
  65 +
  66 + public void setCompanyServiceSoapEndpointAddress(String address) {
  67 + CompanyServiceSoap_address = address;
  68 + }
  69 +
  70 + /**
  71 + * For the given interface, get the stub implementation.
  72 + * If this service has no port for the given interface,
  73 + * then ServiceException is thrown.
  74 + */
  75 + @SuppressWarnings("rawtypes")
  76 + public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
  77 + try {
  78 + if (CompanyServiceSoap.class.isAssignableFrom(serviceEndpointInterface)) {
  79 + CompanyServiceSoapStub _stub = new CompanyServiceSoapStub(new java.net.URL(CompanyServiceSoap_address), this);
  80 + _stub.setPortName(getCompanyServiceSoapWSDDServiceName());
  81 + return _stub;
  82 + }
  83 + }
  84 + catch (Throwable t) {
  85 + throw new javax.xml.rpc.ServiceException(t);
  86 + }
  87 + throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
  88 + }
  89 +
  90 + /**
  91 + * For the given interface, get the stub implementation.
  92 + * If this service has no port for the given interface,
  93 + * then ServiceException is thrown.
  94 + */
  95 + @SuppressWarnings("rawtypes")
  96 + public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
  97 + if (portName == null) {
  98 + return getPort(serviceEndpointInterface);
  99 + }
  100 + String inputPortName = portName.getLocalPart();
  101 + if ("CompanyServiceSoap".equals(inputPortName)) {
  102 + return getCompanyServiceSoap();
  103 + }
  104 + else {
  105 + java.rmi.Remote _stub = getPort(serviceEndpointInterface);
  106 + ((org.apache.axis.client.Stub) _stub).setPortName(portName);
  107 + return _stub;
  108 + }
  109 + }
  110 +
  111 + public javax.xml.namespace.QName getServiceName() {
  112 + return new javax.xml.namespace.QName("http://tempuri.org/", "CompanyService");
  113 + }
  114 +
  115 + @SuppressWarnings("rawtypes")
  116 + private java.util.HashSet ports = null;
  117 +
  118 + @SuppressWarnings({ "rawtypes", "unchecked" })
  119 + public java.util.Iterator getPorts() {
  120 + if (ports == null) {
  121 + ports = new java.util.HashSet();
  122 + ports.add(new javax.xml.namespace.QName("http://tempuri.org/", "CompanyServiceSoap"));
  123 + }
  124 + return ports.iterator();
  125 + }
  126 +
  127 + /**
  128 + * Set the endpoint address for the specified port name.
  129 + */
  130 + public void setEndpointAddress(String portName, String address) throws javax.xml.rpc.ServiceException {
  131 +
  132 +if ("CompanyServiceSoap".equals(portName)) {
  133 + setCompanyServiceSoapEndpointAddress(address);
  134 + }
  135 + else
  136 +{ // Unknown Port Name
  137 + throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
  138 + }
  139 + }
  140 +
  141 + /**
  142 + * Set the endpoint address for the specified port name.
  143 + */
  144 + public void setEndpointAddress(javax.xml.namespace.QName portName, String address) throws javax.xml.rpc.ServiceException {
  145 + setEndpointAddress(portName.getLocalPart(), address);
  146 + }
  147 +
  148 +}
... ...
src/main/java/com/bsth/old_sys_wsclient/CompanyServiceSoap.java 0 → 100644
  1 +/**
  2 + * CompanyServiceSoap.java
  3 + *
  4 + * This file was auto-generated from WSDL
  5 + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6 + */
  7 +
  8 +package com.bsth.old_sys_wsclient;
  9 +
  10 +import com.bsth.old_sys_wsclient.holders.copy.ArrayOfStringHolder;
  11 +import com.bsth.old_sys_wsclient.holders.copy.GetHistoryJCCByXLBMResponseFDataTableHolder;
  12 +
  13 +public interface CompanyServiceSoap extends java.rmi.Remote {
  14 +
  15 + /**
  16 + * 车辆路单
  17 + */
  18 + public boolean returnCarOilInfo(String fUserName, String fPassword, String fGsdm, String fDate, ArrayOfStringHolder fCarLd, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException;
  19 +
  20 + /**
  21 + * 车辆信息
  22 + */
  23 + public boolean returnClInfo(String fUserName, String fPassword, String fGsdm, ArrayOfStringHolder fClInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException;
  24 +
  25 + /**
  26 + * 线路信息
  27 + */
  28 + public boolean returnXlInfo(String fUserName, String fPassword, String fGsdm, ArrayOfStringHolder fXlInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException;
  29 +
  30 + /**
  31 + * 站点信息
  32 + */
  33 + public boolean returnZDInfo(String fUserName, String fPassword, String fGsdm, String fXlid, ArrayOfStringHolder fZDInfo, javax.xml.rpc.holders.StringHolder fTimeInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException;
  34 +
  35 + /**
  36 + * 出场
  37 + */
  38 + public boolean returnCCInfo(String fPassword, String fGsdm, String fRQ, ArrayOfStringHolder fCCInfo, javax.xml.rpc.holders.StringHolder error) throws java.rmi.RemoteException;
  39 +
  40 + /**
  41 + * 进场
  42 + */
  43 + public boolean returnJCInfo(String fPassword, String fGsdm, String fRQ, ArrayOfStringHolder fJCInfo, javax.xml.rpc.holders.StringHolder error) throws java.rmi.RemoteException;
  44 + public boolean getLSLC_PB(String fIPAddress, String fUserName, String fPassword, String fDate, String fJSYGH, String fGSDM, ArrayOfStringHolder fStrLSLCArr, ArrayOfStringHolder fStrPBXX, javax.xml.rpc.holders.StringHolder fError, javax.xml.rpc.holders.StringHolder fJSYMC, javax.xml.rpc.holders.StringHolder fGSMC) throws java.rmi.RemoteException;
  45 + public boolean getCurrentDayPlan(String fIPAddress, String fUserName, String fPassword, String fJSYGH, String fGSDM, ArrayOfStringHolder fCurrentDayPlan, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException;
  46 + public void getHistoryJCCByXLBM(String fIPAddress, String fUserName, String fPassword, String fXLBM, String fDate, javax.xml.rpc.holders.StringHolder fError, javax.xml.rpc.holders.BooleanHolder getHistoryJCCByXLBMResult, GetHistoryJCCByXLBMResponseFDataTableHolder fDataTable) throws java.rmi.RemoteException;
  47 + public boolean getUnusual(String fIPAddress, String fUserName, String fPassword, String fDate, String fGSDM, String fFGSDM, ArrayOfStringHolder fDriverRequestArr, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException;
  48 +}
... ...
src/main/java/com/bsth/old_sys_wsclient/CompanyServiceSoapProxy.java 0 → 100644
  1 +package com.bsth.old_sys_wsclient;
  2 +
  3 +import com.bsth.old_sys_wsclient.holders.copy.ArrayOfStringHolder;
  4 +import com.bsth.old_sys_wsclient.holders.copy.GetHistoryJCCByXLBMResponseFDataTableHolder;
  5 +
  6 +public class CompanyServiceSoapProxy implements CompanyServiceSoap {
  7 + private String _endpoint = null;
  8 + private CompanyServiceSoap companyServiceSoap = null;
  9 +
  10 + public CompanyServiceSoapProxy() {
  11 + _initCompanyServiceSoapProxy();
  12 + }
  13 +
  14 + public CompanyServiceSoapProxy(String endpoint) {
  15 + _endpoint = endpoint;
  16 + _initCompanyServiceSoapProxy();
  17 + }
  18 +
  19 + private void _initCompanyServiceSoapProxy() {
  20 + try {
  21 + companyServiceSoap = (new CompanyServiceLocator()).getCompanyServiceSoap();
  22 + if (companyServiceSoap != null) {
  23 + if (_endpoint != null)
  24 + ((javax.xml.rpc.Stub)companyServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
  25 + else
  26 + _endpoint = (String)((javax.xml.rpc.Stub)companyServiceSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
  27 + }
  28 +
  29 + }
  30 + catch (javax.xml.rpc.ServiceException serviceException) {}
  31 + }
  32 +
  33 + public String getEndpoint() {
  34 + return _endpoint;
  35 + }
  36 +
  37 + public void setEndpoint(String endpoint) {
  38 + _endpoint = endpoint;
  39 + if (companyServiceSoap != null)
  40 + ((javax.xml.rpc.Stub)companyServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
  41 +
  42 + }
  43 +
  44 + public CompanyServiceSoap getCompanyServiceSoap() {
  45 + if (companyServiceSoap == null)
  46 + _initCompanyServiceSoapProxy();
  47 + return companyServiceSoap;
  48 + }
  49 +
  50 + public boolean returnCarOilInfo(String fUserName, String fPassword, String fGsdm, String fDate, ArrayOfStringHolder fCarLd, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{
  51 + if (companyServiceSoap == null)
  52 + _initCompanyServiceSoapProxy();
  53 + return companyServiceSoap.returnCarOilInfo(fUserName, fPassword, fGsdm, fDate, fCarLd, fError);
  54 + }
  55 +
  56 + public boolean returnClInfo(String fUserName, String fPassword, String fGsdm, ArrayOfStringHolder fClInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{
  57 + if (companyServiceSoap == null)
  58 + _initCompanyServiceSoapProxy();
  59 + return companyServiceSoap.returnClInfo(fUserName, fPassword, fGsdm, fClInfo, fError);
  60 + }
  61 +
  62 + public boolean returnXlInfo(String fUserName, String fPassword, String fGsdm, ArrayOfStringHolder fXlInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{
  63 + if (companyServiceSoap == null)
  64 + _initCompanyServiceSoapProxy();
  65 + return companyServiceSoap.returnXlInfo(fUserName, fPassword, fGsdm, fXlInfo, fError);
  66 + }
  67 +
  68 + public boolean returnZDInfo(String fUserName, String fPassword, String fGsdm, String fXlid, ArrayOfStringHolder fZDInfo, javax.xml.rpc.holders.StringHolder fTimeInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{
  69 + if (companyServiceSoap == null)
  70 + _initCompanyServiceSoapProxy();
  71 + return companyServiceSoap.returnZDInfo(fUserName, fPassword, fGsdm, fXlid, fZDInfo, fTimeInfo, fError);
  72 + }
  73 +
  74 + public boolean returnCCInfo(String fPassword, String fGsdm, String fRQ, ArrayOfStringHolder fCCInfo, javax.xml.rpc.holders.StringHolder error) throws java.rmi.RemoteException{
  75 + if (companyServiceSoap == null)
  76 + _initCompanyServiceSoapProxy();
  77 + return companyServiceSoap.returnCCInfo(fPassword, fGsdm, fRQ, fCCInfo, error);
  78 + }
  79 +
  80 + public boolean returnJCInfo(String fPassword, String fGsdm, String fRQ, ArrayOfStringHolder fJCInfo, javax.xml.rpc.holders.StringHolder error) throws java.rmi.RemoteException{
  81 + if (companyServiceSoap == null)
  82 + _initCompanyServiceSoapProxy();
  83 + return companyServiceSoap.returnJCInfo(fPassword, fGsdm, fRQ, fJCInfo, error);
  84 + }
  85 +
  86 + public boolean getLSLC_PB(String fIPAddress, String fUserName, String fPassword, String fDate, String fJSYGH, String fGSDM, ArrayOfStringHolder fStrLSLCArr, ArrayOfStringHolder fStrPBXX, javax.xml.rpc.holders.StringHolder fError, javax.xml.rpc.holders.StringHolder fJSYMC, javax.xml.rpc.holders.StringHolder fGSMC) throws java.rmi.RemoteException{
  87 + if (companyServiceSoap == null)
  88 + _initCompanyServiceSoapProxy();
  89 + return companyServiceSoap.getLSLC_PB(fIPAddress, fUserName, fPassword, fDate, fJSYGH, fGSDM, fStrLSLCArr, fStrPBXX, fError, fJSYMC, fGSMC);
  90 + }
  91 +
  92 + public boolean getCurrentDayPlan(String fIPAddress, String fUserName, String fPassword, String fJSYGH, String fGSDM, ArrayOfStringHolder fCurrentDayPlan, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{
  93 + if (companyServiceSoap == null)
  94 + _initCompanyServiceSoapProxy();
  95 + return companyServiceSoap.getCurrentDayPlan(fIPAddress, fUserName, fPassword, fJSYGH, fGSDM, fCurrentDayPlan, fError);
  96 + }
  97 +
  98 + public void getHistoryJCCByXLBM(String fIPAddress, String fUserName, String fPassword, String fXLBM, String fDate, javax.xml.rpc.holders.StringHolder fError, javax.xml.rpc.holders.BooleanHolder getHistoryJCCByXLBMResult, GetHistoryJCCByXLBMResponseFDataTableHolder fDataTable) throws java.rmi.RemoteException{
  99 + if (companyServiceSoap == null)
  100 + _initCompanyServiceSoapProxy();
  101 + companyServiceSoap.getHistoryJCCByXLBM(fIPAddress, fUserName, fPassword, fXLBM, fDate, fError, getHistoryJCCByXLBMResult, fDataTable);
  102 + }
  103 +
  104 + public boolean getUnusual(String fIPAddress, String fUserName, String fPassword, String fDate, String fGSDM, String fFGSDM, ArrayOfStringHolder fDriverRequestArr, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{
  105 + if (companyServiceSoap == null)
  106 + _initCompanyServiceSoapProxy();
  107 + return companyServiceSoap.getUnusual(fIPAddress, fUserName, fPassword, fDate, fGSDM, fFGSDM, fDriverRequestArr, fError);
  108 + }
  109 +
  110 +
  111 +}
0 112 \ No newline at end of file
... ...
src/main/java/com/bsth/old_sys_wsclient/CompanyServiceSoapStub.java 0 → 100644
  1 +/**
  2 + * CompanyServiceSoapStub.java
  3 + *
  4 + * This file was auto-generated from WSDL
  5 + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6 + */
  7 +
  8 +package com.bsth.old_sys_wsclient;
  9 +
  10 +import com.bsth.old_sys_wsclient.holders.copy.ArrayOfStringHolder;
  11 +import com.bsth.old_sys_wsclient.holders.copy.GetHistoryJCCByXLBMResponseFDataTableHolder;
  12 +
  13 +public class CompanyServiceSoapStub extends org.apache.axis.client.Stub implements CompanyServiceSoap {
  14 + @SuppressWarnings("rawtypes")
  15 + private java.util.Vector cachedSerClasses = new java.util.Vector();
  16 + @SuppressWarnings("rawtypes")
  17 + private java.util.Vector cachedSerQNames = new java.util.Vector();
  18 + @SuppressWarnings("rawtypes")
  19 + private java.util.Vector cachedSerFactories = new java.util.Vector();
  20 + @SuppressWarnings("rawtypes")
  21 + private java.util.Vector cachedDeserFactories = new java.util.Vector();
  22 +
  23 + static org.apache.axis.description.OperationDesc [] _operations;
  24 +
  25 + static {
  26 + _operations = new org.apache.axis.description.OperationDesc[10];
  27 + _initOperationDesc1();
  28 + }
  29 +
  30 + private static void _initOperationDesc1(){
  31 + org.apache.axis.description.OperationDesc oper;
  32 + org.apache.axis.description.ParameterDesc param;
  33 + oper = new org.apache.axis.description.OperationDesc();
  34 + oper.setName("ReturnCarOilInfo");
  35 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fUserName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  36 + param.setOmittable(true);
  37 + oper.addParameter(param);
  38 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  39 + param.setOmittable(true);
  40 + oper.addParameter(param);
  41 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fGsdm"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  42 + param.setOmittable(true);
  43 + oper.addParameter(param);
  44 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fDate"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  45 + param.setOmittable(true);
  46 + oper.addParameter(param);
  47 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fCarLd"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString"), String[].class, false, false);
  48 + param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
  49 + param.setOmittable(true);
  50 + oper.addParameter(param);
  51 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fError"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  52 + param.setOmittable(true);
  53 + oper.addParameter(param);
  54 + oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
  55 + oper.setReturnClass(boolean.class);
  56 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnCarOilInfoResult"));
  57 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  58 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  59 + _operations[0] = oper;
  60 +
  61 + oper = new org.apache.axis.description.OperationDesc();
  62 + oper.setName("ReturnClInfo");
  63 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fUserName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  64 + param.setOmittable(true);
  65 + oper.addParameter(param);
  66 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  67 + param.setOmittable(true);
  68 + oper.addParameter(param);
  69 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fGsdm"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  70 + param.setOmittable(true);
  71 + oper.addParameter(param);
  72 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fClInfo"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString"), String[].class, false, false);
  73 + param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
  74 + param.setOmittable(true);
  75 + oper.addParameter(param);
  76 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fError"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  77 + param.setOmittable(true);
  78 + oper.addParameter(param);
  79 + oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
  80 + oper.setReturnClass(boolean.class);
  81 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnClInfoResult"));
  82 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  83 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  84 + _operations[1] = oper;
  85 +
  86 + oper = new org.apache.axis.description.OperationDesc();
  87 + oper.setName("ReturnXlInfo");
  88 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fUserName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  89 + param.setOmittable(true);
  90 + oper.addParameter(param);
  91 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  92 + param.setOmittable(true);
  93 + oper.addParameter(param);
  94 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fGsdm"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  95 + param.setOmittable(true);
  96 + oper.addParameter(param);
  97 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fXlInfo"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString"), String[].class, false, false);
  98 + param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
  99 + param.setOmittable(true);
  100 + oper.addParameter(param);
  101 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fError"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  102 + param.setOmittable(true);
  103 + oper.addParameter(param);
  104 + oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
  105 + oper.setReturnClass(boolean.class);
  106 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnXlInfoResult"));
  107 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  108 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  109 + _operations[2] = oper;
  110 +
  111 + oper = new org.apache.axis.description.OperationDesc();
  112 + oper.setName("ReturnZDInfo");
  113 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fUserName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  114 + param.setOmittable(true);
  115 + oper.addParameter(param);
  116 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  117 + param.setOmittable(true);
  118 + oper.addParameter(param);
  119 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fGsdm"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  120 + param.setOmittable(true);
  121 + oper.addParameter(param);
  122 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fXlid"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  123 + param.setOmittable(true);
  124 + oper.addParameter(param);
  125 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fZDInfo"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString"), String[].class, false, false);
  126 + param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
  127 + param.setOmittable(true);
  128 + oper.addParameter(param);
  129 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fTimeInfo"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  130 + param.setOmittable(true);
  131 + oper.addParameter(param);
  132 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fError"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  133 + param.setOmittable(true);
  134 + oper.addParameter(param);
  135 + oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
  136 + oper.setReturnClass(boolean.class);
  137 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnZDInfoResult"));
  138 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  139 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  140 + _operations[3] = oper;
  141 +
  142 + oper = new org.apache.axis.description.OperationDesc();
  143 + oper.setName("ReturnCCInfo");
  144 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  145 + param.setOmittable(true);
  146 + oper.addParameter(param);
  147 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fGsdm"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  148 + param.setOmittable(true);
  149 + oper.addParameter(param);
  150 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fRQ"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  151 + param.setOmittable(true);
  152 + oper.addParameter(param);
  153 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fCCInfo"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString"), String[].class, false, false);
  154 + param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
  155 + param.setOmittable(true);
  156 + oper.addParameter(param);
  157 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "error"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  158 + param.setOmittable(true);
  159 + oper.addParameter(param);
  160 + oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
  161 + oper.setReturnClass(boolean.class);
  162 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnCCInfoResult"));
  163 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  164 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  165 + _operations[4] = oper;
  166 +
  167 + oper = new org.apache.axis.description.OperationDesc();
  168 + oper.setName("ReturnJCInfo");
  169 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  170 + param.setOmittable(true);
  171 + oper.addParameter(param);
  172 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fGsdm"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  173 + param.setOmittable(true);
  174 + oper.addParameter(param);
  175 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fRQ"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  176 + param.setOmittable(true);
  177 + oper.addParameter(param);
  178 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fJCInfo"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString"), String[].class, false, false);
  179 + param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
  180 + param.setOmittable(true);
  181 + oper.addParameter(param);
  182 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "error"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  183 + param.setOmittable(true);
  184 + oper.addParameter(param);
  185 + oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
  186 + oper.setReturnClass(boolean.class);
  187 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnJCInfoResult"));
  188 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  189 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  190 + _operations[5] = oper;
  191 +
  192 + oper = new org.apache.axis.description.OperationDesc();
  193 + oper.setName("getLSLC_PB");
  194 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fIPAddress"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  195 + param.setOmittable(true);
  196 + oper.addParameter(param);
  197 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fUserName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  198 + param.setOmittable(true);
  199 + oper.addParameter(param);
  200 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  201 + param.setOmittable(true);
  202 + oper.addParameter(param);
  203 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fDate"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  204 + param.setOmittable(true);
  205 + oper.addParameter(param);
  206 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fJSYGH"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  207 + param.setOmittable(true);
  208 + oper.addParameter(param);
  209 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fGSDM"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  210 + param.setOmittable(true);
  211 + oper.addParameter(param);
  212 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fStrLSLCArr"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString"), String[].class, false, false);
  213 + param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
  214 + param.setOmittable(true);
  215 + oper.addParameter(param);
  216 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fStrPBXX"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString"), String[].class, false, false);
  217 + param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
  218 + param.setOmittable(true);
  219 + oper.addParameter(param);
  220 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fError"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  221 + param.setOmittable(true);
  222 + oper.addParameter(param);
  223 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fJSYMC"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  224 + param.setOmittable(true);
  225 + oper.addParameter(param);
  226 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fGSMC"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  227 + param.setOmittable(true);
  228 + oper.addParameter(param);
  229 + oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
  230 + oper.setReturnClass(boolean.class);
  231 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "getLSLC_PBResult"));
  232 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  233 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  234 + _operations[6] = oper;
  235 +
  236 + oper = new org.apache.axis.description.OperationDesc();
  237 + oper.setName("getCurrentDayPlan");
  238 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fIPAddress"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  239 + param.setOmittable(true);
  240 + oper.addParameter(param);
  241 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fUserName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  242 + param.setOmittable(true);
  243 + oper.addParameter(param);
  244 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  245 + param.setOmittable(true);
  246 + oper.addParameter(param);
  247 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fJSYGH"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  248 + param.setOmittable(true);
  249 + oper.addParameter(param);
  250 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fGSDM"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  251 + param.setOmittable(true);
  252 + oper.addParameter(param);
  253 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fCurrentDayPlan"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString"), String[].class, false, false);
  254 + param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
  255 + param.setOmittable(true);
  256 + oper.addParameter(param);
  257 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fError"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  258 + param.setOmittable(true);
  259 + oper.addParameter(param);
  260 + oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
  261 + oper.setReturnClass(boolean.class);
  262 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "getCurrentDayPlanResult"));
  263 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  264 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  265 + _operations[7] = oper;
  266 +
  267 + oper = new org.apache.axis.description.OperationDesc();
  268 + oper.setName("getHistoryJCCByXLBM");
  269 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fIPAddress"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  270 + param.setOmittable(true);
  271 + oper.addParameter(param);
  272 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fUserName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  273 + param.setOmittable(true);
  274 + oper.addParameter(param);
  275 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  276 + param.setOmittable(true);
  277 + oper.addParameter(param);
  278 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fXLBM"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  279 + param.setOmittable(true);
  280 + oper.addParameter(param);
  281 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fDate"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  282 + param.setOmittable(true);
  283 + oper.addParameter(param);
  284 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fError"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  285 + param.setOmittable(true);
  286 + oper.addParameter(param);
  287 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "getHistoryJCCByXLBMResult"), org.apache.axis.description.ParameterDesc.OUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false);
  288 + oper.addParameter(param);
  289 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fDataTable"), org.apache.axis.description.ParameterDesc.OUT, new javax.xml.namespace.QName("http://tempuri.org/", ">>getHistoryJCCByXLBMResponse>fDataTable"), GetHistoryJCCByXLBMResponseFDataTable.class, false, false);
  290 + param.setOmittable(true);
  291 + oper.addParameter(param);
  292 + oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
  293 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  294 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  295 + _operations[8] = oper;
  296 +
  297 + oper = new org.apache.axis.description.OperationDesc();
  298 + oper.setName("getUnusual");
  299 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fIPAddress"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  300 + param.setOmittable(true);
  301 + oper.addParameter(param);
  302 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fUserName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  303 + param.setOmittable(true);
  304 + oper.addParameter(param);
  305 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  306 + param.setOmittable(true);
  307 + oper.addParameter(param);
  308 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fDate"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  309 + param.setOmittable(true);
  310 + oper.addParameter(param);
  311 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fGSDM"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  312 + param.setOmittable(true);
  313 + oper.addParameter(param);
  314 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fFGSDM"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  315 + param.setOmittable(true);
  316 + oper.addParameter(param);
  317 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fDriverRequestArr"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString"), String[].class, false, false);
  318 + param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
  319 + param.setOmittable(true);
  320 + oper.addParameter(param);
  321 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fError"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  322 + param.setOmittable(true);
  323 + oper.addParameter(param);
  324 + oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
  325 + oper.setReturnClass(boolean.class);
  326 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "getUnusualResult"));
  327 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  328 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  329 + _operations[9] = oper;
  330 +
  331 + }
  332 +
  333 + public CompanyServiceSoapStub() throws org.apache.axis.AxisFault {
  334 + this(null);
  335 + }
  336 +
  337 + public CompanyServiceSoapStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
  338 + this(service);
  339 + super.cachedEndpoint = endpointURL;
  340 + }
  341 +
  342 + @SuppressWarnings({ "rawtypes", "unused", "unchecked" })
  343 + public CompanyServiceSoapStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
  344 + if (service == null) {
  345 + super.service = new org.apache.axis.client.Service();
  346 + } else {
  347 + super.service = service;
  348 + }
  349 + ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
  350 + Class cls;
  351 + javax.xml.namespace.QName qName;
  352 + javax.xml.namespace.QName qName2;
  353 + Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
  354 + Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
  355 + Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
  356 + Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
  357 + Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
  358 + Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
  359 + Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
  360 + Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
  361 + Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
  362 + Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
  363 + qName = new javax.xml.namespace.QName("http://tempuri.org/", ">>getHistoryJCCByXLBMResponse>fDataTable");
  364 + cachedSerQNames.add(qName);
  365 + cls = GetHistoryJCCByXLBMResponseFDataTable.class;
  366 + cachedSerClasses.add(cls);
  367 + cachedSerFactories.add(beansf);
  368 + cachedDeserFactories.add(beandf);
  369 +
  370 + qName = new javax.xml.namespace.QName("http://tempuri.org/", ">getUnusual");
  371 + cachedSerQNames.add(qName);
  372 + cls = GetUnusual.class;
  373 + cachedSerClasses.add(cls);
  374 + cachedSerFactories.add(beansf);
  375 + cachedDeserFactories.add(beandf);
  376 +
  377 + qName = new javax.xml.namespace.QName("http://tempuri.org/", ">getUnusualResponse");
  378 + cachedSerQNames.add(qName);
  379 + cls = GetUnusualResponse.class;
  380 + cachedSerClasses.add(cls);
  381 + cachedSerFactories.add(beansf);
  382 + cachedDeserFactories.add(beandf);
  383 +
  384 + qName = new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString");
  385 + cachedSerQNames.add(qName);
  386 + cls = String[].class;
  387 + cachedSerClasses.add(cls);
  388 + qName = new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string");
  389 + qName2 = new javax.xml.namespace.QName("http://tempuri.org/", "string");
  390 + cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
  391 + cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
  392 +
  393 + }
  394 +
  395 + @SuppressWarnings("rawtypes")
  396 + protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
  397 + try {
  398 + org.apache.axis.client.Call _call = super._createCall();
  399 + if (super.maintainSessionSet) {
  400 + _call.setMaintainSession(super.maintainSession);
  401 + }
  402 + if (super.cachedUsername != null) {
  403 + _call.setUsername(super.cachedUsername);
  404 + }
  405 + if (super.cachedPassword != null) {
  406 + _call.setPassword(super.cachedPassword);
  407 + }
  408 + if (super.cachedEndpoint != null) {
  409 + _call.setTargetEndpointAddress(super.cachedEndpoint);
  410 + }
  411 + if (super.cachedTimeout != null) {
  412 + _call.setTimeout(super.cachedTimeout);
  413 + }
  414 + if (super.cachedPortName != null) {
  415 + _call.setPortName(super.cachedPortName);
  416 + }
  417 + java.util.Enumeration keys = super.cachedProperties.keys();
  418 + while (keys.hasMoreElements()) {
  419 + String key = (String) keys.nextElement();
  420 + _call.setProperty(key, super.cachedProperties.get(key));
  421 + }
  422 + // All the type mapping information is registered
  423 + // when the first call is made.
  424 + // The type mapping information is actually registered in
  425 + // the TypeMappingRegistry of the service, which
  426 + // is the reason why registration is only needed for the first call.
  427 + synchronized (this) {
  428 + if (firstCall()) {
  429 + // must set encoding style before registering serializers
  430 + _call.setEncodingStyle(null);
  431 + for (int i = 0; i < cachedSerFactories.size(); ++i) {
  432 + Class cls = (Class) cachedSerClasses.get(i);
  433 + javax.xml.namespace.QName qName =
  434 + (javax.xml.namespace.QName) cachedSerQNames.get(i);
  435 + Object x = cachedSerFactories.get(i);
  436 + if (x instanceof Class) {
  437 + Class sf = (Class)
  438 + cachedSerFactories.get(i);
  439 + Class df = (Class)
  440 + cachedDeserFactories.get(i);
  441 + _call.registerTypeMapping(cls, qName, sf, df, false);
  442 + }
  443 + else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
  444 + org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
  445 + cachedSerFactories.get(i);
  446 + org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
  447 + cachedDeserFactories.get(i);
  448 + _call.registerTypeMapping(cls, qName, sf, df, false);
  449 + }
  450 + }
  451 + }
  452 + }
  453 + return _call;
  454 + }
  455 + catch (Throwable _t) {
  456 + throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
  457 + }
  458 + }
  459 +
  460 + @SuppressWarnings("rawtypes")
  461 + public boolean returnCarOilInfo(String fUserName, String fPassword, String fGsdm, String fDate, ArrayOfStringHolder fCarLd, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException {
  462 + if (super.cachedEndpoint == null) {
  463 + throw new org.apache.axis.NoEndPointException();
  464 + }
  465 + org.apache.axis.client.Call _call = createCall();
  466 + _call.setOperation(_operations[0]);
  467 + _call.setUseSOAPAction(true);
  468 + _call.setSOAPActionURI("http://tempuri.org/ReturnCarOilInfo");
  469 + _call.setEncodingStyle(null);
  470 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  471 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  472 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  473 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnCarOilInfo"));
  474 +
  475 + setRequestHeaders(_call);
  476 + setAttachments(_call);
  477 + try { Object _resp = _call.invoke(new Object[] {fUserName, fPassword, fGsdm, fDate, fCarLd.value, fError.value});
  478 +
  479 + if (_resp instanceof java.rmi.RemoteException) {
  480 + throw (java.rmi.RemoteException)_resp;
  481 + }
  482 + else {
  483 + extractAttachments(_call);
  484 + java.util.Map _output;
  485 + _output = _call.getOutputParams();
  486 + try {
  487 + fCarLd.value = (String[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fCarLd"));
  488 + } catch (Exception _exception) {
  489 + fCarLd.value = (String[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fCarLd")), String[].class);
  490 + }
  491 + try {
  492 + fError.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError"));
  493 + } catch (Exception _exception) {
  494 + fError.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError")), String.class);
  495 + }
  496 + try {
  497 + return ((Boolean) _resp).booleanValue();
  498 + } catch (Exception _exception) {
  499 + return ((Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
  500 + }
  501 + }
  502 + } catch (org.apache.axis.AxisFault axisFaultException) {
  503 + throw axisFaultException;
  504 +}
  505 + }
  506 +
  507 + @SuppressWarnings("rawtypes")
  508 + public boolean returnClInfo(String fUserName, String fPassword, String fGsdm, ArrayOfStringHolder fClInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException {
  509 + if (super.cachedEndpoint == null) {
  510 + throw new org.apache.axis.NoEndPointException();
  511 + }
  512 + org.apache.axis.client.Call _call = createCall();
  513 + _call.setOperation(_operations[1]);
  514 + _call.setUseSOAPAction(true);
  515 + _call.setSOAPActionURI("http://tempuri.org/ReturnClInfo");
  516 + _call.setEncodingStyle(null);
  517 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  518 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  519 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  520 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnClInfo"));
  521 +
  522 + setRequestHeaders(_call);
  523 + setAttachments(_call);
  524 + try { Object _resp = _call.invoke(new Object[] {fUserName, fPassword, fGsdm, fClInfo.value, fError.value});
  525 +
  526 + if (_resp instanceof java.rmi.RemoteException) {
  527 + throw (java.rmi.RemoteException)_resp;
  528 + }
  529 + else {
  530 + extractAttachments(_call);
  531 + java.util.Map _output;
  532 + _output = _call.getOutputParams();
  533 + try {
  534 + fClInfo.value = (String[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fClInfo"));
  535 + } catch (Exception _exception) {
  536 + fClInfo.value = (String[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fClInfo")), String[].class);
  537 + }
  538 + try {
  539 + fError.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError"));
  540 + } catch (Exception _exception) {
  541 + fError.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError")), String.class);
  542 + }
  543 + try {
  544 + return ((Boolean) _resp).booleanValue();
  545 + } catch (Exception _exception) {
  546 + return ((Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
  547 + }
  548 + }
  549 + } catch (org.apache.axis.AxisFault axisFaultException) {
  550 + throw axisFaultException;
  551 +}
  552 + }
  553 +
  554 + @SuppressWarnings("rawtypes")
  555 + public boolean returnXlInfo(String fUserName, String fPassword, String fGsdm, ArrayOfStringHolder fXlInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException {
  556 + if (super.cachedEndpoint == null) {
  557 + throw new org.apache.axis.NoEndPointException();
  558 + }
  559 + org.apache.axis.client.Call _call = createCall();
  560 + _call.setOperation(_operations[2]);
  561 + _call.setUseSOAPAction(true);
  562 + _call.setSOAPActionURI("http://tempuri.org/ReturnXlInfo");
  563 + _call.setEncodingStyle(null);
  564 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  565 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  566 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  567 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnXlInfo"));
  568 +
  569 + setRequestHeaders(_call);
  570 + setAttachments(_call);
  571 + try { Object _resp = _call.invoke(new Object[] {fUserName, fPassword, fGsdm, fXlInfo.value, fError.value});
  572 +
  573 + if (_resp instanceof java.rmi.RemoteException) {
  574 + throw (java.rmi.RemoteException)_resp;
  575 + }
  576 + else {
  577 + extractAttachments(_call);
  578 + java.util.Map _output;
  579 + _output = _call.getOutputParams();
  580 + try {
  581 + fXlInfo.value = (String[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fXlInfo"));
  582 + } catch (Exception _exception) {
  583 + fXlInfo.value = (String[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fXlInfo")), String[].class);
  584 + }
  585 + try {
  586 + fError.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError"));
  587 + } catch (Exception _exception) {
  588 + fError.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError")), String.class);
  589 + }
  590 + try {
  591 + return ((Boolean) _resp).booleanValue();
  592 + } catch (Exception _exception) {
  593 + return ((Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
  594 + }
  595 + }
  596 + } catch (org.apache.axis.AxisFault axisFaultException) {
  597 + throw axisFaultException;
  598 +}
  599 + }
  600 +
  601 + @SuppressWarnings("rawtypes")
  602 + public boolean returnZDInfo(String fUserName, String fPassword, String fGsdm, String fXlid, ArrayOfStringHolder fZDInfo, javax.xml.rpc.holders.StringHolder fTimeInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException {
  603 + if (super.cachedEndpoint == null) {
  604 + throw new org.apache.axis.NoEndPointException();
  605 + }
  606 + org.apache.axis.client.Call _call = createCall();
  607 + _call.setOperation(_operations[3]);
  608 + _call.setUseSOAPAction(true);
  609 + _call.setSOAPActionURI("http://tempuri.org/ReturnZDInfo");
  610 + _call.setEncodingStyle(null);
  611 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  612 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  613 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  614 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnZDInfo"));
  615 +
  616 + setRequestHeaders(_call);
  617 + setAttachments(_call);
  618 + try { Object _resp = _call.invoke(new Object[] {fUserName, fPassword, fGsdm, fXlid, fZDInfo.value, fTimeInfo.value, fError.value});
  619 +
  620 + if (_resp instanceof java.rmi.RemoteException) {
  621 + throw (java.rmi.RemoteException)_resp;
  622 + }
  623 + else {
  624 + extractAttachments(_call);
  625 + java.util.Map _output;
  626 + _output = _call.getOutputParams();
  627 + try {
  628 + fZDInfo.value = (String[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fZDInfo"));
  629 + } catch (Exception _exception) {
  630 + fZDInfo.value = (String[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fZDInfo")), String[].class);
  631 + }
  632 + try {
  633 + fTimeInfo.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fTimeInfo"));
  634 + } catch (Exception _exception) {
  635 + fTimeInfo.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fTimeInfo")), String.class);
  636 + }
  637 + try {
  638 + fError.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError"));
  639 + } catch (Exception _exception) {
  640 + fError.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError")), String.class);
  641 + }
  642 + try {
  643 + return ((Boolean) _resp).booleanValue();
  644 + } catch (Exception _exception) {
  645 + return ((Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
  646 + }
  647 + }
  648 + } catch (org.apache.axis.AxisFault axisFaultException) {
  649 + throw axisFaultException;
  650 +}
  651 + }
  652 +
  653 + @SuppressWarnings("rawtypes")
  654 + public boolean returnCCInfo(String fPassword, String fGsdm, String fRQ, ArrayOfStringHolder fCCInfo, javax.xml.rpc.holders.StringHolder error) throws java.rmi.RemoteException {
  655 + if (super.cachedEndpoint == null) {
  656 + throw new org.apache.axis.NoEndPointException();
  657 + }
  658 + org.apache.axis.client.Call _call = createCall();
  659 + _call.setOperation(_operations[4]);
  660 + _call.setUseSOAPAction(true);
  661 + _call.setSOAPActionURI("http://tempuri.org/ReturnCCInfo");
  662 + _call.setEncodingStyle(null);
  663 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  664 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  665 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  666 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnCCInfo"));
  667 +
  668 + setRequestHeaders(_call);
  669 + setAttachments(_call);
  670 + try { Object _resp = _call.invoke(new Object[] {fPassword, fGsdm, fRQ, fCCInfo.value, error.value});
  671 +
  672 + if (_resp instanceof java.rmi.RemoteException) {
  673 + throw (java.rmi.RemoteException)_resp;
  674 + }
  675 + else {
  676 + extractAttachments(_call);
  677 + java.util.Map _output;
  678 + _output = _call.getOutputParams();
  679 + try {
  680 + fCCInfo.value = (String[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fCCInfo"));
  681 + } catch (Exception _exception) {
  682 + fCCInfo.value = (String[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fCCInfo")), String[].class);
  683 + }
  684 + try {
  685 + error.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "error"));
  686 + } catch (Exception _exception) {
  687 + error.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "error")), String.class);
  688 + }
  689 + try {
  690 + return ((Boolean) _resp).booleanValue();
  691 + } catch (Exception _exception) {
  692 + return ((Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
  693 + }
  694 + }
  695 + } catch (org.apache.axis.AxisFault axisFaultException) {
  696 + throw axisFaultException;
  697 +}
  698 + }
  699 +
  700 + @SuppressWarnings("rawtypes")
  701 + public boolean returnJCInfo(String fPassword, String fGsdm, String fRQ, ArrayOfStringHolder fJCInfo, javax.xml.rpc.holders.StringHolder error) throws java.rmi.RemoteException {
  702 + if (super.cachedEndpoint == null) {
  703 + throw new org.apache.axis.NoEndPointException();
  704 + }
  705 + org.apache.axis.client.Call _call = createCall();
  706 + _call.setOperation(_operations[5]);
  707 + _call.setUseSOAPAction(true);
  708 + _call.setSOAPActionURI("http://tempuri.org/ReturnJCInfo");
  709 + _call.setEncodingStyle(null);
  710 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  711 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  712 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  713 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnJCInfo"));
  714 +
  715 + setRequestHeaders(_call);
  716 + setAttachments(_call);
  717 + try { Object _resp = _call.invoke(new Object[] {fPassword, fGsdm, fRQ, fJCInfo.value, error.value});
  718 +
  719 + if (_resp instanceof java.rmi.RemoteException) {
  720 + throw (java.rmi.RemoteException)_resp;
  721 + }
  722 + else {
  723 + extractAttachments(_call);
  724 + java.util.Map _output;
  725 + _output = _call.getOutputParams();
  726 + try {
  727 + fJCInfo.value = (String[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fJCInfo"));
  728 + } catch (Exception _exception) {
  729 + fJCInfo.value = (String[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fJCInfo")), String[].class);
  730 + }
  731 + try {
  732 + error.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "error"));
  733 + } catch (Exception _exception) {
  734 + error.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "error")), String.class);
  735 + }
  736 + try {
  737 + return ((Boolean) _resp).booleanValue();
  738 + } catch (Exception _exception) {
  739 + return ((Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
  740 + }
  741 + }
  742 + } catch (org.apache.axis.AxisFault axisFaultException) {
  743 + throw axisFaultException;
  744 +}
  745 + }
  746 +
  747 + @SuppressWarnings("rawtypes")
  748 + public boolean getLSLC_PB(String fIPAddress, String fUserName, String fPassword, String fDate, String fJSYGH, String fGSDM, ArrayOfStringHolder fStrLSLCArr, ArrayOfStringHolder fStrPBXX, javax.xml.rpc.holders.StringHolder fError, javax.xml.rpc.holders.StringHolder fJSYMC, javax.xml.rpc.holders.StringHolder fGSMC) throws java.rmi.RemoteException {
  749 + if (super.cachedEndpoint == null) {
  750 + throw new org.apache.axis.NoEndPointException();
  751 + }
  752 + org.apache.axis.client.Call _call = createCall();
  753 + _call.setOperation(_operations[6]);
  754 + _call.setUseSOAPAction(true);
  755 + _call.setSOAPActionURI("http://tempuri.org/getLSLC_PB");
  756 + _call.setEncodingStyle(null);
  757 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  758 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  759 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  760 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "getLSLC_PB"));
  761 +
  762 + setRequestHeaders(_call);
  763 + setAttachments(_call);
  764 + try { Object _resp = _call.invoke(new Object[] {fIPAddress, fUserName, fPassword, fDate, fJSYGH, fGSDM, fStrLSLCArr.value, fStrPBXX.value, fError.value, fJSYMC.value, fGSMC.value});
  765 +
  766 + if (_resp instanceof java.rmi.RemoteException) {
  767 + throw (java.rmi.RemoteException)_resp;
  768 + }
  769 + else {
  770 + extractAttachments(_call);
  771 + java.util.Map _output;
  772 + _output = _call.getOutputParams();
  773 + try {
  774 + fStrLSLCArr.value = (String[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fStrLSLCArr"));
  775 + } catch (Exception _exception) {
  776 + fStrLSLCArr.value = (String[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fStrLSLCArr")), String[].class);
  777 + }
  778 + try {
  779 + fStrPBXX.value = (String[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fStrPBXX"));
  780 + } catch (Exception _exception) {
  781 + fStrPBXX.value = (String[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fStrPBXX")), String[].class);
  782 + }
  783 + try {
  784 + fError.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError"));
  785 + } catch (Exception _exception) {
  786 + fError.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError")), String.class);
  787 + }
  788 + try {
  789 + fJSYMC.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fJSYMC"));
  790 + } catch (Exception _exception) {
  791 + fJSYMC.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fJSYMC")), String.class);
  792 + }
  793 + try {
  794 + fGSMC.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fGSMC"));
  795 + } catch (Exception _exception) {
  796 + fGSMC.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fGSMC")), String.class);
  797 + }
  798 + try {
  799 + return ((Boolean) _resp).booleanValue();
  800 + } catch (Exception _exception) {
  801 + return ((Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
  802 + }
  803 + }
  804 + } catch (org.apache.axis.AxisFault axisFaultException) {
  805 + throw axisFaultException;
  806 +}
  807 + }
  808 +
  809 + @SuppressWarnings("rawtypes")
  810 + public boolean getCurrentDayPlan(String fIPAddress, String fUserName, String fPassword, String fJSYGH, String fGSDM, ArrayOfStringHolder fCurrentDayPlan, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException {
  811 + if (super.cachedEndpoint == null) {
  812 + throw new org.apache.axis.NoEndPointException();
  813 + }
  814 + org.apache.axis.client.Call _call = createCall();
  815 + _call.setOperation(_operations[7]);
  816 + _call.setUseSOAPAction(true);
  817 + _call.setSOAPActionURI("http://tempuri.org/getCurrentDayPlan");
  818 + _call.setEncodingStyle(null);
  819 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  820 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  821 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  822 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "getCurrentDayPlan"));
  823 +
  824 + setRequestHeaders(_call);
  825 + setAttachments(_call);
  826 + try { Object _resp = _call.invoke(new Object[] {fIPAddress, fUserName, fPassword, fJSYGH, fGSDM, fCurrentDayPlan.value, fError.value});
  827 +
  828 + if (_resp instanceof java.rmi.RemoteException) {
  829 + throw (java.rmi.RemoteException)_resp;
  830 + }
  831 + else {
  832 + extractAttachments(_call);
  833 + java.util.Map _output;
  834 + _output = _call.getOutputParams();
  835 + try {
  836 + fCurrentDayPlan.value = (String[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fCurrentDayPlan"));
  837 + } catch (Exception _exception) {
  838 + fCurrentDayPlan.value = (String[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fCurrentDayPlan")), String[].class);
  839 + }
  840 + try {
  841 + fError.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError"));
  842 + } catch (Exception _exception) {
  843 + fError.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError")), String.class);
  844 + }
  845 + try {
  846 + return ((Boolean) _resp).booleanValue();
  847 + } catch (Exception _exception) {
  848 + return ((Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
  849 + }
  850 + }
  851 + } catch (org.apache.axis.AxisFault axisFaultException) {
  852 + throw axisFaultException;
  853 +}
  854 + }
  855 +
  856 + @SuppressWarnings("rawtypes")
  857 + public void getHistoryJCCByXLBM(String fIPAddress, String fUserName, String fPassword, String fXLBM, String fDate, javax.xml.rpc.holders.StringHolder fError, javax.xml.rpc.holders.BooleanHolder getHistoryJCCByXLBMResult, GetHistoryJCCByXLBMResponseFDataTableHolder fDataTable) throws java.rmi.RemoteException {
  858 + if (super.cachedEndpoint == null) {
  859 + throw new org.apache.axis.NoEndPointException();
  860 + }
  861 + org.apache.axis.client.Call _call = createCall();
  862 + _call.setOperation(_operations[8]);
  863 + _call.setUseSOAPAction(true);
  864 + _call.setSOAPActionURI("http://tempuri.org/getHistoryJCCByXLBM");
  865 + _call.setEncodingStyle(null);
  866 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  867 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  868 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  869 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "getHistoryJCCByXLBM"));
  870 +
  871 + setRequestHeaders(_call);
  872 + setAttachments(_call);
  873 + try { Object _resp = _call.invoke(new Object[] {fIPAddress, fUserName, fPassword, fXLBM, fDate, fError.value});
  874 +
  875 + if (_resp instanceof java.rmi.RemoteException) {
  876 + throw (java.rmi.RemoteException)_resp;
  877 + }
  878 + else {
  879 + extractAttachments(_call);
  880 + java.util.Map _output;
  881 + _output = _call.getOutputParams();
  882 + try {
  883 + fError.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError"));
  884 + } catch (Exception _exception) {
  885 + fError.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError")), String.class);
  886 + }
  887 + try {
  888 + getHistoryJCCByXLBMResult.value = ((Boolean) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "getHistoryJCCByXLBMResult"))).booleanValue();
  889 + } catch (Exception _exception) {
  890 + getHistoryJCCByXLBMResult.value = ((Boolean) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "getHistoryJCCByXLBMResult")), boolean.class)).booleanValue();
  891 + }
  892 + try {
  893 + fDataTable.value = (GetHistoryJCCByXLBMResponseFDataTable) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fDataTable"));
  894 + } catch (Exception _exception) {
  895 + fDataTable.value = (GetHistoryJCCByXLBMResponseFDataTable) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fDataTable")), GetHistoryJCCByXLBMResponseFDataTable.class);
  896 + }
  897 + }
  898 + } catch (org.apache.axis.AxisFault axisFaultException) {
  899 + throw axisFaultException;
  900 +}
  901 + }
  902 +
  903 + @SuppressWarnings("rawtypes")
  904 + public boolean getUnusual(String fIPAddress, String fUserName, String fPassword, String fDate, String fGSDM, String fFGSDM, ArrayOfStringHolder fDriverRequestArr, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException {
  905 + if (super.cachedEndpoint == null) {
  906 + throw new org.apache.axis.NoEndPointException();
  907 + }
  908 + org.apache.axis.client.Call _call = createCall();
  909 + _call.setOperation(_operations[9]);
  910 + _call.setUseSOAPAction(true);
  911 + _call.setSOAPActionURI("http://tempuri.org/getUnusual");
  912 + _call.setEncodingStyle(null);
  913 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  914 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  915 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  916 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "getUnusual"));
  917 +
  918 + setRequestHeaders(_call);
  919 + setAttachments(_call);
  920 + try { Object _resp = _call.invoke(new Object[] {fIPAddress, fUserName, fPassword, fDate, fGSDM, fFGSDM, fDriverRequestArr.value, fError.value});
  921 +
  922 + if (_resp instanceof java.rmi.RemoteException) {
  923 + throw (java.rmi.RemoteException)_resp;
  924 + }
  925 + else {
  926 + extractAttachments(_call);
  927 + java.util.Map _output;
  928 + _output = _call.getOutputParams();
  929 + try {
  930 + fDriverRequestArr.value = (String[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fDriverRequestArr"));
  931 + } catch (Exception _exception) {
  932 + fDriverRequestArr.value = (String[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fDriverRequestArr")), String[].class);
  933 + }
  934 + try {
  935 + fError.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError"));
  936 + } catch (Exception _exception) {
  937 + fError.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError")), String.class);
  938 + }
  939 + try {
  940 + return ((Boolean) _resp).booleanValue();
  941 + } catch (Exception _exception) {
  942 + return ((Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
  943 + }
  944 + }
  945 + } catch (org.apache.axis.AxisFault axisFaultException) {
  946 + throw axisFaultException;
  947 +}
  948 + }
  949 +
  950 +}
... ...
src/main/java/com/bsth/old_sys_wsclient/GetHistoryJCCByXLBMResponseFDataTable.java 0 → 100644
  1 +/**
  2 + * GetHistoryJCCByXLBMResponseFDataTable.java
  3 + *
  4 + * This file was auto-generated from WSDL
  5 + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6 + */
  7 +
  8 +package com.bsth.old_sys_wsclient;
  9 +
  10 +@SuppressWarnings("serial")
  11 +public class GetHistoryJCCByXLBMResponseFDataTable implements java.io.Serializable, org.apache.axis.encoding.AnyContentType {
  12 + private org.apache.axis.message.MessageElement [] _any;
  13 +
  14 + private org.apache.axis.message.MessageElement [] _any2;
  15 +
  16 + public GetHistoryJCCByXLBMResponseFDataTable() {
  17 + }
  18 +
  19 + public GetHistoryJCCByXLBMResponseFDataTable(
  20 + org.apache.axis.message.MessageElement [] _any,
  21 + org.apache.axis.message.MessageElement [] _any2) {
  22 + this._any = _any;
  23 + this._any2 = _any2;
  24 + }
  25 +
  26 +
  27 + /**
  28 + * Gets the _any value for this GetHistoryJCCByXLBMResponseFDataTable.
  29 + *
  30 + * @return _any
  31 + */
  32 + public org.apache.axis.message.MessageElement [] get_any() {
  33 + return _any;
  34 + }
  35 +
  36 +
  37 + /**
  38 + * Sets the _any value for this GetHistoryJCCByXLBMResponseFDataTable.
  39 + *
  40 + * @param _any
  41 + */
  42 + public void set_any(org.apache.axis.message.MessageElement [] _any) {
  43 + this._any = _any;
  44 + }
  45 +
  46 +
  47 + /**
  48 + * Gets the _any2 value for this GetHistoryJCCByXLBMResponseFDataTable.
  49 + *
  50 + * @return _any2
  51 + */
  52 + public org.apache.axis.message.MessageElement [] get_any2() {
  53 + return _any2;
  54 + }
  55 +
  56 +
  57 + /**
  58 + * Sets the _any2 value for this GetHistoryJCCByXLBMResponseFDataTable.
  59 + *
  60 + * @param _any2
  61 + */
  62 + public void set_any2(org.apache.axis.message.MessageElement [] _any2) {
  63 + this._any2 = _any2;
  64 + }
  65 +
  66 + private Object __equalsCalc = null;
  67 + @SuppressWarnings("unused")
  68 + public synchronized boolean equals(Object obj) {
  69 + if (!(obj instanceof GetHistoryJCCByXLBMResponseFDataTable)) return false;
  70 + GetHistoryJCCByXLBMResponseFDataTable other = (GetHistoryJCCByXLBMResponseFDataTable) obj;
  71 + if (obj == null) return false;
  72 + if (this == obj) return true;
  73 + if (__equalsCalc != null) {
  74 + return (__equalsCalc == obj);
  75 + }
  76 + __equalsCalc = obj;
  77 + boolean _equals;
  78 + _equals = true &&
  79 + ((this._any==null && other.get_any()==null) ||
  80 + (this._any!=null &&
  81 + java.util.Arrays.equals(this._any, other.get_any()))) &&
  82 + ((this._any2==null && other.get_any2()==null) ||
  83 + (this._any2!=null &&
  84 + java.util.Arrays.equals(this._any2, other.get_any2())));
  85 + __equalsCalc = null;
  86 + return _equals;
  87 + }
  88 +
  89 + private boolean __hashCodeCalc = false;
  90 + public synchronized int hashCode() {
  91 + if (__hashCodeCalc) {
  92 + return 0;
  93 + }
  94 + __hashCodeCalc = true;
  95 + int _hashCode = 1;
  96 + if (get_any() != null) {
  97 + for (int i=0;
  98 + i<java.lang.reflect.Array.getLength(get_any());
  99 + i++) {
  100 + Object obj = java.lang.reflect.Array.get(get_any(), i);
  101 + if (obj != null &&
  102 + !obj.getClass().isArray()) {
  103 + _hashCode += obj.hashCode();
  104 + }
  105 + }
  106 + }
  107 + if (get_any2() != null) {
  108 + for (int i=0;
  109 + i<java.lang.reflect.Array.getLength(get_any2());
  110 + i++) {
  111 + Object obj = java.lang.reflect.Array.get(get_any2(), i);
  112 + if (obj != null &&
  113 + !obj.getClass().isArray()) {
  114 + _hashCode += obj.hashCode();
  115 + }
  116 + }
  117 + }
  118 + __hashCodeCalc = false;
  119 + return _hashCode;
  120 + }
  121 +
  122 + // Type metadata
  123 + private static org.apache.axis.description.TypeDesc typeDesc =
  124 + new org.apache.axis.description.TypeDesc(GetHistoryJCCByXLBMResponseFDataTable.class, true);
  125 +
  126 + static {
  127 + typeDesc.setXmlType(new javax.xml.namespace.QName("http://tempuri.org/", ">>getHistoryJCCByXLBMResponse>fDataTable"));
  128 + }
  129 +
  130 + /**
  131 + * Return type metadata object
  132 + */
  133 + public static org.apache.axis.description.TypeDesc getTypeDesc() {
  134 + return typeDesc;
  135 + }
  136 +
  137 + /**
  138 + * Get Custom Serializer
  139 + */
  140 + @SuppressWarnings("rawtypes")
  141 + public static org.apache.axis.encoding.Serializer getSerializer(
  142 + String mechType,
  143 + Class _javaType,
  144 + javax.xml.namespace.QName _xmlType) {
  145 + return
  146 + new org.apache.axis.encoding.ser.BeanSerializer(
  147 + _javaType, _xmlType, typeDesc);
  148 + }
  149 +
  150 + /**
  151 + * Get Custom Deserializer
  152 + */
  153 + @SuppressWarnings("rawtypes")
  154 + public static org.apache.axis.encoding.Deserializer getDeserializer(
  155 + String mechType,
  156 + Class _javaType,
  157 + javax.xml.namespace.QName _xmlType) {
  158 + return
  159 + new org.apache.axis.encoding.ser.BeanDeserializer(
  160 + _javaType, _xmlType, typeDesc);
  161 + }
  162 +
  163 +}
... ...
src/main/java/com/bsth/old_sys_wsclient/GetUnusual.java 0 → 100644
  1 +/**
  2 + * GetUnusual.java
  3 + *
  4 + * This file was auto-generated from WSDL
  5 + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6 + */
  7 +
  8 +package com.bsth.old_sys_wsclient;
  9 +
  10 +@SuppressWarnings("serial")
  11 +public class GetUnusual implements java.io.Serializable {
  12 + private String fIPAddress;
  13 +
  14 + private String fUserName;
  15 +
  16 + private String fPassword;
  17 +
  18 + private String fDate;
  19 +
  20 + private String fGSDM;
  21 +
  22 + private String fFGSDM;
  23 +
  24 + private String[] fDriverRequestArr;
  25 +
  26 + private String fError;
  27 +
  28 + public GetUnusual() {
  29 + }
  30 +
  31 + public GetUnusual(
  32 + String fIPAddress,
  33 + String fUserName,
  34 + String fPassword,
  35 + String fDate,
  36 + String fGSDM,
  37 + String fFGSDM,
  38 + String[] fDriverRequestArr,
  39 + String fError) {
  40 + this.fIPAddress = fIPAddress;
  41 + this.fUserName = fUserName;
  42 + this.fPassword = fPassword;
  43 + this.fDate = fDate;
  44 + this.fGSDM = fGSDM;
  45 + this.fFGSDM = fFGSDM;
  46 + this.fDriverRequestArr = fDriverRequestArr;
  47 + this.fError = fError;
  48 + }
  49 +
  50 +
  51 + /**
  52 + * Gets the fIPAddress value for this GetUnusual.
  53 + *
  54 + * @return fIPAddress
  55 + */
  56 + public String getFIPAddress() {
  57 + return fIPAddress;
  58 + }
  59 +
  60 +
  61 + /**
  62 + * Sets the fIPAddress value for this GetUnusual.
  63 + *
  64 + * @param fIPAddress
  65 + */
  66 + public void setFIPAddress(String fIPAddress) {
  67 + this.fIPAddress = fIPAddress;
  68 + }
  69 +
  70 +
  71 + /**
  72 + * Gets the fUserName value for this GetUnusual.
  73 + *
  74 + * @return fUserName
  75 + */
  76 + public String getFUserName() {
  77 + return fUserName;
  78 + }
  79 +
  80 +
  81 + /**
  82 + * Sets the fUserName value for this GetUnusual.
  83 + *
  84 + * @param fUserName
  85 + */
  86 + public void setFUserName(String fUserName) {
  87 + this.fUserName = fUserName;
  88 + }
  89 +
  90 +
  91 + /**
  92 + * Gets the fPassword value for this GetUnusual.
  93 + *
  94 + * @return fPassword
  95 + */
  96 + public String getFPassword() {
  97 + return fPassword;
  98 + }
  99 +
  100 +
  101 + /**
  102 + * Sets the fPassword value for this GetUnusual.
  103 + *
  104 + * @param fPassword
  105 + */
  106 + public void setFPassword(String fPassword) {
  107 + this.fPassword = fPassword;
  108 + }
  109 +
  110 +
  111 + /**
  112 + * Gets the fDate value for this GetUnusual.
  113 + *
  114 + * @return fDate
  115 + */
  116 + public String getFDate() {
  117 + return fDate;
  118 + }
  119 +
  120 +
  121 + /**
  122 + * Sets the fDate value for this GetUnusual.
  123 + *
  124 + * @param fDate
  125 + */
  126 + public void setFDate(String fDate) {
  127 + this.fDate = fDate;
  128 + }
  129 +
  130 +
  131 + /**
  132 + * Gets the fGSDM value for this GetUnusual.
  133 + *
  134 + * @return fGSDM
  135 + */
  136 + public String getFGSDM() {
  137 + return fGSDM;
  138 + }
  139 +
  140 +
  141 + /**
  142 + * Sets the fGSDM value for this GetUnusual.
  143 + *
  144 + * @param fGSDM
  145 + */
  146 + public void setFGSDM(String fGSDM) {
  147 + this.fGSDM = fGSDM;
  148 + }
  149 +
  150 +
  151 + /**
  152 + * Gets the fFGSDM value for this GetUnusual.
  153 + *
  154 + * @return fFGSDM
  155 + */
  156 + public String getFFGSDM() {
  157 + return fFGSDM;
  158 + }
  159 +
  160 +
  161 + /**
  162 + * Sets the fFGSDM value for this GetUnusual.
  163 + *
  164 + * @param fFGSDM
  165 + */
  166 + public void setFFGSDM(String fFGSDM) {
  167 + this.fFGSDM = fFGSDM;
  168 + }
  169 +
  170 +
  171 + /**
  172 + * Gets the fDriverRequestArr value for this GetUnusual.
  173 + *
  174 + * @return fDriverRequestArr
  175 + */
  176 + public String[] getFDriverRequestArr() {
  177 + return fDriverRequestArr;
  178 + }
  179 +
  180 +
  181 + /**
  182 + * Sets the fDriverRequestArr value for this GetUnusual.
  183 + *
  184 + * @param fDriverRequestArr
  185 + */
  186 + public void setFDriverRequestArr(String[] fDriverRequestArr) {
  187 + this.fDriverRequestArr = fDriverRequestArr;
  188 + }
  189 +
  190 +
  191 + /**
  192 + * Gets the fError value for this GetUnusual.
  193 + *
  194 + * @return fError
  195 + */
  196 + public String getFError() {
  197 + return fError;
  198 + }
  199 +
  200 +
  201 + /**
  202 + * Sets the fError value for this GetUnusual.
  203 + *
  204 + * @param fError
  205 + */
  206 + public void setFError(String fError) {
  207 + this.fError = fError;
  208 + }
  209 +
  210 + private Object __equalsCalc = null;
  211 + @SuppressWarnings("unused")
  212 + public synchronized boolean equals(Object obj) {
  213 + if (!(obj instanceof GetUnusual)) return false;
  214 + GetUnusual other = (GetUnusual) obj;
  215 + if (obj == null) return false;
  216 + if (this == obj) return true;
  217 + if (__equalsCalc != null) {
  218 + return (__equalsCalc == obj);
  219 + }
  220 + __equalsCalc = obj;
  221 + boolean _equals;
  222 + _equals = true &&
  223 + ((this.fIPAddress==null && other.getFIPAddress()==null) ||
  224 + (this.fIPAddress!=null &&
  225 + this.fIPAddress.equals(other.getFIPAddress()))) &&
  226 + ((this.fUserName==null && other.getFUserName()==null) ||
  227 + (this.fUserName!=null &&
  228 + this.fUserName.equals(other.getFUserName()))) &&
  229 + ((this.fPassword==null && other.getFPassword()==null) ||
  230 + (this.fPassword!=null &&
  231 + this.fPassword.equals(other.getFPassword()))) &&
  232 + ((this.fDate==null && other.getFDate()==null) ||
  233 + (this.fDate!=null &&
  234 + this.fDate.equals(other.getFDate()))) &&
  235 + ((this.fGSDM==null && other.getFGSDM()==null) ||
  236 + (this.fGSDM!=null &&
  237 + this.fGSDM.equals(other.getFGSDM()))) &&
  238 + ((this.fFGSDM==null && other.getFFGSDM()==null) ||
  239 + (this.fFGSDM!=null &&
  240 + this.fFGSDM.equals(other.getFFGSDM()))) &&
  241 + ((this.fDriverRequestArr==null && other.getFDriverRequestArr()==null) ||
  242 + (this.fDriverRequestArr!=null &&
  243 + java.util.Arrays.equals(this.fDriverRequestArr, other.getFDriverRequestArr()))) &&
  244 + ((this.fError==null && other.getFError()==null) ||
  245 + (this.fError!=null &&
  246 + this.fError.equals(other.getFError())));
  247 + __equalsCalc = null;
  248 + return _equals;
  249 + }
  250 +
  251 + private boolean __hashCodeCalc = false;
  252 + public synchronized int hashCode() {
  253 + if (__hashCodeCalc) {
  254 + return 0;
  255 + }
  256 + __hashCodeCalc = true;
  257 + int _hashCode = 1;
  258 + if (getFIPAddress() != null) {
  259 + _hashCode += getFIPAddress().hashCode();
  260 + }
  261 + if (getFUserName() != null) {
  262 + _hashCode += getFUserName().hashCode();
  263 + }
  264 + if (getFPassword() != null) {
  265 + _hashCode += getFPassword().hashCode();
  266 + }
  267 + if (getFDate() != null) {
  268 + _hashCode += getFDate().hashCode();
  269 + }
  270 + if (getFGSDM() != null) {
  271 + _hashCode += getFGSDM().hashCode();
  272 + }
  273 + if (getFFGSDM() != null) {
  274 + _hashCode += getFFGSDM().hashCode();
  275 + }
  276 + if (getFDriverRequestArr() != null) {
  277 + for (int i=0;
  278 + i<java.lang.reflect.Array.getLength(getFDriverRequestArr());
  279 + i++) {
  280 + Object obj = java.lang.reflect.Array.get(getFDriverRequestArr(), i);
  281 + if (obj != null &&
  282 + !obj.getClass().isArray()) {
  283 + _hashCode += obj.hashCode();
  284 + }
  285 + }
  286 + }
  287 + if (getFError() != null) {
  288 + _hashCode += getFError().hashCode();
  289 + }
  290 + __hashCodeCalc = false;
  291 + return _hashCode;
  292 + }
  293 +
  294 + // Type metadata
  295 + private static org.apache.axis.description.TypeDesc typeDesc =
  296 + new org.apache.axis.description.TypeDesc(GetUnusual.class, true);
  297 +
  298 + static {
  299 + typeDesc.setXmlType(new javax.xml.namespace.QName("http://tempuri.org/", ">getUnusual"));
  300 + org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
  301 + elemField.setFieldName("FIPAddress");
  302 + elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "fIPAddress"));
  303 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  304 + elemField.setMinOccurs(0);
  305 + elemField.setNillable(false);
  306 + typeDesc.addFieldDesc(elemField);
  307 + elemField = new org.apache.axis.description.ElementDesc();
  308 + elemField.setFieldName("FUserName");
  309 + elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "fUserName"));
  310 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  311 + elemField.setMinOccurs(0);
  312 + elemField.setNillable(false);
  313 + typeDesc.addFieldDesc(elemField);
  314 + elemField = new org.apache.axis.description.ElementDesc();
  315 + elemField.setFieldName("FPassword");
  316 + elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"));
  317 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  318 + elemField.setMinOccurs(0);
  319 + elemField.setNillable(false);
  320 + typeDesc.addFieldDesc(elemField);
  321 + elemField = new org.apache.axis.description.ElementDesc();
  322 + elemField.setFieldName("FDate");
  323 + elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "fDate"));
  324 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  325 + elemField.setMinOccurs(0);
  326 + elemField.setNillable(false);
  327 + typeDesc.addFieldDesc(elemField);
  328 + elemField = new org.apache.axis.description.ElementDesc();
  329 + elemField.setFieldName("FGSDM");
  330 + elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "fGSDM"));
  331 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  332 + elemField.setMinOccurs(0);
  333 + elemField.setNillable(false);
  334 + typeDesc.addFieldDesc(elemField);
  335 + elemField = new org.apache.axis.description.ElementDesc();
  336 + elemField.setFieldName("FFGSDM");
  337 + elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "fFGSDM"));
  338 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  339 + elemField.setMinOccurs(0);
  340 + elemField.setNillable(false);
  341 + typeDesc.addFieldDesc(elemField);
  342 + elemField = new org.apache.axis.description.ElementDesc();
  343 + elemField.setFieldName("FDriverRequestArr");
  344 + elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "fDriverRequestArr"));
  345 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  346 + elemField.setMinOccurs(0);
  347 + elemField.setNillable(false);
  348 + elemField.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
  349 + typeDesc.addFieldDesc(elemField);
  350 + elemField = new org.apache.axis.description.ElementDesc();
  351 + elemField.setFieldName("FError");
  352 + elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "fError"));
  353 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  354 + elemField.setMinOccurs(0);
  355 + elemField.setNillable(false);
  356 + typeDesc.addFieldDesc(elemField);
  357 + }
  358 +
  359 + /**
  360 + * Return type metadata object
  361 + */
  362 + public static org.apache.axis.description.TypeDesc getTypeDesc() {
  363 + return typeDesc;
  364 + }
  365 +
  366 + /**
  367 + * Get Custom Serializer
  368 + */
  369 + @SuppressWarnings("rawtypes")
  370 + public static org.apache.axis.encoding.Serializer getSerializer(
  371 + String mechType,
  372 + Class _javaType,
  373 + javax.xml.namespace.QName _xmlType) {
  374 + return
  375 + new org.apache.axis.encoding.ser.BeanSerializer(
  376 + _javaType, _xmlType, typeDesc);
  377 + }
  378 +
  379 + /**
  380 + * Get Custom Deserializer
  381 + */
  382 + @SuppressWarnings("rawtypes")
  383 + public static org.apache.axis.encoding.Deserializer getDeserializer(
  384 + String mechType,
  385 + Class _javaType,
  386 + javax.xml.namespace.QName _xmlType) {
  387 + return
  388 + new org.apache.axis.encoding.ser.BeanDeserializer(
  389 + _javaType, _xmlType, typeDesc);
  390 + }
  391 +
  392 +}
... ...
src/main/java/com/bsth/old_sys_wsclient/GetUnusualResponse.java 0 → 100644
  1 +/**
  2 + * GetUnusualResponse.java
  3 + *
  4 + * This file was auto-generated from WSDL
  5 + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6 + */
  7 +
  8 +package com.bsth.old_sys_wsclient;
  9 +
  10 +@SuppressWarnings("serial")
  11 +public class GetUnusualResponse implements java.io.Serializable {
  12 + private boolean getUnusualResult;
  13 +
  14 + private String[] fDriverRequestArr;
  15 +
  16 + private String fError;
  17 +
  18 + public GetUnusualResponse() {
  19 + }
  20 +
  21 + public GetUnusualResponse(
  22 + boolean getUnusualResult,
  23 + String[] fDriverRequestArr,
  24 + String fError) {
  25 + this.getUnusualResult = getUnusualResult;
  26 + this.fDriverRequestArr = fDriverRequestArr;
  27 + this.fError = fError;
  28 + }
  29 +
  30 +
  31 + /**
  32 + * Gets the getUnusualResult value for this GetUnusualResponse.
  33 + *
  34 + * @return getUnusualResult
  35 + */
  36 + public boolean isGetUnusualResult() {
  37 + return getUnusualResult;
  38 + }
  39 +
  40 +
  41 + /**
  42 + * Sets the getUnusualResult value for this GetUnusualResponse.
  43 + *
  44 + * @param getUnusualResult
  45 + */
  46 + public void setGetUnusualResult(boolean getUnusualResult) {
  47 + this.getUnusualResult = getUnusualResult;
  48 + }
  49 +
  50 +
  51 + /**
  52 + * Gets the fDriverRequestArr value for this GetUnusualResponse.
  53 + *
  54 + * @return fDriverRequestArr
  55 + */
  56 + public String[] getFDriverRequestArr() {
  57 + return fDriverRequestArr;
  58 + }
  59 +
  60 +
  61 + /**
  62 + * Sets the fDriverRequestArr value for this GetUnusualResponse.
  63 + *
  64 + * @param fDriverRequestArr
  65 + */
  66 + public void setFDriverRequestArr(String[] fDriverRequestArr) {
  67 + this.fDriverRequestArr = fDriverRequestArr;
  68 + }
  69 +
  70 +
  71 + /**
  72 + * Gets the fError value for this GetUnusualResponse.
  73 + *
  74 + * @return fError
  75 + */
  76 + public String getFError() {
  77 + return fError;
  78 + }
  79 +
  80 +
  81 + /**
  82 + * Sets the fError value for this GetUnusualResponse.
  83 + *
  84 + * @param fError
  85 + */
  86 + public void setFError(String fError) {
  87 + this.fError = fError;
  88 + }
  89 +
  90 + private Object __equalsCalc = null;
  91 + @SuppressWarnings("unused")
  92 + public synchronized boolean equals(Object obj) {
  93 + if (!(obj instanceof GetUnusualResponse)) return false;
  94 + GetUnusualResponse other = (GetUnusualResponse) obj;
  95 + if (obj == null) return false;
  96 + if (this == obj) return true;
  97 + if (__equalsCalc != null) {
  98 + return (__equalsCalc == obj);
  99 + }
  100 + __equalsCalc = obj;
  101 + boolean _equals;
  102 + _equals = true &&
  103 + this.getUnusualResult == other.isGetUnusualResult() &&
  104 + ((this.fDriverRequestArr==null && other.getFDriverRequestArr()==null) ||
  105 + (this.fDriverRequestArr!=null &&
  106 + java.util.Arrays.equals(this.fDriverRequestArr, other.getFDriverRequestArr()))) &&
  107 + ((this.fError==null && other.getFError()==null) ||
  108 + (this.fError!=null &&
  109 + this.fError.equals(other.getFError())));
  110 + __equalsCalc = null;
  111 + return _equals;
  112 + }
  113 +
  114 + private boolean __hashCodeCalc = false;
  115 + public synchronized int hashCode() {
  116 + if (__hashCodeCalc) {
  117 + return 0;
  118 + }
  119 + __hashCodeCalc = true;
  120 + int _hashCode = 1;
  121 + _hashCode += (isGetUnusualResult() ? Boolean.TRUE : Boolean.FALSE).hashCode();
  122 + if (getFDriverRequestArr() != null) {
  123 + for (int i=0;
  124 + i<java.lang.reflect.Array.getLength(getFDriverRequestArr());
  125 + i++) {
  126 + Object obj = java.lang.reflect.Array.get(getFDriverRequestArr(), i);
  127 + if (obj != null &&
  128 + !obj.getClass().isArray()) {
  129 + _hashCode += obj.hashCode();
  130 + }
  131 + }
  132 + }
  133 + if (getFError() != null) {
  134 + _hashCode += getFError().hashCode();
  135 + }
  136 + __hashCodeCalc = false;
  137 + return _hashCode;
  138 + }
  139 +
  140 + // Type metadata
  141 + private static org.apache.axis.description.TypeDesc typeDesc =
  142 + new org.apache.axis.description.TypeDesc(GetUnusualResponse.class, true);
  143 +
  144 + static {
  145 + typeDesc.setXmlType(new javax.xml.namespace.QName("http://tempuri.org/", ">getUnusualResponse"));
  146 + org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
  147 + elemField.setFieldName("getUnusualResult");
  148 + elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "getUnusualResult"));
  149 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
  150 + elemField.setNillable(false);
  151 + typeDesc.addFieldDesc(elemField);
  152 + elemField = new org.apache.axis.description.ElementDesc();
  153 + elemField.setFieldName("FDriverRequestArr");
  154 + elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "fDriverRequestArr"));
  155 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  156 + elemField.setMinOccurs(0);
  157 + elemField.setNillable(false);
  158 + elemField.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
  159 + typeDesc.addFieldDesc(elemField);
  160 + elemField = new org.apache.axis.description.ElementDesc();
  161 + elemField.setFieldName("FError");
  162 + elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "fError"));
  163 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  164 + elemField.setMinOccurs(0);
  165 + elemField.setNillable(false);
  166 + typeDesc.addFieldDesc(elemField);
  167 + }
  168 +
  169 + /**
  170 + * Return type metadata object
  171 + */
  172 + public static org.apache.axis.description.TypeDesc getTypeDesc() {
  173 + return typeDesc;
  174 + }
  175 +
  176 + /**
  177 + * Get Custom Serializer
  178 + */
  179 + @SuppressWarnings("rawtypes")
  180 + public static org.apache.axis.encoding.Serializer getSerializer(
  181 + String mechType,
  182 + Class _javaType,
  183 + javax.xml.namespace.QName _xmlType) {
  184 + return
  185 + new org.apache.axis.encoding.ser.BeanSerializer(
  186 + _javaType, _xmlType, typeDesc);
  187 + }
  188 +
  189 + /**
  190 + * Get Custom Deserializer
  191 + */
  192 + @SuppressWarnings("rawtypes")
  193 + public static org.apache.axis.encoding.Deserializer getDeserializer(
  194 + String mechType,
  195 + Class _javaType,
  196 + javax.xml.namespace.QName _xmlType) {
  197 + return
  198 + new org.apache.axis.encoding.ser.BeanDeserializer(
  199 + _javaType, _xmlType, typeDesc);
  200 + }
  201 +
  202 +}
... ...
src/main/java/com/bsth/old_sys_wsclient/OldWSClient.java 0 → 100644
  1 +package com.bsth.old_sys_wsclient;
  2 +
  3 +import com.bsth.old_sys_wsclient.holders.copy.ArrayOfStringHolder;
  4 +import com.bsth.ws_server.util.Constants;
  5 +import org.slf4j.Logger;
  6 +import org.slf4j.LoggerFactory;
  7 +
  8 +import javax.xml.rpc.holders.StringHolder;
  9 +
  10 +/**
  11 + * 老调度系统 webservice 客户端
  12 + * Created by panzhao on 2017/3/9.
  13 + */
  14 +public class OldWSClient {
  15 +
  16 + static Logger logger = LoggerFactory.getLogger(OldWSClient.class);
  17 +
  18 + /**
  19 + * 返回出场信息
  20 + *
  21 + * @return
  22 + */
  23 + public static String[] returnCCInfo(String company, String rq) {
  24 + CompanyService service = new CompanyServiceLocator();
  25 +
  26 + ArrayOfStringHolder arrayResult = new ArrayOfStringHolder();
  27 + StringHolder fError = new StringHolder();
  28 + try {
  29 + service.getCompanyServiceSoap().returnCCInfo(Constants.OLD_SYS_PASSWORD, company, rq, arrayResult,
  30 + fError);
  31 +
  32 + } catch (Exception e) {
  33 + logger.error("", e);
  34 + return new String[0];
  35 + }
  36 +
  37 + return arrayResult.value;
  38 + }
  39 +
  40 + /**
  41 + * 返回进场信息
  42 + *
  43 + * @return
  44 + */
  45 + public static String[] returnJCInfo(String company, String rq) {
  46 + CompanyService service = new CompanyServiceLocator();
  47 +
  48 + ArrayOfStringHolder arrayResult = new ArrayOfStringHolder();
  49 + StringHolder fError = new StringHolder();
  50 + try {
  51 + service.getCompanyServiceSoap().returnJCInfo(Constants.OLD_SYS_PASSWORD, company, rq, arrayResult,
  52 + fError);
  53 +
  54 + } catch (Exception e) {
  55 + logger.error("", e);
  56 + return new String[0];
  57 + }
  58 +
  59 + return arrayResult.value;
  60 + }
  61 +
  62 + /**
  63 + * 获取当日排班
  64 + *
  65 + * @return
  66 + */
  67 + public static String[] getCurrentDayPlan(String workId, String company) {
  68 + ArrayOfStringHolder arrayResult = new ArrayOfStringHolder();
  69 + try {
  70 + CompanyService mainService = new CompanyServiceLocator();
  71 + CompanyServiceSoap client = mainService.getCompanyServiceSoap();
  72 + StringHolder fError = new StringHolder();
  73 + client.getCurrentDayPlan("192.168.168.222", "SNGjIPS_2013_BsTHbS", "123904D6-21CE-33B0-AC41-375EB1BBC0sN", workId, company, arrayResult, fError);
  74 + }catch (Exception e){
  75 + logger.error("", e);
  76 + return new String[0];
  77 + }
  78 + return arrayResult.value;
  79 + }
  80 +}
... ...
src/main/java/com/bsth/old_sys_wsclient/holders/GetHistoryJCCByXLBMResponseFDataTableHolder.java 0 → 100644
  1 +/**
  2 + * GetHistoryJCCByXLBMResponseFDataTableHolder.java
  3 + *
  4 + * This file was auto-generated from WSDL
  5 + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6 + */
  7 +
  8 +package com.bsth.old_sys_wsclient.holders;
  9 +
  10 +import com.bsth.old_sys_wsclient.GetHistoryJCCByXLBMResponseFDataTable;
  11 +
  12 +public final class GetHistoryJCCByXLBMResponseFDataTableHolder implements javax.xml.rpc.holders.Holder {
  13 + public GetHistoryJCCByXLBMResponseFDataTable value;
  14 +
  15 + public GetHistoryJCCByXLBMResponseFDataTableHolder() {
  16 + }
  17 +
  18 + public GetHistoryJCCByXLBMResponseFDataTableHolder(GetHistoryJCCByXLBMResponseFDataTable value) {
  19 + this.value = value;
  20 + }
  21 +
  22 +}
... ...
src/main/java/com/bsth/old_sys_wsclient/holders/copy/ArrayOfStringHolder.java 0 → 100644
  1 +/**
  2 + * ArrayOfStringHolder.java
  3 + *
  4 + * This file was auto-generated from WSDL
  5 + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6 + */
  7 +
  8 +package com.bsth.old_sys_wsclient.holders.copy;
  9 +
  10 +public final class ArrayOfStringHolder implements javax.xml.rpc.holders.Holder {
  11 + public String[] value;
  12 +
  13 + public ArrayOfStringHolder() {
  14 + }
  15 +
  16 + public ArrayOfStringHolder(String[] value) {
  17 + this.value = value;
  18 + }
  19 +
  20 +}
... ...
src/main/java/com/bsth/old_sys_wsclient/holders/copy/GetHistoryJCCByXLBMResponseFDataTableHolder.java 0 → 100644
  1 +/**
  2 + * GetHistoryJCCByXLBMResponseFDataTableHolder.java
  3 + *
  4 + * This file was auto-generated from WSDL
  5 + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6 + */
  7 +
  8 +package com.bsth.old_sys_wsclient.holders.copy;
  9 +
  10 +import com.bsth.old_sys_wsclient.GetHistoryJCCByXLBMResponseFDataTable;
  11 +
  12 +public final class GetHistoryJCCByXLBMResponseFDataTableHolder implements javax.xml.rpc.holders.Holder {
  13 + public GetHistoryJCCByXLBMResponseFDataTable value;
  14 +
  15 + public GetHistoryJCCByXLBMResponseFDataTableHolder() {
  16 + }
  17 +
  18 + public GetHistoryJCCByXLBMResponseFDataTableHolder(GetHistoryJCCByXLBMResponseFDataTable value) {
  19 + this.value = value;
  20 + }
  21 +
  22 +}
... ...
src/main/java/com/bsth/redis/OilRedisService.java 0 → 100644
  1 +package com.bsth.redis;
  2 +
  3 +import com.bsth.entity.OilInfo;
  4 +import com.bsth.repository.OilInfoRepository;
  5 +import com.bsth.util.ConfigUtil;
  6 +import com.bsth.util.ConvertUtil;
  7 +import com.google.common.collect.ArrayListMultimap;
  8 +import org.joda.time.DateTime;
  9 +import org.slf4j.Logger;
  10 +import org.slf4j.LoggerFactory;
  11 +import org.springframework.beans.factory.annotation.Autowired;
  12 +import org.springframework.boot.CommandLineRunner;
  13 +import org.springframework.core.annotation.Order;
  14 +import org.springframework.data.redis.core.ListOperations;
  15 +import org.springframework.data.redis.core.RedisTemplate;
  16 +import org.springframework.data.redis.serializer.StringRedisSerializer;
  17 +import org.springframework.stereotype.Service;
  18 +
  19 +import java.util.Iterator;
  20 +import java.util.List;
  21 +
  22 +/**
  23 + * 油量数据Redis缓存
  24 + * Created by panzhao on 2017/3/19.
  25 + */
  26 +@Service
  27 +@Order(3)
  28 +public class OilRedisService implements CommandLineRunner {
  29 +
  30 + @Autowired
  31 + private RedisTemplate redisTemplate;
  32 +
  33 + @Autowired
  34 + OilInfoRepository oilInfoRepository;
  35 +
  36 + Logger logger = LoggerFactory.getLogger(this.getClass());
  37 +
  38 + private final static String REDIS_KEY_PREFIX = "oil:";
  39 +
  40 + /**
  41 + * 将油量数据写入redis
  42 + *
  43 + * @param list
  44 + */
  45 + public void wirte(List<OilInfo> list) {
  46 + ArrayListMultimap<String, OilInfo> multimap;
  47 + try {
  48 + if (list.size() == 0)
  49 + return;
  50 + //按日期和线路分组数据
  51 + Class clazz = OilInfo.class;
  52 + multimap = new ConvertUtil().groupList(list, ":", clazz.getDeclaredField("nbbm"), clazz.getDeclaredField("rq"));
  53 +
  54 + //写入redis
  55 + Iterator<String> iterator = multimap.keySet().iterator();
  56 + String key;
  57 + while (iterator.hasNext()) {
  58 + key = iterator.next();
  59 + mergeData(key, multimap.get(key));
  60 + }
  61 + } catch (Exception e) {
  62 + logger.error("", e);
  63 + }
  64 + }
  65 +
  66 + /**
  67 + * 将 list 与redis里的数据合并
  68 + *
  69 + * @param key
  70 + * @param list
  71 + */
  72 + public void mergeData(String key, List<OilInfo> list) {
  73 + key = REDIS_KEY_PREFIX + key;
  74 +
  75 + ListOperations<String, OilInfo> ops = redisTemplate.opsForList();
  76 + List<OilInfo> cacheList = ops.range(key, 0, -1);
  77 +
  78 + for (OilInfo oil : cacheList) {
  79 + if (!list.contains(oil))
  80 + list.add(oil);
  81 + }
  82 + //删除redis数据
  83 + redisTemplate.delete(key);
  84 + //重新写入
  85 + ops.leftPushAll(key, list);
  86 + }
  87 +
  88 + @Override
  89 + public void run(String... strings) throws Exception {
  90 + int cacheDays = Integer.parseInt(ConfigUtil.get("cache.days"));
  91 + //设置key 序列化器
  92 + redisTemplate.setKeySerializer(new StringRedisSerializer());
  93 +
  94 + DateTime dt = new DateTime();
  95 + dt = dt.withHourOfDay(0).withMinuteOfHour(0).withSecondOfMinute(0).minusDays(cacheDays);
  96 + List<OilInfo> list = oilInfoRepository.findByDateLT(dt.toDate());
  97 + //写入redis
  98 + wirte(list);
  99 + }
  100 +}
... ...
src/main/java/com/bsth/redis/ScheduleRedisService.java 0 → 100644
  1 +package com.bsth.redis;
  2 +
  3 +import com.bsth.entity.ScheduleRealInfo;
  4 +import com.bsth.repository.ScheduleRealInfoRepository;
  5 +import com.bsth.util.ConfigUtil;
  6 +import com.bsth.util.ConvertUtil;
  7 +import com.google.common.collect.ArrayListMultimap;
  8 +import org.joda.time.DateTime;
  9 +import org.slf4j.Logger;
  10 +import org.slf4j.LoggerFactory;
  11 +import org.springframework.beans.factory.annotation.Autowired;
  12 +import org.springframework.boot.CommandLineRunner;
  13 +import org.springframework.core.annotation.Order;
  14 +import org.springframework.data.redis.core.ListOperations;
  15 +import org.springframework.data.redis.core.RedisTemplate;
  16 +import org.springframework.data.redis.serializer.StringRedisSerializer;
  17 +import org.springframework.stereotype.Service;
  18 +
  19 +import java.util.Iterator;
  20 +import java.util.List;
  21 +
  22 +/**
  23 + * 班次 redis 缓存管理
  24 + * Created by panzhao on 2017/3/13.
  25 + */
  26 +@Service
  27 +@Order(2)
  28 +public class ScheduleRedisService implements CommandLineRunner {
  29 +
  30 + @Autowired
  31 + ScheduleRealInfoRepository scheduleRealInfoRepository;
  32 +
  33 + private final static String REDIS_KEY_PREFIX = "schedule:";
  34 +
  35 + @Autowired
  36 + private RedisTemplate redisTemplate;
  37 +
  38 + Logger logger = LoggerFactory.getLogger(this.getClass());
  39 +
  40 + /**
  41 + * 将一批班次写入redis
  42 + *
  43 + * @param list
  44 + */
  45 + public void wirte(List<ScheduleRealInfo> list) {
  46 + ArrayListMultimap<String, ScheduleRealInfo> multimap;
  47 + try {
  48 + if (list.size() == 0)
  49 + return;
  50 + //按日期和线路分组数据
  51 + Class clazz = ScheduleRealInfo.class;
  52 + multimap = new ConvertUtil().groupList(list, ":", clazz.getDeclaredField("xlBm"), clazz.getDeclaredField("scheduleDateStr"));
  53 +
  54 + //写入redis
  55 + Iterator<String> iterator = multimap.keySet().iterator();
  56 + String key;
  57 + while (iterator.hasNext()) {
  58 + key = iterator.next();
  59 + mergeData(key, multimap.get(key));
  60 + }
  61 + } catch (Exception e) {
  62 + logger.error("", e);
  63 + }
  64 + }
  65 +
  66 + /**
  67 + * 将 list 与redis里的数据合并
  68 + *
  69 + * @param key
  70 + * @param list
  71 + */
  72 + public void mergeData(String key, List<ScheduleRealInfo> list) {
  73 + key = REDIS_KEY_PREFIX + key.replaceAll("-", "");
  74 +
  75 + ListOperations<String, ScheduleRealInfo> ops = redisTemplate.opsForList();
  76 + List<ScheduleRealInfo> cacheList = ops.range(key, 0, -1);
  77 +
  78 + for (ScheduleRealInfo sch : cacheList) {
  79 + if (!list.contains(sch))
  80 + list.add(sch);
  81 + }
  82 + //删除redis数据
  83 + redisTemplate.delete(key);
  84 + //重新写入
  85 + ops.leftPushAll(key, list);
  86 + }
  87 +
  88 + /**
  89 + * 根据日期和线路编码从redis获取班次
  90 + *
  91 + * @param dateStr
  92 + * @param lineCode
  93 + * @return
  94 + */
  95 + public List<ScheduleRealInfo> read(String dateStr, String lineCode) {
  96 + return redisTemplate.opsForList().range(REDIS_KEY_PREFIX + ":" + lineCode + ":" + dateStr, 0, -1);
  97 + }
  98 +
  99 + @Override
  100 + public void run(String... strings) throws Exception {
  101 + int cacheDays = Integer.parseInt(ConfigUtil.get("cache.days"));
  102 + //设置key 序列化器
  103 + redisTemplate.setKeySerializer(new StringRedisSerializer());
  104 +
  105 + DateTime dt = new DateTime();
  106 + dt = dt.minusDays(cacheDays);
  107 + List<ScheduleRealInfo> list = scheduleRealInfoRepository.findByDateLT(dt.toString("yyyy-MM-dd"));
  108 + //写入redis
  109 + wirte(list);
  110 + }
  111 +}
... ...
src/main/java/com/bsth/repository/ChildTaskPlanRepository.java 0 → 100644
  1 +package com.bsth.repository;
  2 +
  3 +import com.bsth.entity.ChildTaskPlan;
  4 +import org.springframework.data.repository.PagingAndSortingRepository;
  5 +import org.springframework.stereotype.Repository;
  6 +
  7 +@Repository
  8 +public interface ChildTaskPlanRepository extends PagingAndSortingRepository<ChildTaskPlan, Long> {
  9 +}
... ...
src/main/java/com/bsth/repository/Line2SystemRepository.java 0 → 100644
  1 +package com.bsth.repository;
  2 +
  3 +import com.bsth.entity.Line2System;
  4 +import org.springframework.data.jpa.repository.Query;
  5 +import org.springframework.data.repository.PagingAndSortingRepository;
  6 +import org.springframework.stereotype.Repository;
  7 +
  8 +import java.util.List;
  9 +
  10 +/**
  11 + * Created by panzhao on 2017/3/14.
  12 + */
  13 +@Repository
  14 +public interface Line2SystemRepository extends PagingAndSortingRepository<Line2System, String> {
  15 +
  16 + @Query(value = "select line_code, name as line_name, 0 as is_new from bsth_c_line where line_code not in(select line_code from interface_line_system_mapp)", nativeQuery = true)
  17 + List<Line2System> loadByLineInfo();
  18 +}
... ...
src/main/java/com/bsth/repository/OilInfoRepository.java 0 → 100644
  1 +package com.bsth.repository;
  2 +
  3 +import com.bsth.entity.OilInfo;
  4 +import org.springframework.data.jpa.repository.Query;
  5 +import org.springframework.data.repository.PagingAndSortingRepository;
  6 +import org.springframework.stereotype.Repository;
  7 +
  8 +import java.util.Date;
  9 +import java.util.List;
  10 +
  11 +/**
  12 + * Created by panzhao on 2017/3/19.
  13 + */
  14 +@Repository
  15 +public interface OilInfoRepository extends PagingAndSortingRepository<OilInfo, Long> {
  16 +
  17 +
  18 + @Query("select oil from OilInfo oil where oil.rq>?1")
  19 + List<OilInfo> findByDateLT(Date rq);
  20 +}
... ...
src/main/java/com/bsth/repository/ScheduleRealInfoRepository.java 0 → 100644
  1 +package com.bsth.repository;
  2 +
  3 +import com.bsth.entity.ScheduleRealInfo;
  4 +import org.springframework.data.jpa.repository.EntityGraph;
  5 +import org.springframework.data.jpa.repository.Query;
  6 +import org.springframework.data.repository.PagingAndSortingRepository;
  7 +import org.springframework.stereotype.Repository;
  8 +
  9 +import java.util.List;
  10 +
  11 +@Repository
  12 +public interface ScheduleRealInfoRepository extends PagingAndSortingRepository<ScheduleRealInfo, Long> {
  13 +
  14 + /**
  15 + * 根据日期获取班次信息
  16 + * @param schDate
  17 + * @return
  18 + */
  19 + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH)
  20 + @Query("select s from ScheduleRealInfo s where s.scheduleDateStr=?1")
  21 + List<ScheduleRealInfo> findAll(String schDate);
  22 +
  23 + /**
  24 + * 根据日期和线路编码获取班次信息
  25 + * @param schDate
  26 + * @param lineCode
  27 + * @return
  28 + */
  29 + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH)
  30 + @Query("select s from ScheduleRealInfo s where s.scheduleDateStr=?1 and s.xlBm=?2")
  31 + List<ScheduleRealInfo> findAll(String schDate, String lineCode);
  32 +
  33 + /**
  34 + * 获取大于指定日期的班次信息
  35 + * @param schDate
  36 + * @return
  37 + */
  38 + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH)
  39 + @Query("select s from ScheduleRealInfo s where s.scheduleDateStr>?1")
  40 + List<ScheduleRealInfo> findByDateLT(String schDate);
  41 +}
... ...
src/main/java/com/bsth/service/Line2SystemService.java 0 → 100644
  1 +package com.bsth.service;
  2 +
  3 +import com.bsth.entity.Line2System;
  4 +
  5 +/**
  6 + * Created by panzhao on 2017/3/14.
  7 + */
  8 +public interface Line2SystemService {
  9 +
  10 + Line2System update(Line2System line2Sys);
  11 +
  12 + Iterable<Line2System> findAll();
  13 +
  14 + /**
  15 + * 从线路表加载增量的线路
  16 + */
  17 + void loadByLineInfo();
  18 +}
... ...
src/main/java/com/bsth/service/impl/Line2SystemServiceImpl.java 0 → 100644
  1 +package com.bsth.service.impl;
  2 +
  3 +import com.bsth.entity.Line2System;
  4 +import com.bsth.repository.Line2SystemRepository;
  5 +import com.bsth.service.Line2SystemService;
  6 +import com.bsth.ws_proxy.WebServiceProxy;
  7 +import org.springframework.beans.factory.annotation.Autowired;
  8 +import org.springframework.stereotype.Service;
  9 +
  10 +import java.util.List;
  11 +
  12 +/**
  13 + * Created by panzhao on 2017/3/14.
  14 + */
  15 +@Service
  16 +public class Line2SystemServiceImpl implements Line2SystemService {
  17 +
  18 + @Autowired
  19 + Line2SystemRepository line2SystemRepository;
  20 +
  21 + @Autowired
  22 + WebServiceProxy webServiceProxy;
  23 +
  24 + @Override
  25 + public Line2System update(Line2System line2Sys) {
  26 + Line2System line2System = line2SystemRepository.save(line2Sys);
  27 + webServiceProxy.update(line2System);
  28 + return line2System;
  29 + }
  30 +
  31 + @Override
  32 + public Iterable<Line2System> findAll() {
  33 + return line2SystemRepository.findAll();
  34 + }
  35 +
  36 + @Override
  37 + public void loadByLineInfo() {
  38 + List<Line2System> list = line2SystemRepository.loadByLineInfo();
  39 + line2SystemRepository.save(list);
  40 + }
  41 +}
... ...
src/main/java/com/bsth/util/ConfigUtil.java 0 → 100644
  1 +package com.bsth.util;
  2 +
  3 +public class ConfigUtil {
  4 +
  5 + static Tools tools;
  6 +
  7 + static{
  8 + tools = new Tools("application.properties");
  9 + String active = tools.getValue("spring.profiles.active");
  10 + tools = new Tools("application-"+active+".properties");
  11 + }
  12 +
  13 + public static String get(String key){
  14 + return tools.getValue(key);
  15 + }
  16 +}
... ...
src/main/java/com/bsth/util/ConvertUtil.java 0 → 100644
  1 +package com.bsth.util;
  2 +
  3 +import com.google.common.collect.ArrayListMultimap;
  4 +import org.joda.time.format.DateTimeFormat;
  5 +import org.joda.time.format.DateTimeFormatter;
  6 +import org.slf4j.Logger;
  7 +import org.slf4j.LoggerFactory;
  8 +
  9 +import java.lang.reflect.Field;
  10 +import java.util.ArrayList;
  11 +import java.util.Collection;
  12 +import java.util.Date;
  13 +import java.util.List;
  14 +
  15 +/**
  16 + * 数据转换
  17 + * Created by panzhao on 2017/3/13.
  18 + */
  19 +public class ConvertUtil<T> {
  20 +
  21 + Logger logger = LoggerFactory.getLogger(this.getClass());
  22 + private static DateTimeFormatter fmtyyyyMMdd = DateTimeFormat.forPattern("yyyyMMdd");
  23 +
  24 + /**
  25 + * 根据指定字段 将 list 分组
  26 + *
  27 + * @param list
  28 + * @param separator 字段使用分隔符连接 组成key
  29 + * @param fields
  30 + * @return
  31 + */
  32 + public ArrayListMultimap<String, T> groupList(List<T> list, String separator, Field... fields) {
  33 + ArrayListMultimap<String, T> multimap = ArrayListMultimap.create();
  34 +
  35 + String key;
  36 + //Object field;
  37 + try {
  38 + for (T t : list) {
  39 +
  40 + key = "";
  41 + for (Field f : fields) {
  42 + f.setAccessible(true);
  43 + //日期类型格式化为 YYYY-MM-DD
  44 + if (f.getType().equals(Date.class))
  45 + key += (separator + fmtyyyyMMdd.print(((Date) f.get(t)).getTime()));
  46 + else
  47 + key += (separator + f.get(t).toString());
  48 + }
  49 + key = key.substring(1);
  50 +
  51 + multimap.put(key, t);
  52 + }
  53 + } catch (Exception e) {
  54 + logger.error("", e);
  55 + }
  56 +
  57 + return multimap;
  58 + }
  59 +
  60 + /**
  61 + * 计算并集
  62 + *
  63 + * @param all
  64 + * @param sub
  65 + * @return
  66 + */
  67 + public List<String> calcUnion(Collection<String> all, Collection<String> sub) {
  68 + List<String> rs = new ArrayList<>();
  69 +
  70 + for (String str : all) {
  71 + if (sub.contains(str))
  72 + rs.add(str);
  73 + }
  74 + return rs;
  75 + }
  76 +
  77 + /**
  78 + * 计算补集
  79 + *
  80 + * @param all
  81 + * @param sub
  82 + * @return
  83 + */
  84 + public List<String> calcComplement(Collection<String> all, Collection<String> sub) {
  85 + List<String> rs = new ArrayList<>();
  86 +
  87 + for (String str : all) {
  88 + if (!sub.contains(str))
  89 + rs.add(str);
  90 + }
  91 + return rs;
  92 + }
  93 +}
... ...
src/main/java/com/bsth/util/Tools.java 0 → 100644
  1 +package com.bsth.util;
  2 +
  3 +import java.io.IOException;
  4 +import java.util.Properties;
  5 +
  6 +public class Tools {
  7 + private static Properties p = new Properties();
  8 + private static String f;
  9 + public Tools(String file){
  10 + f = file;
  11 + try {
  12 + p.load(Tools.class.getClassLoader().getResourceAsStream(f));
  13 + } catch (IOException e) {
  14 + e.printStackTrace();
  15 + }
  16 + }
  17 +
  18 + /**
  19 + * 根据key得到value的值
  20 + */
  21 + public String getValue(String key)
  22 + {
  23 + return p.getProperty(key);
  24 + }
  25 +}
... ...
src/main/java/com/bsth/ws_proxy/WebServiceProxy.java 0 → 100644
  1 +package com.bsth.ws_proxy;
  2 +
  3 +import com.bsth.Application;
  4 +import com.bsth.entity.Line2System;
  5 +import com.bsth.repository.Line2SystemRepository;
  6 +import com.bsth.util.ConvertUtil;
  7 +import com.google.common.collect.ArrayListMultimap;
  8 +import org.apache.commons.lang3.StringUtils;
  9 +import org.slf4j.Logger;
  10 +import org.slf4j.LoggerFactory;
  11 +import org.springframework.beans.factory.annotation.Autowired;
  12 +import org.springframework.boot.CommandLineRunner;
  13 +import org.springframework.core.annotation.Order;
  14 +import org.springframework.jdbc.core.JdbcTemplate;
  15 +import org.springframework.stereotype.Component;
  16 +
  17 +import java.util.*;
  18 +import java.util.concurrent.TimeUnit;
  19 +
  20 +/**
  21 + * Created by panzhao on 2017/3/15.
  22 + */
  23 +@Component
  24 +@Order(3)
  25 +public class WebServiceProxy implements CommandLineRunner {
  26 +
  27 + @Autowired
  28 + JdbcTemplate jdbcTemplate;
  29 +
  30 + @Autowired
  31 + FixedRefreshThread fixedRefreshThread;
  32 +
  33 + /**
  34 + * 人员线路配置
  35 + */
  36 + private static Map<String, String> per_lineMap;
  37 +
  38 + /**
  39 + * 线路所属公司映射
  40 + */
  41 + private static ArrayListMultimap<String, String> company_linesMap;
  42 +
  43 + /**
  44 + * 从老系统获取数据的线路
  45 + */
  46 + private static Map<String, Integer> oldSysLines;
  47 +
  48 + @Autowired
  49 + Line2SystemRepository line2SystemRepository;
  50 +
  51 + Logger logger = LoggerFactory.getLogger(this.getClass());
  52 +
  53 +
  54 + /**
  55 + * 判断是否从新系统获取数据(根据工号)
  56 + * @param companyId 公司编码
  57 + * @param workNO 员工号
  58 + * @return
  59 + */
  60 + public static boolean personIsNew(String companyId, String workNO){
  61 + String lineCode = per_lineMap.get(companyId + "-" + workNO);
  62 +
  63 + if(StringUtils.isEmpty(lineCode))
  64 + return false;
  65 +
  66 + if(oldSysLines.containsKey(lineCode))
  67 + return false;
  68 +
  69 + return true;
  70 + }
  71 +
  72 + /**
  73 + * 是否全部从新系统获取数据
  74 + * @param companyId
  75 + * @return
  76 + */
  77 + public static boolean isAllNew(String companyId){
  78 + if(oldSysLines == null || oldSysLines.size() == 0)
  79 + return true;
  80 +
  81 + List<String> lines = company_linesMap.get(companyId);
  82 + List<String> unions = new ConvertUtil().calcUnion(lines, oldSysLines.keySet());
  83 + if(unions.size() == 0)
  84 + return true;
  85 + return false;
  86 + }
  87 +
  88 + /**
  89 + * 合并新老系统的进出场数据
  90 + * @param newData
  91 + * @param oldData
  92 + * @param companyId
  93 + * @return
  94 + */
  95 + public static String[] mergerJccData(String[] newData, String[] oldData, String companyId){
  96 + if(oldSysLines == null || oldSysLines.size() == 0)
  97 + return newData;
  98 +
  99 + List<String> rs = new ArrayList<>();
  100 +
  101 + List<String> lines = company_linesMap.get(companyId);
  102 + //补集,要从新系统出来的数据
  103 + List<String> comps = new ConvertUtil().calcComplement(lines, oldSysLines.keySet());
  104 + String lineCode;
  105 + for(int i = 0; i < newData.length; i ++){
  106 + lineCode = newData[i].split(",")[1];
  107 + if(comps.contains(lineCode))
  108 + rs.add(newData[i]);
  109 + }
  110 +
  111 + //从老系统出来的数据
  112 + for(int i = 0; i < oldData.length; i ++){
  113 + lineCode = oldData[i].split(",")[1];
  114 + if(!comps.contains(lineCode))
  115 + rs.add(oldData[i]);
  116 + }
  117 +
  118 + return rs.toArray(new String[rs.size()]);
  119 + }
  120 +
  121 +
  122 + @Override
  123 + public void run(String... strings) throws Exception {
  124 + Application.mainServices.scheduleWithFixedDelay(fixedRefreshThread, 15, 60 * 30, TimeUnit.SECONDS);
  125 + }
  126 +
  127 + @Component
  128 + public class FixedRefreshThread extends Thread{
  129 +
  130 + @Autowired
  131 + WebServiceProxy webServiceProxy;
  132 +
  133 + @Override
  134 + public void run() {
  135 + webServiceProxy.refreshData();
  136 + }
  137 + }
  138 +
  139 + public void refreshData() {
  140 + List<Map<String, Object>> list = jdbcTemplate.queryForList("select p.JOB_CODE,L.LINE_CODE from bsth_c_s_ecinfo c left join bsth_c_personnel p on c.jsy=p.id left join bsth_c_line L on c.xl=L.id");
  141 + Map<String, String> plMap = new HashMap<>();
  142 + for (Map<String, Object> map : list) {
  143 + try {
  144 + plMap.put(map.get("JOB_CODE").toString(), map.get("LINE_CODE").toString());
  145 + } catch (NullPointerException e) {
  146 + logger.error("", e);
  147 + }
  148 + }
  149 + per_lineMap = plMap;
  150 +
  151 + list = jdbcTemplate.queryForList("select LINE_CODE,COMPANY from bsth_c_line");
  152 + ArrayListMultimap<String, String> multimap = ArrayListMultimap.create();
  153 + for (Map<String, Object> map : list) {
  154 + try {
  155 + multimap.put(map.get("COMPANY").toString(), map.get("LINE_CODE").toString());
  156 + } catch (NullPointerException e) {
  157 + logger.error("", e);
  158 + }
  159 + }
  160 + company_linesMap = multimap;
  161 +
  162 + Iterator<Line2System> iterator = line2SystemRepository.findAll().iterator();
  163 + Map<String, Integer> oldSysLinesMap = new HashMap<>();
  164 + Line2System line2Sys;
  165 + while(iterator.hasNext()){
  166 + line2Sys = iterator.next();
  167 + if(!line2Sys.isNew())
  168 + oldSysLinesMap.put(line2Sys.getLineCode(), 1);
  169 + }
  170 + oldSysLines = oldSysLinesMap;
  171 + }
  172 +
  173 + public void update(Line2System line2System){
  174 + if(line2System.isNew())
  175 + oldSysLines.remove(line2System.getLineCode());
  176 + else
  177 + oldSysLines.put(line2System.getLineCode(), 1);
  178 + }
  179 +}
... ...
src/main/java/com/bsth/ws_server/park_station/CompanyService.java 0 → 100644
  1 +package com.bsth.ws_server.park_station;
  2 +
  3 +import javax.jws.WebMethod;
  4 +import javax.jws.WebParam;
  5 +import javax.jws.WebService;
  6 +
  7 +/**
  8 + * BS调度系统webservice接口定义
  9 + * Created by panzhao on 2017/3/10.
  10 + */
  11 +@WebService(
  12 + name = "CompanyServiceSoap",
  13 + targetNamespace = "http://control.bsth.com/")
  14 +public interface CompanyService {
  15 +
  16 + /**
  17 + * 返回出场信息
  18 + *
  19 + * @param password 密码
  20 + * @param companyId 公司编码
  21 + * @param rq 日期
  22 + * @param result 出场班次数组
  23 + * @param fError 异常时,该字段描述异常信息
  24 + * @return
  25 + */
  26 + @WebMethod
  27 + boolean returnCCInfo(
  28 + @WebParam(name = "password") String password,
  29 + @WebParam(name = "companyId") String companyId,
  30 + @WebParam(name = "rq") String rq,
  31 + @WebParam(name = "resultArray", mode = WebParam.Mode.INOUT) javax.xml.ws.Holder<String[]> result,
  32 + @WebParam(name = "fError", mode = WebParam.Mode.INOUT) javax.xml.ws.Holder<String> fError);
  33 +
  34 +
  35 + /**
  36 + * 返回进场信息
  37 + *
  38 + * @param password 密码
  39 + * @param companyId 公司编码
  40 + * @param rq 日期
  41 + * @param result 出场班次数组
  42 + * @param fError 异常时,该字段描述异常信息
  43 + * @return
  44 + */
  45 + @WebMethod
  46 + boolean returnJCInfo(
  47 + @WebParam(name = "password") String password,
  48 + @WebParam(name = "companyId") String companyId,
  49 + @WebParam(name = "rq") String rq,
  50 + @WebParam(name = "resultArray", mode = WebParam.Mode.INOUT) javax.xml.ws.Holder<String[]> result,
  51 + @WebParam(name = "fError", mode = WebParam.Mode.INOUT) javax.xml.ws.Holder<String> fError);
  52 +
  53 + /**
  54 + * 根据驾驶员工号获取当日排班
  55 + * @param ip
  56 + * @param userName
  57 + * @param password
  58 + * @param workId 工号
  59 + * @param company 公司编码
  60 + * @param result
  61 + * @param fError
  62 + * @return
  63 + */
  64 + @WebMethod
  65 + boolean getCurrentDayPlan(
  66 + @WebParam(name = "ip") String ip,
  67 + @WebParam(name = "userName") String userName,
  68 + @WebParam(name = "password") String password,
  69 + @WebParam(name = "workId") String workId,
  70 + @WebParam(name = "company") String company,
  71 + @WebParam(name = "resultArray", mode = WebParam.Mode.INOUT) javax.xml.ws.Holder<String[]> result,
  72 + @WebParam(name = "fError", mode = WebParam.Mode.INOUT) javax.xml.ws.Holder<String> fError);
  73 +}
... ...
src/main/java/com/bsth/ws_server/park_station/CompanyServiceSoap.java 0 → 100644
  1 +package com.bsth.ws_server.park_station;
  2 +
  3 +import com.bsth.entity.ScheduleRealInfo;
  4 +import com.bsth.old_sys_wsclient.OldWSClient;
  5 +import com.bsth.ws_proxy.WebServiceProxy;
  6 +import com.bsth.ws_server.util.Constants;
  7 +import com.bsth.ws_server.util.ControlHttpUtils;
  8 +import com.bsth.ws_server.util.WSDataConver;
  9 +import org.slf4j.Logger;
  10 +import org.slf4j.LoggerFactory;
  11 +
  12 +import javax.jws.WebMethod;
  13 +import javax.jws.WebService;
  14 +import javax.xml.ws.Holder;
  15 +import java.util.List;
  16 +
  17 +/**
  18 + * BS调度系统webservice接口实现,完美兼容老系统接口格式
  19 + * Created by panzhao on 2017/3/10.
  20 + */
  21 +
  22 +@WebService(
  23 + name = "CompanyServiceSoap",
  24 + portName = "CompanyServiceSoap",
  25 + serviceName = "CompanyService",
  26 + targetNamespace = "http://control.bsth.com/",
  27 + endpointInterface = "com.bsth.ws_server.park_station.CompanyService")
  28 +public class CompanyServiceSoap implements CompanyService {
  29 +
  30 +
  31 + Logger logger = LoggerFactory.getLogger(this.getClass());
  32 +
  33 + @Override
  34 + @WebMethod
  35 + public boolean returnCCInfo(String password, String companyId, String rq, javax.xml.ws.Holder<String[]> result, javax.xml.ws.Holder<String> fError) {
  36 + if(!password.equals(Constants.OLD_SYS_PASSWORD)){
  37 + fError.value = "密码有误!";
  38 + return false;
  39 + }
  40 +
  41 + List<ScheduleRealInfo> list = null;
  42 + try{
  43 + //从调度系统获取数据
  44 + list = ControlHttpUtils.returnJCCInfo(companyId, "out");
  45 + }catch (Exception e){
  46 + //访问调度系统异常,尝试从数据库获取
  47 +
  48 + }
  49 + result.value = WSDataConver.to_returnJCCInfo(list);
  50 +
  51 + if(!WebServiceProxy.isAllNew(companyId)){
  52 + String[] oldArray = OldWSClient.returnCCInfo(companyId, rq);
  53 + //合并新老系统的数据
  54 + result.value = WebServiceProxy.mergerJccData(result.value, oldArray, companyId);
  55 + }
  56 + return true;
  57 + }
  58 +
  59 + @Override
  60 + @WebMethod
  61 + public boolean returnJCInfo(String password, String companyId, String rq, Holder<String[]> result, Holder<String> fError) {
  62 + if(!password.equals(Constants.OLD_SYS_PASSWORD)){
  63 + fError.value = "密码有误!";
  64 + return false;
  65 + }
  66 +
  67 + List<ScheduleRealInfo> list = null;
  68 + try{
  69 + //从调度系统获取数据
  70 + list = ControlHttpUtils.returnJCCInfo(companyId, "in");
  71 + }catch (Exception e){
  72 + //访问调度系统异常,尝试从数据库获取
  73 +
  74 + }
  75 + result.value = WSDataConver.to_returnJCCInfo(list);
  76 +
  77 + if(!WebServiceProxy.isAllNew(companyId)){
  78 + String[] oldArray = OldWSClient.returnJCInfo(companyId, rq);
  79 + //合并新老系统的数据
  80 + result.value = WebServiceProxy.mergerJccData(result.value, oldArray, companyId);
  81 + }
  82 +
  83 + return false;
  84 + }
  85 +
  86 + @Override
  87 + @WebMethod
  88 + public boolean getCurrentDayPlan(String ip, String userName, String password, String workId, String company, Holder<String[]> result, Holder<String> fError) {
  89 + try{
  90 + if(WebServiceProxy.personIsNew(company, workId)){
  91 +
  92 + List<ScheduleRealInfo> list = null;
  93 + try{
  94 + //从调度系统获取数据
  95 + list = ControlHttpUtils.getCurrentDayPlan(company, workId);
  96 + }catch (Exception e){
  97 + //访问调度系统异常,尝试从数据库获取
  98 +
  99 + }
  100 + result.value = WSDataConver.to_getCurrentDayPlan(list);
  101 + }
  102 + else
  103 + result.value = OldWSClient.getCurrentDayPlan(workId, company);
  104 + }catch(Exception e){
  105 + fError.value = e.getMessage();
  106 + }
  107 + return false;
  108 + }
  109 +}
... ...
src/main/java/com/bsth/ws_server/util/Constants.java 0 → 100644
  1 +package com.bsth.ws_server.util;
  2 +
  3 +/**
  4 + * Created by panzhao on 2017/3/15.
  5 + */
  6 +public class Constants {
  7 +
  8 + //原智能停车场与老系统接口密码
  9 + public static final String OLD_SYS_PASSWORD = "123904D6-21CE-33B0-AC41-375EB1BBC0sN-bsth";
  10 +
  11 +}
... ...
src/main/java/com/bsth/ws_server/util/ControlHttpUtils.java 0 → 100644
  1 +package com.bsth.ws_server.util;
  2 +
  3 +import com.alibaba.fastjson.JSONArray;
  4 +import com.bsth.entity.ScheduleRealInfo;
  5 +import com.bsth.util.ConfigUtil;
  6 +import org.apache.http.client.config.RequestConfig;
  7 +import org.apache.http.client.methods.CloseableHttpResponse;
  8 +import org.apache.http.client.methods.HttpGet;
  9 +import org.apache.http.impl.client.CloseableHttpClient;
  10 +import org.apache.http.impl.client.HttpClients;
  11 +import org.apache.http.util.EntityUtils;
  12 +import org.slf4j.Logger;
  13 +import org.slf4j.LoggerFactory;
  14 +
  15 +import java.io.IOException;
  16 +import java.util.List;
  17 +
  18 +/**
  19 + * Created by panzhao on 2017/3/15.
  20 + */
  21 +public class ControlHttpUtils {
  22 +
  23 + static Logger logger = LoggerFactory.getLogger(ControlHttpUtils.class);
  24 +
  25 + static String url;
  26 +
  27 + static String secretKey;
  28 +
  29 + static {
  30 + url = ConfigUtil.get("http.control.service_data_url");
  31 + secretKey = ConfigUtil.get("http.control.secret.key");
  32 + }
  33 +
  34 + /**
  35 + * 从调度系统获取班次信息
  36 + *
  37 + * @return
  38 + */
  39 + public static List<ScheduleRealInfo> getCurrentDayPlan(String companyId, String workId) throws IOException {
  40 +
  41 + CloseableHttpClient httpClient = null;
  42 + List<ScheduleRealInfo> rs = null;
  43 + httpClient = HttpClients.createDefault();
  44 + //超时时间
  45 + RequestConfig requestConfig = RequestConfig.custom()
  46 + .setConnectTimeout(2000).setConnectionRequestTimeout(1000)
  47 + .setSocketTimeout(3000).build();
  48 +
  49 + HttpGet get = new HttpGet(url + "/getCurrentDayPlan?companyId=" + companyId + "&workId=" + workId + "&secretKey=" + secretKey);
  50 + get.setConfig(requestConfig);
  51 +
  52 + CloseableHttpResponse response = httpClient.execute(get);
  53 +
  54 + rs = JSONArray.parseArray(EntityUtils.toString(response.getEntity()), ScheduleRealInfo.class);
  55 + return rs;
  56 + }
  57 +
  58 + /**
  59 + * 从调度系统获取进出场班次信息
  60 + * @param comanyId
  61 + * @param jcOrCc
  62 + * @return
  63 + */
  64 + public static List<ScheduleRealInfo> returnJCCInfo(String companyId, String jcOrCc) throws IOException{
  65 +
  66 + String method = jcOrCc.equals("out")?"/returnCCInfo":"/returnJCInfo";
  67 +
  68 + CloseableHttpClient httpClient = null;
  69 + List<ScheduleRealInfo> rs = null;
  70 + httpClient = HttpClients.createDefault();
  71 + //超时时间
  72 + RequestConfig requestConfig = RequestConfig.custom()
  73 + .setConnectTimeout(2000).setConnectionRequestTimeout(1000)
  74 + .setSocketTimeout(3000).build();
  75 +
  76 + HttpGet get = new HttpGet(url + method+"?companyId=" + companyId + "&secretKey=" + secretKey);
  77 + get.setConfig(requestConfig);
  78 +
  79 + CloseableHttpResponse response = httpClient.execute(get);
  80 +
  81 + rs = JSONArray.parseArray(EntityUtils.toString(response.getEntity()), ScheduleRealInfo.class);
  82 + return rs;
  83 + }
  84 +}
... ...
src/main/java/com/bsth/ws_server/util/WSDataConver.java 0 → 100644
  1 +package com.bsth.ws_server.util;
  2 +
  3 +import com.bsth.entity.ScheduleRealInfo;
  4 +
  5 +import java.util.HashMap;
  6 +import java.util.List;
  7 +import java.util.Map;
  8 +
  9 +/**
  10 + * Created by panzhao on 2017/3/15.
  11 + */
  12 +public class WSDataConver {
  13 +
  14 + /**
  15 + * 格式编码和名称映射,与老系统保持一致
  16 + */
  17 + private static Map<String, String> gsMap;
  18 +
  19 + static{
  20 + gsMap = new HashMap<>();
  21 + gsMap.put("55", "上南公司");
  22 + gsMap.put("55_4", "上南一分公司");
  23 + gsMap.put("55_3", "上南六分公司");
  24 + gsMap.put("55_1", "上南二分公司");
  25 + gsMap.put("55_2", "上南三分公司");
  26 + gsMap.put("22", "金高公司");
  27 + gsMap.put("22_2", "二分公司");
  28 + gsMap.put("22_1", "四分公司");
  29 + gsMap.put("22_3", "三分公司");
  30 + gsMap.put("22_5", "一分公司");
  31 + gsMap.put("05", "杨高公司");
  32 + gsMap.put("05_5", "杨高分公司");
  33 + gsMap.put("05_6", "周浦分公司");
  34 + gsMap.put("05_3", "芦潮港分公司");
  35 + gsMap.put("05_1", "川沙分公司");
  36 + gsMap.put("26", "南汇公司");
  37 + gsMap.put("26_3", "南汇三分");
  38 + gsMap.put("26_2", "南汇二分");
  39 + gsMap.put("26_1", "南汇一分");
  40 + gsMap.put("26_4", "南汇维修公司");
  41 + }
  42 +
  43 + /**
  44 + * 将班次list 转换成 getCurrentDayPlan 函数需要的格式
  45 + * @param list
  46 + * @return
  47 + */
  48 + public static String[] to_getCurrentDayPlan(List<ScheduleRealInfo> list){
  49 + if(list == null || list.size() == 0)
  50 + return new String[0];
  51 +
  52 +
  53 + return null;
  54 + }
  55 +
  56 + /**
  57 + * 将班次list 转换成 returnCCInfo 和 returnJCInfo 函数需要的格式
  58 + * @param list
  59 + * @return
  60 + * [0: 日期, 1: 线路编码, 2: 线路名称, 3: 公司名称, 4: 分公司名称, 5: 路牌, 6: 起点站, 7: 起点计划时间,
  61 + 8: 起点实际时间, 9: 终点站, 10: 终点计划时间, 11: 终点实际时间, 12: 计划里程, 13: 实际里程,
  62 + 14: 驾驶员, 15: 售票员, 16: 车辆内部编码, 17: 状态(1 为出场。2为进场), 18: 驾驶员名称, 19: 进场顺序号]
  63 + */
  64 + public static String[] to_returnJCCInfo(List<ScheduleRealInfo> list){
  65 +
  66 + int size = list.size();
  67 + String[] array = new String[size];
  68 +
  69 + ScheduleRealInfo sch;
  70 + StringBuffer sb;
  71 + for(int i = 0; i < size; i ++){
  72 + sb = new StringBuffer(",");
  73 +
  74 + sch = list.get(i);
  75 + sb.append(sch.getScheduleDateStr() + ",");
  76 + sb.append(sch.getXlBm() + ",");
  77 + sb.append(sch.getXlName() + ",");
  78 + sb.append(gsMap.get(sch.getGsBm()) + ",");
  79 + sb.append(gsMap.get(sch.getGsBm() + "_" + sch.getFgsBm()) + ",");
  80 + sb.append(sch.getLpName() + ",");
  81 + sb.append(sch.getQdzName() + ",");
  82 + sb.append(sch.getDfsj() + ",");
  83 + sb.append(nvlGetVal(sch.getFcsjActual()) + ",");
  84 + sb.append(sch.getZdzName() + ",");
  85 + sb.append(sch.getZdsj() + ",");
  86 + sb.append(nvlGetVal(sch.getZdsjActual()) + ",");
  87 + sb.append(nvlGetVal(sch.getJhlc()) + ",");
  88 + sb.append(nvlGetVal(sch.getJhlc()) + ",");
  89 + sb.append(sch.getjGh() + ",");
  90 + sb.append(nvlGetVal(sch.getsGh()) + ",");
  91 + sb.append(sch.getClZbh() + ",");
  92 + sb.append((sch.getBcType().equals("out")?1:2 )+ ",");
  93 + sb.append(sch.getjName() + ",");
  94 + //用ID替代老系统的出场顺序号
  95 + sb.append(sch.getId() + ",");
  96 +
  97 + array[i] = sb.substring(1).toString();
  98 + }
  99 + return array;
  100 + }
  101 +
  102 + public static String nvlGetVal(Object val){
  103 + return val==null?"":val.toString();
  104 + }
  105 +}
... ...
src/main/java/com/bsth/ws_server/waybill/LD_Service.java 0 → 100644
  1 +package com.bsth.ws_server.waybill;
  2 +
  3 +import com.bsth.ws_server.waybill.entity.NH_waybill;
  4 +
  5 +import javax.jws.WebMethod;
  6 +import javax.jws.WebParam;
  7 +import javax.jws.WebService;
  8 +import javax.xml.ws.Holder;
  9 +
  10 +/**
  11 + * 路单接口
  12 + * Created by panzhao on 2017/3/17.
  13 + */
  14 +@WebService(
  15 + name = "LD_Service",
  16 + targetNamespace = "http://control.bsth.com/")
  17 +public interface LD_Service {
  18 +
  19 + /***
  20 + * 路单接口(原南汇格式)
  21 + * @param password 密码
  22 + * @param rq 日期
  23 + * @param companyId 公司编码
  24 + * @param result
  25 + * @param fError
  26 + * @return
  27 + */
  28 + @WebMethod
  29 + boolean waybill_NH(
  30 + @WebParam(name = "password") String password,
  31 + @WebParam(name = "rq") String rq,
  32 + @WebParam(name = "companyId") String companyId,
  33 + @WebParam(name = "resultArray", mode = WebParam.Mode.INOUT) Holder<NH_waybill[]> result,
  34 + @WebParam(name = "fError", mode = WebParam.Mode.INOUT) Holder<String> fError);
  35 +
  36 + /**
  37 + * 路单接口(上南统计格式)
  38 + * @param password 密码
  39 + * @param rq 日期
  40 + * @param companyId 公司编码
  41 + * @return
  42 + */
  43 + boolean waybill_SN(
  44 + @WebParam(name = "password") String password,
  45 + @WebParam(name = "rq") String rq,
  46 + @WebParam(name = "companyId") String companyId);
  47 +}
... ...
src/main/java/com/bsth/ws_server/waybill/LD_ServiceSoap.java 0 → 100644
  1 +package com.bsth.ws_server.waybill;
  2 +
  3 +import com.bsth.ws_server.waybill.entity.NH_waybill;
  4 +
  5 +import javax.jws.WebService;
  6 +import javax.xml.ws.Holder;
  7 +
  8 +/**
  9 + * Created by panzhao on 2017/3/17.
  10 + */
  11 +@WebService(
  12 + name = "LD_ServiceSoap",
  13 + portName = "LD_ServiceSoap",
  14 + serviceName = "LD_Service",
  15 + targetNamespace = "http://control.bsth.com/",
  16 + endpointInterface = "com.bsth.ws_server.waybill.LD_Service")
  17 +public class LD_ServiceSoap implements LD_Service {
  18 +
  19 + @Override
  20 + public boolean waybill_NH(String password, String rq, String companyId, Holder<NH_waybill[]> result, Holder<String> fError) {
  21 + return false;
  22 + }
  23 +
  24 + @Override
  25 + public boolean waybill_SN(String password, String rq, String companyId) {
  26 + return false;
  27 + }
  28 +}
... ...
src/main/java/com/bsth/ws_server/waybill/entity/NH_waybill.java 0 → 100644
  1 +package com.bsth.ws_server.waybill.entity;
  2 +
  3 +import java.util.List;
  4 +
  5 +/**
  6 + * 南汇路单数据格式
  7 + * Created by panzhao on 2017/3/17.
  8 + */
  9 +public class NH_waybill {
  10 +
  11 + /** 车辆自编号 */
  12 + private String m_strNBBM;
  13 +
  14 + /** 线路编码 */
  15 + private String m_strXLBM;
  16 +
  17 + /** 日期 */
  18 + private String m_strYYRQ;
  19 +
  20 + /** 详细 */
  21 + private List<NH_waybillItem> m_SubInfos;
  22 +
  23 + public String getM_strNBBM() {
  24 + return m_strNBBM;
  25 + }
  26 +
  27 + public void setM_strNBBM(String m_strNBBM) {
  28 + this.m_strNBBM = m_strNBBM;
  29 + }
  30 +
  31 + public String getM_strXLBM() {
  32 + return m_strXLBM;
  33 + }
  34 +
  35 + public void setM_strXLBM(String m_strXLBM) {
  36 + this.m_strXLBM = m_strXLBM;
  37 + }
  38 +
  39 + public String getM_strYYRQ() {
  40 + return m_strYYRQ;
  41 + }
  42 +
  43 + public void setM_strYYRQ(String m_strYYRQ) {
  44 + this.m_strYYRQ = m_strYYRQ;
  45 + }
  46 +
  47 + public List<NH_waybillItem> getM_SubInfos() {
  48 + return m_SubInfos;
  49 + }
  50 +
  51 + public void setM_SubInfos(List<NH_waybillItem> m_SubInfos) {
  52 + this.m_SubInfos = m_SubInfos;
  53 + }
  54 +}
... ...
src/main/java/com/bsth/ws_server/waybill/entity/NH_waybillItem.java 0 → 100644
  1 +package com.bsth.ws_server.waybill.entity;
  2 +
  3 +/**
  4 + * 南汇路单格式 子项
  5 + * Created by panzhao on 2017/3/17.
  6 + */
  7 +public class NH_waybillItem {
  8 +
  9 + /** 出场存油 */
  10 + private Double m_dblCCCY;
  11 + /** 进场存油 */
  12 + private Double m_dblJCCY;
  13 + /** 加注量1 */
  14 + private Double m_dblJZL1;
  15 + /** 加注量2 */
  16 + private Double m_dblJZL2;
  17 + /** 尿素 */
  18 + private Double m_dblNS;
  19 + /** 消耗量 */
  20 + private Double m_dblYH;
  21 + /** 加油地点1 */
  22 + private String m_strJYD1;
  23 + /** 加油工工号1 */
  24 + private String m_strJYG1;
  25 + /** 油耗类型1 */
  26 + private String m_strYHLX1;
  27 +
  28 +
  29 + /** 计划里程 */
  30 + private Double m_dblJHLC;
  31 + /** 实际计划公里 */
  32 + private Double m_dblSJJHLC;
  33 + /** 出场里程 */
  34 + private Double m_dblCCLC;
  35 + /** 进场路码 */
  36 + private Double m_dblJCLC;
  37 + /** 空驶公里 */
  38 + private Double m_dblKSLC;
  39 + /** 抽减公里 */
  40 + private Double m_dblCJLC;
  41 +
  42 + /** 营业公里 */
  43 + private Double m_dblYYLC;
  44 + /** 增加公里 */
  45 + private Double m_dblZJLC;
  46 + /** 总公里 */
  47 + private Double m_dblZLC;
  48 +
  49 + /** 抽减班次 */
  50 + private int m_intCJBC;
  51 + /** 计划班次 */
  52 + private int m_intJHBC;
  53 + /** 实际班次 */
  54 + private int m_intSJBC;
  55 + /** 实际计划班次 */
  56 + private int m_intSJJHBC;
  57 + /** 增加班次 */
  58 + private int m_intZJBC;
  59 +
  60 +
  61 + /** 烂班工时 */
  62 + private Double m_dblLBGS;
  63 + /** 烂班公里 */
  64 + private Double m_dblLBLC;
  65 + /** 烂班公里原因 */
  66 + private String m_strLBYY;
  67 + /** 抽减公里原因 */
  68 + private String m_strCJYY;
  69 +
  70 + /** 备注 */
  71 + private String m_strBZ;
  72 +
  73 + /** 路牌 */
  74 + private String m_strLP;
  75 + /** 当班调度员 */
  76 + private String m_strDDY;
  77 + /** 驾驶员工号 */
  78 + private String m_strJSY;
  79 + /** 售票员工号 */
  80 + private String m_strSPY;
  81 +
  82 + /** 驾驶员考勤 */
  83 + private String m_strJSYKQ;
  84 + /** 售票员考勤 */
  85 + private String m_strSPYKQ;
  86 + /** 营运状态 */
  87 + private String m_strYYZT;
  88 +
  89 + public Double getM_dblCCCY() {
  90 + return m_dblCCCY;
  91 + }
  92 +
  93 + public void setM_dblCCCY(Double m_dblCCCY) {
  94 + this.m_dblCCCY = m_dblCCCY;
  95 + }
  96 +
  97 + public Double getM_dblJCCY() {
  98 + return m_dblJCCY;
  99 + }
  100 +
  101 + public void setM_dblJCCY(Double m_dblJCCY) {
  102 + this.m_dblJCCY = m_dblJCCY;
  103 + }
  104 +
  105 + public Double getM_dblJZL1() {
  106 + return m_dblJZL1;
  107 + }
  108 +
  109 + public void setM_dblJZL1(Double m_dblJZL1) {
  110 + this.m_dblJZL1 = m_dblJZL1;
  111 + }
  112 +
  113 + public Double getM_dblJZL2() {
  114 + return m_dblJZL2;
  115 + }
  116 +
  117 + public void setM_dblJZL2(Double m_dblJZL2) {
  118 + this.m_dblJZL2 = m_dblJZL2;
  119 + }
  120 +
  121 + public Double getM_dblNS() {
  122 + return m_dblNS;
  123 + }
  124 +
  125 + public void setM_dblNS(Double m_dblNS) {
  126 + this.m_dblNS = m_dblNS;
  127 + }
  128 +
  129 + public Double getM_dblYH() {
  130 + return m_dblYH;
  131 + }
  132 +
  133 + public void setM_dblYH(Double m_dblYH) {
  134 + this.m_dblYH = m_dblYH;
  135 + }
  136 +
  137 + public String getM_strJYD1() {
  138 + return m_strJYD1;
  139 + }
  140 +
  141 + public void setM_strJYD1(String m_strJYD1) {
  142 + this.m_strJYD1 = m_strJYD1;
  143 + }
  144 +
  145 + public String getM_strJYG1() {
  146 + return m_strJYG1;
  147 + }
  148 +
  149 + public void setM_strJYG1(String m_strJYG1) {
  150 + this.m_strJYG1 = m_strJYG1;
  151 + }
  152 +
  153 + public String getM_strYHLX1() {
  154 + return m_strYHLX1;
  155 + }
  156 +
  157 + public void setM_strYHLX1(String m_strYHLX1) {
  158 + this.m_strYHLX1 = m_strYHLX1;
  159 + }
  160 +
  161 + public Double getM_dblJHLC() {
  162 + return m_dblJHLC;
  163 + }
  164 +
  165 + public void setM_dblJHLC(Double m_dblJHLC) {
  166 + this.m_dblJHLC = m_dblJHLC;
  167 + }
  168 +
  169 + public Double getM_dblSJJHLC() {
  170 + return m_dblSJJHLC;
  171 + }
  172 +
  173 + public void setM_dblSJJHLC(Double m_dblSJJHLC) {
  174 + this.m_dblSJJHLC = m_dblSJJHLC;
  175 + }
  176 +
  177 + public Double getM_dblCCLC() {
  178 + return m_dblCCLC;
  179 + }
  180 +
  181 + public void setM_dblCCLC(Double m_dblCCLC) {
  182 + this.m_dblCCLC = m_dblCCLC;
  183 + }
  184 +
  185 + public Double getM_dblJCLC() {
  186 + return m_dblJCLC;
  187 + }
  188 +
  189 + public void setM_dblJCLC(Double m_dblJCLC) {
  190 + this.m_dblJCLC = m_dblJCLC;
  191 + }
  192 +
  193 + public Double getM_dblKSLC() {
  194 + return m_dblKSLC;
  195 + }
  196 +
  197 + public void setM_dblKSLC(Double m_dblKSLC) {
  198 + this.m_dblKSLC = m_dblKSLC;
  199 + }
  200 +
  201 + public Double getM_dblCJLC() {
  202 + return m_dblCJLC;
  203 + }
  204 +
  205 + public void setM_dblCJLC(Double m_dblCJLC) {
  206 + this.m_dblCJLC = m_dblCJLC;
  207 + }
  208 +
  209 + public Double getM_dblYYLC() {
  210 + return m_dblYYLC;
  211 + }
  212 +
  213 + public void setM_dblYYLC(Double m_dblYYLC) {
  214 + this.m_dblYYLC = m_dblYYLC;
  215 + }
  216 +
  217 + public Double getM_dblZJLC() {
  218 + return m_dblZJLC;
  219 + }
  220 +
  221 + public void setM_dblZJLC(Double m_dblZJLC) {
  222 + this.m_dblZJLC = m_dblZJLC;
  223 + }
  224 +
  225 + public Double getM_dblZLC() {
  226 + return m_dblZLC;
  227 + }
  228 +
  229 + public void setM_dblZLC(Double m_dblZLC) {
  230 + this.m_dblZLC = m_dblZLC;
  231 + }
  232 +
  233 + public int getM_intCJBC() {
  234 + return m_intCJBC;
  235 + }
  236 +
  237 + public void setM_intCJBC(int m_intCJBC) {
  238 + this.m_intCJBC = m_intCJBC;
  239 + }
  240 +
  241 + public int getM_intJHBC() {
  242 + return m_intJHBC;
  243 + }
  244 +
  245 + public void setM_intJHBC(int m_intJHBC) {
  246 + this.m_intJHBC = m_intJHBC;
  247 + }
  248 +
  249 + public int getM_intSJBC() {
  250 + return m_intSJBC;
  251 + }
  252 +
  253 + public void setM_intSJBC(int m_intSJBC) {
  254 + this.m_intSJBC = m_intSJBC;
  255 + }
  256 +
  257 + public int getM_intSJJHBC() {
  258 + return m_intSJJHBC;
  259 + }
  260 +
  261 + public void setM_intSJJHBC(int m_intSJJHBC) {
  262 + this.m_intSJJHBC = m_intSJJHBC;
  263 + }
  264 +
  265 + public int getM_intZJBC() {
  266 + return m_intZJBC;
  267 + }
  268 +
  269 + public void setM_intZJBC(int m_intZJBC) {
  270 + this.m_intZJBC = m_intZJBC;
  271 + }
  272 +
  273 + public Double getM_dblLBGS() {
  274 + return m_dblLBGS;
  275 + }
  276 +
  277 + public void setM_dblLBGS(Double m_dblLBGS) {
  278 + this.m_dblLBGS = m_dblLBGS;
  279 + }
  280 +
  281 + public Double getM_dblLBLC() {
  282 + return m_dblLBLC;
  283 + }
  284 +
  285 + public void setM_dblLBLC(Double m_dblLBLC) {
  286 + this.m_dblLBLC = m_dblLBLC;
  287 + }
  288 +
  289 + public String getM_strLBYY() {
  290 + return m_strLBYY;
  291 + }
  292 +
  293 + public void setM_strLBYY(String m_strLBYY) {
  294 + this.m_strLBYY = m_strLBYY;
  295 + }
  296 +
  297 + public String getM_strCJYY() {
  298 + return m_strCJYY;
  299 + }
  300 +
  301 + public void setM_strCJYY(String m_strCJYY) {
  302 + this.m_strCJYY = m_strCJYY;
  303 + }
  304 +
  305 + public String getM_strBZ() {
  306 + return m_strBZ;
  307 + }
  308 +
  309 + public void setM_strBZ(String m_strBZ) {
  310 + this.m_strBZ = m_strBZ;
  311 + }
  312 +
  313 + public String getM_strLP() {
  314 + return m_strLP;
  315 + }
  316 +
  317 + public void setM_strLP(String m_strLP) {
  318 + this.m_strLP = m_strLP;
  319 + }
  320 +
  321 + public String getM_strDDY() {
  322 + return m_strDDY;
  323 + }
  324 +
  325 + public void setM_strDDY(String m_strDDY) {
  326 + this.m_strDDY = m_strDDY;
  327 + }
  328 +
  329 + public String getM_strJSY() {
  330 + return m_strJSY;
  331 + }
  332 +
  333 + public void setM_strJSY(String m_strJSY) {
  334 + this.m_strJSY = m_strJSY;
  335 + }
  336 +
  337 + public String getM_strSPY() {
  338 + return m_strSPY;
  339 + }
  340 +
  341 + public void setM_strSPY(String m_strSPY) {
  342 + this.m_strSPY = m_strSPY;
  343 + }
  344 +
  345 + public String getM_strJSYKQ() {
  346 + return m_strJSYKQ;
  347 + }
  348 +
  349 + public void setM_strJSYKQ(String m_strJSYKQ) {
  350 + this.m_strJSYKQ = m_strJSYKQ;
  351 + }
  352 +
  353 + public String getM_strSPYKQ() {
  354 + return m_strSPYKQ;
  355 + }
  356 +
  357 + public void setM_strSPYKQ(String m_strSPYKQ) {
  358 + this.m_strSPYKQ = m_strSPYKQ;
  359 + }
  360 +
  361 + public String getM_strYYZT() {
  362 + return m_strYYZT;
  363 + }
  364 +
  365 + public void setM_strYYZT(String m_strYYZT) {
  366 + this.m_strYYZT = m_strYYZT;
  367 + }
  368 +}
... ...
src/main/resources/application-dev.properties 0 → 100644
  1 +server.port=9089
  2 +management.port= 9001
  3 +management.address= 127.0.0.1
  4 +
  5 +spring.jpa.hibernate.ddl-auto= update
  6 +spring.jpa.hibernate.naming_strategy= org.hibernate.cfg.ImprovedNamingStrategy
  7 +#DATABASE
  8 +spring.jpa.database= MYSQL
  9 +spring.jpa.show-sql= true
  10 +spring.datasource.driver-class-name= com.mysql.jdbc.Driver
  11 +spring.datasource.url= jdbc:mysql://127.0.0.1/pd_control?useUnicode=true&characterEncoding=utf-8&useSSL=false
  12 +spring.datasource.username= root
  13 +spring.datasource.password= panzhao
  14 +#DATASOURCE
  15 +spring.datasource.max-active=100
  16 +spring.datasource.max-idle=8
  17 +spring.datasource.min-idle=8
  18 +spring.datasource.initial-size=5
  19 +
  20 +spring.datasource.test-on-borrow=true
  21 +spring.datasource.test-on-connect=true
  22 +spring.datasource.test-on-return=true
  23 +spring.datasource.test-while-idle=true
  24 +spring.datasource.validation-query=select 1
  25 +
  26 +
  27 +#REDIS
  28 +spring.redis.database=0
  29 +spring.redis.host=127.0.0.1
  30 +spring.redis.password=bsth_control_001
  31 +spring.redis.port=28008
  32 +
  33 +http.control.service_data_url= http://127.0.0.1:9088/companyService
  34 +http.control.secret.key= dVPHJkWUt5FhMT7jrM2dLV7QvlHAmZFd42rs1P0usBx8A7HZki
... ...
src/main/resources/application-prod.properties 0 → 100644
  1 +server.port=9088
  2 +management.port= 9001
  3 +management.address= 127.0.0.1
  4 +
  5 +spring.jpa.hibernate.ddl-auto= none
  6 +spring.jpa.hibernate.naming_strategy= org.hibernate.cfg.ImprovedNamingStrategy
  7 +#DATABASE
  8 +spring.jpa.database= MYSQL
  9 +spring.jpa.show-sql= false
  10 +spring.datasource.driver-class-name= com.mysql.jdbc.Driver
  11 +spring.datasource.url= jdbc:mysql://192.168.168.171:3306/control?useUnicode=true&characterEncoding=utf-8&useSSL=false
  12 +spring.datasource.username= root
  13 +spring.datasource.password= root2jsp
  14 +#DATASOURCE
  15 +spring.datasource.max-active=100
  16 +spring.datasource.max-idle=8
  17 +spring.datasource.min-idle=8
  18 +spring.datasource.initial-size=5
  19 +
  20 +spring.datasource.test-on-borrow=true
  21 +spring.datasource.test-on-connect=true
  22 +spring.datasource.test-on-return=true
  23 +spring.datasource.test-while-idle=true
  24 +spring.datasource.validation-query=select 1
  25 +
  26 +#REDIS
  27 +spring.redis.database=0
  28 +spring.redis.host=127.0.0.1
  29 +spring.redis.password=bsth_control_001
  30 +spring.redis.port=28008
  31 +
  32 +http.control.service_data_url= http://127.0.0.1:9088/companyService
  33 +http.control.secret.key= dVPHJkWUt5FhMT7jrM2dLV7QvlHAmZFd42rs1P0usBx8A7HZki
0 34 \ No newline at end of file
... ...
src/main/resources/application.properties 0 → 100644
  1 +spring.profiles: dev,prod
  2 +spring.profiles.active: dev
  3 +
  4 +spring.view.suffix=.html
  5 +server.session-timeout=-1
  6 +security.basic.enabled=false
  7 +
  8 +# \u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F\u9650\u5236\u914D\u7F6E
  9 +# File size limit
  10 +multipart.maxFileSize = -1
  11 +# Total request size for a multipart/form-data
  12 +multipart.maxRequestSize = -1
  13 +
  14 +server.compression.enabled=true
  15 +server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain,text/javascript,text/css,application/javascript
  16 +
  17 +#redis »º´æ¶àÉÙÌìµÄÊý¾Ý
  18 +cache.days=10
... ...
src/main/resources/banner.txt 0 → 100644
  1 + ____ _____ _______ _ _
  2 + | _ \ / ____| |__ __| | | | |
  3 + | |_) | | (___ | | | |__| |
  4 + | _ < \___ \ | | | __ |
  5 + | |_) | ____) | | | | | | |
  6 + |____/ |_____/ |_| |_| |_|
  7 +
  8 +Running Spring Boot ${spring-boot.version}
0 9 \ No newline at end of file
... ...
src/main/resources/logback.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/2002/xmlspec/dtd/2.10/xmlspec.dtd"> -->
  3 +<configuration>
  4 +
  5 + <!-- <property resource="application.properties" /> -->
  6 + <property name="LOG_BASE" value="E:/control_interface_logs" />
  7 + <!-- 控制台输出 -->
  8 + <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
  9 +
  10 + <layout class="ch.qos.logback.classic.PatternLayout">
  11 + <!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符 -->
  12 + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] [%file:%line] %-5level-%msg%n
  13 + </pattern>
  14 + </layout>
  15 + </appender>
  16 +
  17 + <!-- 主日志文件 -->
  18 + <appender name="FILE"
  19 + class="ch.qos.logback.core.rolling.RollingFileAppender">
  20 + <file>${LOG_BASE}/main/main.log</file>
  21 + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
  22 + <fileNamePattern>${LOG_BASE}/main/main-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
  23 + <timeBasedFileNamingAndTriggeringPolicy
  24 + class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
  25 + <maxFileSize>100MB</maxFileSize>
  26 + </timeBasedFileNamingAndTriggeringPolicy>
  27 + </rollingPolicy>
  28 + <encoder>
  29 + <pattern>%msg%n</pattern>
  30 + </encoder>
  31 +
  32 + <layout class="ch.qos.logback.classic.PatternLayout">
  33 + <!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符 -->
  34 + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] [%file:%line] %-5level-%msg%n
  35 + </pattern>
  36 + </layout>
  37 + </appender>
  38 +
  39 +
  40 + <!-- 日志输出级别 -->
  41 + <root level="info">
  42 + <appender-ref ref="STDOUT" />
  43 + <appender-ref ref="FILE" />
  44 + </root>
  45 +</configuration>
0 46 \ No newline at end of file
... ...
src/main/resources/static/assets/js/template.js 0 → 100644
  1 +/*!art-template - Template Engine | http://aui.github.com/artTemplate/*/
  2 +!function(){function a(a){return a.replace(t,"").replace(u,",").replace(v,"").replace(w,"").replace(x,"").split(y)}function b(a){return"'"+a.replace(/('|\\)/g,"\\$1").replace(/\r/g,"\\r").replace(/\n/g,"\\n")+"'"}function c(c,d){function e(a){return m+=a.split(/\n/).length-1,k&&(a=a.replace(/\s+/g," ").replace(/<!--[\w\W]*?-->/g,"")),a&&(a=s[1]+b(a)+s[2]+"\n"),a}function f(b){var c=m;if(j?b=j(b,d):g&&(b=b.replace(/\n/g,function(){return m++,"$line="+m+";"})),0===b.indexOf("=")){var e=l&&!/^=[=#]/.test(b);if(b=b.replace(/^=[=#]?|[\s;]*$/g,""),e){var f=b.replace(/\s*\([^\)]+\)/,"");n[f]||/^(include|print)$/.test(f)||(b="$escape("+b+")")}else b="$string("+b+")";b=s[1]+b+s[2]}return g&&(b="$line="+c+";"+b),r(a(b),function(a){if(a&&!p[a]){var b;b="print"===a?u:"include"===a?v:n[a]?"$utils."+a:o[a]?"$helpers."+a:"$data."+a,w+=a+"="+b+",",p[a]=!0}}),b+"\n"}var g=d.debug,h=d.openTag,i=d.closeTag,j=d.parser,k=d.compress,l=d.escape,m=1,p={$data:1,$filename:1,$utils:1,$helpers:1,$out:1,$line:1},q="".trim,s=q?["$out='';","$out+=",";","$out"]:["$out=[];","$out.push(",");","$out.join('')"],t=q?"$out+=text;return $out;":"$out.push(text);",u="function(){var text=''.concat.apply('',arguments);"+t+"}",v="function(filename,data){data=data||$data;var text=$utils.$include(filename,data,$filename);"+t+"}",w="'use strict';var $utils=this,$helpers=$utils.$helpers,"+(g?"$line=0,":""),x=s[0],y="return new String("+s[3]+");";r(c.split(h),function(a){a=a.split(i);var b=a[0],c=a[1];1===a.length?x+=e(b):(x+=f(b),c&&(x+=e(c)))});var z=w+x+y;g&&(z="try{"+z+"}catch(e){throw {filename:$filename,name:'Render Error',message:e.message,line:$line,source:"+b(c)+".split(/\\n/)[$line-1].replace(/^\\s+/,'')};}");try{var A=new Function("$data","$filename",z);return A.prototype=n,A}catch(B){throw B.temp="function anonymous($data,$filename) {"+z+"}",B}}var d=function(a,b){return"string"==typeof b?q(b,{filename:a}):g(a,b)};d.version="3.0.0",d.config=function(a,b){e[a]=b};var e=d.defaults={openTag:"<%",closeTag:"%>",escape:!0,cache:!0,compress:!1,parser:null},f=d.cache={};d.render=function(a,b){return q(a,b)};var g=d.renderFile=function(a,b){var c=d.get(a)||p({filename:a,name:"Render Error",message:"Template not found"});return b?c(b):c};d.get=function(a){var b;if(f[a])b=f[a];else if("object"==typeof document){var c=document.getElementById(a);if(c){var d=(c.value||c.innerHTML).replace(/^\s*|\s*$/g,"");b=q(d,{filename:a})}}return b};var h=function(a,b){return"string"!=typeof a&&(b=typeof a,"number"===b?a+="":a="function"===b?h(a.call(a)):""),a},i={"<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","&":"&#38;"},j=function(a){return i[a]},k=function(a){return h(a).replace(/&(?![\w#]+;)|[<>"']/g,j)},l=Array.isArray||function(a){return"[object Array]"==={}.toString.call(a)},m=function(a,b){var c,d;if(l(a))for(c=0,d=a.length;d>c;c++)b.call(a,a[c],c,a);else for(c in a)b.call(a,a[c],c)},n=d.utils={$helpers:{},$include:g,$string:h,$escape:k,$each:m};d.helper=function(a,b){o[a]=b};var o=d.helpers=n.$helpers;d.onerror=function(a){var b="Template Error\n\n";for(var c in a)b+="<"+c+">\n"+a[c]+"\n\n";"object"==typeof console&&console.error(b)};var p=function(a){return d.onerror(a),function(){return"{Template Error}"}},q=d.compile=function(a,b){function d(c){try{return new i(c,h)+""}catch(d){return b.debug?p(d)():(b.debug=!0,q(a,b)(c))}}b=b||{};for(var g in e)void 0===b[g]&&(b[g]=e[g]);var h=b.filename;try{var i=c(a,b)}catch(j){return j.filename=h||"anonymous",j.name="Syntax Error",p(j)}return d.prototype=i.prototype,d.toString=function(){return i.toString()},h&&b.cache&&(f[h]=d),d},r=n.$each,s="break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield,undefined",t=/\/\*[\w\W]*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|"(?:[^"\\]|\\[\w\W])*"|'(?:[^'\\]|\\[\w\W])*'|\s*\.\s*[$\w\.]+/g,u=/[^\w$]+/g,v=new RegExp(["\\b"+s.replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),w=/^\d[^,]*|,\d[^,]*/g,x=/^,+|,+$/g,y=/^$|,+/;e.openTag="{{",e.closeTag="}}";var z=function(a,b){var c=b.split(":"),d=c.shift(),e=c.join(":")||"";return e&&(e=", "+e),"$helpers."+d+"("+a+e+")"};e.parser=function(a){a=a.replace(/^\s/,"");var b=a.split(" "),c=b.shift(),e=b.join(" ");switch(c){case"if":a="if("+e+"){";break;case"else":b="if"===b.shift()?" if("+b.join(" ")+")":"",a="}else"+b+"{";break;case"/if":a="}";break;case"each":var f=b[0]||"$data",g=b[1]||"as",h=b[2]||"$value",i=b[3]||"$index",j=h+","+i;"as"!==g&&(f="[]"),a="$each("+f+",function("+j+"){";break;case"/each":a="});";break;case"echo":a="print("+e+");";break;case"print":case"include":a=c+"("+b.join(",")+");";break;default:if(/^\s*\|\s*[\w\$]/.test(e)){var k=!0;0===a.indexOf("#")&&(a=a.substr(1),k=!1);for(var l=0,m=a.split("|"),n=m.length,o=m[l++];n>l;l++)o=z(o,m[l]);a=(k?"=":"=#")+o}else a=d.helpers[c]?"=#"+c+"("+b.join(",")+");":"="+a}return a},"function"==typeof define?define(function(){return d}):"undefined"!=typeof exports?module.exports=d:this.template=d}();
0 3 \ No newline at end of file
... ...
src/main/resources/static/bootstrap-switch/css/bootstrap3/bootstrap-switch.css 0 → 100644
  1 +/**
  2 + * bootstrap-switch - Turn checkboxes and radio buttons into toggle switches.
  3 + *
  4 + * @version v3.3.4
  5 + * @homepage https://bttstrp.github.io/bootstrap-switch
  6 + * @author Mattia Larentis <mattia@larentis.eu> (http://larentis.eu)
  7 + * @license Apache-2.0
  8 + */
  9 +
  10 +.bootstrap-switch {
  11 + display: inline-block;
  12 + direction: ltr;
  13 + cursor: pointer;
  14 + border-radius: 4px;
  15 + border: 1px solid;
  16 + border-color: #ccc;
  17 + position: relative;
  18 + text-align: left;
  19 + overflow: hidden;
  20 + line-height: 8px;
  21 + z-index: 0;
  22 + -webkit-user-select: none;
  23 + -moz-user-select: none;
  24 + -ms-user-select: none;
  25 + user-select: none;
  26 + vertical-align: middle;
  27 + -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  28 + -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  29 + transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  30 +}
  31 +.bootstrap-switch .bootstrap-switch-container {
  32 + display: inline-block;
  33 + top: 0;
  34 + border-radius: 4px;
  35 + -webkit-transform: translate3d(0, 0, 0);
  36 + transform: translate3d(0, 0, 0);
  37 +}
  38 +.bootstrap-switch .bootstrap-switch-handle-on,
  39 +.bootstrap-switch .bootstrap-switch-handle-off,
  40 +.bootstrap-switch .bootstrap-switch-label {
  41 + -webkit-box-sizing: border-box;
  42 + -moz-box-sizing: border-box;
  43 + box-sizing: border-box;
  44 + cursor: pointer;
  45 + display: table-cell;
  46 + vertical-align: middle;
  47 + padding: 6px 12px;
  48 + font-size: 14px;
  49 + line-height: 20px;
  50 +}
  51 +.bootstrap-switch .bootstrap-switch-handle-on,
  52 +.bootstrap-switch .bootstrap-switch-handle-off {
  53 + text-align: center;
  54 + z-index: 1;
  55 +}
  56 +.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary,
  57 +.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary {
  58 + color: #fff;
  59 + background: #337ab7;
  60 +}
  61 +.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info,
  62 +.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info {
  63 + color: #fff;
  64 + background: #5bc0de;
  65 +}
  66 +.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success,
  67 +.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success {
  68 + color: #fff;
  69 + background: #5cb85c;
  70 +}
  71 +.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning,
  72 +.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning {
  73 + background: #f0ad4e;
  74 + color: #fff;
  75 +}
  76 +.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger,
  77 +.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger {
  78 + color: #fff;
  79 + background: #d9534f;
  80 +}
  81 +.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default,
  82 +.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default {
  83 + color: #000;
  84 + background: #eeeeee;
  85 +}
  86 +.bootstrap-switch .bootstrap-switch-label {
  87 + text-align: center;
  88 + margin-top: -1px;
  89 + margin-bottom: -1px;
  90 + z-index: 100;
  91 + color: #333;
  92 + background: #fff;
  93 +}
  94 +.bootstrap-switch span::before {
  95 + content: "\200b";
  96 +}
  97 +.bootstrap-switch .bootstrap-switch-handle-on {
  98 + border-bottom-left-radius: 3px;
  99 + border-top-left-radius: 3px;
  100 +}
  101 +.bootstrap-switch .bootstrap-switch-handle-off {
  102 + border-bottom-right-radius: 3px;
  103 + border-top-right-radius: 3px;
  104 +}
  105 +.bootstrap-switch input[type='radio'],
  106 +.bootstrap-switch input[type='checkbox'] {
  107 + position: absolute !important;
  108 + top: 0;
  109 + left: 0;
  110 + margin: 0;
  111 + z-index: -1;
  112 + opacity: 0;
  113 + filter: alpha(opacity=0);
  114 + visibility: hidden;
  115 +}
  116 +.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-on,
  117 +.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-off,
  118 +.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-label {
  119 + padding: 1px 5px;
  120 + font-size: 12px;
  121 + line-height: 1.5;
  122 +}
  123 +.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-on,
  124 +.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-off,
  125 +.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-label {
  126 + padding: 5px 10px;
  127 + font-size: 12px;
  128 + line-height: 1.5;
  129 +}
  130 +.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-on,
  131 +.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-off,
  132 +.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-label {
  133 + padding: 6px 16px;
  134 + font-size: 18px;
  135 + line-height: 1.3333333;
  136 +}
  137 +.bootstrap-switch.bootstrap-switch-disabled,
  138 +.bootstrap-switch.bootstrap-switch-readonly,
  139 +.bootstrap-switch.bootstrap-switch-indeterminate {
  140 + cursor: default !important;
  141 +}
  142 +.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-on,
  143 +.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-on,
  144 +.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-on,
  145 +.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-off,
  146 +.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-off,
  147 +.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-off,
  148 +.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-label,
  149 +.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-label,
  150 +.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-label {
  151 + opacity: 0.5;
  152 + filter: alpha(opacity=50);
  153 + cursor: default !important;
  154 +}
  155 +.bootstrap-switch.bootstrap-switch-animate .bootstrap-switch-container {
  156 + -webkit-transition: margin-left 0.5s;
  157 + -o-transition: margin-left 0.5s;
  158 + transition: margin-left 0.5s;
  159 +}
  160 +.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-on {
  161 + border-bottom-left-radius: 0;
  162 + border-top-left-radius: 0;
  163 + border-bottom-right-radius: 3px;
  164 + border-top-right-radius: 3px;
  165 +}
  166 +.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-off {
  167 + border-bottom-right-radius: 0;
  168 + border-top-right-radius: 0;
  169 + border-bottom-left-radius: 3px;
  170 + border-top-left-radius: 3px;
  171 +}
  172 +.bootstrap-switch.bootstrap-switch-focused {
  173 + border-color: #66afe9;
  174 + outline: 0;
  175 + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
  176 + box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
  177 +}
  178 +.bootstrap-switch.bootstrap-switch-on .bootstrap-switch-label,
  179 +.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-off .bootstrap-switch-label {
  180 + border-bottom-right-radius: 3px;
  181 + border-top-right-radius: 3px;
  182 +}
  183 +.bootstrap-switch.bootstrap-switch-off .bootstrap-switch-label,
  184 +.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-on .bootstrap-switch-label {
  185 + border-bottom-left-radius: 3px;
  186 + border-top-left-radius: 3px;
  187 +}
... ...
src/main/resources/static/bootstrap-switch/css/bootstrap3/bootstrap-switch.min.css 0 → 100644
  1 +/**
  2 + * bootstrap-switch - Turn checkboxes and radio buttons into toggle switches.
  3 + *
  4 + * @version v3.3.4
  5 + * @homepage https://bttstrp.github.io/bootstrap-switch
  6 + * @author Mattia Larentis <mattia@larentis.eu> (http://larentis.eu)
  7 + * @license Apache-2.0
  8 + */
  9 +
  10 +.bootstrap-switch{display:inline-block;direction:ltr;cursor:pointer;border-radius:4px;border:1px solid #ccc;position:relative;text-align:left;overflow:hidden;line-height:8px;z-index:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.bootstrap-switch .bootstrap-switch-container{display:inline-block;top:0;border-radius:4px;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.bootstrap-switch .bootstrap-switch-handle-off,.bootstrap-switch .bootstrap-switch-handle-on,.bootstrap-switch .bootstrap-switch-label{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:table-cell;vertical-align:middle;padding:6px 12px;font-size:14px;line-height:20px}.bootstrap-switch .bootstrap-switch-handle-off,.bootstrap-switch .bootstrap-switch-handle-on{text-align:center;z-index:1}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary{color:#fff;background:#337ab7}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info{color:#fff;background:#5bc0de}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success{color:#fff;background:#5cb85c}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning{background:#f0ad4e;color:#fff}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger{color:#fff;background:#d9534f}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default{color:#000;background:#eee}.bootstrap-switch .bootstrap-switch-label{text-align:center;margin-top:-1px;margin-bottom:-1px;z-index:100;color:#333;background:#fff}.bootstrap-switch span::before{content:"\200b"}.bootstrap-switch .bootstrap-switch-handle-on{border-bottom-left-radius:3px;border-top-left-radius:3px}.bootstrap-switch .bootstrap-switch-handle-off{border-bottom-right-radius:3px;border-top-right-radius:3px}.bootstrap-switch input[type=radio],.bootstrap-switch input[type=checkbox]{position:absolute!important;top:0;left:0;margin:0;z-index:-1;opacity:0;filter:alpha(opacity=0);visibility:hidden}.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-off,.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-on,.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-label{padding:1px 5px;font-size:12px;line-height:1.5}.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-off,.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-on,.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-label{padding:5px 10px;font-size:12px;line-height:1.5}.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-off,.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-on,.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-label{padding:6px 16px;font-size:18px;line-height:1.3333333}.bootstrap-switch.bootstrap-switch-disabled,.bootstrap-switch.bootstrap-switch-indeterminate,.bootstrap-switch.bootstrap-switch-readonly{cursor:default!important}.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-off,.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-on,.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-label,.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-off,.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-on,.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-label,.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-off,.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-on,.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-label{opacity:.5;filter:alpha(opacity=50);cursor:default!important}.bootstrap-switch.bootstrap-switch-animate .bootstrap-switch-container{-webkit-transition:margin-left .5s;-o-transition:margin-left .5s;transition:margin-left .5s}.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-on{border-radius:0 3px 3px 0}.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-off{border-radius:3px 0 0 3px}.bootstrap-switch.bootstrap-switch-focused{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-off .bootstrap-switch-label,.bootstrap-switch.bootstrap-switch-on .bootstrap-switch-label{border-bottom-right-radius:3px;border-top-right-radius:3px}.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-on .bootstrap-switch-label,.bootstrap-switch.bootstrap-switch-off .bootstrap-switch-label{border-bottom-left-radius:3px;border-top-left-radius:3px}
0 11 \ No newline at end of file
... ...
src/main/resources/static/bootstrap-switch/js/bootstrap-switch.js 0 → 100644
  1 +/**
  2 + * bootstrap-switch - Turn checkboxes and radio buttons into toggle switches.
  3 + *
  4 + * @version v3.3.4
  5 + * @homepage https://bttstrp.github.io/bootstrap-switch
  6 + * @author Mattia Larentis <mattia@larentis.eu> (http://larentis.eu)
  7 + * @license Apache-2.0
  8 + */
  9 +
  10 +(function (global, factory) {
  11 + if (typeof define === "function" && define.amd) {
  12 + define(['jquery'], factory);
  13 + } else if (typeof exports !== "undefined") {
  14 + factory(require('jquery'));
  15 + } else {
  16 + var mod = {
  17 + exports: {}
  18 + };
  19 + factory(global.jquery);
  20 + global.bootstrapSwitch = mod.exports;
  21 + }
  22 +})(this, function (_jquery) {
  23 + 'use strict';
  24 +
  25 + var _jquery2 = _interopRequireDefault(_jquery);
  26 +
  27 + function _interopRequireDefault(obj) {
  28 + return obj && obj.__esModule ? obj : {
  29 + default: obj
  30 + };
  31 + }
  32 +
  33 + var _extends = Object.assign || function (target) {
  34 + for (var i = 1; i < arguments.length; i++) {
  35 + var source = arguments[i];
  36 +
  37 + for (var key in source) {
  38 + if (Object.prototype.hasOwnProperty.call(source, key)) {
  39 + target[key] = source[key];
  40 + }
  41 + }
  42 + }
  43 +
  44 + return target;
  45 + };
  46 +
  47 + function _classCallCheck(instance, Constructor) {
  48 + if (!(instance instanceof Constructor)) {
  49 + throw new TypeError("Cannot call a class as a function");
  50 + }
  51 + }
  52 +
  53 + var _createClass = function () {
  54 + function defineProperties(target, props) {
  55 + for (var i = 0; i < props.length; i++) {
  56 + var descriptor = props[i];
  57 + descriptor.enumerable = descriptor.enumerable || false;
  58 + descriptor.configurable = true;
  59 + if ("value" in descriptor) descriptor.writable = true;
  60 + Object.defineProperty(target, descriptor.key, descriptor);
  61 + }
  62 + }
  63 +
  64 + return function (Constructor, protoProps, staticProps) {
  65 + if (protoProps) defineProperties(Constructor.prototype, protoProps);
  66 + if (staticProps) defineProperties(Constructor, staticProps);
  67 + return Constructor;
  68 + };
  69 + }();
  70 +
  71 + var $ = _jquery2.default || window.jQuery || window.$;
  72 +
  73 + var BootstrapSwitch = function () {
  74 + function BootstrapSwitch(element) {
  75 + var _this = this;
  76 +
  77 + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  78 +
  79 + _classCallCheck(this, BootstrapSwitch);
  80 +
  81 + this.$element = $(element);
  82 + this.options = $.extend({}, $.fn.bootstrapSwitch.defaults, this._getElementOptions(), options);
  83 + this.prevOptions = {};
  84 + this.$wrapper = $('<div>', {
  85 + class: function _class() {
  86 + var classes = [];
  87 + classes.push(_this.options.state ? 'on' : 'off');
  88 + if (_this.options.size) {
  89 + classes.push(_this.options.size);
  90 + }
  91 + if (_this.options.disabled) {
  92 + classes.push('disabled');
  93 + }
  94 + if (_this.options.readonly) {
  95 + classes.push('readonly');
  96 + }
  97 + if (_this.options.indeterminate) {
  98 + classes.push('indeterminate');
  99 + }
  100 + if (_this.options.inverse) {
  101 + classes.push('inverse');
  102 + }
  103 + if (_this.$element.attr('id')) {
  104 + classes.push('id-' + _this.$element.attr('id'));
  105 + }
  106 + return classes.map(_this._getClass.bind(_this)).concat([_this.options.baseClass], _this._getClasses(_this.options.wrapperClass)).join(' ');
  107 + }
  108 + });
  109 + this.$container = $('<div>', { class: this._getClass('container') });
  110 + this.$on = $('<span>', {
  111 + html: this.options.onText,
  112 + class: this._getClass('handle-on') + ' ' + this._getClass(this.options.onColor)
  113 + });
  114 + this.$off = $('<span>', {
  115 + html: this.options.offText,
  116 + class: this._getClass('handle-off') + ' ' + this._getClass(this.options.offColor)
  117 + });
  118 + this.$label = $('<span>', {
  119 + html: this.options.labelText,
  120 + class: this._getClass('label')
  121 + });
  122 +
  123 + this.$element.on('init.bootstrapSwitch', this.options.onInit.bind(this, element));
  124 + this.$element.on('switchChange.bootstrapSwitch', function () {
  125 + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  126 + args[_key] = arguments[_key];
  127 + }
  128 +
  129 + if (_this.options.onSwitchChange.apply(element, args) === false) {
  130 + if (_this.$element.is(':radio')) {
  131 + $('[name="' + _this.$element.attr('name') + '"]').trigger('previousState.bootstrapSwitch', true);
  132 + } else {
  133 + _this.$element.trigger('previousState.bootstrapSwitch', true);
  134 + }
  135 + }
  136 + });
  137 +
  138 + this.$container = this.$element.wrap(this.$container).parent();
  139 + this.$wrapper = this.$container.wrap(this.$wrapper).parent();
  140 + this.$element.before(this.options.inverse ? this.$off : this.$on).before(this.$label).before(this.options.inverse ? this.$on : this.$off);
  141 +
  142 + if (this.options.indeterminate) {
  143 + this.$element.prop('indeterminate', true);
  144 + }
  145 +
  146 + this._init();
  147 + this._elementHandlers();
  148 + this._handleHandlers();
  149 + this._labelHandlers();
  150 + this._formHandler();
  151 + this._externalLabelHandler();
  152 + this.$element.trigger('init.bootstrapSwitch', this.options.state);
  153 + }
  154 +
  155 + _createClass(BootstrapSwitch, [{
  156 + key: 'setPrevOptions',
  157 + value: function setPrevOptions() {
  158 + this.prevOptions = _extends({}, this.options);
  159 + }
  160 + }, {
  161 + key: 'state',
  162 + value: function state(value, skip) {
  163 + if (typeof value === 'undefined') {
  164 + return this.options.state;
  165 + }
  166 + if (this.options.disabled || this.options.readonly || this.options.state && !this.options.radioAllOff && this.$element.is(':radio')) {
  167 + return this.$element;
  168 + }
  169 + if (this.$element.is(':radio')) {
  170 + $('[name="' + this.$element.attr('name') + '"]').trigger('setPreviousOptions.bootstrapSwitch');
  171 + } else {
  172 + this.$element.trigger('setPreviousOptions.bootstrapSwitch');
  173 + }
  174 + if (this.options.indeterminate) {
  175 + this.indeterminate(false);
  176 + }
  177 + this.$element.prop('checked', Boolean(value)).trigger('change.bootstrapSwitch', skip);
  178 + return this.$element;
  179 + }
  180 + }, {
  181 + key: 'toggleState',
  182 + value: function toggleState(skip) {
  183 + if (this.options.disabled || this.options.readonly) {
  184 + return this.$element;
  185 + }
  186 + if (this.options.indeterminate) {
  187 + this.indeterminate(false);
  188 + return this.state(true);
  189 + } else {
  190 + return this.$element.prop('checked', !this.options.state).trigger('change.bootstrapSwitch', skip);
  191 + }
  192 + }
  193 + }, {
  194 + key: 'size',
  195 + value: function size(value) {
  196 + if (typeof value === 'undefined') {
  197 + return this.options.size;
  198 + }
  199 + if (this.options.size != null) {
  200 + this.$wrapper.removeClass(this._getClass(this.options.size));
  201 + }
  202 + if (value) {
  203 + this.$wrapper.addClass(this._getClass(value));
  204 + }
  205 + this._width();
  206 + this._containerPosition();
  207 + this.options.size = value;
  208 + return this.$element;
  209 + }
  210 + }, {
  211 + key: 'animate',
  212 + value: function animate(value) {
  213 + if (typeof value === 'undefined') {
  214 + return this.options.animate;
  215 + }
  216 + if (this.options.animate === Boolean(value)) {
  217 + return this.$element;
  218 + }
  219 + return this.toggleAnimate();
  220 + }
  221 + }, {
  222 + key: 'toggleAnimate',
  223 + value: function toggleAnimate() {
  224 + this.options.animate = !this.options.animate;
  225 + this.$wrapper.toggleClass(this._getClass('animate'));
  226 + return this.$element;
  227 + }
  228 + }, {
  229 + key: 'disabled',
  230 + value: function disabled(value) {
  231 + if (typeof value === 'undefined') {
  232 + return this.options.disabled;
  233 + }
  234 + if (this.options.disabled === Boolean(value)) {
  235 + return this.$element;
  236 + }
  237 + return this.toggleDisabled();
  238 + }
  239 + }, {
  240 + key: 'toggleDisabled',
  241 + value: function toggleDisabled() {
  242 + this.options.disabled = !this.options.disabled;
  243 + this.$element.prop('disabled', this.options.disabled);
  244 + this.$wrapper.toggleClass(this._getClass('disabled'));
  245 + return this.$element;
  246 + }
  247 + }, {
  248 + key: 'readonly',
  249 + value: function readonly(value) {
  250 + if (typeof value === 'undefined') {
  251 + return this.options.readonly;
  252 + }
  253 + if (this.options.readonly === Boolean(value)) {
  254 + return this.$element;
  255 + }
  256 + return this.toggleReadonly();
  257 + }
  258 + }, {
  259 + key: 'toggleReadonly',
  260 + value: function toggleReadonly() {
  261 + this.options.readonly = !this.options.readonly;
  262 + this.$element.prop('readonly', this.options.readonly);
  263 + this.$wrapper.toggleClass(this._getClass('readonly'));
  264 + return this.$element;
  265 + }
  266 + }, {
  267 + key: 'indeterminate',
  268 + value: function indeterminate(value) {
  269 + if (typeof value === 'undefined') {
  270 + return this.options.indeterminate;
  271 + }
  272 + if (this.options.indeterminate === Boolean(value)) {
  273 + return this.$element;
  274 + }
  275 + return this.toggleIndeterminate();
  276 + }
  277 + }, {
  278 + key: 'toggleIndeterminate',
  279 + value: function toggleIndeterminate() {
  280 + this.options.indeterminate = !this.options.indeterminate;
  281 + this.$element.prop('indeterminate', this.options.indeterminate);
  282 + this.$wrapper.toggleClass(this._getClass('indeterminate'));
  283 + this._containerPosition();
  284 + return this.$element;
  285 + }
  286 + }, {
  287 + key: 'inverse',
  288 + value: function inverse(value) {
  289 + if (typeof value === 'undefined') {
  290 + return this.options.inverse;
  291 + }
  292 + if (this.options.inverse === Boolean(value)) {
  293 + return this.$element;
  294 + }
  295 + return this.toggleInverse();
  296 + }
  297 + }, {
  298 + key: 'toggleInverse',
  299 + value: function toggleInverse() {
  300 + this.$wrapper.toggleClass(this._getClass('inverse'));
  301 + var $on = this.$on.clone(true);
  302 + var $off = this.$off.clone(true);
  303 + this.$on.replaceWith($off);
  304 + this.$off.replaceWith($on);
  305 + this.$on = $off;
  306 + this.$off = $on;
  307 + this.options.inverse = !this.options.inverse;
  308 + return this.$element;
  309 + }
  310 + }, {
  311 + key: 'onColor',
  312 + value: function onColor(value) {
  313 + if (typeof value === 'undefined') {
  314 + return this.options.onColor;
  315 + }
  316 + if (this.options.onColor) {
  317 + this.$on.removeClass(this._getClass(this.options.onColor));
  318 + }
  319 + this.$on.addClass(this._getClass(value));
  320 + this.options.onColor = value;
  321 + return this.$element;
  322 + }
  323 + }, {
  324 + key: 'offColor',
  325 + value: function offColor(value) {
  326 + if (typeof value === 'undefined') {
  327 + return this.options.offColor;
  328 + }
  329 + if (this.options.offColor) {
  330 + this.$off.removeClass(this._getClass(this.options.offColor));
  331 + }
  332 + this.$off.addClass(this._getClass(value));
  333 + this.options.offColor = value;
  334 + return this.$element;
  335 + }
  336 + }, {
  337 + key: 'onText',
  338 + value: function onText(value) {
  339 + if (typeof value === 'undefined') {
  340 + return this.options.onText;
  341 + }
  342 + this.$on.html(value);
  343 + this._width();
  344 + this._containerPosition();
  345 + this.options.onText = value;
  346 + return this.$element;
  347 + }
  348 + }, {
  349 + key: 'offText',
  350 + value: function offText(value) {
  351 + if (typeof value === 'undefined') {
  352 + return this.options.offText;
  353 + }
  354 + this.$off.html(value);
  355 + this._width();
  356 + this._containerPosition();
  357 + this.options.offText = value;
  358 + return this.$element;
  359 + }
  360 + }, {
  361 + key: 'labelText',
  362 + value: function labelText(value) {
  363 + if (typeof value === 'undefined') {
  364 + return this.options.labelText;
  365 + }
  366 + this.$label.html(value);
  367 + this._width();
  368 + this.options.labelText = value;
  369 + return this.$element;
  370 + }
  371 + }, {
  372 + key: 'handleWidth',
  373 + value: function handleWidth(value) {
  374 + if (typeof value === 'undefined') {
  375 + return this.options.handleWidth;
  376 + }
  377 + this.options.handleWidth = value;
  378 + this._width();
  379 + this._containerPosition();
  380 + return this.$element;
  381 + }
  382 + }, {
  383 + key: 'labelWidth',
  384 + value: function labelWidth(value) {
  385 + if (typeof value === 'undefined') {
  386 + return this.options.labelWidth;
  387 + }
  388 + this.options.labelWidth = value;
  389 + this._width();
  390 + this._containerPosition();
  391 + return this.$element;
  392 + }
  393 + }, {
  394 + key: 'baseClass',
  395 + value: function baseClass(value) {
  396 + return this.options.baseClass;
  397 + }
  398 + }, {
  399 + key: 'wrapperClass',
  400 + value: function wrapperClass(value) {
  401 + if (typeof value === 'undefined') {
  402 + return this.options.wrapperClass;
  403 + }
  404 + if (!value) {
  405 + value = $.fn.bootstrapSwitch.defaults.wrapperClass;
  406 + }
  407 + this.$wrapper.removeClass(this._getClasses(this.options.wrapperClass).join(' '));
  408 + this.$wrapper.addClass(this._getClasses(value).join(' '));
  409 + this.options.wrapperClass = value;
  410 + return this.$element;
  411 + }
  412 + }, {
  413 + key: 'radioAllOff',
  414 + value: function radioAllOff(value) {
  415 + if (typeof value === 'undefined') {
  416 + return this.options.radioAllOff;
  417 + }
  418 + var val = Boolean(value);
  419 + if (this.options.radioAllOff === val) {
  420 + return this.$element;
  421 + }
  422 + this.options.radioAllOff = val;
  423 + return this.$element;
  424 + }
  425 + }, {
  426 + key: 'onInit',
  427 + value: function onInit(value) {
  428 + if (typeof value === 'undefined') {
  429 + return this.options.onInit;
  430 + }
  431 + if (!value) {
  432 + value = $.fn.bootstrapSwitch.defaults.onInit;
  433 + }
  434 + this.options.onInit = value;
  435 + return this.$element;
  436 + }
  437 + }, {
  438 + key: 'onSwitchChange',
  439 + value: function onSwitchChange(value) {
  440 + if (typeof value === 'undefined') {
  441 + return this.options.onSwitchChange;
  442 + }
  443 + if (!value) {
  444 + value = $.fn.bootstrapSwitch.defaults.onSwitchChange;
  445 + }
  446 + this.options.onSwitchChange = value;
  447 + return this.$element;
  448 + }
  449 + }, {
  450 + key: 'destroy',
  451 + value: function destroy() {
  452 + var $form = this.$element.closest('form');
  453 + if ($form.length) {
  454 + $form.off('reset.bootstrapSwitch').removeData('bootstrap-switch');
  455 + }
  456 + this.$container.children().not(this.$element).remove();
  457 + this.$element.unwrap().unwrap().off('.bootstrapSwitch').removeData('bootstrap-switch');
  458 + return this.$element;
  459 + }
  460 + }, {
  461 + key: '_getElementOptions',
  462 + value: function _getElementOptions() {
  463 + return {
  464 + state: this.$element.is(':checked'),
  465 + size: this.$element.data('size'),
  466 + animate: this.$element.data('animate'),
  467 + disabled: this.$element.is(':disabled'),
  468 + readonly: this.$element.is('[readonly]'),
  469 + indeterminate: this.$element.data('indeterminate'),
  470 + inverse: this.$element.data('inverse'),
  471 + radioAllOff: this.$element.data('radio-all-off'),
  472 + onColor: this.$element.data('on-color'),
  473 + offColor: this.$element.data('off-color'),
  474 + onText: this.$element.data('on-text'),
  475 + offText: this.$element.data('off-text'),
  476 + labelText: this.$element.data('label-text'),
  477 + handleWidth: this.$element.data('handle-width'),
  478 + labelWidth: this.$element.data('label-width'),
  479 + baseClass: this.$element.data('base-class'),
  480 + wrapperClass: this.$element.data('wrapper-class')
  481 + };
  482 + }
  483 + }, {
  484 + key: '_width',
  485 + value: function _width() {
  486 + var _this2 = this;
  487 +
  488 + var $handles = this.$on.add(this.$off).add(this.$label).css('width', '');
  489 + var handleWidth = this.options.handleWidth === 'auto' ? Math.round(Math.max(this.$on.width(), this.$off.width())) : this.options.handleWidth;
  490 + $handles.width(handleWidth);
  491 + this.$label.width(function (index, width) {
  492 + if (_this2.options.labelWidth !== 'auto') {
  493 + return _this2.options.labelWidth;
  494 + }
  495 + if (width < handleWidth) {
  496 + return handleWidth;
  497 + }
  498 + return width;
  499 + });
  500 + this._handleWidth = this.$on.outerWidth();
  501 + this._labelWidth = this.$label.outerWidth();
  502 + this.$container.width(this._handleWidth * 2 + this._labelWidth);
  503 + return this.$wrapper.width(this._handleWidth + this._labelWidth);
  504 + }
  505 + }, {
  506 + key: '_containerPosition',
  507 + value: function _containerPosition() {
  508 + var _this3 = this;
  509 +
  510 + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.options.state;
  511 + var callback = arguments[1];
  512 +
  513 + this.$container.css('margin-left', function () {
  514 + var values = [0, '-' + _this3._handleWidth + 'px'];
  515 + if (_this3.options.indeterminate) {
  516 + return '-' + _this3._handleWidth / 2 + 'px';
  517 + }
  518 + if (state) {
  519 + if (_this3.options.inverse) {
  520 + return values[1];
  521 + } else {
  522 + return values[0];
  523 + }
  524 + } else {
  525 + if (_this3.options.inverse) {
  526 + return values[0];
  527 + } else {
  528 + return values[1];
  529 + }
  530 + }
  531 + });
  532 + }
  533 + }, {
  534 + key: '_init',
  535 + value: function _init() {
  536 + var _this4 = this;
  537 +
  538 + var init = function init() {
  539 + _this4.setPrevOptions();
  540 + _this4._width();
  541 + _this4._containerPosition();
  542 + setTimeout(function () {
  543 + if (_this4.options.animate) {
  544 + return _this4.$wrapper.addClass(_this4._getClass('animate'));
  545 + }
  546 + }, 50);
  547 + };
  548 + if (this.$wrapper.is(':visible')) {
  549 + init();
  550 + return;
  551 + }
  552 + var initInterval = window.setInterval(function () {
  553 + if (_this4.$wrapper.is(':visible')) {
  554 + init();
  555 + return window.clearInterval(initInterval);
  556 + }
  557 + }, 50);
  558 + }
  559 + }, {
  560 + key: '_elementHandlers',
  561 + value: function _elementHandlers() {
  562 + var _this5 = this;
  563 +
  564 + return this.$element.on({
  565 + 'setPreviousOptions.bootstrapSwitch': this.setPrevOptions.bind(this),
  566 +
  567 + 'previousState.bootstrapSwitch': function previousStateBootstrapSwitch() {
  568 + _this5.options = _this5.prevOptions;
  569 + if (_this5.options.indeterminate) {
  570 + _this5.$wrapper.addClass(_this5._getClass('indeterminate'));
  571 + }
  572 + _this5.$element.prop('checked', _this5.options.state).trigger('change.bootstrapSwitch', true);
  573 + },
  574 +
  575 + 'change.bootstrapSwitch': function changeBootstrapSwitch(event, skip) {
  576 + event.preventDefault();
  577 + event.stopImmediatePropagation();
  578 + var state = _this5.$element.is(':checked');
  579 + _this5._containerPosition(state);
  580 + if (state === _this5.options.state) {
  581 + return;
  582 + }
  583 + _this5.options.state = state;
  584 + _this5.$wrapper.toggleClass(_this5._getClass('off')).toggleClass(_this5._getClass('on'));
  585 + if (!skip) {
  586 + if (_this5.$element.is(':radio')) {
  587 + $('[name="' + _this5.$element.attr('name') + '"]').not(_this5.$element).prop('checked', false).trigger('change.bootstrapSwitch', true);
  588 + }
  589 + _this5.$element.trigger('switchChange.bootstrapSwitch', [state]);
  590 + }
  591 + },
  592 +
  593 + 'focus.bootstrapSwitch': function focusBootstrapSwitch(event) {
  594 + event.preventDefault();
  595 + _this5.$wrapper.addClass(_this5._getClass('focused'));
  596 + },
  597 +
  598 + 'blur.bootstrapSwitch': function blurBootstrapSwitch(event) {
  599 + event.preventDefault();
  600 + _this5.$wrapper.removeClass(_this5._getClass('focused'));
  601 + },
  602 +
  603 + 'keydown.bootstrapSwitch': function keydownBootstrapSwitch(event) {
  604 + if (!event.which || _this5.options.disabled || _this5.options.readonly) {
  605 + return;
  606 + }
  607 + if (event.which === 37 || event.which === 39) {
  608 + event.preventDefault();
  609 + event.stopImmediatePropagation();
  610 + _this5.state(event.which === 39);
  611 + }
  612 + }
  613 + });
  614 + }
  615 + }, {
  616 + key: '_handleHandlers',
  617 + value: function _handleHandlers() {
  618 + var _this6 = this;
  619 +
  620 + this.$on.on('click.bootstrapSwitch', function (event) {
  621 + event.preventDefault();
  622 + event.stopPropagation();
  623 + _this6.state(false);
  624 + return _this6.$element.trigger('focus.bootstrapSwitch');
  625 + });
  626 + return this.$off.on('click.bootstrapSwitch', function (event) {
  627 + event.preventDefault();
  628 + event.stopPropagation();
  629 + _this6.state(true);
  630 + return _this6.$element.trigger('focus.bootstrapSwitch');
  631 + });
  632 + }
  633 + }, {
  634 + key: '_labelHandlers',
  635 + value: function _labelHandlers() {
  636 + var _this7 = this;
  637 +
  638 + var handlers = {
  639 + click: function click(event) {
  640 + event.stopPropagation();
  641 + },
  642 +
  643 +
  644 + 'mousedown.bootstrapSwitch touchstart.bootstrapSwitch': function mousedownBootstrapSwitchTouchstartBootstrapSwitch(event) {
  645 + if (_this7._dragStart || _this7.options.disabled || _this7.options.readonly) {
  646 + return;
  647 + }
  648 + event.preventDefault();
  649 + event.stopPropagation();
  650 + _this7._dragStart = (event.pageX || event.originalEvent.touches[0].pageX) - parseInt(_this7.$container.css('margin-left'), 10);
  651 + if (_this7.options.animate) {
  652 + _this7.$wrapper.removeClass(_this7._getClass('animate'));
  653 + }
  654 + _this7.$element.trigger('focus.bootstrapSwitch');
  655 + },
  656 +
  657 + 'mousemove.bootstrapSwitch touchmove.bootstrapSwitch': function mousemoveBootstrapSwitchTouchmoveBootstrapSwitch(event) {
  658 + if (_this7._dragStart == null) {
  659 + return;
  660 + }
  661 + var difference = (event.pageX || event.originalEvent.touches[0].pageX) - _this7._dragStart;
  662 + event.preventDefault();
  663 + if (difference < -_this7._handleWidth || difference > 0) {
  664 + return;
  665 + }
  666 + _this7._dragEnd = difference;
  667 + _this7.$container.css('margin-left', _this7._dragEnd + 'px');
  668 + },
  669 +
  670 + 'mouseup.bootstrapSwitch touchend.bootstrapSwitch': function mouseupBootstrapSwitchTouchendBootstrapSwitch(event) {
  671 + if (!_this7._dragStart) {
  672 + return;
  673 + }
  674 + event.preventDefault();
  675 + if (_this7.options.animate) {
  676 + _this7.$wrapper.addClass(_this7._getClass('animate'));
  677 + }
  678 + if (_this7._dragEnd) {
  679 + var state = _this7._dragEnd > -(_this7._handleWidth / 2);
  680 + _this7._dragEnd = false;
  681 + _this7.state(_this7.options.inverse ? !state : state);
  682 + } else {
  683 + _this7.state(!_this7.options.state);
  684 + }
  685 + _this7._dragStart = false;
  686 + },
  687 +
  688 + 'mouseleave.bootstrapSwitch': function mouseleaveBootstrapSwitch() {
  689 + _this7.$label.trigger('mouseup.bootstrapSwitch');
  690 + }
  691 + };
  692 + this.$label.on(handlers);
  693 + }
  694 + }, {
  695 + key: '_externalLabelHandler',
  696 + value: function _externalLabelHandler() {
  697 + var _this8 = this;
  698 +
  699 + var $externalLabel = this.$element.closest('label');
  700 + $externalLabel.on('click', function (event) {
  701 + event.preventDefault();
  702 + event.stopImmediatePropagation();
  703 + if (event.target === $externalLabel[0]) {
  704 + _this8.toggleState();
  705 + }
  706 + });
  707 + }
  708 + }, {
  709 + key: '_formHandler',
  710 + value: function _formHandler() {
  711 + var $form = this.$element.closest('form');
  712 + if ($form.data('bootstrap-switch')) {
  713 + return;
  714 + }
  715 + $form.on('reset.bootstrapSwitch', function () {
  716 + window.setTimeout(function () {
  717 + $form.find('input').filter(function () {
  718 + return $(this).data('bootstrap-switch');
  719 + }).each(function () {
  720 + return $(this).bootstrapSwitch('state', this.checked);
  721 + });
  722 + }, 1);
  723 + }).data('bootstrap-switch', true);
  724 + }
  725 + }, {
  726 + key: '_getClass',
  727 + value: function _getClass(name) {
  728 + return this.options.baseClass + '-' + name;
  729 + }
  730 + }, {
  731 + key: '_getClasses',
  732 + value: function _getClasses(classes) {
  733 + if (!$.isArray(classes)) {
  734 + return [this._getClass(classes)];
  735 + }
  736 + return classes.map(this._getClass.bind(this));
  737 + }
  738 + }]);
  739 +
  740 + return BootstrapSwitch;
  741 + }();
  742 +
  743 + $.fn.bootstrapSwitch = function (option) {
  744 + for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  745 + args[_key2 - 1] = arguments[_key2];
  746 + }
  747 +
  748 + function reducer(ret, next) {
  749 + var $this = $(next);
  750 + var existingData = $this.data('bootstrap-switch');
  751 + var data = existingData || new BootstrapSwitch(next, option);
  752 + if (!existingData) {
  753 + $this.data('bootstrap-switch', data);
  754 + }
  755 + if (typeof option === 'string') {
  756 + return data[option].apply(data, args);
  757 + }
  758 + return ret;
  759 + }
  760 + return Array.prototype.reduce.call(this, reducer, this);
  761 + };
  762 + $.fn.bootstrapSwitch.Constructor = BootstrapSwitch;
  763 + $.fn.bootstrapSwitch.defaults = {
  764 + state: true,
  765 + size: null,
  766 + animate: true,
  767 + disabled: false,
  768 + readonly: false,
  769 + indeterminate: false,
  770 + inverse: false,
  771 + radioAllOff: false,
  772 + onColor: 'primary',
  773 + offColor: 'default',
  774 + onText: 'ON',
  775 + offText: 'OFF',
  776 + labelText: '&nbsp',
  777 + handleWidth: 'auto',
  778 + labelWidth: 'auto',
  779 + baseClass: 'bootstrap-switch',
  780 + wrapperClass: 'wrapper',
  781 + onInit: function onInit() {},
  782 + onSwitchChange: function onSwitchChange() {}
  783 + };
  784 +});
... ...
src/main/resources/static/bootstrap-switch/js/bootstrap-switch.min.js 0 → 100644
  1 +/**
  2 + * bootstrap-switch - Turn checkboxes and radio buttons into toggle switches.
  3 + *
  4 + * @version v3.3.4
  5 + * @homepage https://bttstrp.github.io/bootstrap-switch
  6 + * @author Mattia Larentis <mattia@larentis.eu> (http://larentis.eu)
  7 + * @license Apache-2.0
  8 + */
  9 +
  10 +(function(a,b){if('function'==typeof define&&define.amd)define(['jquery'],b);else if('undefined'!=typeof exports)b(require('jquery'));else{b(a.jquery),a.bootstrapSwitch={exports:{}}.exports}})(this,function(a){'use strict';function c(j,k){if(!(j instanceof k))throw new TypeError('Cannot call a class as a function')}var d=function(j){return j&&j.__esModule?j:{default:j}}(a),e=Object.assign||function(j){for(var l,k=1;k<arguments.length;k++)for(var m in l=arguments[k],l)Object.prototype.hasOwnProperty.call(l,m)&&(j[m]=l[m]);return j},f=function(){function j(k,l){for(var n,m=0;m<l.length;m++)n=l[m],n.enumerable=n.enumerable||!1,n.configurable=!0,'value'in n&&(n.writable=!0),Object.defineProperty(k,n.key,n)}return function(k,l,m){return l&&j(k.prototype,l),m&&j(k,m),k}}(),g=d.default||window.jQuery||window.$,h=function(){function j(k){var l=this,m=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};c(this,j),this.$element=g(k),this.options=g.extend({},g.fn.bootstrapSwitch.defaults,this._getElementOptions(),m),this.prevOptions={},this.$wrapper=g('<div>',{class:function(){var o=[];return o.push(l.options.state?'on':'off'),l.options.size&&o.push(l.options.size),l.options.disabled&&o.push('disabled'),l.options.readonly&&o.push('readonly'),l.options.indeterminate&&o.push('indeterminate'),l.options.inverse&&o.push('inverse'),l.$element.attr('id')&&o.push('id-'+l.$element.attr('id')),o.map(l._getClass.bind(l)).concat([l.options.baseClass],l._getClasses(l.options.wrapperClass)).join(' ')}}),this.$container=g('<div>',{class:this._getClass('container')}),this.$on=g('<span>',{html:this.options.onText,class:this._getClass('handle-on')+' '+this._getClass(this.options.onColor)}),this.$off=g('<span>',{html:this.options.offText,class:this._getClass('handle-off')+' '+this._getClass(this.options.offColor)}),this.$label=g('<span>',{html:this.options.labelText,class:this._getClass('label')}),this.$element.on('init.bootstrapSwitch',this.options.onInit.bind(this,k)),this.$element.on('switchChange.bootstrapSwitch',function(){for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];!1===l.options.onSwitchChange.apply(k,o)&&(l.$element.is(':radio')?g('[name="'+l.$element.attr('name')+'"]').trigger('previousState.bootstrapSwitch',!0):l.$element.trigger('previousState.bootstrapSwitch',!0))}),this.$container=this.$element.wrap(this.$container).parent(),this.$wrapper=this.$container.wrap(this.$wrapper).parent(),this.$element.before(this.options.inverse?this.$off:this.$on).before(this.$label).before(this.options.inverse?this.$on:this.$off),this.options.indeterminate&&this.$element.prop('indeterminate',!0),this._init(),this._elementHandlers(),this._handleHandlers(),this._labelHandlers(),this._formHandler(),this._externalLabelHandler(),this.$element.trigger('init.bootstrapSwitch',this.options.state)}return f(j,[{key:'setPrevOptions',value:function(){this.prevOptions=e({},this.options)}},{key:'state',value:function(l,m){return'undefined'==typeof l?this.options.state:this.options.disabled||this.options.readonly||this.options.state&&!this.options.radioAllOff&&this.$element.is(':radio')?this.$element:(this.$element.is(':radio')?g('[name="'+this.$element.attr('name')+'"]').trigger('setPreviousOptions.bootstrapSwitch'):this.$element.trigger('setPreviousOptions.bootstrapSwitch'),this.options.indeterminate&&this.indeterminate(!1),this.$element.prop('checked',!!l).trigger('change.bootstrapSwitch',m),this.$element)}},{key:'toggleState',value:function(l){return this.options.disabled||this.options.readonly?this.$element:this.options.indeterminate?(this.indeterminate(!1),this.state(!0)):this.$element.prop('checked',!this.options.state).trigger('change.bootstrapSwitch',l)}},{key:'size',value:function(l){return'undefined'==typeof l?this.options.size:(null!=this.options.size&&this.$wrapper.removeClass(this._getClass(this.options.size)),l&&this.$wrapper.addClass(this._getClass(l)),this._width(),this._containerPosition(),this.options.size=l,this.$element)}},{key:'animate',value:function(l){return'undefined'==typeof l?this.options.animate:this.options.animate===!!l?this.$element:this.toggleAnimate()}},{key:'toggleAnimate',value:function(){return this.options.animate=!this.options.animate,this.$wrapper.toggleClass(this._getClass('animate')),this.$element}},{key:'disabled',value:function(l){return'undefined'==typeof l?this.options.disabled:this.options.disabled===!!l?this.$element:this.toggleDisabled()}},{key:'toggleDisabled',value:function(){return this.options.disabled=!this.options.disabled,this.$element.prop('disabled',this.options.disabled),this.$wrapper.toggleClass(this._getClass('disabled')),this.$element}},{key:'readonly',value:function(l){return'undefined'==typeof l?this.options.readonly:this.options.readonly===!!l?this.$element:this.toggleReadonly()}},{key:'toggleReadonly',value:function(){return this.options.readonly=!this.options.readonly,this.$element.prop('readonly',this.options.readonly),this.$wrapper.toggleClass(this._getClass('readonly')),this.$element}},{key:'indeterminate',value:function(l){return'undefined'==typeof l?this.options.indeterminate:this.options.indeterminate===!!l?this.$element:this.toggleIndeterminate()}},{key:'toggleIndeterminate',value:function(){return this.options.indeterminate=!this.options.indeterminate,this.$element.prop('indeterminate',this.options.indeterminate),this.$wrapper.toggleClass(this._getClass('indeterminate')),this._containerPosition(),this.$element}},{key:'inverse',value:function(l){return'undefined'==typeof l?this.options.inverse:this.options.inverse===!!l?this.$element:this.toggleInverse()}},{key:'toggleInverse',value:function(){this.$wrapper.toggleClass(this._getClass('inverse'));var l=this.$on.clone(!0),m=this.$off.clone(!0);return this.$on.replaceWith(m),this.$off.replaceWith(l),this.$on=m,this.$off=l,this.options.inverse=!this.options.inverse,this.$element}},{key:'onColor',value:function(l){return'undefined'==typeof l?this.options.onColor:(this.options.onColor&&this.$on.removeClass(this._getClass(this.options.onColor)),this.$on.addClass(this._getClass(l)),this.options.onColor=l,this.$element)}},{key:'offColor',value:function(l){return'undefined'==typeof l?this.options.offColor:(this.options.offColor&&this.$off.removeClass(this._getClass(this.options.offColor)),this.$off.addClass(this._getClass(l)),this.options.offColor=l,this.$element)}},{key:'onText',value:function(l){return'undefined'==typeof l?this.options.onText:(this.$on.html(l),this._width(),this._containerPosition(),this.options.onText=l,this.$element)}},{key:'offText',value:function(l){return'undefined'==typeof l?this.options.offText:(this.$off.html(l),this._width(),this._containerPosition(),this.options.offText=l,this.$element)}},{key:'labelText',value:function(l){return'undefined'==typeof l?this.options.labelText:(this.$label.html(l),this._width(),this.options.labelText=l,this.$element)}},{key:'handleWidth',value:function(l){return'undefined'==typeof l?this.options.handleWidth:(this.options.handleWidth=l,this._width(),this._containerPosition(),this.$element)}},{key:'labelWidth',value:function(l){return'undefined'==typeof l?this.options.labelWidth:(this.options.labelWidth=l,this._width(),this._containerPosition(),this.$element)}},{key:'baseClass',value:function(){return this.options.baseClass}},{key:'wrapperClass',value:function(l){return'undefined'==typeof l?this.options.wrapperClass:(l||(l=g.fn.bootstrapSwitch.defaults.wrapperClass),this.$wrapper.removeClass(this._getClasses(this.options.wrapperClass).join(' ')),this.$wrapper.addClass(this._getClasses(l).join(' ')),this.options.wrapperClass=l,this.$element)}},{key:'radioAllOff',value:function(l){if('undefined'==typeof l)return this.options.radioAllOff;var m=!!l;return this.options.radioAllOff===m?this.$element:(this.options.radioAllOff=m,this.$element)}},{key:'onInit',value:function(l){return'undefined'==typeof l?this.options.onInit:(l||(l=g.fn.bootstrapSwitch.defaults.onInit),this.options.onInit=l,this.$element)}},{key:'onSwitchChange',value:function(l){return'undefined'==typeof l?this.options.onSwitchChange:(l||(l=g.fn.bootstrapSwitch.defaults.onSwitchChange),this.options.onSwitchChange=l,this.$element)}},{key:'destroy',value:function(){var l=this.$element.closest('form');return l.length&&l.off('reset.bootstrapSwitch').removeData('bootstrap-switch'),this.$container.children().not(this.$element).remove(),this.$element.unwrap().unwrap().off('.bootstrapSwitch').removeData('bootstrap-switch'),this.$element}},{key:'_getElementOptions',value:function(){return{state:this.$element.is(':checked'),size:this.$element.data('size'),animate:this.$element.data('animate'),disabled:this.$element.is(':disabled'),readonly:this.$element.is('[readonly]'),indeterminate:this.$element.data('indeterminate'),inverse:this.$element.data('inverse'),radioAllOff:this.$element.data('radio-all-off'),onColor:this.$element.data('on-color'),offColor:this.$element.data('off-color'),onText:this.$element.data('on-text'),offText:this.$element.data('off-text'),labelText:this.$element.data('label-text'),handleWidth:this.$element.data('handle-width'),labelWidth:this.$element.data('label-width'),baseClass:this.$element.data('base-class'),wrapperClass:this.$element.data('wrapper-class')}}},{key:'_width',value:function(){var l=this,m=this.$on.add(this.$off).add(this.$label).css('width',''),n='auto'===this.options.handleWidth?Math.round(Math.max(this.$on.width(),this.$off.width())):this.options.handleWidth;return m.width(n),this.$label.width(function(o,p){return'auto'===l.options.labelWidth?p<n?n:p:l.options.labelWidth}),this._handleWidth=this.$on.outerWidth(),this._labelWidth=this.$label.outerWidth(),this.$container.width(2*this._handleWidth+this._labelWidth),this.$wrapper.width(this._handleWidth+this._labelWidth)}},{key:'_containerPosition',value:function(){var l=this,m=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.options.state,n=arguments[1];this.$container.css('margin-left',function(){var o=[0,'-'+l._handleWidth+'px'];return l.options.indeterminate?'-'+l._handleWidth/2+'px':m?l.options.inverse?o[1]:o[0]:l.options.inverse?o[0]:o[1]})}},{key:'_init',value:function(){var l=this,m=function(){l.setPrevOptions(),l._width(),l._containerPosition(),setTimeout(function(){if(l.options.animate)return l.$wrapper.addClass(l._getClass('animate'))},50)};if(this.$wrapper.is(':visible'))return void m();var n=window.setInterval(function(){if(l.$wrapper.is(':visible'))return m(),window.clearInterval(n)},50)}},{key:'_elementHandlers',value:function(){var l=this;return this.$element.on({'setPreviousOptions.bootstrapSwitch':this.setPrevOptions.bind(this),'previousState.bootstrapSwitch':function(){l.options=l.prevOptions,l.options.indeterminate&&l.$wrapper.addClass(l._getClass('indeterminate')),l.$element.prop('checked',l.options.state).trigger('change.bootstrapSwitch',!0)},'change.bootstrapSwitch':function(n,o){n.preventDefault(),n.stopImmediatePropagation();var p=l.$element.is(':checked');l._containerPosition(p),p===l.options.state||(l.options.state=p,l.$wrapper.toggleClass(l._getClass('off')).toggleClass(l._getClass('on')),!o&&(l.$element.is(':radio')&&g('[name="'+l.$element.attr('name')+'"]').not(l.$element).prop('checked',!1).trigger('change.bootstrapSwitch',!0),l.$element.trigger('switchChange.bootstrapSwitch',[p])))},'focus.bootstrapSwitch':function(n){n.preventDefault(),l.$wrapper.addClass(l._getClass('focused'))},'blur.bootstrapSwitch':function(n){n.preventDefault(),l.$wrapper.removeClass(l._getClass('focused'))},'keydown.bootstrapSwitch':function(n){!n.which||l.options.disabled||l.options.readonly||(37===n.which||39===n.which)&&(n.preventDefault(),n.stopImmediatePropagation(),l.state(39===n.which))}})}},{key:'_handleHandlers',value:function(){var l=this;return this.$on.on('click.bootstrapSwitch',function(m){return m.preventDefault(),m.stopPropagation(),l.state(!1),l.$element.trigger('focus.bootstrapSwitch')}),this.$off.on('click.bootstrapSwitch',function(m){return m.preventDefault(),m.stopPropagation(),l.state(!0),l.$element.trigger('focus.bootstrapSwitch')})}},{key:'_labelHandlers',value:function(){var l=this;this.$label.on({click:function(o){o.stopPropagation()},'mousedown.bootstrapSwitch touchstart.bootstrapSwitch':function(o){l._dragStart||l.options.disabled||l.options.readonly||(o.preventDefault(),o.stopPropagation(),l._dragStart=(o.pageX||o.originalEvent.touches[0].pageX)-parseInt(l.$container.css('margin-left'),10),l.options.animate&&l.$wrapper.removeClass(l._getClass('animate')),l.$element.trigger('focus.bootstrapSwitch'))},'mousemove.bootstrapSwitch touchmove.bootstrapSwitch':function(o){if(null!=l._dragStart){var p=(o.pageX||o.originalEvent.touches[0].pageX)-l._dragStart;o.preventDefault(),p<-l._handleWidth||0<p||(l._dragEnd=p,l.$container.css('margin-left',l._dragEnd+'px'))}},'mouseup.bootstrapSwitch touchend.bootstrapSwitch':function(o){if(l._dragStart){if(o.preventDefault(),l.options.animate&&l.$wrapper.addClass(l._getClass('animate')),l._dragEnd){var p=l._dragEnd>-(l._handleWidth/2);l._dragEnd=!1,l.state(l.options.inverse?!p:p)}else l.state(!l.options.state);l._dragStart=!1}},'mouseleave.bootstrapSwitch':function(){l.$label.trigger('mouseup.bootstrapSwitch')}})}},{key:'_externalLabelHandler',value:function(){var l=this,m=this.$element.closest('label');m.on('click',function(n){n.preventDefault(),n.stopImmediatePropagation(),n.target===m[0]&&l.toggleState()})}},{key:'_formHandler',value:function(){var l=this.$element.closest('form');l.data('bootstrap-switch')||l.on('reset.bootstrapSwitch',function(){window.setTimeout(function(){l.find('input').filter(function(){return g(this).data('bootstrap-switch')}).each(function(){return g(this).bootstrapSwitch('state',this.checked)})},1)}).data('bootstrap-switch',!0)}},{key:'_getClass',value:function(l){return this.options.baseClass+'-'+l}},{key:'_getClasses',value:function(l){return g.isArray(l)?l.map(this._getClass.bind(this)):[this._getClass(l)]}}]),j}();g.fn.bootstrapSwitch=function(j){for(var l=arguments.length,m=Array(1<l?l-1:0),n=1;n<l;n++)m[n-1]=arguments[n];return Array.prototype.reduce.call(this,function(o,p){var q=g(p),r=q.data('bootstrap-switch'),s=r||new h(p,j);return r||q.data('bootstrap-switch',s),'string'==typeof j?s[j].apply(s,m):o},this)},g.fn.bootstrapSwitch.Constructor=h,g.fn.bootstrapSwitch.defaults={state:!0,size:null,animate:!0,disabled:!1,readonly:!1,indeterminate:!1,inverse:!1,radioAllOff:!1,onColor:'primary',offColor:'default',onText:'ON',offText:'OFF',labelText:'&nbsp',handleWidth:'auto',labelWidth:'auto',baseClass:'bootstrap-switch',wrapperClass:'wrapper',onInit:function(){},onSwitchChange:function(){}}});
... ...
src/main/resources/static/favicon.ico 0 → 100644
No preview for this file type
src/main/resources/static/index.html 0 → 100644
  1 +<!DOCTYPE html>
  2 +<html>
  3 +<head>
  4 + <title>调度系统营运数据接口</title>
  5 + <meta charset="utf-8">
  6 + <meta http-equiv="Expires" content="0">
  7 + <meta http-equiv="Pragma" content="no-cache">
  8 + <meta http-equiv="Cache-control" content="no-cache">
  9 + <meta http-equiv="Cache" content="no-cache">
  10 + <link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap/3.2.0/css/bootstrap.min.css">
  11 + <link rel="stylesheet" href="/simple_switch/simple.switch.three.css">
  12 + <style>
  13 + .table-wrap {
  14 + height: 500px;
  15 + overflow: auto;
  16 + }
  17 +
  18 + #line2SysListTable .Switch_FlatRadius .SwitchLine:before {
  19 + content: "老系统";
  20 + }
  21 +
  22 + #line2SysListTable .Switch_FlatRadius .SwitchLine:after {
  23 + content: "新系统";
  24 + }
  25 +
  26 + #line2SysListTable .Switch_FlatRadius {
  27 + width: 118px;
  28 + }
  29 +
  30 + #line2SysListTable .Switch_FlatRadius .SwitchButton {
  31 + width: 52px;
  32 + }
  33 +
  34 + #line2SysListTable .Switch_FlatRadius .SwitchButton:before {
  35 + left: 18px;
  36 + }
  37 +
  38 + #line2SysListTable .Switch_FlatRadius .SwitchButton:after {
  39 + left: 30px;
  40 + }
  41 +
  42 + #line2SysListTable .Switch_FlatRadius.On .SwitchButton {
  43 + left: 60px;
  44 + }
  45 + </style>
  46 +</head>
  47 +
  48 +<body>
  49 +
  50 +<div class="row" style="margin: 15px;">
  51 + <div class="col-md-12 well">
  52 + <h4>Available SOAP services: <a href="/webservice" target="_blank">/webservice</a></h4>
  53 + <h4>WSDL: <a href="/webservice/CompanyService?wsdl" target="_blank">/webservice/CompanyService?wsdl</a></h4>
  54 + </div>
  55 +
  56 + <div class="col-lg-4 col-md-6 col-sm-12">
  57 + <div class="bs-example" data-example-id="panel-without-body-with-table">
  58 + <div class="panel panel-default">
  59 + <!-- Default panel contents -->
  60 + <div class="panel-heading">线路清单</div>
  61 + <div class="panel-body">
  62 + <p style="color: #ff2727;">
  63 + 屏蔽新老系统的底层数据差异,对外提供统一的数据输出
  64 + </p>
  65 + <p>
  66 + 1、使用员工号查询数据时,系统将参考 “线路人员配置” 以确定人员所在线路。
  67 + </p>
  68 + <p>
  69 + 2、使用公司编码查询数据时,系统将参考 “线路基础信息” 里的公司编码。
  70 + </p>
  71 + </div>
  72 + <div class="table-wrap">
  73 + <table class="table" id="line2SysListTable">
  74 + <thead>
  75 + <tr>
  76 + <th>线路编码</th>
  77 + <th>线路名称</th>
  78 + <th>数据来源</th>
  79 + </tr>
  80 + </thead>
  81 + <tbody>
  82 + </tbody>
  83 + </table>
  84 + </div>
  85 + </div>
  86 + </div>
  87 + </div>
  88 +
  89 + <div class="col-lg-8 col-md-6 col-sm-12">
  90 + <div class="bs-example">
  91 + <div class="panel panel-default">
  92 + <div class="panel-heading">接口调试工具</div>
  93 + <div style="padding: 15px;margin-top: 15px;">
  94 + <form class="form-inline">
  95 + <div class="form-group">
  96 + <label>函数</label>
  97 + <select class="form-control">
  98 + <option value="returnCCInfo">returnCCInfo(获取出场班次信息)</option>
  99 + <option value="returnJCInfo">returnJCInfo(获取进场班次信息)</option>
  100 + </select>
  101 + </div>
  102 + &nbsp;
  103 + <div class="form-group">
  104 + <label>公司编码</label>
  105 + <select class="form-control">
  106 + <option value="55">55(上南)</option>
  107 + <option value="22">22(金高)</option>
  108 + <option value="05">05(杨高)</option>
  109 + <option value="26">26(南汇)</option>
  110 + </select>
  111 + </div>
  112 + &nbsp;
  113 + <div class="form-group">
  114 + <label>日期</label>
  115 + <input type="date" class="form-control" style="width: 150px;" required>
  116 + </div>
  117 + <button type="submit" class="btn btn-primary">获取数据</button>
  118 +
  119 + <textarea class="form-control" rows="25" style="width: 100%;margin-top: 25px;"></textarea>
  120 + </form>
  121 +
  122 + </div>
  123 + </div>
  124 + </div>
  125 + </div>
  126 +</div>
  127 +
  128 +<script id="line2sys-table-list-temp" type="text/html">
  129 + {{each list as obj i}}
  130 + <tr data-id="{{obj.lineCode}}" data-name="{{obj.lineName}}" {{if obj.new}}class="warning" {{/if}} >
  131 + <td>{{obj.lineCode}}</td>
  132 + <td>{{obj.lineName}}</td>
  133 + <td>
  134 + <input type="checkbox" {{if obj.new}}checked{{/if}} />
  135 + </td>
  136 + </tr>
  137 + {{/each}}
  138 +</script>
  139 +
  140 +<script src="http://apps.bdimg.com/libs/jquery/1.8.3/jquery.min.js"></script>
  141 +<script src="http://apps.bdimg.com/libs/bootstrap/3.2.0/js/bootstrap.min.js"></script>
  142 +<script src="/assets/js/template.js"></script>
  143 +<script src="/simple_switch/simple.switch.min.js"></script>
  144 +
  145 +<script>
  146 +
  147 + //线路清单
  148 + !function () {
  149 + var f = arguments.callee;
  150 + $.get('/line2System/all', function (list) {
  151 + list.sort(function (a, b) {
  152 + return b.new - a.new;
  153 + });
  154 + var htmlStr = template('line2sys-table-list-temp', {list: list});
  155 + $('#line2SysListTable tbody').html(htmlStr);
  156 +
  157 + $('input[type=checkbox]').simpleSwitch({
  158 + "theme": "FlatRadius"
  159 + });
  160 +
  161 + $('input[type=checkbox]').on('change', function () {
  162 + var $tr = $(this).parents('tr');
  163 + var data = {
  164 + lineCode: $tr.data('id'),
  165 + lineName: $tr.data('name'),
  166 + new: this.checked
  167 + }
  168 +
  169 + $.post('/line2System/update', data, function (rs) {
  170 + var $tr = $('#line2SysListTable tr[data-id=' + rs.lineCode + ']');
  171 + $tr.attr('class', rs.new ? 'warning' : '');
  172 + });
  173 + });
  174 + });
  175 + }();
  176 +
  177 +</script>
  178 +</body>
  179 +</html>
0 180 \ No newline at end of file
... ...
src/main/resources/static/simple_switch/simple.switch.min.js 0 → 100644
  1 +/*!
  2 + * Copyright 2015, Lu Kang
  3 + * WeChat:lukangdaye
  4 + * https://github.com/1029131145/Simple-Switch
  5 + */
  6 +
  7 +(function($){var Switch_Num=0;$.extend($.fn,{simpleSwitch:function(ATTR){var _ATTR={"id":$.simpleSwitch.Id,"theme":$.simpleSwitch.Theme,"end":$.simpleSwitch.End};$.extend(_ATTR,ATTR);var _ALL=$(this),a=_ATTR,_NUM=Switch_Num,_ID=a["id"],_THEME=a["theme"];_ALL.each(function(){var _THIS=$(this);_THIS.hide();_THIS.attr("simpleSwitch",_NUM);_THIS.after('<div class="'+_ID+" "+_ID+"_"+_THEME+'" id="'+_ID+_NUM+'"><div class="SwitchLine"></div><span class="SwitchButton"></span></div>');var _CONTAINER=$("#"+_ID+_NUM);var _type=_THIS.attr("type");var _name=_THIS.attr("name");if(_type=="radio"){_CONTAINER.attr("type",_type+_name)}$.simpleSwitch.Init(this,_CONTAINER);_THIS.change(function(){$.simpleSwitch.Change(this,_CONTAINER,_type,_name)});_CONTAINER.click(function(){$.simpleSwitch.Click(this,_THIS)});_NUM++;a["end"](_THIS,_CONTAINER)});Switch_Num=_NUM}}),$.simpleSwitch=function(){return !0},$.extend($.simpleSwitch,{Id:"Switch",Theme:"Flat",Result:"Result",setTheme:function(theme){$.extend(this.Theme,theme)
  8 +},setDisabled:function(o,i){if(i){$(o).attr("disabled","disabled");$(o).next(".Switch").addClass("Disabled")}else{$(o).removeAttr("disabled");$(o).next(".Switch").removeClass("Disabled")}},Click:function(t,input){input.click()},Change:function(t,cont,type,name){var $T=$(t);var $type=cont.attr("type");if(type){$("div[type='"+$type+"']").removeClass("On");$("input[type='"+type+"'][name='"+name+"']").attr(this.Result,"false")}var checked=$T.attr("checked");if(checked){cont.addClass("On");$T.attr(this.Result,"true")}else{cont.removeClass("On");$T.attr(this.Result,"false")}},Init:function(t,cont){var $T=$(t);var checked=$T.attr("checked");if(checked){cont.addClass("On");$T.attr(this.Result,"true")}else{cont.removeClass("On");$T.attr(this.Result,"false")}if($T.attr("disabled")){cont.addClass("Disabled")}},End:function(t,c){}})})(jQuery);
0 9 \ No newline at end of file
... ...
src/main/resources/static/simple_switch/simple.switch.three.css 0 → 100644
  1 +
  2 +* {
  3 + box-sizing: border-box !important;
  4 +}
  5 +
  6 +.Switch, .Switch * {
  7 + -webkit-transition-property: all;
  8 + -moz-transition-property: all;
  9 + -o-transition-property: all;
  10 + transition-property: all;
  11 + -webkit-transition-duration: 0.2s;
  12 + -moz-transition-duration: 0.2s;
  13 + -o-transition-duration: 0.2s;
  14 + transition-duration: 0.2s;
  15 + -webkit-transition-delay: 0s;
  16 + -moz-transition-delay: 0s;
  17 + -o-transition-delay: 0s;
  18 + transition-delay: 0s;
  19 +}
  20 +
  21 +/*
  22 +Default
  23 +*/
  24 +
  25 +.Switch_Default {
  26 + position: relative;
  27 + width: 64px;
  28 + height: 32px;
  29 + cursor: pointer;
  30 + display: inline-block;
  31 + vertical-align: middle;
  32 +}
  33 +
  34 +.Switch_Default .SwitchLine {
  35 + position: absolute;
  36 + width: 60px;
  37 + height: 4px;
  38 + left: 2px;
  39 + top: 14px;
  40 + z-index: 1;
  41 + background-color: #dadada;
  42 +}
  43 +
  44 +.Switch_Default .SwitchButton {
  45 + position: absolute;
  46 + width: 32px;
  47 + height: 32px;
  48 + left: 0;
  49 + top: 0;
  50 + z-index: 2;
  51 + background-color: #dadada;
  52 + border-radius: 32px;
  53 +}
  54 +
  55 +.Switch_Default.On .SwitchLine {
  56 + background-color: #00c0ff;
  57 +}
  58 +
  59 +.Switch_Default.On .SwitchButton {
  60 + left: 32px;
  61 + background-color: #00c0ff;
  62 +}
  63 +
  64 +.Switch_Default.On .SwitchButton {
  65 + left: 32px;
  66 + background-color: #00c0ff;
  67 +}
  68 +
  69 +.Switch_Default.Disabled {
  70 + opacity: 0.3;
  71 +}
  72 +
  73 +.Switch_Default.Disabled .SwitchButton {
  74 + /*opacity:0.5;*/
  75 +}
  76 +
  77 +.Switch_Default.On.Disabled .SwitchLine {
  78 + /*opacity:0.5;*/
  79 +}
  80 +
  81 +/* DefaultMin */
  82 +.Switch_DefaultMin {
  83 + position: relative;
  84 + width: 48px;
  85 + height: 24px;
  86 + cursor: pointer;
  87 + display: inline-block;
  88 + vertical-align: middle;
  89 +}
  90 +
  91 +.Switch_DefaultMin .SwitchLine {
  92 + position: absolute;
  93 + width: 44px;
  94 + height: 2px;
  95 + left: 2px;
  96 + top: 11px;
  97 + z-index: 1;
  98 + background-color: #dadada;
  99 +}
  100 +
  101 +.Switch_DefaultMin .SwitchButton {
  102 + position: absolute;
  103 + width: 24px;
  104 + height: 24px;
  105 + left: 0;
  106 + top: 0;
  107 + z-index: 2;
  108 + background-color: #dadada;
  109 + border-radius: 24px;
  110 +}
  111 +
  112 +.Switch_DefaultMin.On .SwitchLine {
  113 + background-color: #00c0ff;
  114 +}
  115 +
  116 +.Switch_DefaultMin.On .SwitchButton {
  117 + left: 24px;
  118 + background-color: #00c0ff;
  119 +}
  120 +
  121 +.Switch_DefaultMin.Disabled {
  122 + opacity: 0.3;
  123 +}
  124 +
  125 +.Switch_DefaultMin.Disabled .SwitchButton {
  126 + /*opacity:0.5;*/
  127 +}
  128 +
  129 +.Switch_DefaultMin.On.Disabled .SwitchLine {
  130 + /*opacity:0.5;*/
  131 +}
  132 +
  133 +/* Flat */
  134 +.Switch_Flat {
  135 + position: relative;
  136 + width: 100px;
  137 + height: 40px;
  138 + cursor: pointer;
  139 + display: inline-block;
  140 + vertical-align: middle;
  141 + background-color: #f5a5a6;
  142 +}
  143 +
  144 +.Switch_Flat .SwitchLine:before {
  145 + position: absolute;
  146 + content: "OFF";
  147 + color: #fff;
  148 + left: 60px;
  149 + top: 9px;
  150 +}
  151 +
  152 +.Switch_Flat .SwitchLine:after {
  153 + position: absolute;
  154 + content: "ON";
  155 + color: #fff;
  156 + left: 15px;
  157 + top: 9px;
  158 +}
  159 +
  160 +.Switch_Flat .SwitchButton {
  161 + position: absolute;
  162 + width: 45px;
  163 + height: 30px;
  164 + left: 5px;
  165 + top: 5px;
  166 + z-index: 2;
  167 + background-color: #fff;
  168 +}
  169 +
  170 +.Switch_Flat .SwitchButton:before {
  171 + position: absolute;
  172 + content: "";
  173 + width: 4px;
  174 + height: 16px;
  175 + left: 15px;
  176 + top: 7px;
  177 + background-color: #f5a5a6;
  178 +}
  179 +
  180 +.Switch_Flat .SwitchButton:after {
  181 + position: absolute;
  182 + content: "";
  183 + width: 4px;
  184 + height: 16px;
  185 + left: 26px;
  186 + top: 7px;
  187 + background-color: #f5a5a6;
  188 +}
  189 +
  190 +.Switch_Flat.On {
  191 + background-color: #a7cce9;
  192 +}
  193 +
  194 +.Switch_Flat.On .SwitchLine {
  195 +}
  196 +
  197 +.Switch_Flat.On .SwitchButton {
  198 + left: 50px;
  199 +}
  200 +
  201 +.Switch_Flat.On .SwitchButton:after, .Switch_Flat.On .SwitchButton:before {
  202 + background-color: #a7cce9;
  203 +}
  204 +
  205 +.Switch_Flat.Disabled {
  206 + opacity: 0.3;
  207 +}
  208 +
  209 +.Switch_Flat.Disabled .SwitchButton {
  210 + /*opacity:0.5;*/
  211 +}
  212 +
  213 +.Switch_Flat.On.Disabled .SwitchLine {
  214 + /*opacity:0.5;*/
  215 +}
  216 +
  217 +/* FlatRadius */
  218 +.Switch_FlatRadius {
  219 + position: relative;
  220 + width: 100px;
  221 + height: 40px;
  222 + cursor: pointer;
  223 + display: inline-block;
  224 + vertical-align: middle;
  225 + background-color: #f5a5a6;
  226 + border-radius: 4px;
  227 +}
  228 +
  229 +.Switch_FlatRadius .SwitchLine:before {
  230 + position: absolute;
  231 + content: "OFF";
  232 + color: #fff;
  233 + left: 60px;
  234 + top: 9px;
  235 +}
  236 +
  237 +.Switch_FlatRadius .SwitchLine:after {
  238 + position: absolute;
  239 + content: "ON";
  240 + color: #fff;
  241 + left: 15px;
  242 + top: 9px;
  243 +}
  244 +
  245 +.Switch_FlatRadius .SwitchButton {
  246 + position: absolute;
  247 + width: 45px;
  248 + height: 30px;
  249 + left: 5px;
  250 + top: 5px;
  251 + z-index: 2;
  252 + background-color: #fff;
  253 + border-radius: 4px;
  254 +}
  255 +
  256 +.Switch_FlatRadius .SwitchButton:before {
  257 + position: absolute;
  258 + content: "";
  259 + width: 4px;
  260 + height: 16px;
  261 + left: 15px;
  262 + top: 7px;
  263 + background-color: #f5a5a6;
  264 +}
  265 +
  266 +.Switch_FlatRadius .SwitchButton:after {
  267 + position: absolute;
  268 + content: "";
  269 + width: 4px;
  270 + height: 16px;
  271 + left: 26px;
  272 + top: 7px;
  273 + background-color: #f5a5a6;
  274 +}
  275 +
  276 +.Switch_FlatRadius.On {
  277 + background-color: #a7cce9;
  278 +}
  279 +
  280 +.Switch_FlatRadius.On .SwitchLine {
  281 +}
  282 +
  283 +.Switch_FlatRadius.On .SwitchButton {
  284 + left: 50px;
  285 +}
  286 +
  287 +.Switch_FlatRadius.On .SwitchButton:after, .Switch_FlatRadius.On .SwitchButton:before {
  288 + background-color: #a7cce9;
  289 +}
  290 +
  291 +.Switch_FlatRadius.Disabled {
  292 + opacity: 0.3;
  293 +}
  294 +
  295 +.Switch_FlatRadius.Disabled .SwitchButton {
  296 + /*opacity:0.5;*/
  297 +}
  298 +
  299 +.Switch_FlatRadius.On.Disabled .SwitchLine {
  300 + /*opacity:0.5;*/
  301 +}
  302 +
  303 +/* FlatCircular */
  304 +.Switch_FlatCircular {
  305 + position: relative;
  306 + width: 100px;
  307 + height: 40px;
  308 + cursor: pointer;
  309 + display: inline-block;
  310 + vertical-align: middle;
  311 + background-color: #f5a5a6;
  312 + border-radius: 20px;
  313 +}
  314 +
  315 +.Switch_FlatCircular .SwitchLine:before {
  316 + position: absolute;
  317 + content: "OFF";
  318 + color: #fff;
  319 + left: 60px;
  320 + top: 9px;
  321 +}
  322 +
  323 +.Switch_FlatCircular .SwitchLine:after {
  324 + position: absolute;
  325 + content: "ON";
  326 + color: #fff;
  327 + left: 15px;
  328 + top: 9px;
  329 +}
  330 +
  331 +.Switch_FlatCircular .SwitchButton {
  332 + position: absolute;
  333 + width: 46px;
  334 + height: 46px;
  335 + left: -3px;
  336 + top: -3px;
  337 + z-index: 2;
  338 + background-color: #fff;
  339 + border-radius: 45px;
  340 + border: 1px solid #f5a5a6;
  341 +}
  342 +
  343 +.Switch_FlatCircular.On {
  344 + background-color: #a7cce9;
  345 +}
  346 +
  347 +.Switch_FlatCircular.On .SwitchLine {
  348 +}
  349 +
  350 +.Switch_FlatCircular.On .SwitchButton {
  351 + border: 1px solid #a7cce9;
  352 + left: 57px;
  353 +}
  354 +
  355 +.Switch_FlatCircular.On .SwitchButton:after, .Switch_FlatCircular.On .SwitchButton:before {
  356 + background-color: #a7cce9;
  357 +}
  358 +
  359 +.Switch_FlatCircular.Disabled {
  360 + opacity: 0.3;
  361 +}
  362 +
  363 +.Switch_FlatCircular.Disabled .SwitchButton {
  364 + /*opacity:0.5;*/
  365 +}
  366 +
  367 +.Switch_FlatCircular.On.Disabled .SwitchLine {
  368 + /*opacity:0.5;*/
  369 +}
  370 +
  371 +/* Green */
  372 +.Switch_Green {
  373 + position: relative;
  374 + width: 100px;
  375 + height: 40px;
  376 + cursor: pointer;
  377 + display: inline-block;
  378 + vertical-align: middle;
  379 + background-color: #b4aa9f;
  380 + border-radius: 20px;
  381 +}
  382 +
  383 +.Switch_Green .SwitchLine:before {
  384 + position: absolute;
  385 + content: "\f00d";
  386 + color: #fff3e3;
  387 + left: 62px;
  388 + top: 8px;
  389 + /*font-awesome*/
  390 + font: normal normal normal 14px/1 FontAwesome !important;
  391 + font-size: 25px !important;
  392 +}
  393 +
  394 +.Switch_Green .SwitchLine:after {
  395 + position: absolute;
  396 + content: "\f00c";
  397 + color: #fff3e3;
  398 + left: 15px;
  399 + top: 8px;
  400 + /*font-awesome*/
  401 + font: normal normal normal 14px/1 FontAwesome !important;
  402 + font-size: 25px !important;
  403 +}
  404 +
  405 +.Switch_Green .SwitchButton {
  406 + position: absolute;
  407 + width: 46px;
  408 + height: 46px;
  409 + left: -3px;
  410 + top: -3px;
  411 + z-index: 2;
  412 + background-color: #fff3e3;
  413 + border-radius: 45px;
  414 + border: 3px solid #b4aa9f;
  415 +}
  416 +
  417 +.Switch_Green.On {
  418 + background-color: #6ebf5f;
  419 +}
  420 +
  421 +.Switch_Green.On .SwitchLine {
  422 +}
  423 +
  424 +.Switch_Green.On .SwitchButton {
  425 + border: 3px solid #6ebf5f;
  426 + left: 57px;
  427 +}
  428 +
  429 +.Switch_Green.On .SwitchButton:after, .Switch_Green.On .SwitchButton:before {
  430 + background-color: #a7cce9;
  431 +}
  432 +
  433 +.Switch_Green.Disabled {
  434 + opacity: 0.3;
  435 +}
  436 +
  437 +.Switch_Green.Disabled .SwitchButton {
  438 + /*opacity:0.5;*/
  439 +}
  440 +
  441 +.Switch_Green.On.Disabled .SwitchLine {
  442 + /*opacity:0.5;*/
  443 +}
  444 +
  445 +
  446 +
  447 +
  448 +/* Icon */
  449 +.Switch_Icon {
  450 + position: relative;
  451 + width: 90px;
  452 + height: 50px;
  453 + cursor: pointer;
  454 + display: inline-block;
  455 + vertical-align: middle;
  456 + border-radius: 30px;
  457 + border: 6px solid #fff;
  458 + margin: 0 38px;
  459 +}
  460 +
  461 +.Switch_Icon .SwitchLine:before {
  462 + position: absolute;
  463 + content: "\f1e3";
  464 + color: #1b5a95;
  465 + left: 96px;
  466 + top: 8px;
  467 + /*font-awesome*/
  468 + font: normal normal normal 14px/1 FontAwesome !important;
  469 + font-size: 25px !important;
  470 +}
  471 +
  472 +.Switch_Icon .SwitchLine:after {
  473 + position: absolute;
  474 + content: "\f1db";
  475 + color: #fff;
  476 + left: -42px;
  477 + top: 8px;
  478 + /*font-awesome*/
  479 + font: normal normal normal 14px/1 FontAwesome !important;
  480 + font-size: 25px !important;
  481 +}
  482 +
  483 +.Switch_Icon .SwitchButton {
  484 + position: absolute;
  485 + width: 26px;
  486 + height: 26px;
  487 + left: 6px;
  488 + top: 6px;
  489 + z-index: 2;
  490 + background-color: #fff;
  491 + border-radius: 26px;
  492 +}
  493 +
  494 +.Switch_Icon.On {
  495 +}
  496 +
  497 +.Switch_Icon.On .SwitchLine {
  498 +}
  499 +
  500 +.Switch_Icon.On .SwitchButton {
  501 + left: 48px;
  502 +}
  503 +
  504 +.Switch_Icon.On .SwitchLine:after{
  505 + color: #1b5a95;
  506 +}
  507 +
  508 +.Switch_Icon.On .SwitchLine:before {
  509 + color: #fff;
  510 +}
  511 +
  512 +.Switch_Icon.Disabled {
  513 + opacity: 0.3;
  514 +}
  515 +
  516 +.Switch_Icon.Disabled .SwitchButton {
  517 + /*opacity:0.5;*/
  518 +}
  519 +
  520 +.Switch_Icon.On.Disabled .SwitchLine {
  521 + /*opacity:0.5;*/
  522 +}
0 523 \ No newline at end of file
... ...