作者 wangweishuai1993

init

init

要显示太多修改。

为保证性能只显示 25 of 25+ 个文件。

  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<classpath>
  3 + <classpathentry kind="src" output="target/classes" path="src/main/java">
  4 + <attributes>
  5 + <attribute name="optional" value="true"/>
  6 + <attribute name="maven.pomderived" value="true"/>
  7 + </attributes>
  8 + </classpathentry>
  9 + <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
  10 + <attributes>
  11 + <attribute name="maven.pomderived" value="true"/>
  12 + </attributes>
  13 + </classpathentry>
  14 + <classpathentry kind="src" output="target/test-classes" path="src/test/java">
  15 + <attributes>
  16 + <attribute name="test" value="true"/>
  17 + <attribute name="optional" value="true"/>
  18 + <attribute name="maven.pomderived" value="true"/>
  19 + </attributes>
  20 + </classpathentry>
  21 + <classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
  22 + <attributes>
  23 + <attribute name="test" value="true"/>
  24 + <attribute name="maven.pomderived" value="true"/>
  25 + </attributes>
  26 + </classpathentry>
  27 + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
  28 + <attributes>
  29 + <attribute name="maven.pomderived" value="true"/>
  30 + </attributes>
  31 + </classpathentry>
  32 + <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
  33 + <attributes>
  34 + <attribute name="maven.pomderived" value="true"/>
  35 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  36 + </attributes>
  37 + </classpathentry>
  38 + <classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/axis.jar"/>
  39 + <classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/commons-discovery-0.2.jar"/>
  40 + <classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/commons-logging.jar"/>
  41 + <classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/cxf-wstx-msv-validation-2.6.5.jar"/>
  42 + <classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/gson-2.2.4.jar"/>
  43 + <classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/httpclient-4.5.4.jar"/>
  44 + <classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/httpcore-4.4.7.jar"/>
  45 + <classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/jaxrpc.jar"/>
  46 + <classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/jcifs-1.3.19.jar"/>
  47 + <classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/jiguang-common-1.0.7.jar"/>
  48 + <classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/jpush-client-3.3.0.jar"/>
  49 + <classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/saaj.jar"/>
  50 + <classpathentry kind="output" path="target/classes"/>
  51 +</classpath>
  1 +/target/
  2 +
  3 +/.settings/
  4 +/target/
  5 +/logs/
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<projectDescription>
  3 + <name>agent</name>
  4 + <comment></comment>
  5 + <projects>
  6 + </projects>
  7 + <buildSpec>
  8 + <buildCommand>
  9 + <name>org.eclipse.jdt.core.javabuilder</name>
  10 + <arguments>
  11 + </arguments>
  12 + </buildCommand>
  13 + <buildCommand>
  14 + <name>org.eclipse.wst.common.project.facet.core.builder</name>
  15 + <arguments>
  16 + </arguments>
  17 + </buildCommand>
  18 + <buildCommand>
  19 + <name>org.eclipse.wst.validation.validationbuilder</name>
  20 + <arguments>
  21 + </arguments>
  22 + </buildCommand>
  23 + <buildCommand>
  24 + <name>org.eclipse.m2e.core.maven2Builder</name>
  25 + <arguments>
  26 + </arguments>
  27 + </buildCommand>
  28 + </buildSpec>
  29 + <natures>
  30 + <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
  31 + <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
  32 + <nature>org.eclipse.jdt.core.javanature</nature>
  33 + <nature>org.eclipse.m2e.core.maven2Nature</nature>
  34 + <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
  35 + <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
  36 + </natures>
  37 +</projectDescription>
  1 +空港项目代理人管理系统
  2 +==================
  3 +
  4 +项目简介
  5 +文领介入开发的代理人系统
  1 +/*
  2 + * My97 DatePicker 4.72 Release
  3 + * License: http://www.my97.net/dp/license.asp
  4 + */
  5 +var $dp,WdatePicker;(function(){var _={
  6 +$wdate:true,
  7 +$dpPath:"",
  8 +$crossFrame:true,
  9 +doubleCalendar:false,
  10 +enableKeyboard:true,
  11 +enableInputMask:true,
  12 +autoUpdateOnChanged:null,
  13 +whichDayIsfirstWeek:4,
  14 +position:{},
  15 +lang:"auto",
  16 +skin:"default",
  17 +dateFmt:"yyyy-MM-dd",
  18 +realDateFmt:"yyyy-MM-dd",
  19 +realTimeFmt:"HH:mm:ss",
  20 +realFullFmt:"%Date %Time",
  21 +minDate:"1900-01-01 00:00:00",
  22 +maxDate:"2099-12-31 23:59:59",
  23 +startDate:"",
  24 +alwaysUseStartDate:false,
  25 +yearOffset:1911,
  26 +firstDayOfWeek:0,
  27 +isShowWeek:false,
  28 +highLineWeekDay:true,
  29 +isShowClear:true,
  30 +isShowToday:true,
  31 +isShowOK:true,
  32 +isShowOthers:true,
  33 +readOnly:false,
  34 +errDealMode:0,
  35 +autoPickDate:null,
  36 +qsEnabled:true,
  37 +autoShowQS:false,
  38 +
  39 +specialDates:null,specialDays:null,disabledDates:null,disabledDays:null,opposite:false,onpicking:null,onpicked:null,onclearing:null,oncleared:null,ychanging:null,ychanged:null,Mchanging:null,Mchanged:null,dchanging:null,dchanged:null,Hchanging:null,Hchanged:null,mchanging:null,mchanged:null,schanging:null,schanged:null,eCont:null,vel:null,errMsg:"",quickSel:[],has:{}};WdatePicker=U;var X=window,O="document",J="documentElement",C="getElementsByTagName",V,A,T,I,b;switch(navigator.appName){case"Microsoft Internet Explorer":T=true;break;case"Opera":b=true;break;default:I=true;break}A=L();if(_.$wdate)M(A+"skin/WdatePicker.css");V=X;if(_.$crossFrame){try{while(V.parent&&V.parent[O]!=V[O]&&V.parent[O][C]("frameset").length==0)V=V.parent}catch(P){}}if(!V.$dp)V.$dp={ff:I,ie:T,opera:b,el:null,win:X,status:0,defMinDate:_.minDate,defMaxDate:_.maxDate,flatCfgs:[]};B();if($dp.status==0)Z(X,function(){U(null,true)});if(!X[O].docMD){E(X[O],"onmousedown",D);X[O].docMD=true}if(!V[O].docMD){E(V[O],"onmousedown",D);V[O].docMD=true}E(X,"onunload",function(){if($dp.dd)Q($dp.dd,"none")});function B(){V.$dp=V.$dp||{};obj={$:function($){return(typeof $=="string")?X[O].getElementById($):$},$D:function($,_){return this.$DV(this.$($).value,_)},$DV:function(_,$){if(_!=""){this.dt=$dp.cal.splitDate(_,$dp.cal.dateFmt);if($)for(var B in $)if(this.dt[B]===undefined)this.errMsg="invalid property:"+B;else{this.dt[B]+=$[B];if(B=="M"){var C=$["M"]>0?1:0,A=new Date(this.dt["y"],this.dt["M"],0).getDate();this.dt["d"]=Math.min(A+C,this.dt["d"])}}if(this.dt.refresh())return this.dt}return""},show:function(){var A=V[O].getElementsByTagName("div"),$=100000;for(var B=0;B<A.length;B++){var _=parseInt(A[B].style.zIndex);if(_>$)$=_}this.dd.style.zIndex=$+2;Q(this.dd,"block")},hide:function(){Q(this.dd,"none")},attachEvent:E};for(var $ in obj)V.$dp[$]=obj[$];$dp=V.$dp;$dp.dd=V[O].getElementById("_my97DP")}function E(A,$,_){if(T)A.attachEvent($,_);else if(_){var B=$.replace(/on/,"");_._ieEmuEventHandler=function($){return _($)};A.addEventListener(B,_._ieEmuEventHandler,false)}}function L(){var _,A,$=X[O][C]("script");for(var B=0;B<$.length;B++){_=$[B].src.substring(0,$[B].src.toLowerCase().indexOf("wdatepicker.js"));A=_.lastIndexOf("/");if(A>0)_=_.substring(0,A+1);if(_)break}return _}function F(F){var E,C;if(F.substring(0,1)!="/"&&F.indexOf("://")==-1){E=V.location.href;C=location.href;if(E.indexOf("?")>-1)E=E.substring(0,E.indexOf("?"));if(C.indexOf("?")>-1)C=C.substring(0,C.indexOf("?"));var G,I,$="",D="",A="",J,H,B="";for(J=0;J<Math.max(E.length,C.length);J++){G=E.charAt(J).toLowerCase();I=C.charAt(J).toLowerCase();if(G==I){if(G=="/")H=J}else{$=E.substring(H+1,E.length);$=$.substring(0,$.lastIndexOf("/"));D=C.substring(H+1,C.length);D=D.substring(0,D.lastIndexOf("/"));break}}if($!="")for(J=0;J<$.split("/").length;J++)B+="../";if(D!="")B+=D+"/";F=E.substring(0,E.lastIndexOf("/")+1)+B+F}_.$dpPath=F}function M(A,$,B){var D=X[O][C]("HEAD").item(0),_=X[O].createElement("link");if(D){_.href=A;_.rel="stylesheet";_.type="text/css";if($)_.title=$;if(B)_.charset=B;D.appendChild(_)}}function Z($,_){E($,"onload",_)}function G($){$=$||V;var A=0,_=0;while($!=V){var D=$.parent[O][C]("iframe");for(var F=0;F<D.length;F++){try{if(D[F].contentWindow==$){var E=W(D[F]);A+=E.left;_+=E.top;break}}catch(B){}}$=$.parent}return{"leftM":A,"topM":_}}function W(F){if(F.getBoundingClientRect)return F.getBoundingClientRect();else{var A={ROOT_TAG:/^body|html$/i,OP_SCROLL:/^(?:inline|table-row)$/i},E=false,H=null,_=F.offsetTop,G=F.offsetLeft,D=F.offsetWidth,B=F.offsetHeight,C=F.offsetParent;if(C!=F)while(C){G+=C.offsetLeft;_+=C.offsetTop;if(S(C,"position").toLowerCase()=="fixed")E=true;else if(C.tagName.toLowerCase()=="body")H=C.ownerDocument.defaultView;C=C.offsetParent}C=F.parentNode;while(C.tagName&&!A.ROOT_TAG.test(C.tagName)){if(C.scrollTop||C.scrollLeft)if(!A.OP_SCROLL.test(Q(C)))if(!b||C.style.overflow!=="visible"){G-=C.scrollLeft;_-=C.scrollTop}C=C.parentNode}if(!E){var $=a(H);G-=$.left;_-=$.top}D+=G;B+=_;return{"left":G,"top":_,"right":D,"bottom":B}}}function N($){$=$||V;var B=$[O],A=($.innerWidth)?$.innerWidth:(B[J]&&B[J].clientWidth)?B[J].clientWidth:B.body.offsetWidth,_=($.innerHeight)?$.innerHeight:(B[J]&&B[J].clientHeight)?B[J].clientHeight:B.body.offsetHeight;return{"width":A,"height":_}}function a($){$=$||V;var B=$[O],A=B[J],_=B.body;B=(A&&A.scrollTop!=null&&(A.scrollTop>_.scrollTop||A.scrollLeft>_.scrollLeft))?A:_;return{"top":B.scrollTop,"left":B.scrollLeft}}function D($){var _=$?($.srcElement||$.target):null;try{if($dp.cal&&!$dp.eCont&&$dp.dd&&_!=$dp.el&&$dp.dd.style.display=="block")$dp.cal.close()}catch($){}}function Y(){$dp.status=2;H()}function H(){if($dp.flatCfgs.length>0){var $=$dp.flatCfgs.shift();$.el={innerHTML:""};$.autoPickDate=true;$.qsEnabled=false;K($)}}var R,$;function U(J,C){$dp.win=X;B();J=J||{};if(C){if(!G()){$=$||setInterval(function(){if(V[O].readyState=="complete")clearInterval($);U(null,true)},50);return}if($dp.status==0){$dp.status=1;K({el:{innerHTML:""}},true)}else return}else if(J.eCont){J.eCont=$dp.$(J.eCont);$dp.flatCfgs.push(J);if($dp.status==2)H()}else{if($dp.status==0){U(null,true);return}if($dp.status!=2)return;var F=D();if(F){$dp.srcEl=F.srcElement||F.target;F.cancelBubble=true}$dp.el=J.el=$dp.$(J.el||$dp.srcEl);if(!$dp.el||$dp.el["My97Mark"]===true||$dp.el.disabled||($dp.el==$dp.el&&Q($dp.dd)!="none"&&$dp.dd.style.left!="-1970px")){$dp.el["My97Mark"]=false;return}K(J);if(F&&$dp.el.nodeType==1&&$dp.el["My97Mark"]===undefined){$dp.el["My97Mark"]=false;var _,A;if(F.type=="focus"){_="onclick";A="onfocus"}else{_="onfocus";A="onclick"}E($dp.el,_,$dp.el[A])}}function G(){if(T&&V!=X&&V[O].readyState!="complete")return false;return true}function D(){if(I){func=D.caller;while(func!=null){var $=func.arguments[0];if($&&($+"").indexOf("Event")>=0)return $;func=func.caller}return null}return event}}function S(_,$){return _.currentStyle?_.currentStyle[$]:document.defaultView.getComputedStyle(_,false)[$]}function Q(_,$){if(_)if($!=null)_.style.display=$;else return S(_,"display")}function K(H,$){for(var D in _)if(D.substring(0,1)!="$")$dp[D]=_[D];for(D in H)if($dp[D]!==undefined)$dp[D]=H[D];var E=$dp.el?$dp.el.nodeName:"INPUT";if($||$dp.eCont||new RegExp(/input|textarea|div|span|p|a/ig).test(E))$dp.elProp=E=="INPUT"?"value":"innerHTML";else return;if($dp.lang=="auto")$dp.lang=T?navigator.browserLanguage.toLowerCase():navigator.language.toLowerCase();if(!$dp.dd||$dp.eCont||($dp.lang&&$dp.realLang&&$dp.realLang.name!=$dp.lang&&$dp.getLangIndex&&$dp.getLangIndex($dp.lang)>=0)){if($dp.dd&&!$dp.eCont)V[O].body.removeChild($dp.dd);if(_.$dpPath=="")F(A);var B="<iframe style=\"width:1px;height:1px\" src=\""+_.$dpPath+"My97DatePicker.htm\" frameborder=\"0\" border=\"0\" scrolling=\"no\"></iframe>";if($dp.eCont){$dp.eCont.innerHTML=B;Z($dp.eCont.childNodes[0],Y)}else{$dp.dd=V[O].createElement("DIV");$dp.dd.id="_my97DP";$dp.dd.style.cssText="position:absolute";$dp.dd.innerHTML=B;V[O].body.appendChild($dp.dd);Z($dp.dd.childNodes[0],Y);if($)$dp.dd.style.left=$dp.dd.style.top="-1970px";else{$dp.show();C()}}}else if($dp.cal){$dp.show();$dp.cal.init();if(!$dp.eCont)C()}function C(){var F=$dp.position.left,B=$dp.position.top,C=$dp.el;if(C!=$dp.srcEl&&(Q(C)=="none"||C.type=="hidden"))C=$dp.srcEl;var H=W(C),$=G(X),D=N(V),A=a(V),E=$dp.dd.offsetHeight,_=$dp.dd.offsetWidth;if(isNaN(B)){if(B=="above"||(B!="under"&&(($.topM+H.bottom+E>D.height)&&($.topM+H.top-E>0))))B=A.top+$.topM+H.top-E-2;else B=A.top+$.topM+Math.min(H.bottom,D.height-E)+2}else B+=A.top+$.topM;if(isNaN(F))F=A.left+Math.min($.leftM+H.left,D.width-_-5)-(T?2:0);else F+=A.left+$.leftM;$dp.dd.style.top=B+"px";$dp.dd.style.left=F+"px"}}})()
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
  3 + <component name="FacetManager">
  4 + <facet type="web" name="Web">
  5 + <configuration>
  6 + <descriptors>
  7 + <deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/src/main/webapp/WEB-INF/web.xml" />
  8 + </descriptors>
  9 + <webroots>
  10 + <root url="file://$MODULE_DIR$/src/main/webapp" relative="/" />
  11 + </webroots>
  12 + <sourceRoots>
  13 + <root url="file://$MODULE_DIR$/src/main/java" />
  14 + <root url="file://$MODULE_DIR$/src/main/resources" />
  15 + </sourceRoots>
  16 + </configuration>
  17 + </facet>
  18 + <facet type="Spring" name="Spring">
  19 + <configuration />
  20 + </facet>
  21 + </component>
  22 + <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7">
  23 + <output url="file://$MODULE_DIR$/target/classes" />
  24 + <output-test url="file://$MODULE_DIR$/target/test-classes" />
  25 + <content url="file://$MODULE_DIR$">
  26 + <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
  27 + <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
  28 + <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
  29 + <sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
  30 + <excludeFolder url="file://$MODULE_DIR$/target" />
  31 + </content>
  32 + <orderEntry type="inheritedJdk" />
  33 + <orderEntry type="sourceFolder" forTests="false" />
  34 + <orderEntry type="library" name="patchca-0.5.0" level="project" />
  35 + <orderEntry type="module-library">
  36 + <library>
  37 + <CLASSES>
  38 + <root url="jar://$USER_HOME$/Documents/maven/apache-ant-zip.jar!/" />
  39 + </CLASSES>
  40 + <JAVADOC />
  41 + <SOURCES />
  42 + </library>
  43 + </orderEntry>
  44 + <orderEntry type="module-library">
  45 + <library>
  46 + <CLASSES>
  47 + <root url="jar://$MODULE_DIR$/../../jar/imf_jar/apiConfig.jar!/" />
  48 + </CLASSES>
  49 + <JAVADOC />
  50 + <SOURCES />
  51 + </library>
  52 + </orderEntry>
  53 + <orderEntry type="module-library">
  54 + <library>
  55 + <CLASSES>
  56 + <root url="jar://$MODULE_DIR$/../../jar/imf_jar/HeartbeatService.jar!/" />
  57 + </CLASSES>
  58 + <JAVADOC />
  59 + <SOURCES />
  60 + </library>
  61 + </orderEntry>
  62 + <orderEntry type="module-library">
  63 + <library>
  64 + <CLASSES>
  65 + <root url="jar://$MODULE_DIR$/../../jar/imf_jar/IMFClient.1.0.0.jar!/" />
  66 + </CLASSES>
  67 + <JAVADOC />
  68 + <SOURCES />
  69 + </library>
  70 + </orderEntry>
  71 + <orderEntry type="module-library">
  72 + <library>
  73 + <CLASSES>
  74 + <root url="jar://$MODULE_DIR$/../../jar/imf_jar/imfmsg.jar!/" />
  75 + </CLASSES>
  76 + <JAVADOC />
  77 + <SOURCES />
  78 + </library>
  79 + </orderEntry>
  80 + <orderEntry type="module-library">
  81 + <library>
  82 + <CLASSES>
  83 + <root url="jar://$MODULE_DIR$/../../jar/imf_jar/ProcessService.jar!/" />
  84 + </CLASSES>
  85 + <JAVADOC />
  86 + <SOURCES />
  87 + </library>
  88 + </orderEntry>
  89 + <orderEntry type="module-library">
  90 + <library>
  91 + <CLASSES>
  92 + <root url="jar://$MODULE_DIR$/../../jar/imf_jar/returnXml.jar!/" />
  93 + </CLASSES>
  94 + <JAVADOC />
  95 + <SOURCES />
  96 + </library>
  97 + </orderEntry>
  98 + <orderEntry type="module-library">
  99 + <library>
  100 + <CLASSES>
  101 + <root url="jar://$MODULE_DIR$/../../jar/imf_jar/UploadService.jar!/" />
  102 + </CLASSES>
  103 + <JAVADOC />
  104 + <SOURCES />
  105 + </library>
  106 + </orderEntry>
  107 + <orderEntry type="module-library">
  108 + <library>
  109 + <CLASSES>
  110 + <root url="jar://$MODULE_DIR$/../../jar/imf/antlr-2.7.7.jar!/" />
  111 + </CLASSES>
  112 + <JAVADOC />
  113 + <SOURCES />
  114 + </library>
  115 + </orderEntry>
  116 + <orderEntry type="module-library">
  117 + <library>
  118 + <CLASSES>
  119 + <root url="jar://$MODULE_DIR$/../../jar/imf/antlr-3.2.jar!/" />
  120 + </CLASSES>
  121 + <JAVADOC />
  122 + <SOURCES />
  123 + </library>
  124 + </orderEntry>
  125 + <orderEntry type="module-library">
  126 + <library>
  127 + <CLASSES>
  128 + <root url="jar://$MODULE_DIR$/../../jar/imf/antlr-runtime-3.2.jar!/" />
  129 + </CLASSES>
  130 + <JAVADOC />
  131 + <SOURCES />
  132 + </library>
  133 + </orderEntry>
  134 + <orderEntry type="module-library">
  135 + <library>
  136 + <CLASSES>
  137 + <root url="jar://$MODULE_DIR$/../../jar/imf/aopalliance-1.0.jar!/" />
  138 + </CLASSES>
  139 + <JAVADOC />
  140 + <SOURCES />
  141 + </library>
  142 + </orderEntry>
  143 + <orderEntry type="module-library">
  144 + <library>
  145 + <CLASSES>
  146 + <root url="jar://$MODULE_DIR$/../../jar/imf/asm-3.3.jar!/" />
  147 + </CLASSES>
  148 + <JAVADOC />
  149 + <SOURCES />
  150 + </library>
  151 + </orderEntry>
  152 + <orderEntry type="module-library">
  153 + <library>
  154 + <CLASSES>
  155 + <root url="jar://$MODULE_DIR$/../../jar/imf/bcprov-jdk15-1.45.jar!/" />
  156 + </CLASSES>
  157 + <JAVADOC />
  158 + <SOURCES />
  159 + </library>
  160 + </orderEntry>
  161 + <orderEntry type="module-library">
  162 + <library>
  163 + <CLASSES>
  164 + <root url="jar://$MODULE_DIR$/../../jar/imf/CL3Export.jar!/" />
  165 + </CLASSES>
  166 + <JAVADOC />
  167 + <SOURCES />
  168 + </library>
  169 + </orderEntry>
  170 + <orderEntry type="module-library">
  171 + <library>
  172 + <CLASSES>
  173 + <root url="jar://$MODULE_DIR$/../../jar/imf/CL3Nonexport.jar!/" />
  174 + </CLASSES>
  175 + <JAVADOC />
  176 + <SOURCES />
  177 + </library>
  178 + </orderEntry>
  179 + <orderEntry type="module-library">
  180 + <library>
  181 + <CLASSES>
  182 + <root url="jar://$MODULE_DIR$/../../jar/imf/com.ibm.mq.axis2.jar!/" />
  183 + </CLASSES>
  184 + <JAVADOC />
  185 + <SOURCES />
  186 + </library>
  187 + </orderEntry>
  188 + <orderEntry type="module-library">
  189 + <library>
  190 + <CLASSES>
  191 + <root url="jar://$MODULE_DIR$/../../jar/imf/com.ibm.mq.commonservices.jar!/" />
  192 + </CLASSES>
  193 + <JAVADOC />
  194 + <SOURCES />
  195 + </library>
  196 + </orderEntry>
  197 + <orderEntry type="module-library">
  198 + <library>
  199 + <CLASSES>
  200 + <root url="jar://$MODULE_DIR$/../../jar/imf/com.ibm.mq.defaultconfig.jar!/" />
  201 + </CLASSES>
  202 + <JAVADOC />
  203 + <SOURCES />
  204 + </library>
  205 + </orderEntry>
  206 + <orderEntry type="module-library">
  207 + <library>
  208 + <CLASSES>
  209 + <root url="jar://$MODULE_DIR$/../../jar/imf/com.ibm.mq.fta.jar!/" />
  210 + </CLASSES>
  211 + <JAVADOC />
  212 + <SOURCES />
  213 + </library>
  214 + </orderEntry>
  215 + <orderEntry type="module-library">
  216 + <library>
  217 + <CLASSES>
  218 + <root url="jar://$MODULE_DIR$/../../jar/imf/com.ibm.mq.headers.jar!/" />
  219 + </CLASSES>
  220 + <JAVADOC />
  221 + <SOURCES />
  222 + </library>
  223 + </orderEntry>
  224 + <orderEntry type="module-library">
  225 + <library>
  226 + <CLASSES>
  227 + <root url="jar://$MODULE_DIR$/../../jar/imf/com.ibm.mq.jar!/" />
  228 + </CLASSES>
  229 + <JAVADOC />
  230 + <SOURCES />
  231 + </library>
  232 + </orderEntry>
  233 + <orderEntry type="module-library">
  234 + <library>
  235 + <CLASSES>
  236 + <root url="jar://$MODULE_DIR$/../../jar/imf/com.ibm.mq.jmqi.jar!/" />
  237 + </CLASSES>
  238 + <JAVADOC />
  239 + <SOURCES>
  240 + <root url="jar://$MODULE_DIR$/../../jar/imf/com.ibm.mq.jmqi.jar!/" />
  241 + </SOURCES>
  242 + </library>
  243 + </orderEntry>
  244 + <orderEntry type="module-library">
  245 + <library>
  246 + <CLASSES>
  247 + <root url="jar://$MODULE_DIR$/../../jar/imf/com.ibm.mq.jms.Nojndi.jar!/" />
  248 + </CLASSES>
  249 + <JAVADOC />
  250 + <SOURCES />
  251 + </library>
  252 + </orderEntry>
  253 + <orderEntry type="module-library">
  254 + <library>
  255 + <CLASSES>
  256 + <root url="jar://$MODULE_DIR$/../../jar/imf/com.ibm.mq.soap.jar!/" />
  257 + </CLASSES>
  258 + <JAVADOC />
  259 + <SOURCES />
  260 + </library>
  261 + </orderEntry>
  262 + <orderEntry type="module-library">
  263 + <library>
  264 + <CLASSES>
  265 + <root url="jar://$MODULE_DIR$/../../jar/imf/com.ibm.mq.tools.ras.jar!/" />
  266 + </CLASSES>
  267 + <JAVADOC />
  268 + <SOURCES />
  269 + </library>
  270 + </orderEntry>
  271 + <orderEntry type="module-library">
  272 + <library>
  273 + <CLASSES>
  274 + <root url="jar://$MODULE_DIR$/../../jar/imf/com.ibm.mq.postcard.jar!/" />
  275 + </CLASSES>
  276 + <JAVADOC />
  277 + <SOURCES />
  278 + </library>
  279 + </orderEntry>
  280 + <orderEntry type="module-library">
  281 + <library>
  282 + <CLASSES>
  283 + <root url="jar://$MODULE_DIR$/../../jar/imf/com.ibm.mqjms.jar!/" />
  284 + </CLASSES>
  285 + <JAVADOC />
  286 + <SOURCES />
  287 + </library>
  288 + </orderEntry>
  289 + <orderEntry type="module-library">
  290 + <library>
  291 + <CLASSES>
  292 + <root url="jar://$MODULE_DIR$/../../jar/imf/com.ibm.mqetclient.jar!/" />
  293 + </CLASSES>
  294 + <JAVADOC />
  295 + <SOURCES />
  296 + </library>
  297 + </orderEntry>
  298 + <orderEntry type="module-library">
  299 + <library>
  300 + <CLASSES>
  301 + <root url="jar://$MODULE_DIR$/../../jar/imf/com.ibm.mq.pcf.jar!/" />
  302 + </CLASSES>
  303 + <JAVADOC />
  304 + <SOURCES />
  305 + </library>
  306 + </orderEntry>
  307 + <orderEntry type="module-library">
  308 + <library>
  309 + <CLASSES>
  310 + <root url="jar://$MODULE_DIR$/../../jar/imf/commons-collections-3.2.1.jar!/" />
  311 + </CLASSES>
  312 + <JAVADOC />
  313 + <SOURCES />
  314 + </library>
  315 + </orderEntry>
  316 + <orderEntry type="module-library">
  317 + <library>
  318 + <CLASSES>
  319 + <root url="jar://$MODULE_DIR$/../../jar/imf/commons-lang-2.5.jar!/" />
  320 + </CLASSES>
  321 + <JAVADOC />
  322 + <SOURCES />
  323 + </library>
  324 + </orderEntry>
  325 + <orderEntry type="module-library">
  326 + <library>
  327 + <CLASSES>
  328 + <root url="jar://$MODULE_DIR$/../../jar/imf/commons-logging-1.1.1.jar!/" />
  329 + </CLASSES>
  330 + <JAVADOC />
  331 + <SOURCES />
  332 + </library>
  333 + </orderEntry>
  334 + <orderEntry type="module-library">
  335 + <library>
  336 + <CLASSES>
  337 + <root url="jar://$MODULE_DIR$/../../jar/imf/commons-pool-1.5.5.jar!/" />
  338 + </CLASSES>
  339 + <JAVADOC />
  340 + <SOURCES />
  341 + </library>
  342 + </orderEntry>
  343 + <orderEntry type="module-library">
  344 + <library>
  345 + <CLASSES>
  346 + <root url="jar://$MODULE_DIR$/../../jar/imf/connector.jar!/" />
  347 + </CLASSES>
  348 + <JAVADOC />
  349 + <SOURCES />
  350 + </library>
  351 + </orderEntry>
  352 + <orderEntry type="module-library">
  353 + <library>
  354 + <CLASSES>
  355 + <root url="jar://$MODULE_DIR$/../../jar/imf/cxf-2.3.2.jar!/" />
  356 + </CLASSES>
  357 + <JAVADOC />
  358 + <SOURCES />
  359 + </library>
  360 + </orderEntry>
  361 + <orderEntry type="module-library">
  362 + <library>
  363 + <CLASSES>
  364 + <root url="jar://$MODULE_DIR$/../../jar/imf/cxf-xjc-boolean-2.3.2.jar!/" />
  365 + </CLASSES>
  366 + <JAVADOC />
  367 + <SOURCES />
  368 + </library>
  369 + </orderEntry>
  370 + <orderEntry type="module-library">
  371 + <library>
  372 + <CLASSES>
  373 + <root url="jar://$MODULE_DIR$/../../jar/imf/cxf-xjc-bug671-2.3.2.jar!/" />
  374 + </CLASSES>
  375 + <JAVADOC />
  376 + <SOURCES />
  377 + </library>
  378 + </orderEntry>
  379 + <orderEntry type="module-library">
  380 + <library>
  381 + <CLASSES>
  382 + <root url="jar://$MODULE_DIR$/../../jar/imf/cxf-xjc-dv-2.3.2.jar!/" />
  383 + </CLASSES>
  384 + <JAVADOC />
  385 + <SOURCES />
  386 + </library>
  387 + </orderEntry>
  388 + <orderEntry type="module-library">
  389 + <library>
  390 + <CLASSES>
  391 + <root url="jar://$MODULE_DIR$/../../jar/imf/cxf-xjc-ts-2.3.2.jar!/" />
  392 + </CLASSES>
  393 + <JAVADOC />
  394 + <SOURCES />
  395 + </library>
  396 + </orderEntry>
  397 + <orderEntry type="module-library">
  398 + <library>
  399 + <CLASSES>
  400 + <root url="jar://$MODULE_DIR$/../../jar/imf/dhbcore.jar!/" />
  401 + </CLASSES>
  402 + <JAVADOC />
  403 + <SOURCES />
  404 + </library>
  405 + </orderEntry>
  406 + <orderEntry type="module-library">
  407 + <library>
  408 + <CLASSES>
  409 + <root url="jar://$MODULE_DIR$/../../jar/imf/FastInfoset-1.2.8.jar!/" />
  410 + </CLASSES>
  411 + <JAVADOC />
  412 + <SOURCES />
  413 + </library>
  414 + </orderEntry>
  415 + <orderEntry type="module-library">
  416 + <library>
  417 + <CLASSES>
  418 + <root url="jar://$MODULE_DIR$/../../jar/imf/fscontext.jar!/" />
  419 + </CLASSES>
  420 + <JAVADOC />
  421 + <SOURCES />
  422 + </library>
  423 + </orderEntry>
  424 + <orderEntry type="module-library">
  425 + <library>
  426 + <CLASSES>
  427 + <root url="jar://$MODULE_DIR$/../../jar/imf/geronimo-activation_1.1_spec-1.1.jar!/" />
  428 + </CLASSES>
  429 + <JAVADOC />
  430 + <SOURCES />
  431 + </library>
  432 + </orderEntry>
  433 + <orderEntry type="module-library">
  434 + <library>
  435 + <CLASSES>
  436 + <root url="jar://$MODULE_DIR$/../../jar/imf/geronimo-annotation_1.0_spec-1.1.1.jar!/" />
  437 + </CLASSES>
  438 + <JAVADOC />
  439 + <SOURCES />
  440 + </library>
  441 + </orderEntry>
  442 + <orderEntry type="module-library">
  443 + <library>
  444 + <CLASSES>
  445 + <root url="jar://$MODULE_DIR$/../../jar/imf/geronimo-javamail_1.4_spec-1.7.1.jar!/" />
  446 + </CLASSES>
  447 + <JAVADOC />
  448 + <SOURCES />
  449 + </library>
  450 + </orderEntry>
  451 + <orderEntry type="module-library">
  452 + <library>
  453 + <CLASSES>
  454 + <root url="jar://$MODULE_DIR$/../../jar/imf/geronimo-jaxws_2.2_spec-1.0.jar!/" />
  455 + </CLASSES>
  456 + <JAVADOC />
  457 + <SOURCES />
  458 + </library>
  459 + </orderEntry>
  460 + <orderEntry type="module-library">
  461 + <library>
  462 + <CLASSES>
  463 + <root url="jar://$MODULE_DIR$/../../jar/imf/geronimo-jms_1.1_spec-1.1.1.jar!/" />
  464 + </CLASSES>
  465 + <JAVADOC />
  466 + <SOURCES />
  467 + </library>
  468 + </orderEntry>
  469 + <orderEntry type="module-library">
  470 + <library>
  471 + <CLASSES>
  472 + <root url="jar://$MODULE_DIR$/../../jar/imf/geronimo-servlet_3.0_spec-1.0.jar!/" />
  473 + </CLASSES>
  474 + <JAVADOC />
  475 + <SOURCES />
  476 + </library>
  477 + </orderEntry>
  478 + <orderEntry type="module-library">
  479 + <library>
  480 + <CLASSES>
  481 + <root url="jar://$MODULE_DIR$/../../jar/imf/geronimo-stax-api_1.0_spec-1.0.1.jar!/" />
  482 + </CLASSES>
  483 + <JAVADOC />
  484 + <SOURCES />
  485 + </library>
  486 + </orderEntry>
  487 + <orderEntry type="module-library">
  488 + <library>
  489 + <CLASSES>
  490 + <root url="jar://$MODULE_DIR$/../../jar/imf/geronimo-ws-metadata_2.0_spec-1.1.3.jar!/" />
  491 + </CLASSES>
  492 + <JAVADOC />
  493 + <SOURCES />
  494 + </library>
  495 + </orderEntry>
  496 + <orderEntry type="module-library">
  497 + <library>
  498 + <CLASSES>
  499 + <root url="jar://$MODULE_DIR$/../../jar/imf/jaxb-api-2.2.1.jar!/" />
  500 + </CLASSES>
  501 + <JAVADOC />
  502 + <SOURCES />
  503 + </library>
  504 + </orderEntry>
  505 + <orderEntry type="module-library">
  506 + <library>
  507 + <CLASSES>
  508 + <root url="jar://$MODULE_DIR$/../../jar/imf/jaxb-impl-2.2.1.1.jar!/" />
  509 + </CLASSES>
  510 + <JAVADOC />
  511 + <SOURCES />
  512 + </library>
  513 + </orderEntry>
  514 + <orderEntry type="module-library">
  515 + <library>
  516 + <CLASSES>
  517 + <root url="jar://$MODULE_DIR$/../../jar/imf/jaxb-xjc-2.2.1.1.jar!/" />
  518 + </CLASSES>
  519 + <JAVADOC />
  520 + <SOURCES>
  521 + <root url="jar://$MODULE_DIR$/../../jar/imf/jaxb-xjc-2.2.1.1.jar!/1.0" />
  522 + </SOURCES>
  523 + </library>
  524 + </orderEntry>
  525 + <orderEntry type="module-library">
  526 + <library>
  527 + <CLASSES>
  528 + <root url="jar://$MODULE_DIR$/../../jar/imf/jettison-1.2.jar!/" />
  529 + </CLASSES>
  530 + <JAVADOC />
  531 + <SOURCES />
  532 + </library>
  533 + </orderEntry>
  534 + <orderEntry type="module-library">
  535 + <library>
  536 + <CLASSES>
  537 + <root url="jar://$MODULE_DIR$/../../jar/imf/jetty-continuation-7.2.2.v20101205.jar!/" />
  538 + </CLASSES>
  539 + <JAVADOC />
  540 + <SOURCES />
  541 + </library>
  542 + </orderEntry>
  543 + <orderEntry type="module-library">
  544 + <library>
  545 + <CLASSES>
  546 + <root url="jar://$MODULE_DIR$/../../jar/imf/jetty-http-7.2.2.v20101205.jar!/" />
  547 + </CLASSES>
  548 + <JAVADOC />
  549 + <SOURCES />
  550 + </library>
  551 + </orderEntry>
  552 + <orderEntry type="module-library">
  553 + <library>
  554 + <CLASSES>
  555 + <root url="jar://$MODULE_DIR$/../../jar/imf/jetty-io-7.2.2.v20101205.jar!/" />
  556 + </CLASSES>
  557 + <JAVADOC />
  558 + <SOURCES />
  559 + </library>
  560 + </orderEntry>
  561 + <orderEntry type="module-library">
  562 + <library>
  563 + <CLASSES>
  564 + <root url="jar://$MODULE_DIR$/../../jar/imf/jetty-server-7.2.2.v20101205.jar!/" />
  565 + </CLASSES>
  566 + <JAVADOC />
  567 + <SOURCES />
  568 + </library>
  569 + </orderEntry>
  570 + <orderEntry type="module-library">
  571 + <library>
  572 + <CLASSES>
  573 + <root url="jar://$MODULE_DIR$/../../jar/imf/jetty-util-7.2.2.v20101205.jar!/" />
  574 + </CLASSES>
  575 + <JAVADOC />
  576 + <SOURCES />
  577 + </library>
  578 + </orderEntry>
  579 + <orderEntry type="module-library">
  580 + <library>
  581 + <CLASSES>
  582 + <root url="jar://$MODULE_DIR$/../../jar/imf/jms.jar!/" />
  583 + </CLASSES>
  584 + <JAVADOC />
  585 + <SOURCES />
  586 + </library>
  587 + </orderEntry>
  588 + <orderEntry type="module-library">
  589 + <library>
  590 + <CLASSES>
  591 + <root url="jar://$MODULE_DIR$/../../jar/imf/jndi.jar!/" />
  592 + </CLASSES>
  593 + <JAVADOC />
  594 + <SOURCES />
  595 + </library>
  596 + </orderEntry>
  597 + <orderEntry type="module-library">
  598 + <library>
  599 + <CLASSES>
  600 + <root url="jar://$MODULE_DIR$/../../jar/imf/jra-1.0-alpha-4.jar!/" />
  601 + </CLASSES>
  602 + <JAVADOC />
  603 + <SOURCES />
  604 + </library>
  605 + </orderEntry>
  606 + <orderEntry type="module-library">
  607 + <library>
  608 + <CLASSES>
  609 + <root url="jar://$MODULE_DIR$/../../jar/imf/js-1.7R2.jar!/" />
  610 + </CLASSES>
  611 + <JAVADOC />
  612 + <SOURCES />
  613 + </library>
  614 + </orderEntry>
  615 + <orderEntry type="module-library">
  616 + <library>
  617 + <CLASSES>
  618 + <root url="jar://$MODULE_DIR$/../../jar/imf/jsr173_1.0_api.jar!/" />
  619 + </CLASSES>
  620 + <JAVADOC />
  621 + <SOURCES />
  622 + </library>
  623 + </orderEntry>
  624 + <orderEntry type="module-library">
  625 + <library>
  626 + <CLASSES>
  627 + <root url="jar://$MODULE_DIR$/../../jar/imf/jsr311-api-1.1.1.jar!/" />
  628 + </CLASSES>
  629 + <JAVADOC />
  630 + <SOURCES />
  631 + </library>
  632 + </orderEntry>
  633 + <orderEntry type="module-library">
  634 + <library>
  635 + <CLASSES>
  636 + <root url="jar://$MODULE_DIR$/../../jar/imf/jta.jar!/" />
  637 + </CLASSES>
  638 + <JAVADOC />
  639 + <SOURCES />
  640 + </library>
  641 + </orderEntry>
  642 + <orderEntry type="module-library">
  643 + <library>
  644 + <CLASSES>
  645 + <root url="jar://$MODULE_DIR$/../../jar/imf/ldap.jar!/" />
  646 + </CLASSES>
  647 + <JAVADOC />
  648 + <SOURCES />
  649 + </library>
  650 + </orderEntry>
  651 + <orderEntry type="module-library">
  652 + <library>
  653 + <CLASSES>
  654 + <root url="jar://$MODULE_DIR$/../../jar/imf/neethi-2.0.4.jar!/" />
  655 + </CLASSES>
  656 + <JAVADOC />
  657 + <SOURCES />
  658 + </library>
  659 + </orderEntry>
  660 + <orderEntry type="module-library">
  661 + <library>
  662 + <CLASSES>
  663 + <root url="jar://$MODULE_DIR$/../../jar/imf/oro-2.0.8.jar!/" />
  664 + </CLASSES>
  665 + <JAVADOC />
  666 + <SOURCES />
  667 + </library>
  668 + </orderEntry>
  669 + <orderEntry type="module-library">
  670 + <library>
  671 + <CLASSES>
  672 + <root url="jar://$MODULE_DIR$/../../jar/imf/providerutil.jar!/" />
  673 + </CLASSES>
  674 + <JAVADOC />
  675 + <SOURCES />
  676 + </library>
  677 + </orderEntry>
  678 + <orderEntry type="module-library">
  679 + <library>
  680 + <CLASSES>
  681 + <root url="jar://$MODULE_DIR$/../../jar/imf/resolver.jar!/" />
  682 + </CLASSES>
  683 + <JAVADOC />
  684 + <SOURCES />
  685 + </library>
  686 + </orderEntry>
  687 + <orderEntry type="module-library">
  688 + <library>
  689 + <CLASSES>
  690 + <root url="jar://$MODULE_DIR$/../../jar/imf/rmm.jar!/" />
  691 + </CLASSES>
  692 + <JAVADOC />
  693 + <SOURCES />
  694 + </library>
  695 + </orderEntry>
  696 + <orderEntry type="module-library">
  697 + <library>
  698 + <CLASSES>
  699 + <root url="jar://$MODULE_DIR$/../../jar/imf/saaj-api-1.3.jar!/" />
  700 + </CLASSES>
  701 + <JAVADOC />
  702 + <SOURCES />
  703 + </library>
  704 + </orderEntry>
  705 + <orderEntry type="module-library">
  706 + <library>
  707 + <CLASSES>
  708 + <root url="jar://$MODULE_DIR$/../../jar/imf/saaj-impl-1.3.2.jar!/" />
  709 + </CLASSES>
  710 + <JAVADOC />
  711 + <SOURCES />
  712 + </library>
  713 + </orderEntry>
  714 + <orderEntry type="module-library">
  715 + <library>
  716 + <CLASSES>
  717 + <root url="jar://$MODULE_DIR$/../../jar/imf/serializer-2.7.1.jar!/" />
  718 + </CLASSES>
  719 + <JAVADOC />
  720 + <SOURCES />
  721 + </library>
  722 + </orderEntry>
  723 + <orderEntry type="module-library">
  724 + <library>
  725 + <CLASSES>
  726 + <root url="jar://$MODULE_DIR$/../../jar/imf/sigar.jar!/" />
  727 + </CLASSES>
  728 + <JAVADOC />
  729 + <SOURCES />
  730 + </library>
  731 + </orderEntry>
  732 + <orderEntry type="module-library">
  733 + <library>
  734 + <CLASSES>
  735 + <root url="jar://$MODULE_DIR$/../../jar/imf/stax2-api-3.0.2.jar!/" />
  736 + </CLASSES>
  737 + <JAVADOC />
  738 + <SOURCES />
  739 + </library>
  740 + </orderEntry>
  741 + <orderEntry type="module-library">
  742 + <library>
  743 + <CLASSES>
  744 + <root url="jar://$MODULE_DIR$/../../jar/imf/stringtemplate-3.2.jar!/" />
  745 + </CLASSES>
  746 + <JAVADOC />
  747 + <SOURCES />
  748 + </library>
  749 + </orderEntry>
  750 + <orderEntry type="module-library">
  751 + <library>
  752 + <CLASSES>
  753 + <root url="jar://$MODULE_DIR$/../../jar/imf/velocity-1.6.4.jar!/" />
  754 + </CLASSES>
  755 + <JAVADOC />
  756 + <SOURCES />
  757 + </library>
  758 + </orderEntry>
  759 + <orderEntry type="module-library">
  760 + <library>
  761 + <CLASSES>
  762 + <root url="jar://$MODULE_DIR$/../../jar/imf/woodstox-core-asl-4.0.8.jar!/" />
  763 + </CLASSES>
  764 + <JAVADOC />
  765 + <SOURCES />
  766 + </library>
  767 + </orderEntry>
  768 + <orderEntry type="module-library">
  769 + <library>
  770 + <CLASSES>
  771 + <root url="jar://$MODULE_DIR$/../../jar/imf/wsdl4j-1.6.2.jar!/" />
  772 + </CLASSES>
  773 + <JAVADOC />
  774 + <SOURCES />
  775 + </library>
  776 + </orderEntry>
  777 + <orderEntry type="module-library">
  778 + <library>
  779 + <CLASSES>
  780 + <root url="jar://$MODULE_DIR$/../../jar/imf/wss4j-1.5.11.jar!/" />
  781 + </CLASSES>
  782 + <JAVADOC />
  783 + <SOURCES />
  784 + </library>
  785 + </orderEntry>
  786 + <orderEntry type="module-library">
  787 + <library>
  788 + <CLASSES>
  789 + <root url="jar://$MODULE_DIR$/../../jar/imf/xalan-2.7.1.jar!/" />
  790 + </CLASSES>
  791 + <JAVADOC />
  792 + <SOURCES />
  793 + </library>
  794 + </orderEntry>
  795 + <orderEntry type="module-library">
  796 + <library>
  797 + <CLASSES>
  798 + <root url="jar://$MODULE_DIR$/../../jar/imf/xbean.jar!/" />
  799 + </CLASSES>
  800 + <JAVADOC />
  801 + <SOURCES />
  802 + </library>
  803 + </orderEntry>
  804 + <orderEntry type="module-library">
  805 + <library>
  806 + <CLASSES>
  807 + <root url="jar://$MODULE_DIR$/../../jar/imf/xbean_xpath.jar!/" />
  808 + </CLASSES>
  809 + <JAVADOC />
  810 + <SOURCES />
  811 + </library>
  812 + </orderEntry>
  813 + <orderEntry type="module-library">
  814 + <library>
  815 + <CLASSES>
  816 + <root url="jar://$MODULE_DIR$/../../jar/imf/xml-resolver-1.2.jar!/" />
  817 + </CLASSES>
  818 + <JAVADOC />
  819 + <SOURCES />
  820 + </library>
  821 + </orderEntry>
  822 + <orderEntry type="module-library">
  823 + <library>
  824 + <CLASSES>
  825 + <root url="jar://$MODULE_DIR$/../../jar/imf/xmlbeans-2.4.0.jar!/" />
  826 + </CLASSES>
  827 + <JAVADOC />
  828 + <SOURCES />
  829 + </library>
  830 + </orderEntry>
  831 + <orderEntry type="module-library">
  832 + <library>
  833 + <CLASSES>
  834 + <root url="jar://$MODULE_DIR$/../../jar/imf/xmlbeans-qname.jar!/" />
  835 + </CLASSES>
  836 + <JAVADOC />
  837 + <SOURCES />
  838 + </library>
  839 + </orderEntry>
  840 + <orderEntry type="module-library">
  841 + <library>
  842 + <CLASSES>
  843 + <root url="jar://$MODULE_DIR$/../../jar/imf/xmlpublic.jar!/" />
  844 + </CLASSES>
  845 + <JAVADOC />
  846 + <SOURCES />
  847 + </library>
  848 + </orderEntry>
  849 + <orderEntry type="module-library">
  850 + <library>
  851 + <CLASSES>
  852 + <root url="jar://$MODULE_DIR$/../../jar/imf/XmlSchema-1.4.7.jar!/" />
  853 + </CLASSES>
  854 + <JAVADOC />
  855 + <SOURCES />
  856 + </library>
  857 + </orderEntry>
  858 + <orderEntry type="module-library">
  859 + <library>
  860 + <CLASSES>
  861 + <root url="jar://$MODULE_DIR$/../../jar/imf/xmlsec-1.4.4.jar!/" />
  862 + </CLASSES>
  863 + <JAVADOC />
  864 + <SOURCES />
  865 + </library>
  866 + </orderEntry>
  867 + <orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-frontend-jaxws:2.7.11" level="project" />
  868 + <orderEntry type="library" name="Maven: xml-resolver:xml-resolver:1.2" level="project" />
  869 + <orderEntry type="library" name="Maven: asm:asm:3.3.1" level="project" />
  870 + <orderEntry type="library" name="Maven: org.apache.cxf:cxf-api:2.7.11" level="project" />
  871 + <orderEntry type="library" name="Maven: org.codehaus.woodstox:woodstox-core-asl:4.2.1" level="project" />
  872 + <orderEntry type="library" name="Maven: org.codehaus.woodstox:stax2-api:3.1.4" level="project" />
  873 + <orderEntry type="library" name="Maven: org.apache.ws.xmlschema:xmlschema-core:2.1.0" level="project" />
  874 + <orderEntry type="library" name="Maven: org.apache.geronimo.specs:geronimo-javamail_1.4_spec:1.7.1" level="project" />
  875 + <orderEntry type="library" name="Maven: wsdl4j:wsdl4j:1.6.3" level="project" />
  876 + <orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-core:2.7.11" level="project" />
  877 + <orderEntry type="library" name="Maven: com.sun.xml.bind:jaxb-impl:2.1.13" level="project" />
  878 + <orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-bindings-soap:2.7.11" level="project" />
  879 + <orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-databinding-jaxb:2.7.11" level="project" />
  880 + <orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-bindings-xml:2.7.11" level="project" />
  881 + <orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-frontend-simple:2.7.11" level="project" />
  882 + <orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-ws-addr:2.7.11" level="project" />
  883 + <orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-ws-policy:2.7.11" level="project" />
  884 + <orderEntry type="library" name="Maven: org.apache.neethi:neethi:3.0.3" level="project" />
  885 + <orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-transports-http:2.7.5" level="project" />
  886 + <orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-ws-security:2.7.5" level="project" />
  887 + <orderEntry type="library" name="Maven: org.apache.ws.security:wss4j:1.6.10" level="project" />
  888 + <orderEntry type="library" name="Maven: org.apache.santuario:xmlsec:1.5.4" level="project" />
  889 + <orderEntry type="library" name="Maven: org.opensaml:opensaml:2.5.1-1" level="project" />
  890 + <orderEntry type="library" name="Maven: org.opensaml:openws:1.4.2-1" level="project" />
  891 + <orderEntry type="library" name="Maven: org.opensaml:xmltooling:1.3.2-1" level="project" />
  892 + <orderEntry type="library" name="Maven: commons-logging:commons-logging:1.1.1" level="project" />
  893 + <orderEntry type="library" scope="PROVIDED" name="Maven: javax.servlet:javax.servlet-api:3.0.1" level="project" />
  894 + <orderEntry type="library" name="Maven: javax.transaction:jta:1.1" level="project" />
  895 + <orderEntry type="library" name="Maven: jstl:jstl:1.2" level="project" />
  896 + <orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.16" level="project" />
  897 + <orderEntry type="library" name="Maven: junit:junit:4.12" level="project" />
  898 + <orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
  899 + <orderEntry type="library" name="Maven: commons-codec:commons-codec:1.10" level="project" />
  900 + <orderEntry type="library" name="Maven: com.google.guava:guava:19.0" level="project" />
  901 + <orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.13" level="project" />
  902 + <orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.5" level="project" />
  903 + <orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-core:2.5" level="project" />
  904 + <orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-slf4j-impl:2.5" level="project" />
  905 + <orderEntry type="library" name="Maven: org.springframework:spring-context:4.2.4.RELEASE" level="project" />
  906 + <orderEntry type="library" name="Maven: org.springframework:spring-beans:4.2.4.RELEASE" level="project" />
  907 + <orderEntry type="library" name="Maven: org.springframework:spring-core:4.2.4.RELEASE" level="project" />
  908 + <orderEntry type="library" name="Maven: org.springframework:spring-expression:4.2.4.RELEASE" level="project" />
  909 + <orderEntry type="library" name="Maven: org.springframework:spring-context-support:4.2.4.RELEASE" level="project" />
  910 + <orderEntry type="library" name="Maven: org.springframework:spring-aop:4.2.4.RELEASE" level="project" />
  911 + <orderEntry type="library" name="Maven: aopalliance:aopalliance:1.0" level="project" />
  912 + <orderEntry type="library" name="Maven: org.springframework:spring-aspects:4.2.4.RELEASE" level="project" />
  913 + <orderEntry type="library" name="Maven: org.aspectj:aspectjweaver:1.8.7" level="project" />
  914 + <orderEntry type="library" name="Maven: org.springframework:spring-tx:4.2.4.RELEASE" level="project" />
  915 + <orderEntry type="library" name="Maven: org.springframework:spring-web:4.2.4.RELEASE" level="project" />
  916 + <orderEntry type="library" name="Maven: org.springframework:spring-webmvc:4.2.4.RELEASE" level="project" />
  917 + <orderEntry type="library" name="Maven: org.springframework.data:spring-data-jpa:1.9.2.RELEASE" level="project" />
  918 + <orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:1.11.2.RELEASE" level="project" />
  919 + <orderEntry type="library" name="Maven: org.springframework:spring-orm:4.1.9.RELEASE" level="project" />
  920 + <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:4.1.9.RELEASE" level="project" />
  921 + <orderEntry type="library" name="Maven: org.aspectj:aspectjrt:1.8.7" level="project" />
  922 + <orderEntry type="library" scope="RUNTIME" name="Maven: org.slf4j:jcl-over-slf4j:1.7.13" level="project" />
  923 + <orderEntry type="library" scope="TEST" name="Maven: org.springframework:spring-test:4.2.4.RELEASE" level="project" />
  924 + <orderEntry type="library" name="Maven: org.hibernate:hibernate-core:5.0.6.Final" level="project" />
  925 + <orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.3.0.Final" level="project" />
  926 + <orderEntry type="library" name="Maven: org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.0.Final" level="project" />
  927 + <orderEntry type="library" name="Maven: org.javassist:javassist:3.18.1-GA" level="project" />
  928 + <orderEntry type="library" name="Maven: antlr:antlr:2.7.7" level="project" />
  929 + <orderEntry type="library" name="Maven: org.jboss:jandex:2.0.0.Final" level="project" />
  930 + <orderEntry type="library" name="Maven: dom4j:dom4j:1.6.1" level="project" />
  931 + <orderEntry type="library" name="Maven: xml-apis:xml-apis:1.0.b2" level="project" />
  932 + <orderEntry type="library" name="Maven: org.hibernate.common:hibernate-commons-annotations:5.0.1.Final" level="project" />
  933 + <orderEntry type="library" name="Maven: org.hibernate:hibernate-entitymanager:5.0.6.Final" level="project" />
  934 + <orderEntry type="library" name="Maven: org.hibernate:hibernate-ehcache:5.0.6.Final" level="project" />
  935 + <orderEntry type="library" name="Maven: mysql:mysql-connector-java:5.1.38" level="project" />
  936 + <orderEntry type="library" name="Maven: com.alibaba:druid:1.0.16" level="project" />
  937 + <orderEntry type="module-library">
  938 + <library name="Maven: com.alibaba:jconsole:1.8.0">
  939 + <CLASSES>
  940 + <root url="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/lib/jconsole.jar!/" />
  941 + </CLASSES>
  942 + <JAVADOC />
  943 + <SOURCES />
  944 + </library>
  945 + </orderEntry>
  946 + <orderEntry type="module-library">
  947 + <library name="Maven: com.alibaba:tools:1.8.0">
  948 + <CLASSES>
  949 + <root url="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/lib/tools.jar!/" />
  950 + </CLASSES>
  951 + <JAVADOC />
  952 + <SOURCES />
  953 + </library>
  954 + </orderEntry>
  955 + <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.6.4" level="project" />
  956 + <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.6.0" level="project" />
  957 + <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.6.4" level="project" />
  958 + <orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.6.4" level="project" />
  959 + <orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-joda:2.6.4" level="project" />
  960 + <orderEntry type="library" name="Maven: joda-time:joda-time:2.2" level="project" />
  961 + <orderEntry type="library" name="Maven: org.codehaus.jackson:jackson-mapper-asl:1.9.13" level="project" />
  962 + <orderEntry type="library" name="Maven: org.codehaus.jackson:jackson-core-asl:1.9.13" level="project" />
  963 + <orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.4" level="project" />
  964 + <orderEntry type="library" name="Maven: commons-fileupload:commons-fileupload:1.3.1" level="project" />
  965 + <orderEntry type="library" name="Maven: commons-io:commons-io:2.2" level="project" />
  966 + <orderEntry type="library" name="Maven: net.sf.ehcache:ehcache-core:2.6.8" level="project" />
  967 + <orderEntry type="library" name="Maven: org.apache.shiro:shiro-core:1.2.3" level="project" />
  968 + <orderEntry type="library" name="Maven: commons-beanutils:commons-beanutils:1.8.3" level="project" />
  969 + <orderEntry type="library" name="Maven: org.apache.shiro:shiro-web:1.2.3" level="project" />
  970 + <orderEntry type="library" name="Maven: org.apache.shiro:shiro-spring:1.2.3" level="project" />
  971 + <orderEntry type="library" name="Maven: org.apache.shiro:shiro-ehcache:1.2.3" level="project" />
  972 + <orderEntry type="library" name="Maven: org.apache.shiro:shiro-quartz:1.2.3" level="project" />
  973 + <orderEntry type="library" name="Maven: org.opensymphony.quartz:quartz:1.6.1" level="project" />
  974 + <orderEntry type="library" name="Maven: org.apache.shiro:shiro-cas:1.2.3" level="project" />
  975 + <orderEntry type="library" name="Maven: org.jasig.cas.client:cas-client-core:3.2.1" level="project" />
  976 + <orderEntry type="library" name="Maven: net.pusuo:patchca:0.5.0" level="project" />
  977 + <orderEntry type="library" name="Maven: com.oracle:ojdbc6:11.2.0.4.0-atlassian-hosted" level="project" />
  978 + <orderEntry type="library" name="Maven: net.sourceforge.jexcelapi:jxl:2.6.12" level="project" />
  979 + <orderEntry type="library" name="Maven: log4j:log4j:1.2.14" level="project" />
  980 + <orderEntry type="library" name="Maven: org.apache.poi:poi:3.14" level="project" />
  981 + <orderEntry type="library" name="Maven: javax.mail:mail:1.4" level="project" />
  982 + <orderEntry type="library" name="Maven: javax.activation:activation:1.1" level="project" />
  983 + <orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml:3.14" level="project" />
  984 + <orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml-schemas:3.14" level="project" />
  985 + <orderEntry type="library" name="Maven: org.apache.xmlbeans:xmlbeans:2.6.0" level="project" />
  986 + <orderEntry type="library" name="Maven: stax:stax-api:1.0.1" level="project" />
  987 + <orderEntry type="library" name="Maven: com.github.virtuald:curvesapi:1.03" level="project" />
  988 + <orderEntry type="library" name="Maven: commons-collections:commons-collections:3.2.1" level="project" />
  989 + <orderEntry type="library" name="Maven: org.apache.velocity:velocity:1.7" level="project" />
  990 + <orderEntry type="library" name="Maven: commons-lang:commons-lang:2.4" level="project" />
  991 + <orderEntry type="library" name="Maven: org.apache.velocity:velocity-tools:2.0" level="project" />
  992 + <orderEntry type="library" name="Maven: commons-digester:commons-digester:1.8" level="project" />
  993 + <orderEntry type="library" name="Maven: commons-chain:commons-chain:1.1" level="project" />
  994 + <orderEntry type="library" name="Maven: commons-validator:commons-validator:1.3.1" level="project" />
  995 + <orderEntry type="library" name="Maven: oro:oro:2.0.8" level="project" />
  996 + <orderEntry type="library" name="Maven: sslext:sslext:1.2-0" level="project" />
  997 + <orderEntry type="library" name="Maven: org.apache.struts:struts-core:1.3.8" level="project" />
  998 + <orderEntry type="library" name="Maven: org.apache.struts:struts-taglib:1.3.8" level="project" />
  999 + <orderEntry type="library" name="Maven: org.apache.struts:struts-tiles:1.3.8" level="project" />
  1000 + </component>
  1001 +</module>
  1 +########Log4j configuration#####################################
  2 +log4j.rootLogger=INFO, stdout, fileout
  3 +
  4 +
  5 +log4j.logger.com.fiscal = INFO
  6 +#*******************************
  7 +log4j.logger.com.system = INFO
  8 +#*******************************
  9 +
  10 +log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  11 +log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  12 +log4j.appender.stdout.layout.ConversionPattern=%d{MM-dd HH:mm:ss,SSSS}[%p] %m%n
  13 +
  14 +log4j.appender.fileout=org.apache.log4j.RollingFileAppender
  15 +log4j.appender.fileout.File=logs/debug.log
  16 +log4j.appender.fileout.MaxFileSize=50MB
  17 +log4j.appender.fileout.MaxBackupIndex=10
  18 +log4j.appender.fileout.layout=org.apache.log4j.PatternLayout
  19 +log4j.appender.fileout.layout.ConversionPattern=%d{MM-dd HH\:mm\:ss,SSSS}[%p] %m%n
  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 + <modelVersion>4.0.0</modelVersion>
  4 + <groupId>com.airport</groupId>
  5 + <artifactId>agent</artifactId>
  6 + <version>0.0.1-SNAPSHOT</version>
  7 + <url>http://maven.apache.org</url>
  8 + <packaging>war</packaging>
  9 + <!-- 设定除中央仓库 (repo1.maven.org/maven2/)外的其他仓库,按设定顺序进行查询,如有Nexus私服, 取消注释并指向正确的服务器地址 -->
  10 + <!-- <repositories> <repository> <id>public</id> <name>Public Repositories</name>
  11 + <url>http://maven.aliyun.com/nexus/content/groups/public</url> </repository>
  12 + </repositories> -->
  13 +
  14 + <!-- 主要依赖库版本定义 -->
  15 + <properties>
  16 + <servlet.version>3.0.1</servlet.version>
  17 + <jstl.version>1.2</jstl.version>
  18 + <jetty.version>6.1.10</jetty.version>
  19 + <junit.version>4.12</junit.version>
  20 + <spring.version>4.2.4.RELEASE</spring.version>
  21 + <spring-datajpa.version>1.9.2.RELEASE</spring-datajpa.version>
  22 + <hibernate.version>5.0.6.Final</hibernate.version>
  23 + <guava.version>19.0</guava.version>
  24 + <mysql-jdbc.version>5.1.38</mysql-jdbc.version>
  25 + <druid.version>1.0.16</druid.version>
  26 + <ehcache.version>2.6.8</ehcache.version>
  27 + <slf4j.version>1.7.13</slf4j.version>
  28 + <log4j.version>2.5</log4j.version>
  29 + <jackson.version>2.6.4</jackson.version>
  30 + <commons-lang3.version>3.4</commons-lang3.version>
  31 + <commons-fileupload.version>1.3.1</commons-fileupload.version>
  32 + <commons-codec.version>1.10</commons-codec.version>
  33 + <shiro.version>1.2.3</shiro.version>
  34 + <cxf.version>2.7.5</cxf.version>
  35 + <patchca.version>0.5.0</patchca.version>
  36 + <jxl.version>2.6.12</jxl.version>
  37 + <poi.version>3.14</poi.version>
  38 + <velocity.version>1.7</velocity.version>
  39 +
  40 + <!-- Plugin的属性定义 -->
  41 + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  42 + <jdk.version>1.7</jdk.version>
  43 + </properties>
  44 +
  45 +
  46 +
  47 + <dependencies>
  48 +
  49 + <!-- Apache CXF -->
  50 + <dependency>
  51 + <groupId>org.apache.cxf</groupId>
  52 + <artifactId>cxf-rt-frontend-jaxws</artifactId>
  53 + <version>${cxf.version}</version>
  54 + </dependency>
  55 + <dependency>
  56 + <groupId>org.apache.cxf</groupId>
  57 + <artifactId>cxf-rt-transports-http</artifactId>
  58 + <version>${cxf.version}</version>
  59 + </dependency>
  60 + <dependency>
  61 + <groupId>org.apache.cxf</groupId>
  62 + <artifactId>cxf-rt-ws-security</artifactId>
  63 + <version>${cxf.version}</version>
  64 + </dependency>
  65 +
  66 + <!-- Servlet Runtime -->
  67 + <dependency>
  68 + <groupId>javax.servlet</groupId>
  69 + <artifactId>javax.servlet-api</artifactId>
  70 + <version>${servlet.version}</version>
  71 + <scope>provided</scope>
  72 + </dependency>
  73 +
  74 + <dependency>
  75 + <groupId>javax.transaction</groupId>
  76 + <artifactId>jta</artifactId>
  77 + <version>1.1</version>
  78 + </dependency>
  79 +
  80 + <dependency>
  81 + <groupId>jstl</groupId>
  82 + <artifactId>jstl</artifactId>
  83 + <version>${jstl.version}</version>
  84 + </dependency>
  85 +
  86 + <dependency>
  87 + <groupId>com.alibaba</groupId>
  88 + <artifactId>fastjson</artifactId>
  89 + <version>1.2.16</version>
  90 + </dependency>
  91 +
  92 + <!-- https://mvnrepository.com/artifact/org.jdom/jdom -->
  93 + <dependency>
  94 + <groupId>org.jdom</groupId>
  95 + <artifactId>jdom</artifactId>
  96 + <version>1.1.3</version>
  97 + </dependency>
  98 +
  99 + <!-- junit -->
  100 + <dependency>
  101 + <groupId>junit</groupId>
  102 + <artifactId>junit</artifactId>
  103 + <version>${junit.version}</version>
  104 + </dependency>
  105 +
  106 + <!-- commons-codec -->
  107 + <dependency>
  108 + <groupId>commons-codec</groupId>
  109 + <artifactId>commons-codec</artifactId>
  110 + <version>${commons-codec.version}</version>
  111 + </dependency>
  112 +
  113 + <!-- guava -->
  114 + <dependency>
  115 + <groupId>com.google.guava</groupId>
  116 + <artifactId>guava</artifactId>
  117 + <version>${guava.version}</version>
  118 + </dependency>
  119 +
  120 + <!-- log -->
  121 + <dependency>
  122 + <groupId>org.slf4j</groupId>
  123 + <artifactId>slf4j-api</artifactId>
  124 + <version>${slf4j.version}</version>
  125 + </dependency>
  126 +
  127 + <dependency>
  128 + <groupId>org.apache.logging.log4j</groupId>
  129 + <artifactId>log4j-api</artifactId>
  130 + <version>${log4j.version}</version>
  131 + </dependency>
  132 +
  133 + <dependency>
  134 + <groupId>org.apache.logging.log4j</groupId>
  135 + <artifactId>log4j-core</artifactId>
  136 + <version>${log4j.version}</version>
  137 + </dependency>
  138 +
  139 + <dependency>
  140 + <groupId>org.apache.logging.log4j</groupId>
  141 + <artifactId>log4j-slf4j-impl</artifactId>
  142 + <version>${log4j.version}</version>
  143 + </dependency>
  144 +
  145 + <dependency>
  146 + <groupId>javax.annotation</groupId>
  147 + <artifactId>jsr250-api</artifactId>
  148 + <version>1.0</version>
  149 + </dependency>
  150 +
  151 +
  152 + <!-- spring framework -->
  153 + <dependency>
  154 + <groupId>org.springframework</groupId>
  155 + <artifactId>spring-context</artifactId>
  156 + <version>${spring.version}</version>
  157 + </dependency>
  158 +
  159 + <dependency>
  160 + <groupId>org.springframework</groupId>
  161 + <artifactId>spring-context-support</artifactId>
  162 + <version>${spring.version}</version>
  163 + </dependency>
  164 +
  165 + <dependency>
  166 + <groupId>org.springframework</groupId>
  167 + <artifactId>spring-aop</artifactId>
  168 + <version>${spring.version}</version>
  169 + </dependency>
  170 +
  171 + <dependency>
  172 + <groupId>org.springframework</groupId>
  173 + <artifactId>spring-aspects</artifactId>
  174 + <version>${spring.version}</version>
  175 + </dependency>
  176 +
  177 + <dependency>
  178 + <groupId>org.springframework</groupId>
  179 + <artifactId>spring-tx</artifactId>
  180 + <version>${spring.version}</version>
  181 + </dependency>
  182 + <!-- spring webmvc -->
  183 + <dependency>
  184 + <groupId>org.springframework</groupId>
  185 + <artifactId>spring-web</artifactId>
  186 + <version>${spring.version}</version>
  187 + </dependency>
  188 +
  189 + <dependency>
  190 + <groupId>org.springframework</groupId>
  191 + <artifactId>spring-webmvc</artifactId>
  192 + <version>${spring.version}</version>
  193 + </dependency>
  194 +
  195 + <dependency>
  196 + <groupId>commons-httpclient</groupId>
  197 + <artifactId>commons-httpclient</artifactId>
  198 + <version>3.0</version>
  199 + </dependency>
  200 + <!-- spring data jpa -->
  201 + <dependency>
  202 + <groupId>org.springframework.data</groupId>
  203 + <artifactId>spring-data-jpa</artifactId>
  204 + <version>${spring-datajpa.version}</version>
  205 + </dependency>
  206 +
  207 + <!-- spring test -->
  208 + <dependency>
  209 + <groupId>org.springframework</groupId>
  210 + <artifactId>spring-test</artifactId>
  211 + <version>${spring.version}</version>
  212 + <scope>test</scope>
  213 + </dependency>
  214 +
  215 + <!-- jpa implements hibernate -->
  216 + <dependency>
  217 + <groupId>org.hibernate</groupId>
  218 + <artifactId>hibernate-core</artifactId>
  219 + <version>${hibernate.version}</version>
  220 + </dependency>
  221 +
  222 + <dependency>
  223 + <groupId>org.hibernate</groupId>
  224 + <artifactId>hibernate-entitymanager</artifactId>
  225 + <version>${hibernate.version}</version>
  226 + </dependency>
  227 +
  228 + <dependency>
  229 + <groupId>org.hibernate</groupId>
  230 + <artifactId>hibernate-ehcache</artifactId>
  231 + <version>${hibernate.version}</version>
  232 + </dependency>
  233 +
  234 + <!-- mysql-connector -->
  235 + <dependency>
  236 + <groupId>mysql</groupId>
  237 + <artifactId>mysql-connector-java</artifactId>
  238 + <version>${mysql-jdbc.version}</version>
  239 + </dependency>
  240 +
  241 +
  242 + <!-- druid connection pool -->
  243 + <dependency>
  244 + <groupId>com.alibaba</groupId>
  245 + <artifactId>druid</artifactId>
  246 + <version>${druid.version}</version>
  247 + </dependency>
  248 +
  249 + <!-- jackson -->
  250 + <dependency>
  251 + <groupId>com.fasterxml.jackson.core</groupId>
  252 + <artifactId>jackson-databind</artifactId>
  253 + <version>${jackson.version}</version>
  254 + </dependency>
  255 + <dependency>
  256 + <groupId>com.fasterxml.jackson.module</groupId>
  257 + <artifactId>jackson-module-jaxb-annotations</artifactId>
  258 + <version>${jackson.version}</version>
  259 + </dependency>
  260 + <dependency>
  261 + <groupId>com.fasterxml.jackson.datatype</groupId>
  262 + <artifactId>jackson-datatype-joda</artifactId>
  263 + <version>${jackson.version}</version>
  264 + </dependency>
  265 + <dependency>
  266 + <groupId>org.codehaus.jackson</groupId>
  267 + <artifactId>jackson-mapper-asl</artifactId>
  268 + <version>1.9.13</version>
  269 + </dependency>
  270 +
  271 + <!-- commons -->
  272 + <dependency>
  273 + <groupId>org.apache.commons</groupId>
  274 + <artifactId>commons-lang3</artifactId>
  275 + <version>${commons-lang3.version}</version>
  276 + </dependency>
  277 +
  278 + <dependency>
  279 + <groupId>commons-fileupload</groupId>
  280 + <artifactId>commons-fileupload</artifactId>
  281 + <version>${commons-fileupload.version}</version>
  282 + </dependency>
  283 +
  284 +
  285 + <!-- ehcache -->
  286 + <dependency>
  287 + <groupId>net.sf.ehcache</groupId>
  288 + <artifactId>ehcache-core</artifactId>
  289 + <version>${ehcache.version}</version>
  290 + </dependency>
  291 +
  292 + <!-- shiro -->
  293 + <dependency>
  294 + <groupId>org.apache.shiro</groupId>
  295 + <artifactId>shiro-core</artifactId>
  296 + <version>${shiro.version}</version>
  297 + </dependency>
  298 + <dependency>
  299 + <groupId>org.apache.shiro</groupId>
  300 + <artifactId>shiro-web</artifactId>
  301 + <version>${shiro.version}</version>
  302 + </dependency>
  303 + <dependency>
  304 + <groupId>org.apache.shiro</groupId>
  305 + <artifactId>shiro-spring</artifactId>
  306 + <version>${shiro.version}</version>
  307 + </dependency>
  308 + <dependency>
  309 + <groupId>org.apache.shiro</groupId>
  310 + <artifactId>shiro-ehcache</artifactId>
  311 + <version>${shiro.version}</version>
  312 + </dependency>
  313 + <dependency>
  314 + <groupId>org.apache.shiro</groupId>
  315 + <artifactId>shiro-quartz</artifactId>
  316 + <version>${shiro.version}</version>
  317 + </dependency>
  318 +
  319 + <!-- shiro cas 单点登录 -->
  320 + <dependency>
  321 + <groupId>org.apache.shiro</groupId>
  322 + <artifactId>shiro-cas</artifactId>
  323 + <version>1.2.3</version>
  324 + </dependency>
  325 +
  326 + <!-- 验证码 -->
  327 + <dependency>
  328 + <groupId>net.pusuo</groupId>
  329 + <artifactId>patchca</artifactId>
  330 + <version>${patchca.version}</version>
  331 + </dependency>
  332 +
  333 + <!-- oracle jdbc 驱动 -->
  334 + <dependency>
  335 + <groupId>com.oracle</groupId>
  336 + <artifactId>ojdbc6</artifactId>
  337 + <version>11.2.0.4.0-atlassian-hosted</version>
  338 + </dependency>
  339 +
  340 + <dependency>
  341 + <groupId>net.sourceforge.jexcelapi</groupId>
  342 + <artifactId>jxl</artifactId>
  343 + <version>${jxl.version}</version>
  344 + </dependency>
  345 +
  346 + <dependency>
  347 + <groupId>org.apache.poi</groupId>
  348 + <artifactId>poi</artifactId>
  349 + <version>${poi.version}</version>
  350 + </dependency>
  351 +
  352 + <!-- https://mvnrepository.com/artifact/javax.mail/mail -->
  353 + <dependency>
  354 + <groupId>javax.mail</groupId>
  355 + <artifactId>mail</artifactId>
  356 + <version>1.4</version>
  357 + </dependency>
  358 +
  359 + <!-- https://mvnrepository.com/artifact/javax.activation/activation -->
  360 + <dependency>
  361 + <groupId>javax.activation</groupId>
  362 + <artifactId>activation</artifactId>
  363 + <version>1.1</version>
  364 + </dependency>
  365 + <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
  366 + <dependency>
  367 + <groupId>org.apache.poi</groupId>
  368 + <artifactId>poi-ooxml</artifactId>
  369 + <version>3.14</version>
  370 + </dependency>
  371 +
  372 + <dependency>
  373 + <groupId>commons-collections</groupId>
  374 + <artifactId>commons-collections</artifactId>
  375 + <version>3.2.1</version>
  376 + </dependency>
  377 +
  378 + <!-- velocity 模板 -->
  379 + <!-- <dependency> <groupId>org.apache.velocity</groupId> <artifactId>velocity</artifactId>
  380 + <version>${velocity.version}</version> </dependency> -->
  381 +
  382 + <dependency>
  383 + <groupId>org.apache.velocity</groupId>
  384 + <artifactId>velocity-tools</artifactId>
  385 + <version>2.0</version>
  386 + <exclusions>
  387 + <exclusion>
  388 + <groupId>javax.servlet</groupId>
  389 + <artifactId>servlet-api</artifactId>
  390 + </exclusion>
  391 + </exclusions>
  392 + </dependency>
  393 +
  394 + <dependency>
  395 + <groupId>redis.clients</groupId>
  396 + <artifactId>jedis</artifactId>
  397 + <version>2.1.0</version>
  398 + </dependency>
  399 +
  400 + <dependency>
  401 + <groupId>org.apache.ant</groupId>
  402 + <artifactId>ant</artifactId>
  403 + <version>1.9.7</version>
  404 + </dependency>
  405 +
  406 + <dependency>
  407 + <groupId>javax.xml.bind</groupId>
  408 + <artifactId>jaxb-api</artifactId>
  409 + <version>2.3.0</version>
  410 + </dependency>
  411 + <dependency>
  412 + <groupId>com.sun.xml.bind</groupId>
  413 + <artifactId>jaxb-impl</artifactId>
  414 + <version>2.3.0</version>
  415 + </dependency>
  416 + <dependency>
  417 + <groupId>com.sun.xml.bind</groupId>
  418 + <artifactId>jaxb-core</artifactId>
  419 + <version>2.3.0</version>
  420 + </dependency>
  421 + <dependency>
  422 + <groupId>javax.activation</groupId>
  423 + <artifactId>activation</artifactId>
  424 + <version>1.1.1</version>
  425 + </dependency>
  426 +
  427 + </dependencies>
  428 +
  429 + <!-- 配置文件 -->
  430 + <profiles>
  431 + <!-- 本地开发环境 -->
  432 + <profile>
  433 + <id>dev</id>
  434 + <properties>
  435 + <package.environment>dev</package.environment>
  436 + </properties>
  437 + <activation>
  438 + <activeByDefault>true</activeByDefault>
  439 + </activation>
  440 + </profile>
  441 +
  442 + <!-- 测试环境 -->
  443 + <profile>
  444 + <id>test</id>
  445 + <properties>
  446 + <package.environment>test</package.environment>
  447 + </properties>
  448 + </profile>
  449 +
  450 + <!-- 生产环境 -->
  451 + <profile>
  452 + <id>product</id>
  453 + <properties>
  454 + <package.environment>product</package.environment>
  455 + </properties>
  456 + </profile>
  457 + </profiles>
  458 +
  459 + <build>
  460 + <finalName>ROOT</finalName>
  461 + <plugins>
  462 + <!-- 编译插件 -->
  463 + <plugin>
  464 + <groupId>org.apache.maven.plugins</groupId>
  465 + <artifactId>maven-compiler-plugin</artifactId>
  466 + <version>3.1</version>
  467 + <configuration>
  468 + <encoding>${project.build.sourceEncoding}</encoding>
  469 + <source>${jdk.version}</source>
  470 + <target>${jdk.version}</target>
  471 + </configuration>
  472 + </plugin>
  473 +
  474 + <!-- Jetty 插件配置测试环境 -->
  475 + <plugin>
  476 + <groupId>org.eclipse.jetty</groupId>
  477 + <artifactId>jetty-maven-plugin</artifactId>
  478 + <version>9.2.8.v20150217</version>
  479 + <configuration>
  480 + <httpConnector>
  481 + <port>8081</port>
  482 + </httpConnector>
  483 + <scanIntervalSeconds>0</scanIntervalSeconds>
  484 + </configuration>
  485 + </plugin>
  486 +
  487 + <!-- Maven 打包插件 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId>
  488 + <version>3.1.0</version> <configuration> <archive> <addMavenDescriptor>false</addMavenDescriptor>
  489 + </archive> <webResources> <resource> <directory>src/main/resoreces/conf/${package.environment}</directory>
  490 + <targetPath>WEB-INF/classes</targetPath> <filtering>true</filtering> </resource>
  491 + </webResources> </configuration> </plugin> -->
  492 +
  493 + </plugins>
  494 + </build>
  495 + <!-- <modules> <module>?</module> </modules> -->
  496 +</project>
  1 +/**
  2 + * BillCheckService.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 billcheckservice;
  9 +
  10 +public interface BillCheckService extends java.rmi.Remote {
  11 + public billcheckservice.ReturnData getByQuery(billcheckservice.QueryData arg0) throws java.rmi.RemoteException;
  12 +}
  1 +/**
  2 + * BillCheckServicePortBindingStub.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 billcheckservice;
  9 +
  10 +public class BillCheckServicePortBindingStub extends org.apache.axis.client.Stub implements billcheckservice.BillCheckService {
  11 + private java.util.Vector cachedSerClasses = new java.util.Vector();
  12 + private java.util.Vector cachedSerQNames = new java.util.Vector();
  13 + private java.util.Vector cachedSerFactories = new java.util.Vector();
  14 + private java.util.Vector cachedDeserFactories = new java.util.Vector();
  15 +
  16 + static org.apache.axis.description.OperationDesc [] _operations;
  17 +
  18 + static {
  19 + _operations = new org.apache.axis.description.OperationDesc[1];
  20 + _initOperationDesc1();
  21 + }
  22 +
  23 + private static void _initOperationDesc1(){
  24 + org.apache.axis.description.OperationDesc oper;
  25 + org.apache.axis.description.ParameterDesc param;
  26 + oper = new org.apache.axis.description.OperationDesc();
  27 + oper.setName("getByQuery");
  28 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "arg0"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://service/", "queryData"), billcheckservice.QueryData.class, false, false);
  29 + param.setOmittable(true);
  30 + oper.addParameter(param);
  31 + oper.setReturnType(new javax.xml.namespace.QName("http://service/", "returnData"));
  32 + oper.setReturnClass(billcheckservice.ReturnData.class);
  33 + oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
  34 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  35 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  36 + _operations[0] = oper;
  37 +
  38 + }
  39 +
  40 + public BillCheckServicePortBindingStub() throws org.apache.axis.AxisFault {
  41 + this(null);
  42 + }
  43 +
  44 + public BillCheckServicePortBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
  45 + this(service);
  46 + super.cachedEndpoint = endpointURL;
  47 + }
  48 +
  49 + public BillCheckServicePortBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
  50 + if (service == null) {
  51 + super.service = new org.apache.axis.client.Service();
  52 + } else {
  53 + super.service = service;
  54 + }
  55 + ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
  56 + java.lang.Class cls;
  57 + javax.xml.namespace.QName qName;
  58 + javax.xml.namespace.QName qName2;
  59 + java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
  60 + java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
  61 + java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
  62 + java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
  63 + java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
  64 + java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
  65 + java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
  66 + java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
  67 + java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
  68 + java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
  69 + qName = new javax.xml.namespace.QName("http://service/", "queryData");
  70 + cachedSerQNames.add(qName);
  71 + cls = billcheckservice.QueryData.class;
  72 + cachedSerClasses.add(cls);
  73 + cachedSerFactories.add(beansf);
  74 + cachedDeserFactories.add(beandf);
  75 +
  76 + qName = new javax.xml.namespace.QName("http://service/", "returnData");
  77 + cachedSerQNames.add(qName);
  78 + cls = billcheckservice.ReturnData.class;
  79 + cachedSerClasses.add(cls);
  80 + cachedSerFactories.add(beansf);
  81 + cachedDeserFactories.add(beandf);
  82 +
  83 + qName = new javax.xml.namespace.QName("http://service/", "returnRecode");
  84 + cachedSerQNames.add(qName);
  85 + cls = billcheckservice.ReturnRecode.class;
  86 + cachedSerClasses.add(cls);
  87 + cachedSerFactories.add(beansf);
  88 + cachedDeserFactories.add(beandf);
  89 +
  90 + }
  91 +
  92 + protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
  93 + try {
  94 + org.apache.axis.client.Call _call = super._createCall();
  95 + if (super.maintainSessionSet) {
  96 + _call.setMaintainSession(super.maintainSession);
  97 + }
  98 + if (super.cachedUsername != null) {
  99 + _call.setUsername(super.cachedUsername);
  100 + }
  101 + if (super.cachedPassword != null) {
  102 + _call.setPassword(super.cachedPassword);
  103 + }
  104 + if (super.cachedEndpoint != null) {
  105 + _call.setTargetEndpointAddress(super.cachedEndpoint);
  106 + }
  107 + if (super.cachedTimeout != null) {
  108 + _call.setTimeout(super.cachedTimeout);
  109 + }
  110 + if (super.cachedPortName != null) {
  111 + _call.setPortName(super.cachedPortName);
  112 + }
  113 + java.util.Enumeration keys = super.cachedProperties.keys();
  114 + while (keys.hasMoreElements()) {
  115 + java.lang.String key = (java.lang.String) keys.nextElement();
  116 + _call.setProperty(key, super.cachedProperties.get(key));
  117 + }
  118 + // All the type mapping information is registered
  119 + // when the first call is made.
  120 + // The type mapping information is actually registered in
  121 + // the TypeMappingRegistry of the service, which
  122 + // is the reason why registration is only needed for the first call.
  123 + synchronized (this) {
  124 + if (firstCall()) {
  125 + // must set encoding style before registering serializers
  126 + _call.setEncodingStyle(null);
  127 + for (int i = 0; i < cachedSerFactories.size(); ++i) {
  128 + java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
  129 + javax.xml.namespace.QName qName =
  130 + (javax.xml.namespace.QName) cachedSerQNames.get(i);
  131 + java.lang.Object x = cachedSerFactories.get(i);
  132 + if (x instanceof Class) {
  133 + java.lang.Class sf = (java.lang.Class)
  134 + cachedSerFactories.get(i);
  135 + java.lang.Class df = (java.lang.Class)
  136 + cachedDeserFactories.get(i);
  137 + _call.registerTypeMapping(cls, qName, sf, df, false);
  138 + }
  139 + else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
  140 + org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
  141 + cachedSerFactories.get(i);
  142 + org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
  143 + cachedDeserFactories.get(i);
  144 + _call.registerTypeMapping(cls, qName, sf, df, false);
  145 + }
  146 + }
  147 + }
  148 + }
  149 + return _call;
  150 + }
  151 + catch (java.lang.Throwable _t) {
  152 + throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
  153 + }
  154 + }
  155 +
  156 + public billcheckservice.ReturnData getByQuery(billcheckservice.QueryData arg0) throws java.rmi.RemoteException {
  157 + if (super.cachedEndpoint == null) {
  158 + throw new org.apache.axis.NoEndPointException();
  159 + }
  160 + org.apache.axis.client.Call _call = createCall();
  161 + _call.setOperation(_operations[0]);
  162 + _call.setUseSOAPAction(true);
  163 + _call.setSOAPActionURI("");
  164 + _call.setEncodingStyle(null);
  165 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  166 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  167 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  168 + _call.setOperationName(new javax.xml.namespace.QName("http://service/", "getByQuery"));
  169 +
  170 + setRequestHeaders(_call);
  171 + setAttachments(_call);
  172 + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {arg0});
  173 +
  174 + if (_resp instanceof java.rmi.RemoteException) {
  175 + throw (java.rmi.RemoteException)_resp;
  176 + }
  177 + else {
  178 + extractAttachments(_call);
  179 + try {
  180 + return (billcheckservice.ReturnData) _resp;
  181 + } catch (java.lang.Exception _exception) {
  182 + return (billcheckservice.ReturnData) org.apache.axis.utils.JavaUtils.convert(_resp, billcheckservice.ReturnData.class);
  183 + }
  184 + }
  185 + } catch (org.apache.axis.AxisFault axisFaultException) {
  186 + throw axisFaultException;
  187 +}
  188 + }
  189 +
  190 +}
  1 +package billcheckservice;
  2 +
  3 +public class BillCheckServiceProxy implements billcheckservice.BillCheckService {
  4 + private String _endpoint = null;
  5 + private billcheckservice.BillCheckService billCheckService = null;
  6 +
  7 + public BillCheckServiceProxy() {
  8 + _initBillCheckServiceProxy();
  9 + }
  10 +
  11 + public BillCheckServiceProxy(String endpoint) {
  12 + _endpoint = endpoint;
  13 + _initBillCheckServiceProxy();
  14 + }
  15 +
  16 + private void _initBillCheckServiceProxy() {
  17 + try {
  18 + billCheckService = (new billcheckservice.BillCheckServiceServiceLocator()).getBillCheckServicePort();
  19 + if (billCheckService != null) {
  20 + if (_endpoint != null)
  21 + ((javax.xml.rpc.Stub)billCheckService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
  22 + else
  23 + _endpoint = (String)((javax.xml.rpc.Stub)billCheckService)._getProperty("javax.xml.rpc.service.endpoint.address");
  24 + }
  25 +
  26 + }
  27 + catch (javax.xml.rpc.ServiceException serviceException) {}
  28 + }
  29 +
  30 + public String getEndpoint() {
  31 + return _endpoint;
  32 + }
  33 +
  34 + public void setEndpoint(String endpoint) {
  35 + _endpoint = endpoint;
  36 + if (billCheckService != null)
  37 + ((javax.xml.rpc.Stub)billCheckService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
  38 +
  39 + }
  40 +
  41 + public billcheckservice.BillCheckService getBillCheckService() {
  42 + if (billCheckService == null)
  43 + _initBillCheckServiceProxy();
  44 + return billCheckService;
  45 + }
  46 +
  47 + public billcheckservice.ReturnData getByQuery(billcheckservice.QueryData arg0) throws java.rmi.RemoteException{
  48 + if (billCheckService == null)
  49 + _initBillCheckServiceProxy();
  50 + return billCheckService.getByQuery(arg0);
  51 + }
  52 +
  53 +
  54 +}
  1 +/**
  2 + * BillCheckServiceService.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 billcheckservice;
  9 +
  10 +public interface BillCheckServiceService extends javax.xml.rpc.Service {
  11 + public java.lang.String getBillCheckServicePortAddress();
  12 +
  13 + public billcheckservice.BillCheckService getBillCheckServicePort() throws javax.xml.rpc.ServiceException;
  14 +
  15 + public billcheckservice.BillCheckService getBillCheckServicePort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
  16 +}
  1 +/**
  2 + * BillCheckServiceServiceLocator.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 billcheckservice;
  9 +
  10 +public class BillCheckServiceServiceLocator extends org.apache.axis.client.Service implements billcheckservice.BillCheckServiceService {
  11 +
  12 + public BillCheckServiceServiceLocator() {
  13 + }
  14 +
  15 +
  16 + public BillCheckServiceServiceLocator(org.apache.axis.EngineConfiguration config) {
  17 + super(config);
  18 + }
  19 +
  20 + public BillCheckServiceServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
  21 + super(wsdlLoc, sName);
  22 + }
  23 +
  24 + // Use to get a proxy class for BillCheckServicePort
  25 + private java.lang.String BillCheckServicePort_address = "http://localhost:8089/Service/BillCheckWebService";
  26 +
  27 + public java.lang.String getBillCheckServicePortAddress() {
  28 + return BillCheckServicePort_address;
  29 + }
  30 +
  31 + // The WSDD service name defaults to the port name.
  32 + private java.lang.String BillCheckServicePortWSDDServiceName = "BillCheckServicePort";
  33 +
  34 + public java.lang.String getBillCheckServicePortWSDDServiceName() {
  35 + return BillCheckServicePortWSDDServiceName;
  36 + }
  37 +
  38 + public void setBillCheckServicePortWSDDServiceName(java.lang.String name) {
  39 + BillCheckServicePortWSDDServiceName = name;
  40 + }
  41 +
  42 + public billcheckservice.BillCheckService getBillCheckServicePort() throws javax.xml.rpc.ServiceException {
  43 + java.net.URL endpoint;
  44 + try {
  45 + endpoint = new java.net.URL(BillCheckServicePort_address);
  46 + }
  47 + catch (java.net.MalformedURLException e) {
  48 + throw new javax.xml.rpc.ServiceException(e);
  49 + }
  50 + return getBillCheckServicePort(endpoint);
  51 + }
  52 +
  53 + public billcheckservice.BillCheckService getBillCheckServicePort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
  54 + try {
  55 + billcheckservice.BillCheckServicePortBindingStub _stub = new billcheckservice.BillCheckServicePortBindingStub(portAddress, this);
  56 + _stub.setPortName(getBillCheckServicePortWSDDServiceName());
  57 + return _stub;
  58 + }
  59 + catch (org.apache.axis.AxisFault e) {
  60 + return null;
  61 + }
  62 + }
  63 +
  64 + public void setBillCheckServicePortEndpointAddress(java.lang.String address) {
  65 + BillCheckServicePort_address = address;
  66 + }
  67 +
  68 + /**
  69 + * For the given interface, get the stub implementation.
  70 + * If this service has no port for the given interface,
  71 + * then ServiceException is thrown.
  72 + */
  73 + public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
  74 + try {
  75 + if (billcheckservice.BillCheckService.class.isAssignableFrom(serviceEndpointInterface)) {
  76 + billcheckservice.BillCheckServicePortBindingStub _stub = new billcheckservice.BillCheckServicePortBindingStub(new java.net.URL(BillCheckServicePort_address), this);
  77 + _stub.setPortName(getBillCheckServicePortWSDDServiceName());
  78 + return _stub;
  79 + }
  80 + }
  81 + catch (java.lang.Throwable t) {
  82 + throw new javax.xml.rpc.ServiceException(t);
  83 + }
  84 + throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
  85 + }
  86 +
  87 + /**
  88 + * For the given interface, get the stub implementation.
  89 + * If this service has no port for the given interface,
  90 + * then ServiceException is thrown.
  91 + */
  92 + public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
  93 + if (portName == null) {
  94 + return getPort(serviceEndpointInterface);
  95 + }
  96 + java.lang.String inputPortName = portName.getLocalPart();
  97 + if ("BillCheckServicePort".equals(inputPortName)) {
  98 + return getBillCheckServicePort();
  99 + }
  100 + else {
  101 + java.rmi.Remote _stub = getPort(serviceEndpointInterface);
  102 + ((org.apache.axis.client.Stub) _stub).setPortName(portName);
  103 + return _stub;
  104 + }
  105 + }
  106 +
  107 + public javax.xml.namespace.QName getServiceName() {
  108 + return new javax.xml.namespace.QName("http://service/", "BillCheckServiceService");
  109 + }
  110 +
  111 + private java.util.HashSet ports = null;
  112 +
  113 + public java.util.Iterator getPorts() {
  114 + if (ports == null) {
  115 + ports = new java.util.HashSet();
  116 + ports.add(new javax.xml.namespace.QName("http://service/", "BillCheckServicePort"));
  117 + }
  118 + return ports.iterator();
  119 + }
  120 +
  121 + /**
  122 + * Set the endpoint address for the specified port name.
  123 + */
  124 + public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
  125 +
  126 +if ("BillCheckServicePort".equals(portName)) {
  127 + setBillCheckServicePortEndpointAddress(address);
  128 + }
  129 + else
  130 +{ // Unknown Port Name
  131 + throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
  132 + }
  133 + }
  134 +
  135 + /**
  136 + * Set the endpoint address for the specified port name.
  137 + */
  138 + public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
  139 + setEndpointAddress(portName.getLocalPart(), address);
  140 + }
  141 +
  142 +}
  1 +package billcheckservice;
  2 +
  3 +import java.rmi.RemoteException;
  4 +
  5 +public class Main {
  6 + public static void main(String[] args){
  7 + QueryData query = new QueryData();
  8 + query.setStart_time("2017-4-10");
  9 + query.setEnd_time("2017-6-10");
  10 + query.setStart_page(1);
  11 + query.setPage_length(20);
  12 + BillCheckServiceProxy bcsp = new BillCheckServiceProxy();
  13 + try {
  14 + ReturnData rd = bcsp.getByQuery(query);
  15 + ReturnRecode rrlist[] = rd.getRecode_list();
  16 + for(int i = 0; i < rrlist.length; i ++)
  17 + {
  18 + //System.out.println(rrlist[i].getFID()+" "+rrlist[i].getMID());
  19 + }
  20 + } catch (RemoteException e) {
  21 + // TODO Auto-generated catch block
  22 + e.printStackTrace();
  23 + }
  24 +
  25 + }
  26 +}
  1 +/**
  2 + * QueryData.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 billcheckservice;
  9 +
  10 +public class QueryData implements java.io.Serializable {
  11 + private int end_position;
  12 +
  13 + private java.lang.String end_time;
  14 +
  15 + private int page_length;
  16 +
  17 + private int pubstation_code;
  18 +
  19 + private int start_page;
  20 +
  21 + private int start_position;
  22 +
  23 + private java.lang.String start_time;
  24 +
  25 + public QueryData() {
  26 + }
  27 +
  28 + public QueryData(
  29 + int end_position,
  30 + java.lang.String end_time,
  31 + int page_length,
  32 + int pubstation_code,
  33 + int start_page,
  34 + int start_position,
  35 + java.lang.String start_time) {
  36 + this.end_position = end_position;
  37 + this.end_time = end_time;
  38 + this.page_length = page_length;
  39 + this.pubstation_code = pubstation_code;
  40 + this.start_page = start_page;
  41 + this.start_position = start_position;
  42 + this.start_time = start_time;
  43 + }
  44 +
  45 +
  46 + /**
  47 + * Gets the end_position value for this QueryData.
  48 + *
  49 + * @return end_position
  50 + */
  51 + public int getEnd_position() {
  52 + return end_position;
  53 + }
  54 +
  55 +
  56 + /**
  57 + * Sets the end_position value for this QueryData.
  58 + *
  59 + * @param end_position
  60 + */
  61 + public void setEnd_position(int end_position) {
  62 + this.end_position = end_position;
  63 + }
  64 +
  65 +
  66 + /**
  67 + * Gets the end_time value for this QueryData.
  68 + *
  69 + * @return end_time
  70 + */
  71 + public java.lang.String getEnd_time() {
  72 + return end_time;
  73 + }
  74 +
  75 +
  76 + /**
  77 + * Sets the end_time value for this QueryData.
  78 + *
  79 + * @param end_time
  80 + */
  81 + public void setEnd_time(java.lang.String end_time) {
  82 + this.end_time = end_time;
  83 + }
  84 +
  85 +
  86 + /**
  87 + * Gets the page_length value for this QueryData.
  88 + *
  89 + * @return page_length
  90 + */
  91 + public int getPage_length() {
  92 + return page_length;
  93 + }
  94 +
  95 +
  96 + /**
  97 + * Sets the page_length value for this QueryData.
  98 + *
  99 + * @param page_length
  100 + */
  101 + public void setPage_length(int page_length) {
  102 + this.page_length = page_length;
  103 + }
  104 +
  105 +
  106 + /**
  107 + * Gets the pubstation_code value for this QueryData.
  108 + *
  109 + * @return pubstation_code
  110 + */
  111 + public int getPubstation_code() {
  112 + return pubstation_code;
  113 + }
  114 +
  115 +
  116 + /**
  117 + * Sets the pubstation_code value for this QueryData.
  118 + *
  119 + * @param pubstation_code
  120 + */
  121 + public void setPubstation_code(int pubstation_code) {
  122 + this.pubstation_code = pubstation_code;
  123 + }
  124 +
  125 +
  126 + /**
  127 + * Gets the start_page value for this QueryData.
  128 + *
  129 + * @return start_page
  130 + */
  131 + public int getStart_page() {
  132 + return start_page;
  133 + }
  134 +
  135 +
  136 + /**
  137 + * Sets the start_page value for this QueryData.
  138 + *
  139 + * @param start_page
  140 + */
  141 + public void setStart_page(int start_page) {
  142 + this.start_page = start_page;
  143 + }
  144 +
  145 +
  146 + /**
  147 + * Gets the start_position value for this QueryData.
  148 + *
  149 + * @return start_position
  150 + */
  151 + public int getStart_position() {
  152 + return start_position;
  153 + }
  154 +
  155 +
  156 + /**
  157 + * Sets the start_position value for this QueryData.
  158 + *
  159 + * @param start_position
  160 + */
  161 + public void setStart_position(int start_position) {
  162 + this.start_position = start_position;
  163 + }
  164 +
  165 +
  166 + /**
  167 + * Gets the start_time value for this QueryData.
  168 + *
  169 + * @return start_time
  170 + */
  171 + public java.lang.String getStart_time() {
  172 + return start_time;
  173 + }
  174 +
  175 +
  176 + /**
  177 + * Sets the start_time value for this QueryData.
  178 + *
  179 + * @param start_time
  180 + */
  181 + public void setStart_time(java.lang.String start_time) {
  182 + this.start_time = start_time;
  183 + }
  184 +
  185 + private java.lang.Object __equalsCalc = null;
  186 + public synchronized boolean equals(java.lang.Object obj) {
  187 + if (!(obj instanceof QueryData)) return false;
  188 + QueryData other = (QueryData) obj;
  189 + if (obj == null) return false;
  190 + if (this == obj) return true;
  191 + if (__equalsCalc != null) {
  192 + return (__equalsCalc == obj);
  193 + }
  194 + __equalsCalc = obj;
  195 + boolean _equals;
  196 + _equals = true &&
  197 + this.end_position == other.getEnd_position() &&
  198 + ((this.end_time==null && other.getEnd_time()==null) ||
  199 + (this.end_time!=null &&
  200 + this.end_time.equals(other.getEnd_time()))) &&
  201 + this.page_length == other.getPage_length() &&
  202 + this.pubstation_code == other.getPubstation_code() &&
  203 + this.start_page == other.getStart_page() &&
  204 + this.start_position == other.getStart_position() &&
  205 + ((this.start_time==null && other.getStart_time()==null) ||
  206 + (this.start_time!=null &&
  207 + this.start_time.equals(other.getStart_time())));
  208 + __equalsCalc = null;
  209 + return _equals;
  210 + }
  211 +
  212 + private boolean __hashCodeCalc = false;
  213 + public synchronized int hashCode() {
  214 + if (__hashCodeCalc) {
  215 + return 0;
  216 + }
  217 + __hashCodeCalc = true;
  218 + int _hashCode = 1;
  219 + _hashCode += getEnd_position();
  220 + if (getEnd_time() != null) {
  221 + _hashCode += getEnd_time().hashCode();
  222 + }
  223 + _hashCode += getPage_length();
  224 + _hashCode += getPubstation_code();
  225 + _hashCode += getStart_page();
  226 + _hashCode += getStart_position();
  227 + if (getStart_time() != null) {
  228 + _hashCode += getStart_time().hashCode();
  229 + }
  230 + __hashCodeCalc = false;
  231 + return _hashCode;
  232 + }
  233 +
  234 + // Type metadata
  235 + private static org.apache.axis.description.TypeDesc typeDesc =
  236 + new org.apache.axis.description.TypeDesc(QueryData.class, true);
  237 +
  238 + static {
  239 + typeDesc.setXmlType(new javax.xml.namespace.QName("http://service/", "queryData"));
  240 + org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
  241 + elemField.setFieldName("end_position");
  242 + elemField.setXmlName(new javax.xml.namespace.QName("", "end_position"));
  243 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
  244 + elemField.setNillable(false);
  245 + typeDesc.addFieldDesc(elemField);
  246 + elemField = new org.apache.axis.description.ElementDesc();
  247 + elemField.setFieldName("end_time");
  248 + elemField.setXmlName(new javax.xml.namespace.QName("", "end_time"));
  249 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  250 + elemField.setMinOccurs(0);
  251 + elemField.setNillable(false);
  252 + typeDesc.addFieldDesc(elemField);
  253 + elemField = new org.apache.axis.description.ElementDesc();
  254 + elemField.setFieldName("page_length");
  255 + elemField.setXmlName(new javax.xml.namespace.QName("", "page_length"));
  256 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
  257 + elemField.setNillable(false);
  258 + typeDesc.addFieldDesc(elemField);
  259 + elemField = new org.apache.axis.description.ElementDesc();
  260 + elemField.setFieldName("pubstation_code");
  261 + elemField.setXmlName(new javax.xml.namespace.QName("", "pubstation_code"));
  262 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
  263 + elemField.setNillable(false);
  264 + typeDesc.addFieldDesc(elemField);
  265 + elemField = new org.apache.axis.description.ElementDesc();
  266 + elemField.setFieldName("start_page");
  267 + elemField.setXmlName(new javax.xml.namespace.QName("", "start_page"));
  268 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
  269 + elemField.setNillable(false);
  270 + typeDesc.addFieldDesc(elemField);
  271 + elemField = new org.apache.axis.description.ElementDesc();
  272 + elemField.setFieldName("start_position");
  273 + elemField.setXmlName(new javax.xml.namespace.QName("", "start_position"));
  274 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
  275 + elemField.setNillable(false);
  276 + typeDesc.addFieldDesc(elemField);
  277 + elemField = new org.apache.axis.description.ElementDesc();
  278 + elemField.setFieldName("start_time");
  279 + elemField.setXmlName(new javax.xml.namespace.QName("", "start_time"));
  280 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  281 + elemField.setMinOccurs(0);
  282 + elemField.setNillable(false);
  283 + typeDesc.addFieldDesc(elemField);
  284 + }
  285 +
  286 + /**
  287 + * Return type metadata object
  288 + */
  289 + public static org.apache.axis.description.TypeDesc getTypeDesc() {
  290 + return typeDesc;
  291 + }
  292 +
  293 + /**
  294 + * Get Custom Serializer
  295 + */
  296 + public static org.apache.axis.encoding.Serializer getSerializer(
  297 + java.lang.String mechType,
  298 + java.lang.Class _javaType,
  299 + javax.xml.namespace.QName _xmlType) {
  300 + return
  301 + new org.apache.axis.encoding.ser.BeanSerializer(
  302 + _javaType, _xmlType, typeDesc);
  303 + }
  304 +
  305 + /**
  306 + * Get Custom Deserializer
  307 + */
  308 + public static org.apache.axis.encoding.Deserializer getDeserializer(
  309 + java.lang.String mechType,
  310 + java.lang.Class _javaType,
  311 + javax.xml.namespace.QName _xmlType) {
  312 + return
  313 + new org.apache.axis.encoding.ser.BeanDeserializer(
  314 + _javaType, _xmlType, typeDesc);
  315 + }
  316 +
  317 +}
  1 +/**
  2 + * ReturnData.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 billcheckservice;
  9 +
  10 +public class ReturnData implements java.io.Serializable {
  11 + private int recode_all_count;
  12 +
  13 + private int recode_count;
  14 +
  15 + private billcheckservice.ReturnRecode[] recode_list;
  16 +
  17 + public ReturnData() {
  18 + }
  19 +
  20 + public ReturnData(
  21 + int recode_all_count,
  22 + int recode_count,
  23 + billcheckservice.ReturnRecode[] recode_list) {
  24 + this.recode_all_count = recode_all_count;
  25 + this.recode_count = recode_count;
  26 + this.recode_list = recode_list;
  27 + }
  28 +
  29 +
  30 + /**
  31 + * Gets the recode_all_count value for this ReturnData.
  32 + *
  33 + * @return recode_all_count
  34 + */
  35 + public int getRecode_all_count() {
  36 + return recode_all_count;
  37 + }
  38 +
  39 +
  40 + /**
  41 + * Sets the recode_all_count value for this ReturnData.
  42 + *
  43 + * @param recode_all_count
  44 + */
  45 + public void setRecode_all_count(int recode_all_count) {
  46 + this.recode_all_count = recode_all_count;
  47 + }
  48 +
  49 +
  50 + /**
  51 + * Gets the recode_count value for this ReturnData.
  52 + *
  53 + * @return recode_count
  54 + */
  55 + public int getRecode_count() {
  56 + return recode_count;
  57 + }
  58 +
  59 +
  60 + /**
  61 + * Sets the recode_count value for this ReturnData.
  62 + *
  63 + * @param recode_count
  64 + */
  65 + public void setRecode_count(int recode_count) {
  66 + this.recode_count = recode_count;
  67 + }
  68 +
  69 +
  70 + /**
  71 + * Gets the recode_list value for this ReturnData.
  72 + *
  73 + * @return recode_list
  74 + */
  75 + public billcheckservice.ReturnRecode[] getRecode_list() {
  76 + return recode_list;
  77 + }
  78 +
  79 +
  80 + /**
  81 + * Sets the recode_list value for this ReturnData.
  82 + *
  83 + * @param recode_list
  84 + */
  85 + public void setRecode_list(billcheckservice.ReturnRecode[] recode_list) {
  86 + this.recode_list = recode_list;
  87 + }
  88 +
  89 + public billcheckservice.ReturnRecode getRecode_list(int i) {
  90 + return this.recode_list[i];
  91 + }
  92 +
  93 + public void setRecode_list(int i, billcheckservice.ReturnRecode _value) {
  94 + this.recode_list[i] = _value;
  95 + }
  96 +
  97 + private java.lang.Object __equalsCalc = null;
  98 + public synchronized boolean equals(java.lang.Object obj) {
  99 + if (!(obj instanceof ReturnData)) return false;
  100 + ReturnData other = (ReturnData) obj;
  101 + if (obj == null) return false;
  102 + if (this == obj) return true;
  103 + if (__equalsCalc != null) {
  104 + return (__equalsCalc == obj);
  105 + }
  106 + __equalsCalc = obj;
  107 + boolean _equals;
  108 + _equals = true &&
  109 + this.recode_all_count == other.getRecode_all_count() &&
  110 + this.recode_count == other.getRecode_count() &&
  111 + ((this.recode_list==null && other.getRecode_list()==null) ||
  112 + (this.recode_list!=null &&
  113 + java.util.Arrays.equals(this.recode_list, other.getRecode_list())));
  114 + __equalsCalc = null;
  115 + return _equals;
  116 + }
  117 +
  118 + private boolean __hashCodeCalc = false;
  119 + public synchronized int hashCode() {
  120 + if (__hashCodeCalc) {
  121 + return 0;
  122 + }
  123 + __hashCodeCalc = true;
  124 + int _hashCode = 1;
  125 + _hashCode += getRecode_all_count();
  126 + _hashCode += getRecode_count();
  127 + if (getRecode_list() != null) {
  128 + for (int i=0;
  129 + i<java.lang.reflect.Array.getLength(getRecode_list());
  130 + i++) {
  131 + java.lang.Object obj = java.lang.reflect.Array.get(getRecode_list(), i);
  132 + if (obj != null &&
  133 + !obj.getClass().isArray()) {
  134 + _hashCode += obj.hashCode();
  135 + }
  136 + }
  137 + }
  138 + __hashCodeCalc = false;
  139 + return _hashCode;
  140 + }
  141 +
  142 + // Type metadata
  143 + private static org.apache.axis.description.TypeDesc typeDesc =
  144 + new org.apache.axis.description.TypeDesc(ReturnData.class, true);
  145 +
  146 + static {
  147 + typeDesc.setXmlType(new javax.xml.namespace.QName("http://service/", "returnData"));
  148 + org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
  149 + elemField.setFieldName("recode_all_count");
  150 + elemField.setXmlName(new javax.xml.namespace.QName("", "recode_all_count"));
  151 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
  152 + elemField.setNillable(false);
  153 + typeDesc.addFieldDesc(elemField);
  154 + elemField = new org.apache.axis.description.ElementDesc();
  155 + elemField.setFieldName("recode_count");
  156 + elemField.setXmlName(new javax.xml.namespace.QName("", "recode_count"));
  157 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
  158 + elemField.setNillable(false);
  159 + typeDesc.addFieldDesc(elemField);
  160 + elemField = new org.apache.axis.description.ElementDesc();
  161 + elemField.setFieldName("recode_list");
  162 + elemField.setXmlName(new javax.xml.namespace.QName("", "recode_list"));
  163 + elemField.setXmlType(new javax.xml.namespace.QName("http://service/", "returnRecode"));
  164 + elemField.setMinOccurs(0);
  165 + elemField.setNillable(true);
  166 + elemField.setMaxOccursUnbounded(true);
  167 + typeDesc.addFieldDesc(elemField);
  168 + }
  169 +
  170 + /**
  171 + * Return type metadata object
  172 + */
  173 + public static org.apache.axis.description.TypeDesc getTypeDesc() {
  174 + return typeDesc;
  175 + }
  176 +
  177 + /**
  178 + * Get Custom Serializer
  179 + */
  180 + public static org.apache.axis.encoding.Serializer getSerializer(
  181 + java.lang.String mechType,
  182 + java.lang.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 + public static org.apache.axis.encoding.Deserializer getDeserializer(
  193 + java.lang.String mechType,
  194 + java.lang.Class _javaType,
  195 + javax.xml.namespace.QName _xmlType) {
  196 + return
  197 + new org.apache.axis.encoding.ser.BeanDeserializer(
  198 + _javaType, _xmlType, typeDesc);
  199 + }
  200 +
  201 +}
  1 +/**
  2 + * ReturnRecode.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 billcheckservice;
  9 +
  10 +public class ReturnRecode implements java.io.Serializable {
  11 + private java.lang.String AGENTTOTALDISBURSEMENTAMOUNT;
  12 +
  13 + private java.lang.String CARRIERTOTALDISBURSEMENTAMOUNT;
  14 +
  15 + private int FID;
  16 +
  17 + private java.lang.String HID;
  18 +
  19 + private int id;
  20 +
  21 + private java.lang.String MID;
  22 +
  23 + private java.lang.String OAL_ID;
  24 +
  25 + private java.lang.String SLT_NAME;
  26 +
  27 + private java.lang.String WEIGHTTOTALCHARGEAMOUNT;
  28 +
  29 + public ReturnRecode() {
  30 + }
  31 +
  32 + public ReturnRecode(
  33 + java.lang.String AGENTTOTALDISBURSEMENTAMOUNT,
  34 + java.lang.String CARRIERTOTALDISBURSEMENTAMOUNT,
  35 + int FID,
  36 + java.lang.String HID,
  37 + int id,
  38 + java.lang.String MID,
  39 + java.lang.String OAL_ID,
  40 + java.lang.String SLT_NAME,
  41 + java.lang.String WEIGHTTOTALCHARGEAMOUNT) {
  42 + this.AGENTTOTALDISBURSEMENTAMOUNT = AGENTTOTALDISBURSEMENTAMOUNT;
  43 + this.CARRIERTOTALDISBURSEMENTAMOUNT = CARRIERTOTALDISBURSEMENTAMOUNT;
  44 + this.FID = FID;
  45 + this.HID = HID;
  46 + this.id = id;
  47 + this.MID = MID;
  48 + this.OAL_ID = OAL_ID;
  49 + this.SLT_NAME = SLT_NAME;
  50 + this.WEIGHTTOTALCHARGEAMOUNT = WEIGHTTOTALCHARGEAMOUNT;
  51 + }
  52 +
  53 +
  54 + /**
  55 + * Gets the AGENTTOTALDISBURSEMENTAMOUNT value for this ReturnRecode.
  56 + *
  57 + * @return AGENTTOTALDISBURSEMENTAMOUNT
  58 + */
  59 + public java.lang.String getAGENTTOTALDISBURSEMENTAMOUNT() {
  60 + return AGENTTOTALDISBURSEMENTAMOUNT;
  61 + }
  62 +
  63 +
  64 + /**
  65 + * Sets the AGENTTOTALDISBURSEMENTAMOUNT value for this ReturnRecode.
  66 + *
  67 + * @param AGENTTOTALDISBURSEMENTAMOUNT
  68 + */
  69 + public void setAGENTTOTALDISBURSEMENTAMOUNT(java.lang.String AGENTTOTALDISBURSEMENTAMOUNT) {
  70 + this.AGENTTOTALDISBURSEMENTAMOUNT = AGENTTOTALDISBURSEMENTAMOUNT;
  71 + }
  72 +
  73 +
  74 + /**
  75 + * Gets the CARRIERTOTALDISBURSEMENTAMOUNT value for this ReturnRecode.
  76 + *
  77 + * @return CARRIERTOTALDISBURSEMENTAMOUNT
  78 + */
  79 + public java.lang.String getCARRIERTOTALDISBURSEMENTAMOUNT() {
  80 + return CARRIERTOTALDISBURSEMENTAMOUNT;
  81 + }
  82 +
  83 +
  84 + /**
  85 + * Sets the CARRIERTOTALDISBURSEMENTAMOUNT value for this ReturnRecode.
  86 + *
  87 + * @param CARRIERTOTALDISBURSEMENTAMOUNT
  88 + */
  89 + public void setCARRIERTOTALDISBURSEMENTAMOUNT(java.lang.String CARRIERTOTALDISBURSEMENTAMOUNT) {
  90 + this.CARRIERTOTALDISBURSEMENTAMOUNT = CARRIERTOTALDISBURSEMENTAMOUNT;
  91 + }
  92 +
  93 +
  94 + /**
  95 + * Gets the FID value for this ReturnRecode.
  96 + *
  97 + * @return FID
  98 + */
  99 + public int getFID() {
  100 + return FID;
  101 + }
  102 +
  103 +
  104 + /**
  105 + * Sets the FID value for this ReturnRecode.
  106 + *
  107 + * @param FID
  108 + */
  109 + public void setFID(int FID) {
  110 + this.FID = FID;
  111 + }
  112 +
  113 +
  114 + /**
  115 + * Gets the HID value for this ReturnRecode.
  116 + *
  117 + * @return HID
  118 + */
  119 + public java.lang.String getHID() {
  120 + return HID;
  121 + }
  122 +
  123 +
  124 + /**
  125 + * Sets the HID value for this ReturnRecode.
  126 + *
  127 + * @param HID
  128 + */
  129 + public void setHID(java.lang.String HID) {
  130 + this.HID = HID;
  131 + }
  132 +
  133 +
  134 + /**
  135 + * Gets the id value for this ReturnRecode.
  136 + *
  137 + * @return id
  138 + */
  139 + public int getId() {
  140 + return id;
  141 + }
  142 +
  143 +
  144 + /**
  145 + * Sets the id value for this ReturnRecode.
  146 + *
  147 + * @param id
  148 + */
  149 + public void setId(int id) {
  150 + this.id = id;
  151 + }
  152 +
  153 +
  154 + /**
  155 + * Gets the MID value for this ReturnRecode.
  156 + *
  157 + * @return MID
  158 + */
  159 + public java.lang.String getMID() {
  160 + return MID;
  161 + }
  162 +
  163 +
  164 + /**
  165 + * Sets the MID value for this ReturnRecode.
  166 + *
  167 + * @param MID
  168 + */
  169 + public void setMID(java.lang.String MID) {
  170 + this.MID = MID;
  171 + }
  172 +
  173 +
  174 + /**
  175 + * Gets the OAL_ID value for this ReturnRecode.
  176 + *
  177 + * @return OAL_ID
  178 + */
  179 + public java.lang.String getOAL_ID() {
  180 + return OAL_ID;
  181 + }
  182 +
  183 +
  184 + /**
  185 + * Sets the OAL_ID value for this ReturnRecode.
  186 + *
  187 + * @param OAL_ID
  188 + */
  189 + public void setOAL_ID(java.lang.String OAL_ID) {
  190 + this.OAL_ID = OAL_ID;
  191 + }
  192 +
  193 +
  194 + /**
  195 + * Gets the SLT_NAME value for this ReturnRecode.
  196 + *
  197 + * @return SLT_NAME
  198 + */
  199 + public java.lang.String getSLT_NAME() {
  200 + return SLT_NAME;
  201 + }
  202 +
  203 +
  204 + /**
  205 + * Sets the SLT_NAME value for this ReturnRecode.
  206 + *
  207 + * @param SLT_NAME
  208 + */
  209 + public void setSLT_NAME(java.lang.String SLT_NAME) {
  210 + this.SLT_NAME = SLT_NAME;
  211 + }
  212 +
  213 +
  214 + /**
  215 + * Gets the WEIGHTTOTALCHARGEAMOUNT value for this ReturnRecode.
  216 + *
  217 + * @return WEIGHTTOTALCHARGEAMOUNT
  218 + */
  219 + public java.lang.String getWEIGHTTOTALCHARGEAMOUNT() {
  220 + return WEIGHTTOTALCHARGEAMOUNT;
  221 + }
  222 +
  223 +
  224 + /**
  225 + * Sets the WEIGHTTOTALCHARGEAMOUNT value for this ReturnRecode.
  226 + *
  227 + * @param WEIGHTTOTALCHARGEAMOUNT
  228 + */
  229 + public void setWEIGHTTOTALCHARGEAMOUNT(java.lang.String WEIGHTTOTALCHARGEAMOUNT) {
  230 + this.WEIGHTTOTALCHARGEAMOUNT = WEIGHTTOTALCHARGEAMOUNT;
  231 + }
  232 +
  233 + private java.lang.Object __equalsCalc = null;
  234 + public synchronized boolean equals(java.lang.Object obj) {
  235 + if (!(obj instanceof ReturnRecode)) return false;
  236 + ReturnRecode other = (ReturnRecode) obj;
  237 + if (obj == null) return false;
  238 + if (this == obj) return true;
  239 + if (__equalsCalc != null) {
  240 + return (__equalsCalc == obj);
  241 + }
  242 + __equalsCalc = obj;
  243 + boolean _equals;
  244 + _equals = true &&
  245 + ((this.AGENTTOTALDISBURSEMENTAMOUNT==null && other.getAGENTTOTALDISBURSEMENTAMOUNT()==null) ||
  246 + (this.AGENTTOTALDISBURSEMENTAMOUNT!=null &&
  247 + this.AGENTTOTALDISBURSEMENTAMOUNT.equals(other.getAGENTTOTALDISBURSEMENTAMOUNT()))) &&
  248 + ((this.CARRIERTOTALDISBURSEMENTAMOUNT==null && other.getCARRIERTOTALDISBURSEMENTAMOUNT()==null) ||
  249 + (this.CARRIERTOTALDISBURSEMENTAMOUNT!=null &&
  250 + this.CARRIERTOTALDISBURSEMENTAMOUNT.equals(other.getCARRIERTOTALDISBURSEMENTAMOUNT()))) &&
  251 + this.FID == other.getFID() &&
  252 + ((this.HID==null && other.getHID()==null) ||
  253 + (this.HID!=null &&
  254 + this.HID.equals(other.getHID()))) &&
  255 + this.id == other.getId() &&
  256 + ((this.MID==null && other.getMID()==null) ||
  257 + (this.MID!=null &&
  258 + this.MID.equals(other.getMID()))) &&
  259 + ((this.OAL_ID==null && other.getOAL_ID()==null) ||
  260 + (this.OAL_ID!=null &&
  261 + this.OAL_ID.equals(other.getOAL_ID()))) &&
  262 + ((this.SLT_NAME==null && other.getSLT_NAME()==null) ||
  263 + (this.SLT_NAME!=null &&
  264 + this.SLT_NAME.equals(other.getSLT_NAME()))) &&
  265 + ((this.WEIGHTTOTALCHARGEAMOUNT==null && other.getWEIGHTTOTALCHARGEAMOUNT()==null) ||
  266 + (this.WEIGHTTOTALCHARGEAMOUNT!=null &&
  267 + this.WEIGHTTOTALCHARGEAMOUNT.equals(other.getWEIGHTTOTALCHARGEAMOUNT())));
  268 + __equalsCalc = null;
  269 + return _equals;
  270 + }
  271 +
  272 + private boolean __hashCodeCalc = false;
  273 + public synchronized int hashCode() {
  274 + if (__hashCodeCalc) {
  275 + return 0;
  276 + }
  277 + __hashCodeCalc = true;
  278 + int _hashCode = 1;
  279 + if (getAGENTTOTALDISBURSEMENTAMOUNT() != null) {
  280 + _hashCode += getAGENTTOTALDISBURSEMENTAMOUNT().hashCode();
  281 + }
  282 + if (getCARRIERTOTALDISBURSEMENTAMOUNT() != null) {
  283 + _hashCode += getCARRIERTOTALDISBURSEMENTAMOUNT().hashCode();
  284 + }
  285 + _hashCode += getFID();
  286 + if (getHID() != null) {
  287 + _hashCode += getHID().hashCode();
  288 + }
  289 + _hashCode += getId();
  290 + if (getMID() != null) {
  291 + _hashCode += getMID().hashCode();
  292 + }
  293 + if (getOAL_ID() != null) {
  294 + _hashCode += getOAL_ID().hashCode();
  295 + }
  296 + if (getSLT_NAME() != null) {
  297 + _hashCode += getSLT_NAME().hashCode();
  298 + }
  299 + if (getWEIGHTTOTALCHARGEAMOUNT() != null) {
  300 + _hashCode += getWEIGHTTOTALCHARGEAMOUNT().hashCode();
  301 + }
  302 + __hashCodeCalc = false;
  303 + return _hashCode;
  304 + }
  305 +
  306 + // Type metadata
  307 + private static org.apache.axis.description.TypeDesc typeDesc =
  308 + new org.apache.axis.description.TypeDesc(ReturnRecode.class, true);
  309 +
  310 + static {
  311 + typeDesc.setXmlType(new javax.xml.namespace.QName("http://service/", "returnRecode"));
  312 + org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
  313 + elemField.setFieldName("AGENTTOTALDISBURSEMENTAMOUNT");
  314 + elemField.setXmlName(new javax.xml.namespace.QName("", "AGENTTOTALDISBURSEMENTAMOUNT"));
  315 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  316 + elemField.setMinOccurs(0);
  317 + elemField.setNillable(false);
  318 + typeDesc.addFieldDesc(elemField);
  319 + elemField = new org.apache.axis.description.ElementDesc();
  320 + elemField.setFieldName("CARRIERTOTALDISBURSEMENTAMOUNT");
  321 + elemField.setXmlName(new javax.xml.namespace.QName("", "CARRIERTOTALDISBURSEMENTAMOUNT"));
  322 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  323 + elemField.setMinOccurs(0);
  324 + elemField.setNillable(false);
  325 + typeDesc.addFieldDesc(elemField);
  326 + elemField = new org.apache.axis.description.ElementDesc();
  327 + elemField.setFieldName("FID");
  328 + elemField.setXmlName(new javax.xml.namespace.QName("", "FID"));
  329 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
  330 + elemField.setNillable(false);
  331 + typeDesc.addFieldDesc(elemField);
  332 + elemField = new org.apache.axis.description.ElementDesc();
  333 + elemField.setFieldName("HID");
  334 + elemField.setXmlName(new javax.xml.namespace.QName("", "HID"));
  335 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  336 + elemField.setMinOccurs(0);
  337 + elemField.setNillable(false);
  338 + typeDesc.addFieldDesc(elemField);
  339 + elemField = new org.apache.axis.description.ElementDesc();
  340 + elemField.setFieldName("id");
  341 + elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
  342 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
  343 + elemField.setNillable(false);
  344 + typeDesc.addFieldDesc(elemField);
  345 + elemField = new org.apache.axis.description.ElementDesc();
  346 + elemField.setFieldName("MID");
  347 + elemField.setXmlName(new javax.xml.namespace.QName("", "MID"));
  348 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  349 + elemField.setMinOccurs(0);
  350 + elemField.setNillable(false);
  351 + typeDesc.addFieldDesc(elemField);
  352 + elemField = new org.apache.axis.description.ElementDesc();
  353 + elemField.setFieldName("OAL_ID");
  354 + elemField.setXmlName(new javax.xml.namespace.QName("", "OAL_ID"));
  355 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  356 + elemField.setMinOccurs(0);
  357 + elemField.setNillable(false);
  358 + typeDesc.addFieldDesc(elemField);
  359 + elemField = new org.apache.axis.description.ElementDesc();
  360 + elemField.setFieldName("SLT_NAME");
  361 + elemField.setXmlName(new javax.xml.namespace.QName("", "SLT_NAME"));
  362 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  363 + elemField.setMinOccurs(0);
  364 + elemField.setNillable(false);
  365 + typeDesc.addFieldDesc(elemField);
  366 + elemField = new org.apache.axis.description.ElementDesc();
  367 + elemField.setFieldName("WEIGHTTOTALCHARGEAMOUNT");
  368 + elemField.setXmlName(new javax.xml.namespace.QName("", "WEIGHTTOTALCHARGEAMOUNT"));
  369 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  370 + elemField.setMinOccurs(0);
  371 + elemField.setNillable(false);
  372 + typeDesc.addFieldDesc(elemField);
  373 + }
  374 +
  375 + /**
  376 + * Return type metadata object
  377 + */
  378 + public static org.apache.axis.description.TypeDesc getTypeDesc() {
  379 + return typeDesc;
  380 + }
  381 +
  382 + /**
  383 + * Get Custom Serializer
  384 + */
  385 + public static org.apache.axis.encoding.Serializer getSerializer(
  386 + java.lang.String mechType,
  387 + java.lang.Class _javaType,
  388 + javax.xml.namespace.QName _xmlType) {
  389 + return
  390 + new org.apache.axis.encoding.ser.BeanSerializer(
  391 + _javaType, _xmlType, typeDesc);
  392 + }
  393 +
  394 + /**
  395 + * Get Custom Deserializer
  396 + */
  397 + public static org.apache.axis.encoding.Deserializer getDeserializer(
  398 + java.lang.String mechType,
  399 + java.lang.Class _javaType,
  400 + javax.xml.namespace.QName _xmlType) {
  401 + return
  402 + new org.apache.axis.encoding.ser.BeanDeserializer(
  403 + _javaType, _xmlType, typeDesc);
  404 + }
  405 +
  406 +}
  1 +package com.agent.controller;
  2 +
  3 +import java.beans.PropertyEditorSupport;
  4 +import java.io.File;
  5 +import java.io.FileOutputStream;
  6 +import java.io.IOException;
  7 +import java.text.SimpleDateFormat;
  8 +import java.util.Date;
  9 +
  10 +import javax.servlet.http.HttpServletRequest;
  11 +
  12 +import com.alibaba.fastjson.serializer.ValueFilter;
  13 +import org.slf4j.Logger;
  14 +import org.slf4j.LoggerFactory;
  15 +import org.springframework.beans.propertyeditors.CustomDateEditor;
  16 +import org.springframework.web.bind.WebDataBinder;
  17 +import org.springframework.web.bind.annotation.InitBinder;
  18 +import org.springframework.web.bind.annotation.RequestParam;
  19 +import org.springframework.web.multipart.MultipartFile;
  20 +
  21 +import com.framework.shiro.SessionUtil;
  22 +import com.framework.util.DateFormat;
  23 +import com.framework.util.PropertiesLoader;
  24 +import com.agent.entity.BasicEntity;
  25 +import com.agent.entity.system.UserEntity;
  26 +
  27 +public class BasicController {
  28 +
  29 + private static final Logger logger = LoggerFactory.getLogger(BasicController.class);
  30 +
  31 + public static ValueFilter filter = new ValueFilter() {
  32 + @Override
  33 + public Object process(Object obj, String s, Object v) {
  34 + if (v == null)
  35 + return "";
  36 + return v;
  37 + }
  38 + };
  39 +
  40 + /**
  41 + * 上传文件
  42 + * @param file
  43 + * @return
  44 + * @throws IOException
  45 + */
  46 + public String upload(@RequestParam() MultipartFile file,HttpServletRequest request) throws IOException{
  47 + UserEntity user = (UserEntity) SessionUtil.getKey("user");
  48 + String resultPath = "";
  49 + if(file !=null){
  50 + //文件路径构建
  51 + String root_path = PropertiesLoader.get("UPLOAD_PATH")+user.getId()+"/";
  52 + String ymd = DateFormat.getYmd();
  53 + File ymdDir = new File(root_path+ymd);
  54 +
  55 + if(!ymdDir.exists()){
  56 + ymdDir.mkdirs();
  57 + }
  58 + String fileName = file.getOriginalFilename();
  59 + fileName = System.currentTimeMillis()+fileName.substring(fileName.indexOf("."));
  60 + //文件完整路径
  61 + String filePath = root_path+ymd+"/"+fileName;
  62 + logger.info("文件存储路径:{}", filePath);
  63 + byte[] bytes = file.getBytes();
  64 + FileOutputStream fos = new FileOutputStream(filePath);
  65 + fos.write(bytes);
  66 + fos.flush();
  67 + fos.close();
  68 +
  69 + resultPath = user.getId()+"/"+ymd+"/"+fileName;
  70 + }
  71 + return resultPath;
  72 + }
  73 +
  74 + /**
  75 + * 设置实体Bean 通用属性
  76 + * 创建者
  77 + * 创建时间
  78 + * 修改者
  79 + * 修改时间
  80 + * 部门 可选
  81 + * @param entity
  82 + */
  83 + protected void setBasicAttr(BasicEntity entity) {
  84 + UserEntity user = (UserEntity) SessionUtil.getKey("user");
  85 + if(entity.getId() == null) {
  86 + entity.setCreateDate(new Date());
  87 + entity.setCreator(user);
  88 + }else {
  89 + entity.setModifyDate(new Date());
  90 + entity.setModifier(user);
  91 + }
  92 + }
  93 +
  94 + @InitBinder
  95 + protected void initBinder(WebDataBinder binder) {
  96 + binder.registerCustomEditor(Date.class, new CustomDateEditor(new SimpleDateFormat("yyyy-MM-dd"), true));
  97 +
  98 + // 初始化数据绑定 将所有传递过来的String进行HTML编码,防止XSS攻击
  99 + binder.registerCustomEditor(String.class, new PropertyEditorSupport() {
  100 + @Override
  101 + public void setAsText(String text) {
  102 + setValue(text == null ? null : text.trim());
  103 + }
  104 +
  105 + @Override
  106 + public String getAsText() {
  107 + Object value = getValue();
  108 + return value != null ? value.toString() : "";
  109 + }
  110 + });
  111 + }
  112 +
  113 +
  114 +}
  1 +package com.agent.controller.agent;
  2 +
  3 +import java.util.Map;
  4 +
  5 +import javax.annotation.Resource;
  6 +import javax.servlet.http.HttpServletRequest;
  7 +
  8 +import org.slf4j.Logger;
  9 +import org.slf4j.LoggerFactory;
  10 +import org.springframework.stereotype.Controller;
  11 +import org.springframework.ui.Model;
  12 +import org.springframework.web.bind.annotation.RequestMapping;
  13 +import org.springframework.web.bind.annotation.RequestMethod;
  14 +import org.springframework.web.bind.annotation.ResponseBody;
  15 +
  16 +import com.agent.controller.BasicController;
  17 +import com.agent.entity.agent.BasicAgentEntity;
  18 +import com.agent.service.agent.BasicAgentService;
  19 +import com.agent.util.HttpJsonMsg;
  20 +import com.agent.vo.ResponseModel;
  21 +import com.framework.core.Servlets;
  22 +import com.plugin.easyui.DataGrid;
  23 +import com.plugin.easyui.EasyPage;
  24 +
  25 +/**
  26 + * Created by cohesion on 2017/3/29.
  27 + */
  28 +@Controller
  29 +@RequestMapping(value = "/agent")
  30 +public class AgentController extends BasicController{
  31 +
  32 + private static final Logger logger = LoggerFactory.getLogger(AgentController.class);
  33 +
  34 + /**
  35 + * 代理人
  36 + */
  37 + @Resource
  38 + private BasicAgentService agentService;
  39 +
  40 +
  41 + /**
  42 + * 代理人页面
  43 + * @return
  44 + */
  45 + /*@RequiresRoles("admin")*/
  46 + @RequestMapping(value = "/list")
  47 + public String getList(){
  48 + return "agent/list";
  49 + }
  50 +
  51 + /**
  52 + * 查询代理人分页数据
  53 + * @return
  54 + */
  55 + @RequestMapping(value="/grid.json")
  56 + @ResponseBody
  57 + public DataGrid<BasicAgentEntity> grid(HttpServletRequest request,EasyPage<BasicAgentEntity> pageForm) {
  58 + Map<String, Object> searchParams = Servlets.getParametersStartingWith(request, "search_");
  59 + /*searchParams.put("EQ_isdelete", 0);*/
  60 + pageForm.setSearchParams(searchParams);
  61 + pageForm.parseData(agentService.getPage(pageForm));
  62 + return pageForm.getData();
  63 + }
  64 +
  65 + /**
  66 + * 编辑
  67 + * @param id
  68 + * @param model
  69 + * @return
  70 + */
  71 + @RequestMapping(value = "/edit" , method = {RequestMethod.GET })
  72 + public String edit(Long id, Model model) {
  73 + BasicAgentEntity agent = null;
  74 + if(id!=null){
  75 + agent = agentService.findOne(id);
  76 + }
  77 + if(agent==null){
  78 + agent = new BasicAgentEntity();
  79 + agent.setCountryCode("CN");
  80 + }
  81 + model.addAttribute("agent", agent);
  82 + return "agent/edit";
  83 + }
  84 +
  85 +
  86 + /**
  87 + * 保存
  88 + * @param agent
  89 + * @return
  90 + */
  91 + @RequestMapping(value = "/save" , method = {RequestMethod.POST })
  92 + @ResponseBody
  93 + public ResponseModel save(BasicAgentEntity agent) {
  94 + ResponseModel model = new ResponseModel();
  95 + try {
  96 + agentService.save(agent);
  97 + model.setStatus(200);
  98 + } catch (Exception e) {
  99 + model.setStatus(500);
  100 + logger.error("系统异常 >>", e);
  101 + }
  102 + return model;
  103 + }
  104 +
  105 + /**
  106 + * 删除
  107 + * @param ids
  108 + * @return
  109 + */
  110 + @RequestMapping(value = "/delete" , method = {RequestMethod.POST })
  111 + @ResponseBody
  112 + public ResponseModel delete(String ids) {
  113 + ResponseModel model = new ResponseModel();
  114 + try {
  115 + agentService.deleteAll(ids);
  116 + model.setStatus(200);
  117 + model.setMsg(HttpJsonMsg.SUCCESS);
  118 + } catch (Exception e) {
  119 + model.setStatus(500);
  120 + model.setMsg(HttpJsonMsg.ERROR);
  121 + logger.error("系统异常 >>", e);
  122 + }
  123 + return model;
  124 + }
  125 +
  126 +}
  1 +package com.agent.controller.agent;
  2 +
  3 +import java.rmi.RemoteException;
  4 +import java.util.ArrayList;
  5 +import java.util.Date;
  6 +import java.util.List;
  7 +
  8 +import javax.annotation.Resource;
  9 +import javax.servlet.http.HttpServletRequest;
  10 +
  11 +import org.springframework.stereotype.Controller;
  12 +import org.springframework.ui.Model;
  13 +import org.springframework.web.bind.annotation.RequestMapping;
  14 +import org.springframework.web.bind.annotation.RequestMethod;
  15 +import org.springframework.web.bind.annotation.ResponseBody;
  16 +
  17 +import com.agent.controller.BasicController;
  18 +import com.agent.entity.agent.BillCheckEntity;
  19 +import com.agent.entity.agent.MakeHawbEntity;
  20 +import com.agent.entity.agent.MakeMawbEntity;
  21 +import com.agent.entity.agent.PubStationEntity;
  22 +import com.agent.service.agent.BasicAgentService;
  23 +import com.agent.service.agent.BillCheckService;
  24 +import com.agent.service.agent.MakeHawbService;
  25 +import com.agent.service.agent.MakeMawbService;
  26 +import com.agent.service.agent.PubStationService;
  27 +import com.agent.util.HttpJsonMsg;
  28 +import com.agent.vo.ResponseModel;
  29 +import com.alibaba.fastjson.JSONObject;
  30 +import com.framework.util.DateFormat;
  31 +
  32 +import billcheckservice.BillCheckServiceProxy;
  33 +import billcheckservice.QueryData;
  34 +import billcheckservice.ReturnData;
  35 +import billcheckservice.ReturnRecode;
  36 +import tools.BillCheckReturnData;
  37 +import tools.DataSerieal;
  38 +
  39 +/**
  40 + * 账单核审
  41 + * @author 61004
  42 + *
  43 + */
  44 +@Controller
  45 +@RequestMapping(value = "/billcheck")
  46 +public class BillCheckController extends BasicController{
  47 +
  48 + @Resource
  49 + private PubStationService stationService;
  50 +
  51 + @Resource
  52 + private BillCheckService billCheckService;
  53 +
  54 + @Resource
  55 + private MakeMawbService makeMawbService;
  56 +
  57 + @Resource
  58 + private MakeHawbService makeHawbService;
  59 +
  60 + @Resource
  61 + private BasicAgentService agentService;
  62 +
  63 +
  64 + @RequestMapping(value="/list")
  65 + public String list(Model model) {
  66 + //交运货站
  67 + List<PubStationEntity> stations = stationService.findAll();
  68 + Date date = new Date();
  69 + model.addAttribute("stations",stations);
  70 + model.addAttribute("dateModel",DateFormat.formatString(date, "yyyy-MM-dd"));
  71 + return "billcheck/report";
  72 + }
  73 +
  74 +
  75 + @RequestMapping(value="search")
  76 + @ResponseBody
  77 + public ResponseModel search(HttpServletRequest request){
  78 + ResponseModel model = new ResponseModel(1, "", null);
  79 + String deliveryStation = tools.RequestUtils.getQueryParam(request, "deliveryStation");
  80 + int start_position = 1, end_position = 99999999;
  81 + String total = request.getParameter("total");
  82 + String length = request.getParameter("length");
  83 + String start_time = request.getParameter("start_time");
  84 + String end_time = request.getParameter("end_time");
  85 +
  86 + if(total != null && length != null)
  87 + {
  88 + int itotal = Integer.parseInt(total);
  89 + int ilength = Integer.parseInt(length);
  90 + start_position = (itotal-1) * ilength + 1;
  91 + end_position = start_position + ilength - 1;
  92 + }
  93 +
  94 + //System.out.println("start_position:"+start_position+" end_position:"+end_position);
  95 + //System.out.println("deliveryStation:"+deliveryStation+" start:"+start_time+" end:"+end_time);
  96 + List<BillCheckReturnData> bcrd = new ArrayList<BillCheckReturnData>();
  97 +
  98 + List<MakeMawbEntity> list1 = makeMawbService.findByDate(deliveryStation,start_time, end_time, start_position, end_position);
  99 + model.setCount(makeMawbService.findByDateCount(deliveryStation, start_time, end_time));
  100 + //查找分单
  101 + for(int i = 0; i < list1.size(); i ++)
  102 + {
  103 + MakeHawbEntity mhe = makeHawbService.findByMawbNo(list1.get(i).getMawbNo());
  104 + BillCheckReturnData rd = new BillCheckReturnData();
  105 + rd.setMawblist(list1.get(i));
  106 + rd.setHawblist(mhe);
  107 + bcrd.add(rd);
  108 + }
  109 + model.setData(bcrd);
  110 + //System.out.println("count:"+model.getCount());
  111 + return model;
  112 + }
  113 + @RequestMapping("search2")
  114 + @ResponseBody
  115 + public ResponseModel search2(HttpServletRequest request){
  116 +
  117 + ResponseModel model = new ResponseModel(1, "", null);
  118 + BillCheckServiceProxy bcsp = new BillCheckServiceProxy();
  119 + QueryData qd = new QueryData();
  120 + String total = request.getParameter("total");
  121 + String length = request.getParameter("length");
  122 + DataSerieal.ModelSet(qd, request);
  123 + if(qd.getStart_time() == null || qd.getEnd_time() == null)
  124 + {
  125 + model.setStatus(2);
  126 + model.setMsg("请输入日期");
  127 + return model;
  128 + }
  129 + if(total != null && length != null)
  130 + {
  131 + qd.setStart_page(Integer.parseInt(total));
  132 + qd.setPage_length(Integer.parseInt(length));
  133 + qd.setStart_position((qd.getStart_page()-1)*qd.getPage_length()+1);
  134 + qd.setEnd_position(qd.getStart_position()+qd.getPage_length()-1);
  135 + }
  136 + System.out.println(JSONObject.toJSONString(qd));
  137 + try {
  138 + ReturnData rd = bcsp.getByQuery(qd);
  139 +
  140 + List<ReturnRecode> list = new ArrayList<ReturnRecode>();
  141 + ReturnRecode rrs[] = rd.getRecode_list();
  142 + for(int i = 0; i < rrs.length; i ++)
  143 + {
  144 + list.add(rrs[i]);
  145 + }
  146 + model.setCount(rd.getRecode_all_count());
  147 + model.setData(list);
  148 +
  149 + } catch (RemoteException e) {
  150 + // TODO Auto-generated catch block
  151 + e.printStackTrace();
  152 + }
  153 +
  154 + return model;
  155 + }
  156 + /**
  157 + * 销售日报
  158 + * @return
  159 + */
  160 + @RequestMapping(value="/report")
  161 + public String report(/*Model model,Long id,String deliveryStation,String date, */HttpServletRequest request) {
  162 + String start_date = request.getParameter("start_date");
  163 + String end_date = request.getParameter("end_date");
  164 + Date sd = new Date(start_date.replace('-', '/'));
  165 + Date ed = new Date(end_date.replace('-', '/'));
  166 +// System.out.println("report entry!");
  167 +// //交运货站
  168 +// List<PubStationEntity> stations = stationService.findAll();
  169 +// model.addAttribute("stations",stations);
  170 +//
  171 +// BillCheckEntity check = null;
  172 +// if(id!=null){
  173 +// check = billCheckService.findOne(id);
  174 +// }else{
  175 +// check = billCheckService.findByStationAndDate(deliveryStation,date,SessionUtil.getUser().getId());
  176 +// }
  177 +// System.out.println("report entry 2!");
  178 +// if(check ==null){
  179 +// check = new BillCheckEntity();
  180 +// BasicAgentEntity agent = agentService.findOne(SessionUtil.getUser().getAgent());
  181 +// check.setAgent(agent.getNameCn());
  182 +// check.setPayDate(date);
  183 +// check.setDeliveryStation(deliveryStation);
  184 +// if(StringUtils.isNotEmpty(deliveryStation)){
  185 +// //代理人
  186 +// BasicAgentEntity baiscAgent = agentService.findOne(SessionUtil.getUser().getAgent());
  187 +// Object[] obj = (Object[]) makeMawbService.countCash(deliveryStation,date, baiscAgent.getThreeCode());
  188 +// check.setMawbCash(obj[0]==null?0:Double.valueOf(String.valueOf(obj[0])));
  189 +// check.setHawbCash(obj[1]==null?0:Double.valueOf(String.valueOf(obj[1])));
  190 +// check.setTotalCash((obj[0]==null?0:Double.valueOf(String.valueOf(obj[0]))) + (obj[1]==null?0:Double.valueOf(String.valueOf(obj[1]))));
  191 +// }
  192 +// }
  193 +// System.out.println("report entry 3!");
  194 +// if(StringUtils.isNotEmpty(check.getPayDate())){
  195 +// check.setPayDate(DateFormat.formatString(check.getPayDate(), "yyyy-MM"));
  196 +// }else {
  197 +// date=DateFormat.formatString(new Date(), "yyyy-MM");
  198 +// check.setPayDate(date);
  199 +// }
  200 +// model.addAttribute("dateModel",check.getPayDate());
  201 +// model.addAttribute("check",check);
  202 + //System.out.println("report exit");
  203 + return "billcheck/report";
  204 + }
  205 +
  206 +
  207 + /**
  208 + * 保存
  209 + * @param check
  210 + * @return
  211 + */
  212 + @RequestMapping(value="/save",method = RequestMethod.POST)
  213 + @ResponseBody
  214 + public ResponseModel save(BillCheckEntity check) {
  215 + ResponseModel model = new ResponseModel();
  216 + try{
  217 + check = billCheckService.save(check);
  218 + model.setStatus(200);
  219 + model.setMsg(HttpJsonMsg.SUCCESS);
  220 + model.setData(check.getId());
  221 + } catch(Exception e){
  222 + model.setStatus(500);
  223 + model.setMsg(HttpJsonMsg.ERROR);
  224 + }
  225 +
  226 + return model;
  227 + }
  228 +
  229 +
  230 +}
  1 +package com.agent.controller.agent;
  2 +
  3 +import java.io.IOException;
  4 +import java.text.ParseException;
  5 +import java.util.ArrayList;
  6 +import java.util.Date;
  7 +import java.util.List;
  8 +import java.util.Map;
  9 +
  10 +import javax.annotation.Resource;
  11 +import javax.servlet.http.HttpServletRequest;
  12 +import javax.servlet.http.HttpServletResponse;
  13 +
  14 +import org.apache.commons.collections.CollectionUtils;
  15 +import org.apache.commons.lang.StringUtils;
  16 +import org.slf4j.Logger;
  17 +import org.slf4j.LoggerFactory;
  18 +import org.springframework.stereotype.Controller;
  19 +import org.springframework.ui.Model;
  20 +import org.springframework.web.bind.annotation.RequestMapping;
  21 +import org.springframework.web.bind.annotation.RequestMethod;
  22 +import org.springframework.web.bind.annotation.ResponseBody;
  23 +import org.springframework.web.servlet.ModelAndView;
  24 +
  25 +import com.agent.controller.BasicController;
  26 +import com.agent.entity.Constant;
  27 +import com.agent.entity.agent.BasicAgentEntity;
  28 +import com.agent.entity.agent.ConsigneeEntity;
  29 +import com.agent.entity.agent.DeliveryInfoEntity;
  30 +import com.agent.entity.agent.HawbOtherFeeEntity;
  31 +import com.agent.entity.agent.MakeHawbEntity;
  32 +import com.agent.entity.agent.MakeMawbEntity;
  33 +import com.agent.entity.agent.MawbOtherFeeEntity;
  34 +import com.agent.entity.agent.PackageTypeEntity;
  35 +import com.agent.entity.agent.PubStationEntity;
  36 +import com.agent.service.agent.BasicAgentService;
  37 +import com.agent.service.agent.ConsigneeService;
  38 +import com.agent.service.agent.DeliveryInfoService;
  39 +import com.agent.service.agent.HawbOtherFeeService;
  40 +import com.agent.service.agent.MakeHawbService;
  41 +import com.agent.service.agent.MakeMawbService;
  42 +import com.agent.service.agent.MawbOtherFeeService;
  43 +import com.agent.service.agent.PackageSizeService;
  44 +import com.agent.service.agent.PackageTypeService;
  45 +import com.agent.service.agent.PubStationService;
  46 +import com.agent.util.HttpJsonMsg;
  47 +import com.agent.vo.ResponseModel;
  48 +import com.agent.xml.bill.ApplicableFreightRateServiceChargeXml;
  49 +import com.agent.xml.bill.ApplicableLogisticsAllowanceChargeXml;
  50 +import com.agent.xml.bill.ApplicableTradeCurrencyExchangeXml;
  51 +import com.agent.xml.bill.AssociatedPartyXml;
  52 +import com.agent.xml.bill.AssociatedUnitLoadTransportEquipmentXml;
  53 +import com.agent.xml.bill.BillHeadXml;
  54 +import com.agent.xml.bill.BillXmlBody;
  55 +import com.agent.xml.bill.ConsignorPartyXml;
  56 +import com.agent.xml.bill.DepartureEventXml;
  57 +import com.agent.xml.bill.DirectTelephoneCommunicationXml;
  58 +import com.agent.xml.bill.EventTimeXml;
  59 +import com.agent.xml.bill.HandlingInstructionsXml;
  60 +import com.agent.xml.bill.IncludedMasterConsignmentItemXml;
  61 +import com.agent.xml.bill.LinearSpatialDimensionXml;
  62 +import com.agent.xml.bill.MasterConsignmentXml;
  63 +import com.agent.xml.bill.NatureIdentificationTransportCargoXml;
  64 +import com.agent.xml.bill.OccurrenceArrivalLocationXml;
  65 +import com.agent.xml.bill.OperatingPartyXml;
  66 +import com.agent.xml.bill.PostalStructuredAddressXml;
  67 +import com.agent.xml.bill.ReportedStatusXml;
  68 +import com.agent.xml.bill.SignatoryCarrierAuthenticationXml;
  69 +import com.agent.xml.bill.SpecifiedLogisticsTransportMovementXml;
  70 +import com.agent.xml.bill.TransportLogisticsPackageXml;
  71 +import com.agent.xml.common.IDXml;
  72 +import com.agent.xml.common.NameXml;
  73 +import com.agent.xml.common.XmlUtil;
  74 +import com.alibaba.fastjson.JSON;
  75 +import com.alibaba.fastjson.JSONArray;
  76 +import com.framework.core.Servlets;
  77 +import com.framework.shiro.SessionUtil;
  78 +import com.plugin.easyui.DataGrid;
  79 +import com.plugin.easyui.EasyPage;
  80 +
  81 +import tools.Tools;
  82 +
  83 +/**
  84 + * Created by cohesion on 2017/3/29.
  85 + */
  86 +@Controller
  87 +@RequestMapping(value = "/bill")
  88 +public class BillController extends BasicController{
  89 +
  90 + private static final Logger logger = LoggerFactory.getLogger(BillController.class);
  91 +
  92 + @Resource
  93 + private MakeMawbService makeMawbService;
  94 +
  95 + @Resource
  96 + private ConsigneeService consigneeService;
  97 +
  98 + @Resource
  99 + private PubStationService stationService;
  100 +
  101 + @Resource
  102 + private MawbOtherFeeService otherFeeService;
  103 +
  104 + @Resource
  105 + private BasicAgentService agentService;
  106 +
  107 + @Resource
  108 + private MakeHawbService makeHawbService;
  109 +
  110 + @Resource
  111 + private HawbOtherFeeService hawbOtherFeeService;
  112 +
  113 + @Resource
  114 + private PackageTypeService packageTypeService;
  115 +
  116 + @Resource
  117 + private DeliveryInfoService deliveryInfoService;
  118 +
  119 + @Resource
  120 + private PackageSizeService sizeService;
  121 +
  122 +
  123 + /**
  124 + * 国内制单页面
  125 + * @return
  126 + */
  127 + /* @RequiresRoles("agent")*/
  128 + @RequestMapping(value = "/list")
  129 + public ModelAndView getList(String type){
  130 + ModelAndView mav = new ModelAndView();
  131 + mav.addObject("type",type);
  132 + mav.setViewName("bill/list");
  133 + return mav;
  134 + }
  135 +
  136 + /**
  137 + * 制单浏览
  138 + * @return
  139 + */
  140 + @RequestMapping(value = "/CheckThrough")
  141 + public ModelAndView CheckThrough(String type){
  142 + ModelAndView mav = new ModelAndView();
  143 + mav.addObject("type",type);
  144 + mav.setViewName("bill/view");
  145 + return mav;
  146 + }
  147 +
  148 + /**
  149 + * 查询主制单分页数据
  150 + * @return
  151 + */
  152 + @RequestMapping(value="/grid.json")
  153 + @ResponseBody
  154 + public DataGrid<MakeMawbEntity> grid(HttpServletRequest request,EasyPage<MakeMawbEntity> pageForm,String type) {
  155 + Map<String, Object> searchParams = Servlets.getParametersStartingWith(request, "search_");
  156 + searchParams.put("EQ_isdelete", 0);
  157 + searchParams.put("LIKE_billType",type);
  158 + searchParams.put("EQ_USER_ID", Tools.getUserId());
  159 + pageForm.setSearchParams(searchParams);
  160 + pageForm.parseData(makeMawbService.getPage(pageForm));
  161 + return pageForm.getData();
  162 + }
  163 +
  164 +
  165 + /**
  166 + * 查询分制单分页数据
  167 + * @return
  168 + */
  169 + @RequestMapping(value="/sub/grid.json")
  170 + @ResponseBody
  171 + public DataGrid<MakeHawbEntity> gridSub(Long mawbId,HttpServletRequest request) {
  172 + DataGrid<MakeHawbEntity> dg = new DataGrid<>();
  173 + dg.setRows(makeHawbService.findByMawbId(mawbId));
  174 + return dg;
  175 + }
  176 +
  177 +
  178 + /**
  179 + * 临时跳转打印用
  180 + */
  181 + @RequestMapping(value="/billprint")
  182 + @ResponseBody
  183 + public MakeMawbEntity billprint(Long id,Model model){
  184 + MakeMawbEntity make = makeMawbService.findOne(id);
  185 + model.addAttribute("make", make);
  186 + return make;
  187 + }
  188 +
  189 +
  190 + /**
  191 + * 编辑
  192 + * @param id
  193 + * @param model
  194 + * @return
  195 + * @throws ParseException
  196 + */
  197 + @RequestMapping(value = "/edit" , method = {RequestMethod.GET })
  198 + public String edit(Long id,String mawbNo,String type,Long deliveryId, Model model) throws ParseException {
  199 +
  200 + MakeMawbEntity bill = null;
  201 + if(id!=null){
  202 + //主制单
  203 + bill = makeMawbService.findOne(id);
  204 +
  205 + //其他费用
  206 + if(bill!=null){
  207 + MawbOtherFeeEntity otherFee = otherFeeService.findByMawbId(bill.getId());
  208 + model.addAttribute("otherFee",otherFee);
  209 + }
  210 + }
  211 + if(bill==null){
  212 + bill = new MakeMawbEntity();
  213 + }
  214 + //货站
  215 + List<PubStationEntity> stations = stationService.findAll();
  216 + model.addAttribute("stations",stations);
  217 +
  218 + if(SessionUtil.getUser() != null && SessionUtil.getUser().getAgent() != null)
  219 + {
  220 + //代理人
  221 + BasicAgentEntity agent = agentService.findOne(SessionUtil.getUser().getAgent());
  222 + if(agent!=null){
  223 + bill.setAgent(agent.getThreeCode());
  224 + if(StringUtils.isNotEmpty(mawbNo)){
  225 + bill.setMawbNo(mawbNo);
  226 + }
  227 + bill.setfTel(agent.getTel());
  228 +// bill.setfName(agent.getNameCn());
  229 + bill.setfName(agent.getContact());
  230 +
  231 + bill.setfAddress(agent.getAddress());
  232 + bill.setfCode(agent.getThreeCode());
  233 + bill.setBillType(type);
  234 + }
  235 + }
  236 +
  237 + model.addAttribute("bill", bill);
  238 +
  239 +
  240 + String printStr ="";
  241 + //打印用到的时间
  242 + if(bill.getFlightOneDate() !=null){
  243 + printStr =Constant.dateFormat.format(bill.getFlightOneDate());
  244 + }
  245 + model.addAttribute("printStr",printStr);
  246 +
  247 + //费用类型(其他费用)
  248 + List<String> feeTypes = getFeeTypes();
  249 + model.addAttribute("feeTypes",feeTypes);
  250 +
  251 + //支付方式
  252 + List<String> payTypes = getPayTypes();
  253 + model.addAttribute("payTypes",payTypes);
  254 +
  255 + //包装种类
  256 + List<PackageTypeEntity> typeList = packageTypeService.findAll();
  257 + model.addAttribute("typeList",typeList);
  258 +
  259 + //下一票ID
  260 + Long nextId = null;
  261 + Long minId = makeMawbService.findMinId();
  262 + if(bill!=null){
  263 + nextId = findNext(bill.getId(),minId);
  264 + }
  265 + model.addAttribute("nextId",nextId);
  266 +
  267 + //交运信息
  268 + if(deliveryId!=null){
  269 + DeliveryInfoEntity deliveryInfo = deliveryInfoService.findOne(deliveryId);
  270 + if(deliveryInfo!=null){
  271 + bill.setDestinationStation(deliveryInfo.getDestination());
  272 + bill.setMawbNo(deliveryInfo.getMawbNo());
  273 + }
  274 + }
  275 +
  276 + //打印专用 --开始
  277 + if(bill.getMawbNo() !=null){
  278 + model.addAttribute("way1",bill.getMawbNo().substring(0, 3));
  279 + model.addAttribute("cgo",bill.getCgo());
  280 + model.addAttribute("way2",bill.getMawbNo().substring(4, 11));
  281 + }
  282 +
  283 + if(bill.getDate_one() !=null){
  284 + model.addAttribute("dateOne",Constant.dateFormat.format(bill.getDate_one()));
  285 + }
  286 + if(bill.getDate_two() !=null){
  287 + model.addAttribute("dateTwe",Constant.dateFormat.format(bill.getDate_two()));
  288 + }
  289 + if(bill.getExecute_date() !=null){
  290 + model.addAttribute("execute_date",Constant.dateFormat.format(bill.getExecute_date()));
  291 + }
  292 + //结束
  293 +
  294 + return "bill/edit";
  295 + }
  296 +
  297 + private Long findNext(Long id,Long minId){
  298 + if(id==null || minId==null || id<=minId){
  299 + return null;
  300 + }
  301 + MakeMawbEntity next = makeMawbService.findOne(id - 1);
  302 + if(next==null){
  303 + return findNext(id-1,minId);
  304 + }
  305 + else {
  306 + return next.getId();
  307 + }
  308 + }
  309 +
  310 + /**
  311 + * 编辑
  312 + * @param id
  313 + * @param model
  314 + * @return
  315 + */
  316 + @RequestMapping(value = "/sub/edit" , method = {RequestMethod.GET })
  317 + public String subEdit(Long id,Long mawbId,String type, Model model) {
  318 + MakeHawbEntity subBill = null;
  319 + if(id!=null){
  320 + //分制单
  321 + subBill = makeHawbService.findOne(id);
  322 +
  323 + //其他费用
  324 + if(subBill!=null){
  325 + List<HawbOtherFeeEntity> feeList = hawbOtherFeeService.findByHawbId(subBill.getId());
  326 + model.addAttribute("feeList",feeList);
  327 + }
  328 + }
  329 +
  330 + //货站
  331 + List<PubStationEntity> stations = stationService.findAll();
  332 + model.addAttribute("stations",stations);
  333 +
  334 + //代理人
  335 + BasicAgentEntity agent = agentService.findOne(SessionUtil.getUser().getAgent());
  336 + if(subBill==null && agent!=null){
  337 + subBill = new MakeHawbEntity();
  338 + if(mawbId!=null){
  339 + MakeMawbEntity mawb = makeMawbService.findOne(mawbId);
  340 + subBill.setMawbNo(mawb.getMawbNo());
  341 + subBill.setfName(agent.getNameCn());
  342 + }
  343 + subBill.setMawbId(mawbId);
  344 + }
  345 + model.addAttribute("bill", subBill);
  346 +
  347 + //费用类型(其他费用)
  348 + List<String> feeTypes = getFeeTypes();
  349 + model.addAttribute("feeTypes",feeTypes);
  350 +
  351 + //支付方式
  352 + List<String> payTypes = getPayTypes();
  353 + model.addAttribute("payTypes",payTypes);
  354 +
  355 + //包装种类
  356 + List<PackageTypeEntity> typeList = packageTypeService.findAll();
  357 + model.addAttribute("typeList",typeList);
  358 +
  359 + model.addAttribute("type",type);
  360 + return "bill/edit_sub";
  361 + }
  362 +
  363 + private List<String> getFeeTypes(){
  364 + List<String> list = new ArrayList<>();
  365 + list.add("燃油费");
  366 + list.add("地面费");
  367 + list.add("操作费");
  368 + list.add("装卸费");
  369 + list.add("直航费");
  370 + list.add("分单直航费");
  371 + list.add("查验费(危险品)");
  372 + return list;
  373 + }
  374 +
  375 + private List<String> getPayTypes(){
  376 + List<String> list = new ArrayList<>();
  377 + list.add("现金");
  378 + list.add("银行转账");
  379 + list.add("汇款");
  380 + list.add("支票");
  381 + list.add("支付宝");
  382 + list.add("微信");
  383 + list.add("其他");
  384 + return list;
  385 + }
  386 +
  387 + /**
  388 + * 查询分制单费用信息
  389 + * @return
  390 + */
  391 + @RequestMapping(value="/sub/fee/grid.json")
  392 + @ResponseBody
  393 + public String gridSubFee(Long id,HttpServletRequest request) {
  394 + String feeList = JSONArray.toJSONString(hawbOtherFeeService.findByHawbId(id),filter);
  395 + return feeList;
  396 + }
  397 +
  398 + /**
  399 + * 获取收货人信息
  400 + *
  401 + * @param sCode
  402 + * @param sName
  403 + * @return
  404 + */
  405 + @RequestMapping(value = "/getCon",method = {RequestMethod.POST})
  406 + @ResponseBody
  407 + public ResponseModel getConsignee(String sCode,String sName){
  408 + ResponseModel model = new ResponseModel();
  409 + ConsigneeEntity consignee = null;
  410 + try {
  411 + consignee = consigneeService.findByCompanyAndUserId(sCode, Tools.getUserId());
  412 + model.setData(consignee);
  413 + model.setStatus(200);
  414 + }catch (Exception e){
  415 + model.setStatus(500);
  416 + logger.error("系统异常 >>", e);
  417 + }
  418 + if(consignee==null){
  419 + model.setStatus(500);
  420 + }
  421 + return model;
  422 + }
  423 +
  424 +
  425 + /**
  426 + * 查询主单号是否存在
  427 + *
  428 + * @param mawbNo
  429 + * @return
  430 + */
  431 + @RequestMapping(value = "/queryMawbNo",method = {RequestMethod.POST})
  432 + @ResponseBody
  433 + public ResponseModel queryMawbId(Long id,String mawbNo){
  434 + ResponseModel model = new ResponseModel();
  435 + List<MakeMawbEntity> list = null;
  436 + if(StringUtils.isNotEmpty(mawbNo)){
  437 + list = makeMawbService.findByMawbNo(mawbNo);
  438 + }
  439 + boolean exist = false;
  440 + if(CollectionUtils.isNotEmpty(list)){
  441 + if(list.size()>1){
  442 + exist = true;
  443 + }else if(!list.get(0).getId().equals(id)) {
  444 + exist = true;
  445 + }
  446 + }
  447 + if(exist){
  448 + model.setStatus(500);
  449 + }
  450 + else {
  451 + model.setStatus(200);
  452 + }
  453 + return model;
  454 + }
  455 +
  456 + /**
  457 + * 查询分单号是否存在
  458 + *
  459 + * @param hawbNo
  460 + * @return
  461 + */
  462 + @RequestMapping(value = "/queryHawbNo",method = {RequestMethod.POST})
  463 + @ResponseBody
  464 + public ResponseModel queryHawbId(Long id,String hawbNo){
  465 + ResponseModel model = new ResponseModel();
  466 + List<MakeHawbEntity> list = null;
  467 + if(StringUtils.isNotEmpty(hawbNo)){
  468 + list = makeHawbService.findByHawbNo(hawbNo);
  469 + }
  470 + boolean exist = false;
  471 + if(CollectionUtils.isNotEmpty(list)){
  472 + if(list.size()>1){
  473 + exist = true;
  474 + }else if(!list.get(0).getId().equals(id)) {
  475 + exist = true;
  476 + }
  477 + }
  478 + if(exist){
  479 + model.setStatus(500);
  480 + }
  481 + else {
  482 + model.setStatus(200);
  483 + }
  484 + return model;
  485 + }
  486 +
  487 + /**
  488 + * 查询主单号是否存在
  489 + *
  490 + * @param model
  491 + * @return
  492 + */
  493 + @RequestMapping(value = "/viewcheck",method = {RequestMethod.POST})
  494 + @ResponseBody
  495 + public ResponseModel viewcheck(String ids){
  496 + ResponseModel model = new ResponseModel();
  497 + MakeMawbEntity me = null;
  498 + if(StringUtils.isNotEmpty(ids)){
  499 + me = makeMawbService.findNo(ids);
  500 + }
  501 +
  502 + if(me != null){
  503 + model.setStatus(200);
  504 + }else{
  505 + model.setStatus(500);
  506 + }
  507 + return model;
  508 + }
  509 +
  510 + /**
  511 + * 返回主单号
  512 + *
  513 + * @param String
  514 + * @return
  515 + */
  516 + @RequestMapping(value = "/viewlist", method = {RequestMethod.GET })
  517 + public String viewlist(String ids,Model model){
  518 + MakeMawbEntity me = null;
  519 + if(StringUtils.isNotEmpty(ids)){
  520 + me = makeMawbService.findNo(ids);
  521 + }
  522 + model.addAttribute("bill", me);
  523 + return "bill/printedit";
  524 + }
  525 +
  526 +
  527 +
  528 +// /**
  529 +// * 保存
  530 +// * @param billJson
  531 +// * @return
  532 +// */
  533 +// @RequestMapping(value = "/save" , method = {RequestMethod.POST })
  534 +// @ResponseBody
  535 +// public ResponseModel save(String billJson,String otherFeeJson,String conJson,String sizeJson) {
  536 +// ResponseModel model = new ResponseModel();
  537 +// try {
  538 +// MakeMawbEntity bill = JSONObject.parseObject(billJson,MakeMawbEntity.class);
  539 +// MawbOtherFeeEntity otherFee = JSONObject.parseObject(otherFeeJson,MawbOtherFeeEntity.class);
  540 +// ConsigneeEntity consignee = new ConsigneeEntity();
  541 +// if(bill!=null){
  542 +// consignee.setCode(bill.getsCode());
  543 +// consignee.setName(bill.getsName());
  544 +// consignee.setAddress(bill.getsAddress());
  545 +// consignee.setTel(bill.getsTel());
  546 +// }
  547 +// List<PackageSizeEntity> sizeList = JSONArray.parseArray(sizeJson,PackageSizeEntity.class);
  548 +// bill = makeMawbService.save(bill,otherFee,consignee,sizeList);
  549 +// model.setData(bill);
  550 +// model.setStatus(200);
  551 +// } catch (Exception e) {
  552 +// model.setStatus(500);
  553 +// logger.error("系统异常 >>", e);
  554 +// }
  555 +// return model;
  556 +// }
  557 + /**
  558 + * 保存
  559 + * @param billJson
  560 + * @return
  561 + */
  562 + @RequestMapping(value = "/save" , method = {RequestMethod.POST })
  563 + @ResponseBody
  564 + public ResponseModel save(MakeMawbEntity make) {
  565 + ResponseModel model = new ResponseModel();
  566 + try {
  567 + make.setUSER_ID(Tools.getUserId());
  568 + make.setCreateDate(new Date(System.currentTimeMillis()));
  569 + make = makeMawbService.save(make);
  570 + model.setData(make);
  571 + model.setStatus(200);
  572 + } catch (Exception e) {
  573 + model.setStatus(500);
  574 + logger.error("系统异常 >>", e);
  575 + }
  576 + return model;
  577 + }
  578 +
  579 + /**
  580 + * 保存
  581 + * @param billJson
  582 + * @return
  583 + */
  584 + /**
  585 + * 保存
  586 + * @param billJson
  587 + * @return
  588 + */
  589 + @RequestMapping(value = "/sub/save" , method = {RequestMethod.POST })
  590 + @ResponseBody
  591 + public ResponseModel saveSub(MakeHawbEntity make) {
  592 + ResponseModel model = new ResponseModel();
  593 + try {
  594 + make.setUSER_ID(Tools.getUserId());
  595 + make = makeHawbService.savemessage(make);
  596 + model.setData(make);
  597 + model.setStatus(200);
  598 + } catch (Exception e) {
  599 + model.setStatus(500);
  600 + logger.error("系统异常 >>", e);
  601 + }
  602 + return model;
  603 + }
  604 +
  605 +// @RequestMapping(value = "/sub/save" , method = {RequestMethod.POST })
  606 +// @ResponseBody
  607 +// public ResponseModel saveSub(String billJson,String fJson,String sJson,String feeJson,String sizeJson) {
  608 +// ResponseModel model = new ResponseModel();
  609 +// try {
  610 +// MakeHawbEntity bill = JSONObject.parseObject(billJson,MakeHawbEntity.class);
  611 +// PubFhrEntity fhr = JSONObject.parseObject(fJson,PubFhrEntity.class);
  612 +// ConsigneeEntity consignee = JSONObject.parseObject(sJson, ConsigneeEntity.class);
  613 +// List<HawbOtherFeeEntity> feeList = JSONArray.parseArray(feeJson, HawbOtherFeeEntity.class);
  614 +// List<PackageSizeEntity> sizeList = JSONArray.parseArray(sizeJson,PackageSizeEntity.class);
  615 +// makeHawbService.save(bill,feeList,fhr,consignee,sizeList);
  616 +// model.setStatus(200);
  617 +// } catch (Exception e) {
  618 +// model.setStatus(500);
  619 +// logger.error("系统异常 >>", e);
  620 +// }
  621 +// return model;
  622 +// }
  623 +
  624 + /**
  625 + * 删除
  626 + * @param ids
  627 + * @return
  628 + */
  629 + @RequestMapping(value = "/delete" , method = {RequestMethod.POST })
  630 + @ResponseBody
  631 + public ResponseModel delete(String ids) {
  632 + ResponseModel model = new ResponseModel();
  633 + try {
  634 + makeMawbService.deleteAll(ids);
  635 + model.setStatus(200);
  636 + model.setMsg(HttpJsonMsg.SUCCESS);
  637 + } catch (Exception e) {
  638 + model.setStatus(500);
  639 + model.setMsg(HttpJsonMsg.ERROR);
  640 + logger.error("系统异常 >>", e);
  641 + }
  642 + return model;
  643 + }
  644 +
  645 + /**
  646 + * 删除
  647 + * @param id
  648 + * @return
  649 + */
  650 + @RequestMapping(value = "/sub/delete" , method = {RequestMethod.POST })
  651 + @ResponseBody
  652 + public ResponseModel subDelete(Long id) {
  653 + ResponseModel model = new ResponseModel();
  654 + try {
  655 + makeHawbService.delete(id);
  656 + model.setStatus(200);
  657 + model.setMsg(HttpJsonMsg.SUCCESS);
  658 + } catch (Exception e) {
  659 + model.setStatus(500);
  660 + model.setMsg(HttpJsonMsg.ERROR);
  661 + logger.error("系统异常 >>", e);
  662 + }
  663 + return model;
  664 + }
  665 +
  666 + /**
  667 + * 获取包装类型
  668 + *
  669 + * @param hostId
  670 + * @return
  671 + */
  672 + @RequestMapping(value = "/size/get" , method = {RequestMethod.POST })
  673 + @ResponseBody
  674 + public String getSize(Long hostId) {
  675 + return JSON.toJSONString(sizeService.getList(Constant.packageSizeBill, hostId), filter);
  676 + }
  677 +
  678 + /**
  679 + * 获取包装类型
  680 + *
  681 + * @param hostId
  682 + * @return
  683 + */
  684 + @RequestMapping(value = "/sub/size/get" , method = {RequestMethod.POST })
  685 + @ResponseBody
  686 + public String getSubSize(Long hostId) {
  687 + return JSON.toJSONString(sizeService.getList(Constant.packageSizeSubBill, hostId), filter);
  688 + }
  689 +
  690 + @RequestMapping(value = "/xml",method = RequestMethod.POST)
  691 + @ResponseBody
  692 + public ResponseModel createXml(Long id,HttpServletRequest request,HttpServletResponse response) throws IOException {
  693 +
  694 + ResponseModel model = new ResponseModel();
  695 + String rootPath = request.getSession().getServletContext().getRealPath("/");
  696 + String path = rootPath+"/excel/bill"+new Date().getTime()+".xml";
  697 + String xml = "";
  698 + if(id!=null){
  699 + xml = beanToXml(path, id);
  700 + }
  701 + model.setData(xml);
  702 + return model;
  703 + }
  704 +
  705 + private String beanToXml(String path,Long id){
  706 +
  707 + MakeMawbEntity mawb = makeMawbService.findOne(id);
  708 + mawb.setSendXml(1);
  709 + mawb = makeMawbService.save(mawb);
  710 + if(mawb==null){
  711 + mawb = new MakeMawbEntity();
  712 + }
  713 +
  714 + BillXmlBody body = new BillXmlBody();
  715 +
  716 + BillHeadXml headXml = new BillHeadXml();
  717 + headXml.setDdtm(Constant.dateFormat.format(new Date()));
  718 + headXml.setSender(SessionUtil.getUser().getRealName());
  719 + headXml.setSeqn(String.valueOf(new Date().getTime()));
  720 +
  721 + body.setHead(headXml);
  722 +
  723 + MasterConsignmentXml consignmentXml = new MasterConsignmentXml();
  724 + consignmentXml.setId(mawb.getMawbNo());
  725 + consignmentXml.setTypeCode(mawb.getBillType());
  726 + consignmentXml.setNilCarriageValueIndicator(StringUtils.isEmpty(mawb.getTdv()) ? "false" : "true");
  727 + consignmentXml.setDeclaredValueForCarriageAmount(StringUtils.isEmpty(mawb.getTdv()) ? "NVC" : "NVD");
  728 + consignmentXml.setNilCustomsValueIndicator(mawb.getIsCs().equals(1) ? "true" : "false");//是否包含海关声明价值(现在为海关监管货)
  729 + consignmentXml.setDeclaredValueForCustomsAmount(mawb.getIsCs().equals(1) ? "NCV" : "");// true 为 NCV,false ?
  730 + consignmentXml.setNilInsuranceValueIndicator(StringUtils.isEmpty(mawb.getTiv()) ? "false" : "true");
  731 + consignmentXml.setInsuranceValueAmount(StringUtils.isNotEmpty(mawb.getTiv()) ? "XXX" : mawb.getTiv());
  732 + consignmentXml.setTotalChargePrepaidIndicator(mawb.getPpcc());
  733 + consignmentXml.setWeightTotalChargeAmount(mawb.getWeightCharge() != null ? mawb.getWeightCharge().toString() : "");
  734 + consignmentXml.setValuationTotalChargeAmount(mawb.getExtraCharge());
  735 + consignmentXml.setTotalDisbursementPrepaidIndicator(mawb.getPpcc());
  736 + consignmentXml.setTotalPrepaidChargeAmount("pp".equals(mawb.getPpcc())?mawb.getTotalCharge():"");//总预付费用
  737 + consignmentXml.setTotalCollectChargeAmount("cc".equals(mawb.getPpcc())?mawb.getTotalCharge():"");//总到付费用
  738 + consignmentXml.setDestinationCurrencyTotalCollectChargeAmount("");//到付费用?
  739 + consignmentXml.setIncludedTareGrossWeightMeasure(mawb.getGrossWeight()!=null?mawb.getGrossWeight().toString():"");
  740 + consignmentXml.setNetWeightMeasure("");//?
  741 + consignmentXml.setGrossVolumeMeasure(mawb.getCbm());
  742 + consignmentXml.setTotalChargeableWeightMeasure(mawb.getFeeWeight()!=null?mawb.getFeeWeight().toString():"");//是否是计费重量?
  743 + consignmentXml.setConsignmentItemQuantity("");//?
  744 + consignmentXml.setTotalPieceQuantity(mawb.getTotalPieces()!=null?mawb.getTotalPieces().toString():"");
  745 + consignmentXml.setTotalLoadedPackageQuantity("");//总SLAC件数?
  746 + consignmentXml.setPackageInfo(mawb.getPackingType());
  747 + consignmentXml.setFreightRateTypeCode(mawb.getFreightType());
  748 +
  749 + //发货人信息
  750 + ConsignorPartyXml consignXml = new ConsignorPartyXml();
  751 + consignXml.setPrimaryID(mawb.getfCode());//内部ID
  752 + consignXml.setName(mawb.getfName());
  753 + consignXml.setAccountID(mawb.getAgentAccount());//银行账户从哪来?
  754 + PostalStructuredAddressXml addressXml = new PostalStructuredAddressXml();
  755 + addressXml.setStreetName(mawb.getfAddress());
  756 + addressXml.setCityName("");//街道从哪来?
  757 + addressXml.setCountryID("");//国家代码从哪来?
  758 + addressXml.setSpecifiedAddressLocation("");//?
  759 + consignXml.setPostalStructuredAddress(addressXml);
  760 + consignXml.setSpecifiedCargoAgentLocation("");//?
  761 + DirectTelephoneCommunicationXml directCommunicationXml = new DirectTelephoneCommunicationXml();
  762 + directCommunicationXml.setCompleteNumber("");//传真号从哪来?
  763 + consignXml.setDefinedTradeContact(directCommunicationXml);
  764 + consignmentXml.setConsignorParty(consignXml);
  765 +
  766 + //收货人信息
  767 + ConsignorPartyXml consignXml1 = new ConsignorPartyXml();
  768 + consignXml1.setPrimaryID(mawb.getsCode());//内部ID
  769 + consignXml1.setName(mawb.getsName());
  770 + consignXml1.setAccountID(mawb.getAgentAccount());//银行账户从哪来?
  771 + PostalStructuredAddressXml addressXml1 = new PostalStructuredAddressXml();
  772 + addressXml1.setStreetName(mawb.getsAddress());
  773 + addressXml1.setCityName("");//街道从哪来?
  774 + addressXml1.setCountryID("");//国家代码从哪来?
  775 + addressXml1.setSpecifiedAddressLocation("");//?
  776 + consignXml1.setPostalStructuredAddress(addressXml1);
  777 + consignXml1.setSpecifiedCargoAgentLocation("");//?
  778 + DirectTelephoneCommunicationXml directCommunicationXml1 = new DirectTelephoneCommunicationXml();
  779 + directCommunicationXml1.setCompleteNumber("");//传真号从哪来?
  780 + consignXml1.setDefinedTradeContact(directCommunicationXml1);
  781 + consignmentXml.setConsigneeParty(consignXml1);
  782 +
  783 + //填开代理人
  784 + ConsignorPartyXml consignXml2 = new ConsignorPartyXml();
  785 + consignXml2.setName(mawb.getFillOpenName());
  786 + consignXml2.setAccountID("");//填开代理人代码?
  787 + PostalStructuredAddressXml addressXml2 = new PostalStructuredAddressXml();
  788 + addressXml2.setCityName("");//城市?
  789 + addressXml2.setCountryID("");//国家代码从哪来?
  790 + addressXml2.setSpecifiedAddressLocation(mawb.getFillOpenAddress());
  791 + consignXml2.setPostalStructuredAddress(addressXml2);
  792 + consignmentXml.setFreightForwarderParty(consignXml2);
  793 +
  794 + //相关参与方
  795 + AssociatedPartyXml associatedPartyXml = new AssociatedPartyXml();
  796 + associatedPartyXml.setPrimaryID("");//内部ID?
  797 + associatedPartyXml.setName("");//参与方名称?
  798 + associatedPartyXml.setAccountID("");//?
  799 + associatedPartyXml.setRoleCode("");//?
  800 + associatedPartyXml.setRole("");//参与方类型?
  801 + PostalStructuredAddressXml addressXml3 = new PostalStructuredAddressXml();
  802 + addressXml3.setCityName("");//城市?
  803 + addressXml3.setCountryID("");//国家代码?
  804 + addressXml3.setSpecifiedAddressLocation("");//?
  805 + associatedPartyXml.setPostalStructuredAddress(addressXml3);
  806 + consignmentXml.setAssociatedParty(associatedPartyXml);
  807 +
  808 + IDXml idXml = new IDXml();
  809 + idXml.setId(mawb.getDepartureStation());
  810 + consignmentXml.setOriginLocation(idXml);
  811 + IDXml idXml1 = new IDXml();
  812 + idXml1.setId(mawb.getDestinationStation());
  813 + consignmentXml.setFinalDestinationLocation(idXml1);
  814 +
  815 + //订舱单类信息
  816 + SpecifiedLogisticsTransportMovementXml transportMovementXml = new SpecifiedLogisticsTransportMovementXml();
  817 + transportMovementXml.setStageCode((StringUtils.isEmpty(mawb.getFlightOne())||StringUtils.isEmpty(mawb.getFlightTwo())?(mawb.getFlightOne()+mawb.getFlightTwo()):(mawb.getFlightOne()+"/"+mawb.getFlightTwo())));
  818 + transportMovementXml.setModeCode("");//运输代号?
  819 + transportMovementXml.setMode("");//运输模式?
  820 + transportMovementXml.setId("");//运输工具代号?
  821 + transportMovementXml.setSequenceNumeric("");//序号?
  822 + NameXml nameXml = new NameXml();
  823 + nameXml.setName("");//飞机号?
  824 + transportMovementXml.setUsedLogisticsTransportMeans(nameXml);
  825 + OccurrenceArrivalLocationXml arrivalLocationXml = new OccurrenceArrivalLocationXml();
  826 + IDXml idXml2 = new IDXml();
  827 + idXml2.setId(mawb.getDestinationOne()+ " " + mawb.getDestinationTwo() + " " + mawb.getDestinationThree());
  828 + arrivalLocationXml.setOccurrenceArrivalLocation(idXml2);
  829 + transportMovementXml.setArrivalEvent(arrivalLocationXml);
  830 + DepartureEventXml departureEventXml = new DepartureEventXml();
  831 + departureEventXml.setScheduledOccurrenceDateTime("");//计划起飞时间?
  832 + IDXml idXml3 = new IDXml();
  833 + idXml3.setId("");//出发站代码
  834 + departureEventXml.setOccurrenceDepartureLocation(idXml3);
  835 + transportMovementXml.setDepartureEvent(departureEventXml);
  836 + consignmentXml.setSpecifiedLogisticsTransportMovement(transportMovementXml);
  837 +
  838 + //特殊处理
  839 + HandlingInstructionsXml handlingXml = new HandlingInstructionsXml();
  840 + handlingXml.setDescription("");//特殊处理描述?
  841 + handlingXml.setDescriptionCode("");//特殊处理代码?
  842 + consignmentXml.setHandlingInstructions(handlingXml);
  843 +
  844 + ApplicableTradeCurrencyExchangeXml exchangeXml = new ApplicableTradeCurrencyExchangeXml();
  845 + exchangeXml.setSourceCurrencyCode("");//始发地货币种类?
  846 + exchangeXml.setTargetCurrencyCode("");//目的地货币种类?
  847 + exchangeXml.setMarketID("");//汇率代号?
  848 + exchangeXml.setConversionRate("");//汇率?
  849 + consignmentXml.setApplicableTradeCurrencyExchange(exchangeXml);
  850 +
  851 + //其他费用
  852 + MawbOtherFeeEntity otherFee = otherFeeService.findByMawbId(mawb.getId());
  853 + ApplicableLogisticsAllowanceChargeXml allowanceChargeXml = new ApplicableLogisticsAllowanceChargeXml();
  854 + allowanceChargeXml.setId("");//费用代码?
  855 + allowanceChargeXml.setReason(otherFee.getFeeType());//费用描述
  856 + allowanceChargeXml.setActualAmount(otherFee.getFee() != null ? otherFee.getFee().toString() : "");
  857 + allowanceChargeXml.setPartyTypeCode("");//应付标识
  858 + consignmentXml.setApplicableLogisticsAllowanceCharge(allowanceChargeXml);
  859 +
  860 + SignatoryCarrierAuthenticationXml signtoryXml = new SignatoryCarrierAuthenticationXml();
  861 + signtoryXml.setActualDateTime("");//航空公司声明日期?
  862 + signtoryXml.setSignatory("");//航空公司签名?
  863 + NameXml nameXml1 = new NameXml();
  864 + nameXml1.setName("");//航空公司声明地点?
  865 + signtoryXml.setIssueAuthenticationLocation(nameXml1);
  866 + consignmentXml.setSignatoryCarrierAuthentication(signtoryXml);
  867 +
  868 + //货物信息
  869 + IncludedMasterConsignmentItemXml masterItemXml = new IncludedMasterConsignmentItemXml();
  870 + masterItemXml.setSequenceNumeric("1");//?
  871 + masterItemXml.setTypeCode(mawb.getGoodsCode());
  872 + masterItemXml.setGrossWeightMeasure(mawb.getGrossWeight() != null ? mawb.getGrossWeight().toString() : "");
  873 + masterItemXml.setGrossVolumeMeasure(mawb.getCbm());
  874 + masterItemXml.setPieceQuantity(mawb.getTotalPieces() != null ? mawb.getTotalPieces().toString() : "");
  875 + masterItemXml.setTareWeightMeasure(mawb.getWeightCharge() != null ? mawb.getWeightCharge().toString() : "");
  876 + NatureIdentificationTransportCargoXml cargoXml = new NatureIdentificationTransportCargoXml();
  877 + cargoXml.setIdentification(mawb.getGoodsName());
  878 + masterItemXml.setNatureIdentificationTransportCargo(cargoXml);
  879 + IDXml idXml4 = new IDXml();
  880 + idXml4.setId("");//始发地国家代码代码
  881 + masterItemXml.setOriginCountry(idXml4);
  882 + AssociatedUnitLoadTransportEquipmentXml equipmentXml = new AssociatedUnitLoadTransportEquipmentXml();
  883 + OperatingPartyXml operatingPartyXml = new OperatingPartyXml();
  884 + operatingPartyXml.setPrimaryID("");//ULD所属公司代码
  885 + equipmentXml.setOperatingParty(operatingPartyXml);
  886 + masterItemXml.setAssociatedUnitLoadTransportEquipment(equipmentXml);
  887 +
  888 + TransportLogisticsPackageXml packageXml = new TransportLogisticsPackageXml();
  889 + packageXml.setItemQuantity("");//?
  890 + LinearSpatialDimensionXml dimensionXml = new LinearSpatialDimensionXml();
  891 + dimensionXml.setDescription(mawb.getPackingDimensions());
  892 + dimensionXml.setLengthMeasure("");//长?
  893 + dimensionXml.setWidthMeasure("");//宽?
  894 + dimensionXml.setHeightMeasure("");//高?
  895 + packageXml.setLinearSpatialDimension(dimensionXml);
  896 + masterItemXml.setTransportLogisticsPackage(packageXml);
  897 +
  898 + //运价
  899 + ApplicableFreightRateServiceChargeXml chargeXml = new ApplicableFreightRateServiceChargeXml();
  900 + chargeXml.setCategoryCode(mawb.getFreightType());
  901 + chargeXml.setCommodityItemID(mawb.getGoodsCode());
  902 + chargeXml.setChargeableWeightMeasure(mawb.getWeightCharge()!=null?mawb.getFeeWeight().toString():"");
  903 + chargeXml.setAppliedRate(mawb.getRate()!=null?mawb.getRate().toString():"");
  904 + chargeXml.setAppliedAmount(mawb.getWeightCharge()!=null?mawb.getWeightCharge().toString():"");
  905 + masterItemXml.setApplicableFreightRateServiceCharge(chargeXml);
  906 + consignmentXml.setIncludedMasterConsignmentItem(masterItemXml);
  907 +
  908 + ReportedStatusXml reportedStatusXml = new ReportedStatusXml();
  909 + reportedStatusXml.setReasonCode("");//?
  910 + EventTimeXml eventTimeXml = new EventTimeXml();
  911 + eventTimeXml.setDateTimeTypeCode("");//?
  912 + eventTimeXml.setOccurrenceDateTime("");//?
  913 + reportedStatusXml.setEventTime(eventTimeXml);
  914 + IDXml idXml5 = new IDXml();
  915 + idXml5.setId("");//?
  916 + reportedStatusXml.setSpecifiedLocation(idXml5);
  917 + consignmentXml.setReportedStatus(reportedStatusXml);
  918 + body.setMasterConsignment(consignmentXml);
  919 +
  920 + String xml = XmlUtil.convertToXml2(body, path);
  921 + return xml;
  922 + }
  923 +}
  1 +package com.agent.controller.agent;
  2 +
  3 +import java.util.List;
  4 +
  5 +import javax.annotation.Resource;
  6 +import javax.servlet.http.HttpServletRequest;
  7 +
  8 +import org.apache.commons.lang.StringUtils;
  9 +import org.springframework.stereotype.Controller;
  10 +import org.springframework.ui.Model;
  11 +import org.springframework.web.bind.annotation.RequestMapping;
  12 +import org.springframework.web.bind.annotation.ResponseBody;
  13 +
  14 +import com.agent.controller.BasicController;
  15 +import com.agent.entity.agent.ConsigneeEntity;
  16 +import com.agent.service.agent.ConsigneeService;
  17 +import com.agent.service.agent.EnterpriseService;
  18 +import com.agent.vo.ResponseModel;
  19 +
  20 +import tools.Tools;
  21 +
  22 +/**
  23 + *
  24 + * Depiction: 收货人控制器
  25 + * <p>
  26 + * Modify:
  27 + * <p>
  28 + * Author: William Lynn
  29 + * <p>
  30 + * Create Date:2018年5月28日 下午2:24:33
  31 + *
  32 + */
  33 +@Controller
  34 +@RequestMapping(value = "/consignee")
  35 +public class ConsigneeController extends BasicController {
  36 +
  37 + @Resource
  38 + private ConsigneeService consigneeService;
  39 +
  40 + @Resource
  41 + private EnterpriseService enterpriseService;
  42 +
  43 + @RequestMapping(value = "/getall")
  44 + @ResponseBody
  45 + public ResponseModel getAll(HttpServletRequest request) {
  46 + ResponseModel model = new ResponseModel(200, "操作成功", null);
  47 + List<ConsigneeEntity> dataList = consigneeService.findAllByUserId(Tools.getUserId());
  48 + if (dataList == null || dataList.size() == 0) {
  49 + model = new ResponseModel(200, "没有数据", null);
  50 + } else {
  51 + model = new ResponseModel(200, "查询成功", null);
  52 + }
  53 + model.setData(dataList);
  54 + return model;
  55 + }
  56 +
  57 + @RequestMapping(value = "/list")
  58 + public String list(HttpServletRequest request,boolean isWithChoose) {
  59 + request.setAttribute("isWithChoose", isWithChoose);
  60 + request.setAttribute("version", System.currentTimeMillis());
  61 + return "consignee/list";
  62 + }
  63 +
  64 + @RequestMapping(value = "/search")
  65 + @ResponseBody
  66 + public ResponseModel search(HttpServletRequest request, Integer page, Integer limit,String key) {
  67 + if (page == null) {
  68 + page = 1;
  69 + }
  70 +
  71 + if (limit == null) {
  72 + limit = 10;
  73 + }
  74 +
  75 + ResponseModel model = new ResponseModel(200, "", null);
  76 + page = page < 1 ? 1 : page;
  77 + limit = limit < 1 ? 10 : limit;
  78 + List<ConsigneeEntity> dataList = consigneeService.list(page, limit,key);
  79 + if (dataList == null || dataList.size() == 0) {
  80 + model = new ResponseModel(200, "没有数据", null);
  81 + } else {
  82 + model = new ResponseModel(200, "查询成功", null);
  83 + }
  84 + model.setCount(StringUtils.isBlank(key)?consigneeService.total(Tools.getUserId()):consigneeService.total(Tools.getUserId(),key));
  85 + model.setData(dataList);
  86 + return model;
  87 + }
  88 +
  89 + @RequestMapping(value = "/delete")
  90 + @ResponseBody
  91 + public ResponseModel delete(String ids) {
  92 + ResponseModel model = new ResponseModel(404, "", null);
  93 + if (!StringUtils.isBlank(ids)) {
  94 + model = new ResponseModel(200, "", null);
  95 + if (ids.indexOf(",") > 1) {
  96 + try {
  97 + consigneeService.deleteAll(ids);
  98 + model = new ResponseModel(200, "", null);
  99 + } catch (Exception e) {
  100 + model = new ResponseModel(500, "删除失败", null);
  101 + }
  102 + } else {
  103 + model = new ResponseModel(404, "ID不能为空", null);
  104 + }
  105 + }
  106 + return model;
  107 + }
  108 +
  109 + @RequestMapping(value = "/edit")
  110 + public String edit(HttpServletRequest request, String id, Model model) {
  111 +
  112 + if (StringUtils.isNotBlank(id)) {
  113 + ConsigneeEntity consignee = consigneeService.findById(id);
  114 + model.addAttribute("consignee", consignee);
  115 + }
  116 + request.setAttribute("version", System.currentTimeMillis());
  117 + request.setAttribute("allCountry", enterpriseService.getAllCountry());
  118 + return "consignee/edit";
  119 + }
  120 +
  121 + @RequestMapping(value = "/save")
  122 + @ResponseBody
  123 + public ResponseModel save(ConsigneeEntity consignee) {
  124 + ResponseModel model = new ResponseModel(404, "", null);
  125 + if (consignee != null) {
  126 + ConsigneeEntity old = consigneeService.findByCompanyAndUserId(consignee.getName(),Tools.getUserId());
  127 + if (old == null) {
  128 + consignee.setCreator(Tools.getUserEntity());
  129 + consignee.setModifier(Tools.getUserEntity());
  130 + consigneeService.save(consignee);
  131 + model = new ResponseModel(200, "操作成功", null);
  132 + } else {
  133 + if(old.getId()!=null) {
  134 + consigneeService.save(consignee);
  135 + model = new ResponseModel(200, "修改成功", null);
  136 + }else {
  137 + model = new ResponseModel(500, "不能重复添加", null);
  138 + }
  139 + }
  140 + } else {
  141 + model = new ResponseModel(500, "参数为空", null);
  142 + }
  143 +
  144 + return model;
  145 + }
  146 +
  147 +}
  1 +package com.agent.controller.agent;
  2 +
  3 +import java.util.List;
  4 +
  5 +import javax.annotation.Resource;
  6 +import javax.servlet.http.HttpServletRequest;
  7 +
  8 +import org.springframework.stereotype.Controller;
  9 +import org.springframework.ui.Model;
  10 +import org.springframework.web.bind.annotation.RequestMapping;
  11 +import org.springframework.web.bind.annotation.ResponseBody;
  12 +
  13 +import com.agent.controller.BasicController;
  14 +import com.agent.entity.agent.ConsigneeEntity;
  15 +import com.agent.service.agent.ConsigneeService;
  16 +import com.agent.util.HttpJsonMsg;
  17 +import com.agent.vo.ResponseModel;
  18 +import com.plugin.easyui.DataGrid;
  19 +import com.plugin.easyui.EasyPage;
  20 +
  21 +import tools.NumKit;
  22 +import tools.Tools;
  23 +
  24 +@Controller
  25 +public class ConsigneeController extends BasicController{
  26 +
  27 +
  28 + @Resource
  29 + private ConsigneeService consigneeService;
  30 +
  31 + @RequestMapping(value = "consignee/grid.json")
  32 + @ResponseBody
  33 + public DataGrid<ConsigneeEntity> consignee_grid_json(HttpServletRequest request, EasyPage<ConsigneeEntity> pageForm){
  34 +// Map<String, Object> searchParams = Servlets.getParametersStartingWith(request, "search_");
  35 +// pageForm.setSearchParams(searchParams);
  36 +// pageForm.parseData(consigneeService.getPage(pageForm));
  37 +// return pageForm.getData();
  38 +
  39 + int page = NumKit.parseInt(request.getParameter("page"));
  40 + page = page<1?1:page;
  41 + int rows = NumKit.parseInt(request.getParameter("rows"));
  42 + rows = rows<1?10:rows;
  43 +
  44 + List<ConsigneeEntity> list = consigneeService.list(page, rows);
  45 + pageForm.setPage(page);
  46 + pageForm.setRows(rows);
  47 + DataGrid<ConsigneeEntity> data = new DataGrid<>();
  48 + data.setRows(list);
  49 + data.setTotal(consigneeService.total(Tools.getUserId()));
  50 + pageForm.setData(data );
  51 + return pageForm.getData();
  52 + }
  53 + @RequestMapping(value="consignee/edit")
  54 + public String consigne_edit(HttpServletRequest request, String id, Model model){
  55 + if(id != null)
  56 + {
  57 + List<ConsigneeEntity> list = consigneeService.findById(id);
  58 + if(list != null && list.size() > 0)
  59 + {
  60 + model.addAttribute("consignee", list.get(0));
  61 + }
  62 + }
  63 + return "consignee/edit";
  64 + }
  65 + @RequestMapping(value = "consignee/getall")
  66 + @ResponseBody
  67 + public ResponseModel consignee_getall(HttpServletRequest request){
  68 + ResponseModel model = new ResponseModel(200, "", null);
  69 + model.setData(consigneeService.findAll());
  70 + return model;
  71 + }
  72 + @RequestMapping(value = "consignee/delete")
  73 + @ResponseBody
  74 + public ResponseModel consignee_delete(HttpServletRequest request, String ids){
  75 + ResponseModel model = new ResponseModel();
  76 + try {
  77 + consigneeService.deleteAll(ids);
  78 + model.setStatus(200);
  79 + model.setMsg(HttpJsonMsg.SUCCESS);
  80 + } catch (Exception e) {
  81 + model.setStatus(500);
  82 + model.setMsg(HttpJsonMsg.ERROR);
  83 + }
  84 + return model;
  85 + }
  86 + //返回渲染的页面
  87 + @RequestMapping(value="consignee/list")
  88 + public String consigner_list(){
  89 + System.out.println("hello world");
  90 + return "consignee/list";
  91 + }
  92 +
  93 + @RequestMapping(value="consignee/save")
  94 + @ResponseBody
  95 + public ResponseModel consignee_save(HttpServletRequest request, ConsigneeEntity consignee){
  96 + ResponseModel model = new ResponseModel(200, "", null);
  97 + consigneeService.save(consignee);
  98 + return model;
  99 + }
  100 +
  101 +}
  1 +package com.agent.controller.agent;
  2 +
  3 +import java.util.List;
  4 +
  5 +import javax.annotation.Resource;
  6 +import javax.servlet.http.HttpServletRequest;
  7 +
  8 +import org.apache.commons.lang.StringUtils;
  9 +import org.springframework.stereotype.Controller;
  10 +import org.springframework.ui.Model;
  11 +import org.springframework.web.bind.annotation.RequestMapping;
  12 +import org.springframework.web.bind.annotation.ResponseBody;
  13 +
  14 +import com.agent.controller.BasicController;
  15 +import com.agent.entity.agent.ConsignorEntity;
  16 +import com.agent.service.agent.ConsignorService;
  17 +import com.agent.service.agent.EnterpriseService;
  18 +import com.agent.vo.ResponseModel;
  19 +
  20 +import tools.Tools;
  21 +
  22 +/**
  23 + *
  24 + * Depiction: 发货人控制器
  25 + * <p>
  26 + * Modify:
  27 + * <p>
  28 + * Author: William Lynn
  29 + * <p>
  30 + * Create Date:2018年5月28日 下午2:24:33
  31 + *
  32 + */
  33 +@Controller
  34 +@RequestMapping(value = "/consignor")
  35 +public class ConsignorController extends BasicController {
  36 +
  37 + @Resource
  38 + private ConsignorService consignorService;
  39 +
  40 + @Resource
  41 + private EnterpriseService enterpriseService;
  42 +
  43 + @RequestMapping(value = "/getall")
  44 + @ResponseBody
  45 + public ResponseModel getAll(HttpServletRequest request) {
  46 + ResponseModel model = new ResponseModel(200, "", null);
  47 + List<ConsignorEntity> dataList = consignorService.findAllByUserId(Tools.getUserId());
  48 + if (dataList == null || dataList.size() == 0) {
  49 + model = new ResponseModel(404, "", null);
  50 + } else {
  51 + model = new ResponseModel(200, "", null);
  52 + }
  53 + model.setData(dataList);
  54 + return model;
  55 + }
  56 +
  57 + @RequestMapping(value = "/list")
  58 + public String list(HttpServletRequest request,boolean isWithChoose) {
  59 + request.setAttribute("isWithChoose", isWithChoose);
  60 + request.setAttribute("version", System.currentTimeMillis());
  61 + return "consignor/list";
  62 + }
  63 +
  64 + @RequestMapping(value = "/search")
  65 + @ResponseBody
  66 + public ResponseModel search(HttpServletRequest request, Integer page, Integer limit,String key) {
  67 + if (page == null) {
  68 + page = 1;
  69 + }
  70 +
  71 + if (limit == null) {
  72 + limit = 10;
  73 + }
  74 +
  75 + ResponseModel model = new ResponseModel(200, "操作成功", null);
  76 + page = page < 1 ? 1 : page;
  77 + limit = limit < 1 ? 10 : limit;
  78 + List<ConsignorEntity> dataList = consignorService.list(page, limit,key);
  79 + if (dataList == null || dataList.size() == 0) {
  80 + model = new ResponseModel(200, "没有数据", null);
  81 + } else {
  82 + model = new ResponseModel(200, "查询成功", null);
  83 + }
  84 + model.setCount(StringUtils.isBlank(key)?consignorService.total(Tools.getUserId()):consignorService.total(Tools.getUserId(),key));
  85 + model.setData(dataList);
  86 + return model;
  87 + }
  88 +
  89 + @RequestMapping(value = "/delete")
  90 + @ResponseBody
  91 + public ResponseModel delete(String ids) {
  92 + ResponseModel model = new ResponseModel(404, "", null);
  93 + if (!StringUtils.isBlank(ids)) {
  94 + model = new ResponseModel(200, "", null);
  95 + if (ids.indexOf(",") > 1) {
  96 + try {
  97 + consignorService.deleteAll(ids);
  98 + model = new ResponseModel(200, "", null);
  99 + } catch (Exception e) {
  100 + model = new ResponseModel(500, "删除失败", null);
  101 + }
  102 + } else {
  103 + model = new ResponseModel(404, "ID不能为空", null);
  104 + }
  105 + }
  106 + return model;
  107 + }
  108 +
  109 + @RequestMapping(value = "/edit")
  110 + public String edit(HttpServletRequest request, String id, Model model) {
  111 +
  112 + if (StringUtils.isNotBlank(id)) {
  113 + ConsignorEntity consignor = consignorService.findById(id);
  114 + model.addAttribute("consignor", consignor);
  115 + }
  116 + request.setAttribute("version", System.currentTimeMillis());
  117 + request.setAttribute("allCountry", enterpriseService.getAllCountry());
  118 + return "consignor/edit";
  119 + }
  120 +
  121 + @RequestMapping(value = "/save")
  122 + @ResponseBody
  123 + public ResponseModel save(ConsignorEntity consignor) {
  124 + ResponseModel model = new ResponseModel(404, "", null);
  125 + if (consignor != null) {
  126 + ConsignorEntity old = consignorService.findByCompanyAndUserId(consignor.getCo_company(),Tools.getUserId());
  127 + if (old == null) {
  128 + consignor.setCreator(Tools.getUserEntity());
  129 + consignor.setModifier(Tools.getUserEntity());
  130 + consignorService.save(consignor);
  131 + model = new ResponseModel(200, "操作成功", null);
  132 + } else {
  133 + if(old.getId()!=null) {
  134 + consignorService.save(consignor);
  135 + model = new ResponseModel(200, "修改成功", null);
  136 + }else {
  137 + model = new ResponseModel(500, "不能重复添加", null);
  138 + }
  139 + }
  140 + } else {
  141 + model = new ResponseModel(500, "参数为空", null);
  142 + }
  143 +
  144 + return model;
  145 + }
  146 +
  147 +}