Commit eefecb073b591bf6f19288eb86a5466a2df71c4d
1 parent
26197ee3
update...
Showing
41 changed files
with
4790 additions
and
0 deletions
Too many changes to show.
To preserve performance only 41 of 63 files are displayed.
.gitignore
0 → 100644
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 | \ No newline at end of file | 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 | \ No newline at end of file | 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 | +} |