diff --git a/common/pom.xml b/common/pom.xml
index 6ccfa495..f954408f 100644
--- a/common/pom.xml
+++ b/common/pom.xml
@@ -82,5 +82,28 @@
com.foreverwin.mesnac
meapi
+
+
+ org.apache.axis
+ axis
+
+
+ commons-discovery
+ commons-discovery
+
+
+ commons-logging
+ commons-logging
+
+
+
+
+ org.apache.axis
+ axis-jaxrpc
+
+
+ org.apache.axis
+ axis-saaj
+
\ No newline at end of file
diff --git a/common/src/main/java/com/foreverwin/mesnac/common/constant/Constants.java b/common/src/main/java/com/foreverwin/mesnac/common/constant/Constants.java
index 4d5d44cf..a6a6ae23 100644
--- a/common/src/main/java/com/foreverwin/mesnac/common/constant/Constants.java
+++ b/common/src/main/java/com/foreverwin/mesnac/common/constant/Constants.java
@@ -118,5 +118,4 @@ public interface Constants {
String ABNORMAL_QUALITY = "Z";
String ABNORMAL_OTHER = "Q";
String ABNORMAL_RESRCE = "S";
-
}
diff --git a/common/src/main/java/com/foreverwin/mesnac/common/erp/ZWS_ZMES_PRODORDCONF_BindingStub.java b/common/src/main/java/com/foreverwin/mesnac/common/erp/ZWS_ZMES_PRODORDCONF_BindingStub.java
new file mode 100644
index 00000000..f47b2cf1
--- /dev/null
+++ b/common/src/main/java/com/foreverwin/mesnac/common/erp/ZWS_ZMES_PRODORDCONF_BindingStub.java
@@ -0,0 +1,253 @@
+/**
+ * ZWS_ZMES_PRODORDCONF_BindingStub.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.foreverwin.mesnac.common.erp;
+
+public class ZWS_ZMES_PRODORDCONF_BindingStub extends org.apache.axis.client.Stub implements com.foreverwin.mesnac.common.erp.Zws_zmes_PRODORDCONF {
+ private java.util.Vector cachedSerClasses = new java.util.Vector();
+ private java.util.Vector cachedSerQNames = new java.util.Vector();
+ private java.util.Vector cachedSerFactories = new java.util.Vector();
+ private java.util.Vector cachedDeserFactories = new java.util.Vector();
+
+ static org.apache.axis.description.OperationDesc [] _operations;
+
+ static {
+ _operations = new org.apache.axis.description.OperationDesc[1];
+ _initOperationDesc1();
+ }
+
+ private static void _initOperationDesc1(){
+ org.apache.axis.description.OperationDesc oper;
+ org.apache.axis.description.ParameterDesc param;
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("ZmesProdordconf");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "InItab"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("urn:sap-com:document:sap:soap:functions:mc-style", "TableOfZprodordconfStruIn"), com.foreverwin.mesnac.common.erp.ZprodordconfStruIn[].class, false, false);
+ param.setItemQName(new javax.xml.namespace.QName("", "item"));
+ param.setOmittable(true);
+ oper.addParameter(param);
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "OutItab"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("urn:sap-com:document:sap:soap:functions:mc-style", "TableOfZprodordconfStruOut"), com.foreverwin.mesnac.common.erp.ZprodordconfStruOut[].class, false, false);
+ param.setItemQName(new javax.xml.namespace.QName("", "item"));
+ param.setOmittable(true);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:sap-com:document:sap:rfc:functions", "char1"));
+ oper.setReturnClass(java.lang.String.class);
+ oper.setReturnQName(new javax.xml.namespace.QName("", "Ret"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ _operations[0] = oper;
+
+ }
+
+ public ZWS_ZMES_PRODORDCONF_BindingStub() throws org.apache.axis.AxisFault {
+ this(null);
+ }
+
+ public ZWS_ZMES_PRODORDCONF_BindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
+ this(service);
+ super.cachedEndpoint = endpointURL;
+ }
+
+ public ZWS_ZMES_PRODORDCONF_BindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
+ if (service == null) {
+ super.service = new org.apache.axis.client.Service();
+ } else {
+ super.service = service;
+ }
+ ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.1");
+ java.lang.Class cls;
+ javax.xml.namespace.QName qName;
+ javax.xml.namespace.QName qName2;
+ java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
+ java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
+ java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
+ java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
+ java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
+ java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
+ java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
+ java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
+ java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
+ java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
+ qName = new javax.xml.namespace.QName("urn:sap-com:document:sap:rfc:functions", "char1");
+ cachedSerQNames.add(qName);
+ cls = java.lang.String.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(org.apache.axis.encoding.ser.SimpleSerializerFactory.class, cls, qName));
+ cachedDeserFactories.add(org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(org.apache.axis.encoding.ser.SimpleDeserializerFactory.class, cls, qName));
+
+ qName = new javax.xml.namespace.QName("urn:sap-com:document:sap:rfc:functions", "char12");
+ cachedSerQNames.add(qName);
+ cls = java.lang.String.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(org.apache.axis.encoding.ser.SimpleSerializerFactory.class, cls, qName));
+ cachedDeserFactories.add(org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(org.apache.axis.encoding.ser.SimpleDeserializerFactory.class, cls, qName));
+
+ qName = new javax.xml.namespace.QName("urn:sap-com:document:sap:rfc:functions", "char4");
+ cachedSerQNames.add(qName);
+ cls = java.lang.String.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(org.apache.axis.encoding.ser.SimpleSerializerFactory.class, cls, qName));
+ cachedDeserFactories.add(org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(org.apache.axis.encoding.ser.SimpleDeserializerFactory.class, cls, qName));
+
+ qName = new javax.xml.namespace.QName("urn:sap-com:document:sap:rfc:functions", "char50");
+ cachedSerQNames.add(qName);
+ cls = java.lang.String.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(org.apache.axis.encoding.ser.SimpleSerializerFactory.class, cls, qName));
+ cachedDeserFactories.add(org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(org.apache.axis.encoding.ser.SimpleDeserializerFactory.class, cls, qName));
+
+ qName = new javax.xml.namespace.QName("urn:sap-com:document:sap:rfc:functions", "quantum13.3");
+ cachedSerQNames.add(qName);
+ cls = java.math.BigDecimal.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(org.apache.axis.encoding.ser.SimpleSerializerFactory.class, cls, qName));
+ cachedDeserFactories.add(org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(org.apache.axis.encoding.ser.SimpleDeserializerFactory.class, cls, qName));
+
+ qName = new javax.xml.namespace.QName("urn:sap-com:document:sap:soap:functions:mc-style", "TableOfZprodordconfStruIn");
+ cachedSerQNames.add(qName);
+ cls = com.foreverwin.mesnac.common.erp.ZprodordconfStruIn[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:sap-com:document:sap:soap:functions:mc-style", "ZprodordconfStruIn");
+ qName2 = new javax.xml.namespace.QName("", "item");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:sap-com:document:sap:soap:functions:mc-style", "TableOfZprodordconfStruOut");
+ cachedSerQNames.add(qName);
+ cls = com.foreverwin.mesnac.common.erp.ZprodordconfStruOut[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:sap-com:document:sap:soap:functions:mc-style", "ZprodordconfStruOut");
+ qName2 = new javax.xml.namespace.QName("", "item");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:sap-com:document:sap:soap:functions:mc-style", "ZprodordconfStruIn");
+ cachedSerQNames.add(qName);
+ cls = com.foreverwin.mesnac.common.erp.ZprodordconfStruIn.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:sap-com:document:sap:soap:functions:mc-style", "ZprodordconfStruOut");
+ cachedSerQNames.add(qName);
+ cls = com.foreverwin.mesnac.common.erp.ZprodordconfStruOut.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ }
+
+ protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
+ try {
+ org.apache.axis.client.Call _call = super._createCall();
+ if (super.maintainSessionSet) {
+ _call.setMaintainSession(super.maintainSession);
+ }
+ if (super.cachedUsername != null) {
+ _call.setUsername(super.cachedUsername);
+ }
+ if (super.cachedPassword != null) {
+ _call.setPassword(super.cachedPassword);
+ }
+ if (super.cachedEndpoint != null) {
+ _call.setTargetEndpointAddress(super.cachedEndpoint);
+ }
+ if (super.cachedTimeout != null) {
+ _call.setTimeout(super.cachedTimeout);
+ }
+ if (super.cachedPortName != null) {
+ _call.setPortName(super.cachedPortName);
+ }
+ java.util.Enumeration keys = super.cachedProperties.keys();
+ while (keys.hasMoreElements()) {
+ java.lang.String key = (java.lang.String) keys.nextElement();
+ _call.setProperty(key, super.cachedProperties.get(key));
+ }
+ // All the type mapping information is registered
+ // when the first call is made.
+ // The type mapping information is actually registered in
+ // the TypeMappingRegistry of the service, which
+ // is the reason why registration is only needed for the first call.
+ synchronized (this) {
+ if (firstCall()) {
+ // must set encoding style before registering serializers
+ _call.setEncodingStyle(null);
+ for (int i = 0; i < cachedSerFactories.size(); ++i) {
+ java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
+ javax.xml.namespace.QName qName =
+ (javax.xml.namespace.QName) cachedSerQNames.get(i);
+ java.lang.Object x = cachedSerFactories.get(i);
+ if (x instanceof Class) {
+ java.lang.Class sf = (java.lang.Class)
+ cachedSerFactories.get(i);
+ java.lang.Class df = (java.lang.Class)
+ cachedDeserFactories.get(i);
+ _call.registerTypeMapping(cls, qName, sf, df, false);
+ }
+ else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
+ org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
+ cachedSerFactories.get(i);
+ org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
+ cachedDeserFactories.get(i);
+ _call.registerTypeMapping(cls, qName, sf, df, false);
+ }
+ }
+ }
+ }
+ return _call;
+ }
+ catch (java.lang.Throwable _t) {
+ throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
+ }
+ }
+
+ public java.lang.String zmesProdordconf(com.foreverwin.mesnac.common.erp.holders.TableOfZprodordconfStruInHolder inItab, com.foreverwin.mesnac.common.erp.holders.TableOfZprodordconfStruOutHolder outItab) throws java.rmi.RemoteException {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[0]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:sap-com:document:sap:soap:functions:mc-style", "ZmesProdordconf"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {inItab.value, outItab.value});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ java.util.Map _output;
+ _output = _call.getOutputParams();
+ try {
+ inItab.value = (com.foreverwin.mesnac.common.erp.ZprodordconfStruIn[]) _output.get(new javax.xml.namespace.QName("", "InItab"));
+ } catch (java.lang.Exception _exception) {
+ inItab.value = (com.foreverwin.mesnac.common.erp.ZprodordconfStruIn[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("", "InItab")), com.foreverwin.mesnac.common.erp.ZprodordconfStruIn[].class);
+ }
+ try {
+ outItab.value = (com.foreverwin.mesnac.common.erp.ZprodordconfStruOut[]) _output.get(new javax.xml.namespace.QName("", "OutItab"));
+ } catch (java.lang.Exception _exception) {
+ outItab.value = (com.foreverwin.mesnac.common.erp.ZprodordconfStruOut[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("", "OutItab")), com.foreverwin.mesnac.common.erp.ZprodordconfStruOut[].class);
+ }
+ try {
+ return (java.lang.String) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ throw axisFaultException;
+}
+ }
+
+}
diff --git a/common/src/main/java/com/foreverwin/mesnac/common/erp/ZWS_ZMES_PRODORDCONF_Service.java b/common/src/main/java/com/foreverwin/mesnac/common/erp/ZWS_ZMES_PRODORDCONF_Service.java
new file mode 100644
index 00000000..ee18295c
--- /dev/null
+++ b/common/src/main/java/com/foreverwin/mesnac/common/erp/ZWS_ZMES_PRODORDCONF_Service.java
@@ -0,0 +1,16 @@
+/**
+ * ZWS_ZMES_PRODORDCONF_Service.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.foreverwin.mesnac.common.erp;
+
+public interface ZWS_ZMES_PRODORDCONF_Service extends javax.xml.rpc.Service {
+ public java.lang.String getZWS_ZMES_PRODORDCONFAddress();
+
+ public com.foreverwin.mesnac.common.erp.Zws_zmes_PRODORDCONF getZWS_ZMES_PRODORDCONF() throws javax.xml.rpc.ServiceException;
+
+ public com.foreverwin.mesnac.common.erp.Zws_zmes_PRODORDCONF getZWS_ZMES_PRODORDCONF(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
+}
diff --git a/common/src/main/java/com/foreverwin/mesnac/common/erp/ZWS_ZMES_PRODORDCONF_ServiceLocator.java b/common/src/main/java/com/foreverwin/mesnac/common/erp/ZWS_ZMES_PRODORDCONF_ServiceLocator.java
new file mode 100644
index 00000000..af327125
--- /dev/null
+++ b/common/src/main/java/com/foreverwin/mesnac/common/erp/ZWS_ZMES_PRODORDCONF_ServiceLocator.java
@@ -0,0 +1,142 @@
+/**
+ * ZWS_ZMES_PRODORDCONF_ServiceLocator.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.foreverwin.mesnac.common.erp;
+
+public class ZWS_ZMES_PRODORDCONF_ServiceLocator extends org.apache.axis.client.Service implements com.foreverwin.mesnac.common.erp.ZWS_ZMES_PRODORDCONF_Service {
+
+ public ZWS_ZMES_PRODORDCONF_ServiceLocator() {
+ }
+
+
+ public ZWS_ZMES_PRODORDCONF_ServiceLocator(org.apache.axis.EngineConfiguration config) {
+ super(config);
+ }
+
+ public ZWS_ZMES_PRODORDCONF_ServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
+ super(wsdlLoc, sName);
+ }
+
+ // Use to get a proxy class for ZWS_ZMES_PRODORDCONF
+ private java.lang.String ZWS_ZMES_PRODORDCONF_address = "http://sapdev.mesnac.com:8000/sap/bc/srt/rfc/sap/zws_zmes_prodordconf/302/zws_zmes_prodordconf/zws_zmes_prodordconf";
+
+ public java.lang.String getZWS_ZMES_PRODORDCONFAddress() {
+ return ZWS_ZMES_PRODORDCONF_address;
+ }
+
+ // The WSDD service name defaults to the port name.
+ private java.lang.String ZWS_ZMES_PRODORDCONFWSDDServiceName = "ZWS_ZMES_PRODORDCONF";
+
+ public java.lang.String getZWS_ZMES_PRODORDCONFWSDDServiceName() {
+ return ZWS_ZMES_PRODORDCONFWSDDServiceName;
+ }
+
+ public void setZWS_ZMES_PRODORDCONFWSDDServiceName(java.lang.String name) {
+ ZWS_ZMES_PRODORDCONFWSDDServiceName = name;
+ }
+
+ public com.foreverwin.mesnac.common.erp.Zws_zmes_PRODORDCONF getZWS_ZMES_PRODORDCONF() throws javax.xml.rpc.ServiceException {
+ java.net.URL endpoint;
+ try {
+ endpoint = new java.net.URL(ZWS_ZMES_PRODORDCONF_address);
+ }
+ catch (java.net.MalformedURLException e) {
+ throw new javax.xml.rpc.ServiceException(e);
+ }
+ return getZWS_ZMES_PRODORDCONF(endpoint);
+ }
+
+ public com.foreverwin.mesnac.common.erp.Zws_zmes_PRODORDCONF getZWS_ZMES_PRODORDCONF(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
+ try {
+ com.foreverwin.mesnac.common.erp.ZWS_ZMES_PRODORDCONF_BindingStub _stub = new com.foreverwin.mesnac.common.erp.ZWS_ZMES_PRODORDCONF_BindingStub(portAddress, this);
+ _stub.setPortName(getZWS_ZMES_PRODORDCONFWSDDServiceName());
+ return _stub;
+ }
+ catch (org.apache.axis.AxisFault e) {
+ return null;
+ }
+ }
+
+ public void setZWS_ZMES_PRODORDCONFEndpointAddress(java.lang.String address) {
+ ZWS_ZMES_PRODORDCONF_address = address;
+ }
+
+ /**
+ * For the given interface, get the stub implementation.
+ * If this service has no port for the given interface,
+ * then ServiceException is thrown.
+ */
+ public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
+ try {
+ if (com.foreverwin.mesnac.common.erp.Zws_zmes_PRODORDCONF.class.isAssignableFrom(serviceEndpointInterface)) {
+ com.foreverwin.mesnac.common.erp.ZWS_ZMES_PRODORDCONF_BindingStub _stub = new com.foreverwin.mesnac.common.erp.ZWS_ZMES_PRODORDCONF_BindingStub(new java.net.URL(ZWS_ZMES_PRODORDCONF_address), this);
+ _stub.setPortName(getZWS_ZMES_PRODORDCONFWSDDServiceName());
+ return _stub;
+ }
+ }
+ catch (java.lang.Throwable t) {
+ throw new javax.xml.rpc.ServiceException(t);
+ }
+ throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
+ }
+
+ /**
+ * For the given interface, get the stub implementation.
+ * If this service has no port for the given interface,
+ * then ServiceException is thrown.
+ */
+ public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
+ if (portName == null) {
+ return getPort(serviceEndpointInterface);
+ }
+ java.lang.String inputPortName = portName.getLocalPart();
+ if ("ZWS_ZMES_PRODORDCONF".equals(inputPortName)) {
+ return getZWS_ZMES_PRODORDCONF();
+ }
+ else {
+ java.rmi.Remote _stub = getPort(serviceEndpointInterface);
+ ((org.apache.axis.client.Stub) _stub).setPortName(portName);
+ return _stub;
+ }
+ }
+
+ public javax.xml.namespace.QName getServiceName() {
+ return new javax.xml.namespace.QName("urn:sap-com:document:sap:soap:functions:mc-style", "ZWS_ZMES_PRODORDCONF");
+ }
+
+ private java.util.HashSet ports = null;
+
+ public java.util.Iterator getPorts() {
+ if (ports == null) {
+ ports = new java.util.HashSet();
+ ports.add(new javax.xml.namespace.QName("urn:sap-com:document:sap:soap:functions:mc-style", "ZWS_ZMES_PRODORDCONF"));
+ }
+ return ports.iterator();
+ }
+
+ /**
+ * Set the endpoint address for the specified port name.
+ */
+ public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
+
+if ("ZWS_ZMES_PRODORDCONF".equals(portName)) {
+ setZWS_ZMES_PRODORDCONFEndpointAddress(address);
+ }
+ else
+{ // Unknown Port Name
+ throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
+ }
+ }
+
+ /**
+ * Set the endpoint address for the specified port name.
+ */
+ public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
+ setEndpointAddress(portName.getLocalPart(), address);
+ }
+
+}
diff --git a/common/src/main/java/com/foreverwin/mesnac/common/erp/ZprodordconfStruIn.java b/common/src/main/java/com/foreverwin/mesnac/common/erp/ZprodordconfStruIn.java
new file mode 100644
index 00000000..87f5382d
--- /dev/null
+++ b/common/src/main/java/com/foreverwin/mesnac/common/erp/ZprodordconfStruIn.java
@@ -0,0 +1,479 @@
+/**
+ * ZprodordconfStruIn.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.foreverwin.mesnac.common.erp;
+
+public class ZprodordconfStruIn implements java.io.Serializable {
+ private java.lang.String aufnr;
+
+ private java.lang.String vornr;
+
+ private java.lang.String aueru;
+
+ private java.math.BigDecimal lmnga;
+
+ private java.math.BigDecimal xmnga;
+
+ private java.math.BigDecimal ism01;
+
+ private java.math.BigDecimal ism02;
+
+ private java.math.BigDecimal ism03;
+
+ private java.math.BigDecimal ism04;
+
+ private java.math.BigDecimal ism05;
+
+ private java.math.BigDecimal ism06;
+
+ public ZprodordconfStruIn() {
+ }
+
+ public ZprodordconfStruIn(
+ java.lang.String aufnr,
+ java.lang.String vornr,
+ java.lang.String aueru,
+ java.math.BigDecimal lmnga,
+ java.math.BigDecimal xmnga,
+ java.math.BigDecimal ism01,
+ java.math.BigDecimal ism02,
+ java.math.BigDecimal ism03,
+ java.math.BigDecimal ism04,
+ java.math.BigDecimal ism05,
+ java.math.BigDecimal ism06) {
+ this.aufnr = aufnr;
+ this.vornr = vornr;
+ this.aueru = aueru;
+ this.lmnga = lmnga;
+ this.xmnga = xmnga;
+ this.ism01 = ism01;
+ this.ism02 = ism02;
+ this.ism03 = ism03;
+ this.ism04 = ism04;
+ this.ism05 = ism05;
+ this.ism06 = ism06;
+ }
+
+
+ /**
+ * Gets the aufnr value for this ZprodordconfStruIn.
+ *
+ * @return aufnr
+ */
+ public java.lang.String getAufnr() {
+ return aufnr;
+ }
+
+
+ /**
+ * Sets the aufnr value for this ZprodordconfStruIn.
+ *
+ * @param aufnr
+ */
+ public void setAufnr(java.lang.String aufnr) {
+ this.aufnr = aufnr;
+ }
+
+
+ /**
+ * Gets the vornr value for this ZprodordconfStruIn.
+ *
+ * @return vornr
+ */
+ public java.lang.String getVornr() {
+ return vornr;
+ }
+
+
+ /**
+ * Sets the vornr value for this ZprodordconfStruIn.
+ *
+ * @param vornr
+ */
+ public void setVornr(java.lang.String vornr) {
+ this.vornr = vornr;
+ }
+
+
+ /**
+ * Gets the aueru value for this ZprodordconfStruIn.
+ *
+ * @return aueru
+ */
+ public java.lang.String getAueru() {
+ return aueru;
+ }
+
+
+ /**
+ * Sets the aueru value for this ZprodordconfStruIn.
+ *
+ * @param aueru
+ */
+ public void setAueru(java.lang.String aueru) {
+ this.aueru = aueru;
+ }
+
+
+ /**
+ * Gets the lmnga value for this ZprodordconfStruIn.
+ *
+ * @return lmnga
+ */
+ public java.math.BigDecimal getLmnga() {
+ return lmnga;
+ }
+
+
+ /**
+ * Sets the lmnga value for this ZprodordconfStruIn.
+ *
+ * @param lmnga
+ */
+ public void setLmnga(java.math.BigDecimal lmnga) {
+ this.lmnga = lmnga;
+ }
+
+
+ /**
+ * Gets the xmnga value for this ZprodordconfStruIn.
+ *
+ * @return xmnga
+ */
+ public java.math.BigDecimal getXmnga() {
+ return xmnga;
+ }
+
+
+ /**
+ * Sets the xmnga value for this ZprodordconfStruIn.
+ *
+ * @param xmnga
+ */
+ public void setXmnga(java.math.BigDecimal xmnga) {
+ this.xmnga = xmnga;
+ }
+
+
+ /**
+ * Gets the ism01 value for this ZprodordconfStruIn.
+ *
+ * @return ism01
+ */
+ public java.math.BigDecimal getIsm01() {
+ return ism01;
+ }
+
+
+ /**
+ * Sets the ism01 value for this ZprodordconfStruIn.
+ *
+ * @param ism01
+ */
+ public void setIsm01(java.math.BigDecimal ism01) {
+ this.ism01 = ism01;
+ }
+
+
+ /**
+ * Gets the ism02 value for this ZprodordconfStruIn.
+ *
+ * @return ism02
+ */
+ public java.math.BigDecimal getIsm02() {
+ return ism02;
+ }
+
+
+ /**
+ * Sets the ism02 value for this ZprodordconfStruIn.
+ *
+ * @param ism02
+ */
+ public void setIsm02(java.math.BigDecimal ism02) {
+ this.ism02 = ism02;
+ }
+
+
+ /**
+ * Gets the ism03 value for this ZprodordconfStruIn.
+ *
+ * @return ism03
+ */
+ public java.math.BigDecimal getIsm03() {
+ return ism03;
+ }
+
+
+ /**
+ * Sets the ism03 value for this ZprodordconfStruIn.
+ *
+ * @param ism03
+ */
+ public void setIsm03(java.math.BigDecimal ism03) {
+ this.ism03 = ism03;
+ }
+
+
+ /**
+ * Gets the ism04 value for this ZprodordconfStruIn.
+ *
+ * @return ism04
+ */
+ public java.math.BigDecimal getIsm04() {
+ return ism04;
+ }
+
+
+ /**
+ * Sets the ism04 value for this ZprodordconfStruIn.
+ *
+ * @param ism04
+ */
+ public void setIsm04(java.math.BigDecimal ism04) {
+ this.ism04 = ism04;
+ }
+
+
+ /**
+ * Gets the ism05 value for this ZprodordconfStruIn.
+ *
+ * @return ism05
+ */
+ public java.math.BigDecimal getIsm05() {
+ return ism05;
+ }
+
+
+ /**
+ * Sets the ism05 value for this ZprodordconfStruIn.
+ *
+ * @param ism05
+ */
+ public void setIsm05(java.math.BigDecimal ism05) {
+ this.ism05 = ism05;
+ }
+
+
+ /**
+ * Gets the ism06 value for this ZprodordconfStruIn.
+ *
+ * @return ism06
+ */
+ public java.math.BigDecimal getIsm06() {
+ return ism06;
+ }
+
+
+ /**
+ * Sets the ism06 value for this ZprodordconfStruIn.
+ *
+ * @param ism06
+ */
+ public void setIsm06(java.math.BigDecimal ism06) {
+ this.ism06 = ism06;
+ }
+
+ private java.lang.Object __equalsCalc = null;
+ public synchronized boolean equals(java.lang.Object obj) {
+ if (!(obj instanceof ZprodordconfStruIn)) return false;
+ ZprodordconfStruIn other = (ZprodordconfStruIn) obj;
+ if (obj == null) return false;
+ if (this == obj) return true;
+ if (__equalsCalc != null) {
+ return (__equalsCalc == obj);
+ }
+ __equalsCalc = obj;
+ boolean _equals;
+ _equals = true &&
+ ((this.aufnr==null && other.getAufnr()==null) ||
+ (this.aufnr!=null &&
+ this.aufnr.equals(other.getAufnr()))) &&
+ ((this.vornr==null && other.getVornr()==null) ||
+ (this.vornr!=null &&
+ this.vornr.equals(other.getVornr()))) &&
+ ((this.aueru==null && other.getAueru()==null) ||
+ (this.aueru!=null &&
+ this.aueru.equals(other.getAueru()))) &&
+ ((this.lmnga==null && other.getLmnga()==null) ||
+ (this.lmnga!=null &&
+ this.lmnga.equals(other.getLmnga()))) &&
+ ((this.xmnga==null && other.getXmnga()==null) ||
+ (this.xmnga!=null &&
+ this.xmnga.equals(other.getXmnga()))) &&
+ ((this.ism01==null && other.getIsm01()==null) ||
+ (this.ism01!=null &&
+ this.ism01.equals(other.getIsm01()))) &&
+ ((this.ism02==null && other.getIsm02()==null) ||
+ (this.ism02!=null &&
+ this.ism02.equals(other.getIsm02()))) &&
+ ((this.ism03==null && other.getIsm03()==null) ||
+ (this.ism03!=null &&
+ this.ism03.equals(other.getIsm03()))) &&
+ ((this.ism04==null && other.getIsm04()==null) ||
+ (this.ism04!=null &&
+ this.ism04.equals(other.getIsm04()))) &&
+ ((this.ism05==null && other.getIsm05()==null) ||
+ (this.ism05!=null &&
+ this.ism05.equals(other.getIsm05()))) &&
+ ((this.ism06==null && other.getIsm06()==null) ||
+ (this.ism06!=null &&
+ this.ism06.equals(other.getIsm06())));
+ __equalsCalc = null;
+ return _equals;
+ }
+
+ private boolean __hashCodeCalc = false;
+ public synchronized int hashCode() {
+ if (__hashCodeCalc) {
+ return 0;
+ }
+ __hashCodeCalc = true;
+ int _hashCode = 1;
+ if (getAufnr() != null) {
+ _hashCode += getAufnr().hashCode();
+ }
+ if (getVornr() != null) {
+ _hashCode += getVornr().hashCode();
+ }
+ if (getAueru() != null) {
+ _hashCode += getAueru().hashCode();
+ }
+ if (getLmnga() != null) {
+ _hashCode += getLmnga().hashCode();
+ }
+ if (getXmnga() != null) {
+ _hashCode += getXmnga().hashCode();
+ }
+ if (getIsm01() != null) {
+ _hashCode += getIsm01().hashCode();
+ }
+ if (getIsm02() != null) {
+ _hashCode += getIsm02().hashCode();
+ }
+ if (getIsm03() != null) {
+ _hashCode += getIsm03().hashCode();
+ }
+ if (getIsm04() != null) {
+ _hashCode += getIsm04().hashCode();
+ }
+ if (getIsm05() != null) {
+ _hashCode += getIsm05().hashCode();
+ }
+ if (getIsm06() != null) {
+ _hashCode += getIsm06().hashCode();
+ }
+ __hashCodeCalc = false;
+ return _hashCode;
+ }
+
+ // Type metadata
+ private static org.apache.axis.description.TypeDesc typeDesc =
+ new org.apache.axis.description.TypeDesc(ZprodordconfStruIn.class, true);
+
+ static {
+ typeDesc.setXmlType(new javax.xml.namespace.QName("urn:sap-com:document:sap:soap:functions:mc-style", "ZprodordconfStruIn"));
+ org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("aufnr");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Aufnr"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("vornr");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Vornr"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("aueru");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Aueru"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("lmnga");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Lmnga"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("xmnga");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Xmnga"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("ism01");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Ism01"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("ism02");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Ism02"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("ism03");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Ism03"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("ism04");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Ism04"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("ism05");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Ism05"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("ism06");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Ism06"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ }
+
+ /**
+ * Return type metadata object
+ */
+ public static org.apache.axis.description.TypeDesc getTypeDesc() {
+ return typeDesc;
+ }
+
+ /**
+ * Get Custom Serializer
+ */
+ public static org.apache.axis.encoding.Serializer getSerializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanSerializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+ /**
+ * Get Custom Deserializer
+ */
+ public static org.apache.axis.encoding.Deserializer getDeserializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanDeserializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+}
diff --git a/common/src/main/java/com/foreverwin/mesnac/common/erp/ZprodordconfStruOut.java b/common/src/main/java/com/foreverwin/mesnac/common/erp/ZprodordconfStruOut.java
new file mode 100644
index 00000000..ee84e2b3
--- /dev/null
+++ b/common/src/main/java/com/foreverwin/mesnac/common/erp/ZprodordconfStruOut.java
@@ -0,0 +1,515 @@
+/**
+ * ZprodordconfStruOut.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.foreverwin.mesnac.common.erp;
+
+public class ZprodordconfStruOut implements java.io.Serializable {
+ private java.lang.String aufnr;
+
+ private java.lang.String vornr;
+
+ private java.lang.String aueru;
+
+ private java.math.BigDecimal lmnga;
+
+ private java.math.BigDecimal ism01;
+
+ private java.math.BigDecimal ism02;
+
+ private java.math.BigDecimal ism03;
+
+ private java.math.BigDecimal ism04;
+
+ private java.math.BigDecimal ism05;
+
+ private java.math.BigDecimal ism06;
+
+ private java.lang.String ret;
+
+ private java.lang.String msg;
+
+ public ZprodordconfStruOut() {
+ }
+
+ public ZprodordconfStruOut(
+ java.lang.String aufnr,
+ java.lang.String vornr,
+ java.lang.String aueru,
+ java.math.BigDecimal lmnga,
+ java.math.BigDecimal ism01,
+ java.math.BigDecimal ism02,
+ java.math.BigDecimal ism03,
+ java.math.BigDecimal ism04,
+ java.math.BigDecimal ism05,
+ java.math.BigDecimal ism06,
+ java.lang.String ret,
+ java.lang.String msg) {
+ this.aufnr = aufnr;
+ this.vornr = vornr;
+ this.aueru = aueru;
+ this.lmnga = lmnga;
+ this.ism01 = ism01;
+ this.ism02 = ism02;
+ this.ism03 = ism03;
+ this.ism04 = ism04;
+ this.ism05 = ism05;
+ this.ism06 = ism06;
+ this.ret = ret;
+ this.msg = msg;
+ }
+
+
+ /**
+ * Gets the aufnr value for this ZprodordconfStruOut.
+ *
+ * @return aufnr
+ */
+ public java.lang.String getAufnr() {
+ return aufnr;
+ }
+
+
+ /**
+ * Sets the aufnr value for this ZprodordconfStruOut.
+ *
+ * @param aufnr
+ */
+ public void setAufnr(java.lang.String aufnr) {
+ this.aufnr = aufnr;
+ }
+
+
+ /**
+ * Gets the vornr value for this ZprodordconfStruOut.
+ *
+ * @return vornr
+ */
+ public java.lang.String getVornr() {
+ return vornr;
+ }
+
+
+ /**
+ * Sets the vornr value for this ZprodordconfStruOut.
+ *
+ * @param vornr
+ */
+ public void setVornr(java.lang.String vornr) {
+ this.vornr = vornr;
+ }
+
+
+ /**
+ * Gets the aueru value for this ZprodordconfStruOut.
+ *
+ * @return aueru
+ */
+ public java.lang.String getAueru() {
+ return aueru;
+ }
+
+
+ /**
+ * Sets the aueru value for this ZprodordconfStruOut.
+ *
+ * @param aueru
+ */
+ public void setAueru(java.lang.String aueru) {
+ this.aueru = aueru;
+ }
+
+
+ /**
+ * Gets the lmnga value for this ZprodordconfStruOut.
+ *
+ * @return lmnga
+ */
+ public java.math.BigDecimal getLmnga() {
+ return lmnga;
+ }
+
+
+ /**
+ * Sets the lmnga value for this ZprodordconfStruOut.
+ *
+ * @param lmnga
+ */
+ public void setLmnga(java.math.BigDecimal lmnga) {
+ this.lmnga = lmnga;
+ }
+
+
+ /**
+ * Gets the ism01 value for this ZprodordconfStruOut.
+ *
+ * @return ism01
+ */
+ public java.math.BigDecimal getIsm01() {
+ return ism01;
+ }
+
+
+ /**
+ * Sets the ism01 value for this ZprodordconfStruOut.
+ *
+ * @param ism01
+ */
+ public void setIsm01(java.math.BigDecimal ism01) {
+ this.ism01 = ism01;
+ }
+
+
+ /**
+ * Gets the ism02 value for this ZprodordconfStruOut.
+ *
+ * @return ism02
+ */
+ public java.math.BigDecimal getIsm02() {
+ return ism02;
+ }
+
+
+ /**
+ * Sets the ism02 value for this ZprodordconfStruOut.
+ *
+ * @param ism02
+ */
+ public void setIsm02(java.math.BigDecimal ism02) {
+ this.ism02 = ism02;
+ }
+
+
+ /**
+ * Gets the ism03 value for this ZprodordconfStruOut.
+ *
+ * @return ism03
+ */
+ public java.math.BigDecimal getIsm03() {
+ return ism03;
+ }
+
+
+ /**
+ * Sets the ism03 value for this ZprodordconfStruOut.
+ *
+ * @param ism03
+ */
+ public void setIsm03(java.math.BigDecimal ism03) {
+ this.ism03 = ism03;
+ }
+
+
+ /**
+ * Gets the ism04 value for this ZprodordconfStruOut.
+ *
+ * @return ism04
+ */
+ public java.math.BigDecimal getIsm04() {
+ return ism04;
+ }
+
+
+ /**
+ * Sets the ism04 value for this ZprodordconfStruOut.
+ *
+ * @param ism04
+ */
+ public void setIsm04(java.math.BigDecimal ism04) {
+ this.ism04 = ism04;
+ }
+
+
+ /**
+ * Gets the ism05 value for this ZprodordconfStruOut.
+ *
+ * @return ism05
+ */
+ public java.math.BigDecimal getIsm05() {
+ return ism05;
+ }
+
+
+ /**
+ * Sets the ism05 value for this ZprodordconfStruOut.
+ *
+ * @param ism05
+ */
+ public void setIsm05(java.math.BigDecimal ism05) {
+ this.ism05 = ism05;
+ }
+
+
+ /**
+ * Gets the ism06 value for this ZprodordconfStruOut.
+ *
+ * @return ism06
+ */
+ public java.math.BigDecimal getIsm06() {
+ return ism06;
+ }
+
+
+ /**
+ * Sets the ism06 value for this ZprodordconfStruOut.
+ *
+ * @param ism06
+ */
+ public void setIsm06(java.math.BigDecimal ism06) {
+ this.ism06 = ism06;
+ }
+
+
+ /**
+ * Gets the ret value for this ZprodordconfStruOut.
+ *
+ * @return ret
+ */
+ public java.lang.String getRet() {
+ return ret;
+ }
+
+
+ /**
+ * Sets the ret value for this ZprodordconfStruOut.
+ *
+ * @param ret
+ */
+ public void setRet(java.lang.String ret) {
+ this.ret = ret;
+ }
+
+
+ /**
+ * Gets the msg value for this ZprodordconfStruOut.
+ *
+ * @return msg
+ */
+ public java.lang.String getMsg() {
+ return msg;
+ }
+
+
+ /**
+ * Sets the msg value for this ZprodordconfStruOut.
+ *
+ * @param msg
+ */
+ public void setMsg(java.lang.String msg) {
+ this.msg = msg;
+ }
+
+ private java.lang.Object __equalsCalc = null;
+ public synchronized boolean equals(java.lang.Object obj) {
+ if (!(obj instanceof ZprodordconfStruOut)) return false;
+ ZprodordconfStruOut other = (ZprodordconfStruOut) obj;
+ if (obj == null) return false;
+ if (this == obj) return true;
+ if (__equalsCalc != null) {
+ return (__equalsCalc == obj);
+ }
+ __equalsCalc = obj;
+ boolean _equals;
+ _equals = true &&
+ ((this.aufnr==null && other.getAufnr()==null) ||
+ (this.aufnr!=null &&
+ this.aufnr.equals(other.getAufnr()))) &&
+ ((this.vornr==null && other.getVornr()==null) ||
+ (this.vornr!=null &&
+ this.vornr.equals(other.getVornr()))) &&
+ ((this.aueru==null && other.getAueru()==null) ||
+ (this.aueru!=null &&
+ this.aueru.equals(other.getAueru()))) &&
+ ((this.lmnga==null && other.getLmnga()==null) ||
+ (this.lmnga!=null &&
+ this.lmnga.equals(other.getLmnga()))) &&
+ ((this.ism01==null && other.getIsm01()==null) ||
+ (this.ism01!=null &&
+ this.ism01.equals(other.getIsm01()))) &&
+ ((this.ism02==null && other.getIsm02()==null) ||
+ (this.ism02!=null &&
+ this.ism02.equals(other.getIsm02()))) &&
+ ((this.ism03==null && other.getIsm03()==null) ||
+ (this.ism03!=null &&
+ this.ism03.equals(other.getIsm03()))) &&
+ ((this.ism04==null && other.getIsm04()==null) ||
+ (this.ism04!=null &&
+ this.ism04.equals(other.getIsm04()))) &&
+ ((this.ism05==null && other.getIsm05()==null) ||
+ (this.ism05!=null &&
+ this.ism05.equals(other.getIsm05()))) &&
+ ((this.ism06==null && other.getIsm06()==null) ||
+ (this.ism06!=null &&
+ this.ism06.equals(other.getIsm06()))) &&
+ ((this.ret==null && other.getRet()==null) ||
+ (this.ret!=null &&
+ this.ret.equals(other.getRet()))) &&
+ ((this.msg==null && other.getMsg()==null) ||
+ (this.msg!=null &&
+ this.msg.equals(other.getMsg())));
+ __equalsCalc = null;
+ return _equals;
+ }
+
+ private boolean __hashCodeCalc = false;
+ public synchronized int hashCode() {
+ if (__hashCodeCalc) {
+ return 0;
+ }
+ __hashCodeCalc = true;
+ int _hashCode = 1;
+ if (getAufnr() != null) {
+ _hashCode += getAufnr().hashCode();
+ }
+ if (getVornr() != null) {
+ _hashCode += getVornr().hashCode();
+ }
+ if (getAueru() != null) {
+ _hashCode += getAueru().hashCode();
+ }
+ if (getLmnga() != null) {
+ _hashCode += getLmnga().hashCode();
+ }
+ if (getIsm01() != null) {
+ _hashCode += getIsm01().hashCode();
+ }
+ if (getIsm02() != null) {
+ _hashCode += getIsm02().hashCode();
+ }
+ if (getIsm03() != null) {
+ _hashCode += getIsm03().hashCode();
+ }
+ if (getIsm04() != null) {
+ _hashCode += getIsm04().hashCode();
+ }
+ if (getIsm05() != null) {
+ _hashCode += getIsm05().hashCode();
+ }
+ if (getIsm06() != null) {
+ _hashCode += getIsm06().hashCode();
+ }
+ if (getRet() != null) {
+ _hashCode += getRet().hashCode();
+ }
+ if (getMsg() != null) {
+ _hashCode += getMsg().hashCode();
+ }
+ __hashCodeCalc = false;
+ return _hashCode;
+ }
+
+ // Type metadata
+ private static org.apache.axis.description.TypeDesc typeDesc =
+ new org.apache.axis.description.TypeDesc(ZprodordconfStruOut.class, true);
+
+ static {
+ typeDesc.setXmlType(new javax.xml.namespace.QName("urn:sap-com:document:sap:soap:functions:mc-style", "ZprodordconfStruOut"));
+ org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("aufnr");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Aufnr"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("vornr");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Vornr"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("aueru");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Aueru"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("lmnga");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Lmnga"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("ism01");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Ism01"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("ism02");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Ism02"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("ism03");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Ism03"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("ism04");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Ism04"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("ism05");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Ism05"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("ism06");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Ism06"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("ret");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Ret"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("msg");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "Msg"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ }
+
+ /**
+ * Return type metadata object
+ */
+ public static org.apache.axis.description.TypeDesc getTypeDesc() {
+ return typeDesc;
+ }
+
+ /**
+ * Get Custom Serializer
+ */
+ public static org.apache.axis.encoding.Serializer getSerializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanSerializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+ /**
+ * Get Custom Deserializer
+ */
+ public static org.apache.axis.encoding.Deserializer getDeserializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanDeserializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+}
diff --git a/common/src/main/java/com/foreverwin/mesnac/common/erp/Zws_zmes_PRODORDCONF.java b/common/src/main/java/com/foreverwin/mesnac/common/erp/Zws_zmes_PRODORDCONF.java
new file mode 100644
index 00000000..7510a6a6
--- /dev/null
+++ b/common/src/main/java/com/foreverwin/mesnac/common/erp/Zws_zmes_PRODORDCONF.java
@@ -0,0 +1,12 @@
+/**
+ * Zws_zmes_PRODORDCONF.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.foreverwin.mesnac.common.erp;
+
+public interface Zws_zmes_PRODORDCONF extends java.rmi.Remote {
+ public java.lang.String zmesProdordconf(com.foreverwin.mesnac.common.erp.holders.TableOfZprodordconfStruInHolder inItab, com.foreverwin.mesnac.common.erp.holders.TableOfZprodordconfStruOutHolder outItab) throws java.rmi.RemoteException;
+}
diff --git a/common/src/main/java/com/foreverwin/mesnac/common/erp/holders/TableOfZprodordconfStruInHolder.java b/common/src/main/java/com/foreverwin/mesnac/common/erp/holders/TableOfZprodordconfStruInHolder.java
new file mode 100644
index 00000000..bc8da227
--- /dev/null
+++ b/common/src/main/java/com/foreverwin/mesnac/common/erp/holders/TableOfZprodordconfStruInHolder.java
@@ -0,0 +1,20 @@
+/**
+ * TableOfZprodordconfStruInHolder.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.foreverwin.mesnac.common.erp.holders;
+
+public final class TableOfZprodordconfStruInHolder implements javax.xml.rpc.holders.Holder {
+ public com.foreverwin.mesnac.common.erp.ZprodordconfStruIn[] value;
+
+ public TableOfZprodordconfStruInHolder() {
+ }
+
+ public TableOfZprodordconfStruInHolder(com.foreverwin.mesnac.common.erp.ZprodordconfStruIn[] value) {
+ this.value = value;
+ }
+
+}
diff --git a/common/src/main/java/com/foreverwin/mesnac/common/erp/holders/TableOfZprodordconfStruOutHolder.java b/common/src/main/java/com/foreverwin/mesnac/common/erp/holders/TableOfZprodordconfStruOutHolder.java
new file mode 100644
index 00000000..bef4251b
--- /dev/null
+++ b/common/src/main/java/com/foreverwin/mesnac/common/erp/holders/TableOfZprodordconfStruOutHolder.java
@@ -0,0 +1,20 @@
+/**
+ * TableOfZprodordconfStruOutHolder.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.foreverwin.mesnac.common.erp.holders;
+
+public final class TableOfZprodordconfStruOutHolder implements javax.xml.rpc.holders.Holder {
+ public com.foreverwin.mesnac.common.erp.ZprodordconfStruOut[] value;
+
+ public TableOfZprodordconfStruOutHolder() {
+ }
+
+ public TableOfZprodordconfStruOutHolder(com.foreverwin.mesnac.common.erp.ZprodordconfStruOut[] value) {
+ this.value = value;
+ }
+
+}
diff --git a/common/src/main/java/com/foreverwin/mesnac/common/erp/holders/ZprodordconfStruInHolder.java b/common/src/main/java/com/foreverwin/mesnac/common/erp/holders/ZprodordconfStruInHolder.java
new file mode 100644
index 00000000..bb3fdf9b
--- /dev/null
+++ b/common/src/main/java/com/foreverwin/mesnac/common/erp/holders/ZprodordconfStruInHolder.java
@@ -0,0 +1,20 @@
+/**
+ * ZprodordconfStruInHolder.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.foreverwin.mesnac.common.erp.holders;
+
+public final class ZprodordconfStruInHolder implements javax.xml.rpc.holders.Holder {
+ public com.foreverwin.mesnac.common.erp.ZprodordconfStruIn value;
+
+ public ZprodordconfStruInHolder() {
+ }
+
+ public ZprodordconfStruInHolder(com.foreverwin.mesnac.common.erp.ZprodordconfStruIn value) {
+ this.value = value;
+ }
+
+}
diff --git a/common/src/main/java/com/foreverwin/mesnac/common/erp/holders/ZprodordconfStruOutHolder.java b/common/src/main/java/com/foreverwin/mesnac/common/erp/holders/ZprodordconfStruOutHolder.java
new file mode 100644
index 00000000..7a528282
--- /dev/null
+++ b/common/src/main/java/com/foreverwin/mesnac/common/erp/holders/ZprodordconfStruOutHolder.java
@@ -0,0 +1,20 @@
+/**
+ * ZprodordconfStruOutHolder.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.foreverwin.mesnac.common.erp.holders;
+
+public final class ZprodordconfStruOutHolder implements javax.xml.rpc.holders.Holder {
+ public com.foreverwin.mesnac.common.erp.ZprodordconfStruOut value;
+
+ public ZprodordconfStruOutHolder() {
+ }
+
+ public ZprodordconfStruOutHolder(com.foreverwin.mesnac.common.erp.ZprodordconfStruOut value) {
+ this.value = value;
+ }
+
+}
diff --git a/common/src/main/java/com/foreverwin/mesnac/common/erp/saperp.wsdl b/common/src/main/java/com/foreverwin/mesnac/common/erp/saperp.wsdl
new file mode 100644
index 00000000..aa49348f
--- /dev/null
+++ b/common/src/main/java/com/foreverwin/mesnac/common/erp/saperp.wsdl
@@ -0,0 +1,182 @@
+
+
+
+
+
+
+
+
+false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+false
+
+
+
+
+false
+true
+no
+false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/common/src/main/java/com/foreverwin/mesnac/common/util/ERPAPI.java b/common/src/main/java/com/foreverwin/mesnac/common/util/ERPAPI.java
new file mode 100644
index 00000000..f3ad3732
--- /dev/null
+++ b/common/src/main/java/com/foreverwin/mesnac/common/util/ERPAPI.java
@@ -0,0 +1,45 @@
+package com.foreverwin.mesnac.common.util;
+
+import com.foreverwin.mesnac.common.erp.ZWS_ZMES_PRODORDCONF_ServiceLocator;
+import com.foreverwin.mesnac.common.erp.Zws_zmes_PRODORDCONF;
+import com.foreverwin.mesnac.meapi.util.StringUtils;
+import org.apache.axis.client.Stub;
+
+import javax.xml.rpc.ServiceException;
+
+public class ERPAPI {
+
+ public static Zws_zmes_PRODORDCONF erpWebService() {
+ try {
+ ZWS_ZMES_PRODORDCONF_ServiceLocator locator = new ZWS_ZMES_PRODORDCONF_ServiceLocator();
+ locator.setZWS_ZMES_PRODORDCONFEndpointAddress(getApiUrl());
+ Zws_zmes_PRODORDCONF service = locator.getZWS_ZMES_PRODORDCONF();
+
+ apply(service);
+ return service;
+ } catch (ServiceException e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+ public static String getApiUrl() {
+ String server = System.getProperty("ws.erp.server");
+ String port = System.getProperty("ws.erp.port");
+
+ return String.format("http://%s:%s/sap/bc/srt/wsdl/bndg_4DF8E6609FB5BB55E1000000AC10FBDF/wsdl11/allinone/ws_policy/document?sap-client=302", server, port);
+ }
+
+ public static void apply(Object stubImpl) {
+ Stub stub = (Stub) stubImpl;
+
+ String username = System.getProperty("ws.erp.username");
+ String password = System.getProperty("ws.erp.password");
+ if (StringUtils.notBlank(username) && StringUtils.notBlank(password)) {
+ stub.setUsername(username);
+ stub.setPassword(password);
+ }
+
+ //修改超时时间:5分钟
+ stub.setTimeout(300000);
+ }
+}
diff --git a/console/src/main/java/com/foreverwin/mesnac/console/initMethod/ApplicationRunnerInitial.java b/console/src/main/java/com/foreverwin/mesnac/console/initMethod/ApplicationRunnerInitial.java
new file mode 100644
index 00000000..77c5f5ce
--- /dev/null
+++ b/console/src/main/java/com/foreverwin/mesnac/console/initMethod/ApplicationRunnerInitial.java
@@ -0,0 +1,39 @@
+package com.foreverwin.mesnac.console.initMethod;
+
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.boot.ApplicationArguments;
+import org.springframework.boot.ApplicationRunner;
+import org.springframework.core.annotation.Order;
+import org.springframework.stereotype.Component;
+
+
+/**
+ * APP启动时自动执行
+ * Created by Administrator on 2018/1/15.
+ */
+@Component
+@Order(value = 1)
+public class ApplicationRunnerInitial implements ApplicationRunner {
+
+ @Value("${ws.erp.server}")
+ private String erpServer;
+ @Value("${ws.erp.port}")
+ private String erpServerPort;
+ @Value("${ws.erp.user}")
+ private String erpUser;
+ @Value("${ws.erp.pwd}")
+ private String erpPwd;
+ @Value("${ws.erp.valid}")
+ private String valid;
+
+ @Override
+ public void run(ApplicationArguments applicationArguments) {
+
+ System.setProperty("ws.erp.server", erpServer);
+ System.setProperty("ws.erp.port", erpServerPort);
+ System.setProperty("ws.erp.username", erpUser);
+ System.setProperty("ws.erp.password", erpPwd);
+ System.setProperty("ws.erp.valid", valid);
+ }
+
+}
diff --git a/console/src/main/resources/application-dev.yml b/console/src/main/resources/application-dev.yml
index 68bc17c7..70930f22 100644
--- a/console/src/main/resources/application-dev.yml
+++ b/console/src/main/resources/application-dev.yml
@@ -1,3 +1,4 @@
+#Spring
spring:
datasource:
dynamic:
@@ -14,6 +15,16 @@ spring:
pool:
enabled: true
max-connections: 10
+
+#WebService
+ws:
+ erp:
+ server: 172.16.251.223
+ port: 8000
+ user: mesd001
+ pwd: a123456
+ valid: N
+
ftp:
host: 106.52.244.124
port: 21
diff --git a/console/src/main/resources/application-local.yml b/console/src/main/resources/application-local.yml
index 02e00be8..729430de 100644
--- a/console/src/main/resources/application-local.yml
+++ b/console/src/main/resources/application-local.yml
@@ -1,3 +1,4 @@
+#Spring
spring:
datasource:
dynamic:
@@ -17,14 +18,19 @@ spring:
enabled: true
max-connections: 10
-mybatis-plus:
- statement-lazy-load: true
+#WebService
+ws:
+ erp:
+ server: 172.16.251.223
+ port: 8000
+ user: mesd001
+ pwd: a123456
+ valid: N
#quartz任务启用
quartz:
enabled: false
-
#打印服务器配置
print:
server: http://localhost:8080/CodeSoftPrintWeb/printService
diff --git a/console/src/test/java/com/foreverwin/mesnac/console/TmdMc.java b/console/src/test/java/com/foreverwin/mesnac/console/TmdMc.java
new file mode 100644
index 00000000..6ea4b189
--- /dev/null
+++ b/console/src/test/java/com/foreverwin/mesnac/console/TmdMc.java
@@ -0,0 +1,48 @@
+package com.foreverwin.mesnac.console;
+
+import com.foreverwin.mesnac.common.erp.ZprodordconfStruIn;
+import com.foreverwin.mesnac.common.erp.holders.TableOfZprodordconfStruInHolder;
+import com.foreverwin.mesnac.common.util.ERPAPI;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringRunner;
+
+import java.math.BigDecimal;
+import java.rmi.RemoteException;
+
+
+@RunWith(SpringRunner.class)
+@SpringBootTest(classes = Application.class)
+public class TmdMc {
+
+
+
+
+ @Test
+ public void callErpWebService() throws RemoteException {
+ ZprodordconfStruIn struIn = new ZprodordconfStruIn();
+ //生产订单
+ struIn.setAufnr("SO20210714");
+ //步骤标示
+ struIn.setVornr("OP001");
+ struIn.setAueru("1");
+ //良品数量
+ struIn.setLmnga(new BigDecimal(10));
+ //报废数量
+ struIn.setXmnga(new BigDecimal(1));
+ //机器工时
+ struIn.setIsm01(new BigDecimal(1));
+ //人工工时
+ struIn.setIsm02(new BigDecimal(1));
+ struIn.setIsm03(new BigDecimal(1));
+ struIn.setIsm04(new BigDecimal(1));
+ struIn.setIsm05(new BigDecimal(1));
+ struIn.setIsm06(new BigDecimal(1));
+
+ ZprodordconfStruIn [] zprodordconfStruIns = new ZprodordconfStruIn[]{struIn};
+ TableOfZprodordconfStruInHolder inHolder = new TableOfZprodordconfStruInHolder(zprodordconfStruIns);
+ String erpJson = ERPAPI.erpWebService().zmesProdordconf(inHolder, null);
+ System.out.println("ERP接口返回:" + erpJson);
+ }
+}
diff --git a/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/mapper/CallItemMapper.java b/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/mapper/CallItemMapper.java
index 9e8930d2..4967402a 100644
--- a/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/mapper/CallItemMapper.java
+++ b/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/mapper/CallItemMapper.java
@@ -22,85 +22,26 @@ import java.util.List;
@Repository
public interface CallItemMapper extends BaseMapper {
- /**
- * 派工叫料组件数据删除
- *
- * @param list
- */
- void deleteDispatchCallItem(List list);
+ List selectEffectedCallItemByDispatchBo(@Param("sfcDispatchBo") String sfcDispatchBo);
- /**
- * 查询叫料组件
- *
- * @param list
- * @return
- */
List selectDispatchCallItem(List list);
- /**
- * 查询派工单下的组件以及组件类型
- *
- * @param sfcDispatchBo
- * @return
- */
+ void deleteDispatchCallItem(List list);
+
List selectCallItemAndType(@Param("sfcDispatchBo") String sfcDispatchBo);
- /**
- * 生产叫料查询
- *
- * @param callItem
- */
List findCallItemList(CallItem callItem);
- /**
- * 查询叫料明细
- *
- * @param callItem
- * @return
- */
List findCallItemDetailList(CallItem callItem);
- /**
- * 查询叫料明细
- *
- * @param site
- * @param list
- * @return
- */
List findCallItemDetailListByDispatchBo(@Param("site") String site, @Param("list") List list);
- /**
- * 修改叫料数据状态
- *
- * @param status
- * @param user
- * @param dateTime
- * @param list
- */
void updateCallItemStatusByDispatchBo(@Param("status") String status, @Param("user") String user, @Param("dateTime") LocalDateTime dateTime, @Param("list") List list);
- /**
- * 修改叫料数据状态
- *
- * @param status
- * @param user
- * @param dateTime
- * @param list
- */
void updateCallItemStatusByCallItemNo(@Param("status") String status, @Param("user") String user, @Param("dateTime") LocalDateTime dateTime, @Param("list") List list);
- /**
- * 刷新叫料时间
- *
- * @param user
- * @param dateTime
- * @param list
- */
void refreshRequiredTime(@Param("user") String user, @Param("dateTime") LocalDateTime dateTime, @Param("list") List list);
-
-
-
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//车间发料查询
List finsIssueItemListToResource(IssueItemDto issueItemDto);
diff --git a/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/service/CallItemService.java b/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/service/CallItemService.java
index b1ea31dd..4619dae8 100644
--- a/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/service/CallItemService.java
+++ b/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/service/CallItemService.java
@@ -16,6 +16,23 @@ import java.util.List;
*/
public interface CallItemService extends IService {
+ /**
+ * 派工叫料数据
+ *
+ * @param site
+ * @param user
+ * @param sfcDispatchList
+ */
+ void sfcDispatchCallItem(String site, String user, List sfcDispatchList);
+
+ /**
+ * 查询已经生效的叫料明细(非新建和取消状态)
+ *
+ * @param sfcDispatchBo
+ * @return
+ */
+ List getEffectedCallItemByDispatchBo(String sfcDispatchBo);
+
/**
* 生产叫料查询
*
@@ -41,14 +58,6 @@ public interface CallItemService extends IService {
*/
List findCallItemDetailListByDispatchBo(String site, List dispatchBoList);
- /**
- * 保存叫料数据
- *
- * @param site
- * @param user
- * @param sfcDispatchList
- */
- void saveCallItem(String site, String user, List sfcDispatchList);
/**
* 叫料
diff --git a/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/service/impl/CallItemServiceImpl.java b/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/service/impl/CallItemServiceImpl.java
index f713cb1c..3fa2237c 100644
--- a/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/service/impl/CallItemServiceImpl.java
+++ b/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/service/impl/CallItemServiceImpl.java
@@ -36,12 +36,11 @@ import java.util.stream.Collectors;
@Transactional(rollbackFor = Exception.class)
public class CallItemServiceImpl extends ServiceImpl implements CallItemService {
-
@Autowired
private CallItemMapper callItemMapper;
@Override
- public void saveCallItem(String site, String user, List sfcDispatchList) {
+ public void sfcDispatchCallItem(String site, String user, List sfcDispatchList) {
if (sfcDispatchList == null || sfcDispatchList.size() <= 0) {
return;
}
@@ -57,6 +56,7 @@ public class CallItemServiceImpl extends ServiceImpl i
//删除原来的数据
callItemMapper.deleteDispatchCallItem(sfcDispatchList);
+ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//工序叫料数据
for (SfcDispatchDto sfcDispatchDto : sfcDispatchList) {
String prepositionStepId = sfcDispatchDto.getPrepositionStepId();
@@ -64,7 +64,7 @@ public class CallItemServiceImpl extends ServiceImpl i
continue;
}
- String callItemNo = sfcDispatchDto.getSfc() + sfcDispatchDto.getStepId() + prepositionStepId;
+ String callItemNo = sfcDispatchDto.getSfc() + sfcDispatchDto.getStepId();
CallItem callItem = new CallItem();
callItem.setCallItemNo(callItemNo);
callItem.setHandle(HandleEnum.CALL_ITEM.getHandle(site, callItemNo));
@@ -79,9 +79,9 @@ public class CallItemServiceImpl extends ServiceImpl i
callItem.setComponentBo(sfcDispatchDto.getItemBo());
callItem.setRequiredQty(sfcDispatchDto.getDispatchQty());
callItem.setRequiredDateTime(sfcDispatchDto.getPlannedStartDate());
- callItem.setStatus(Constants.STATUS_NEW);
- callItem.setCallStatus(Constants.STATUS_NEW);
- callItem.setIssueStatus(Constants.STATUS_NEW);
+ callItem.setStatus(Constants.CALL_ITEM_STATUS_NEW);
+ callItem.setCallStatus(Constants.CALL_ITEM_STATUS_NEW);
+ callItem.setIssueStatus(Constants.CALL_ITEM_STATUS_NEW);
callItem.setCreateUser(user);
callItem.setCreatedDateTime(nowDate);
callItem.setUpdateUser(user);
@@ -90,17 +90,19 @@ public class CallItemServiceImpl extends ServiceImpl i
}
+ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//组件叫料数据
for (int i = 0; i< callItemList.size(); i++) {
CallItem callItem = callItemList.get(i);
String component = StringUtil.trimHandle(callItem.getComponentBo());
- String callItemNo = callItem.getSfc() + callItem.getStepId() + callItem.getOperation() + component;
+ String callItemNo = callItem.getSfc() + component;
+
callItem.setCallItemNo(callItemNo);
callItem.setHandle(HandleEnum.CALL_ITEM.getHandle(site, callItemNo));
callItem.setCallType(Constants.CALL_TYPE_MATERIAL);
- callItem.setStatus(Constants.STATUS_NEW);
- callItem.setCallStatus(Constants.STATUS_NEW);
- callItem.setIssueStatus(Constants.STATUS_NEW);
+ callItem.setStatus(Constants.CALL_ITEM_STATUS_NEW);
+ callItem.setCallStatus(Constants.CALL_ITEM_STATUS_NEW);
+ callItem.setIssueStatus(Constants.CALL_ITEM_STATUS_NEW);
callItem.setCreateUser(user);
callItem.setCreatedDateTime(nowDate);
callItem.setUpdateUser(user);
@@ -115,6 +117,11 @@ public class CallItemServiceImpl extends ServiceImpl i
}
}
+ @Override
+ public List getEffectedCallItemByDispatchBo(String sfcDispatchBo) {
+ return callItemMapper.selectEffectedCallItemByDispatchBo(sfcDispatchBo);
+ }
+
@Override
public List findCallItemList(CallItem callItem) {
return callItemMapper.findCallItemList(callItem);
diff --git a/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/service/impl/IssueItemServiceImpl.java b/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/service/impl/IssueItemServiceImpl.java
index baab0a86..b0679864 100644
--- a/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/service/impl/IssueItemServiceImpl.java
+++ b/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/service/impl/IssueItemServiceImpl.java
@@ -117,10 +117,12 @@ public class IssueItemServiceImpl extends ServiceImpl itemBatchList = itemBatchService.findItemBatch(site, item, inventory);
if (itemBatchList == null || itemBatchList.size() <= 0) {
throw BusinessException.build("扫描的物料条码【 " + inventory + " 】不存在!");
@@ -129,7 +131,6 @@ public class IssueItemServiceImpl extends ServiceImpl list = new ArrayList<>();
for (SfcDispatchDto sfcDispatchDto : sfcDispatchList) {
+ String sfcDispatchBo = sfcDispatchDto.getHandle();
String shopOrder = sfcDispatchDto.getShopOrder();
String dispatchNo = sfcDispatchDto.getDispatchNo();
String status = sfcDispatchDto.getDispatchStatus();
if (!DispatchStatusEnum.PAUSE.getCode().equals(status) && !DispatchStatusEnum.CANCEL.getCode().equals(status)) {
- throw BusinessException.build("工单[" + shopOrder + "]的派工单号[" + dispatchNo + "]派工状态不是暂挂或取消状态,不能返回新建状态");
+ throw BusinessException.build("工单[" + shopOrder + "]的派工单[" + dispatchNo + "]派工状态不是暂挂或取消状态,不能返回新建状态!");
+ }
+
+ //校验不允许存在叫料信息
+ List callItemList = callItemService.getEffectedCallItemByDispatchBo(sfcDispatchBo);
+ if (callItemList != null && callItemList.size() > 0) {
+ throw BusinessException.build("工单[" + shopOrder + "]的派工单[" + dispatchNo + "]已有发料,不能返回新建!");
}
- //TODO 需校验不允许存在领料信息
sfcDispatch = new SfcDispatch();
- sfcDispatch.setHandle(sfcDispatchDto.getHandle());
+ sfcDispatch.setHandle(sfcDispatchBo);
sfcDispatch.setDispatchStatus(DispatchStatusEnum.NEW.getCode());
sfcDispatch.setModifyUser(user);
sfcDispatch.setModifiedDateTime(nowDate);
@@ -133,7 +140,7 @@ public class SfcDispatchServiceImpl extends ServiceImpl list = new ArrayList<>();
for (SfcDispatchDto sfcDispatchDto : sfcDispatchList) {
+ String sfcDispatchBo = sfcDispatchDto.getHandle();
String shopOrder = sfcDispatchDto.getShopOrder();
String dispatchNo = sfcDispatchDto.getDispatchNo();
String status = sfcDispatchDto.getDispatchStatus();
if (!DispatchStatusEnum.NEW.getCode().equals(status) && !DispatchStatusEnum.RELEASE.getCode().equals(status) && !DispatchStatusEnum.PAUSE.getCode().equals(status)) {
- throw BusinessException.build("工单[" + shopOrder + "]的派工单号[" + dispatchNo + "]派工状态不是新建、发布或暂挂状态,不能变更为取消");
+ throw BusinessException.build("工单[" + shopOrder + "]的派工单[" + dispatchNo + "]派工状态不是新建、发布或暂挂状态,不能变更为取消!");
+ }
+
+ //校验派工单领料状态为无需叫料或未叫料
+ List callItemList = callItemService.getEffectedCallItemByDispatchBo(sfcDispatchBo);
+ if (callItemList != null && callItemList.size() > 0) {
+ throw BusinessException.build("工单[" + shopOrder + "]的派工单[" + dispatchNo + "]已有发料,不能取消!");
}
- //TODO 需校验派工单领料状态为无需领料或未领料
+
sfcDispatch = new SfcDispatch();
- sfcDispatch.setHandle(sfcDispatchDto.getHandle());
+ sfcDispatch.setHandle(sfcDispatchBo);
sfcDispatch.setDispatchStatus(DispatchStatusEnum.CANCEL.getCode());
sfcDispatch.setModifyUser(user);
sfcDispatch.setModifiedDateTime(nowDate);
@@ -202,7 +216,7 @@ public class SfcDispatchServiceImpl extends ServiceImpl)
+
DELETE FROM Z_CALL_ITEM WHERE SFC_DISPATCH_BO IN
@@ -625,7 +630,13 @@
diff --git a/pom.xml b/pom.xml
index b3841d93..324d6d35 100644
--- a/pom.xml
+++ b/pom.xml
@@ -192,6 +192,35 @@
hutool-all
5.0.6
+
+
+
+ org.apache.axis
+ axis
+ 1.4
+
+
+ commons-discovery
+ commons-discovery
+ 0.2
+
+
+ commons-logging
+ commons-logging
+
+
+
+
+ org.apache.axis
+ axis-jaxrpc
+ 1.4
+
+
+ org.apache.axis
+ axis-saaj
+ 1.4
+
+
\ No newline at end of file