commit
ac6d6eb42b
@ -0,0 +1,136 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry exported="true" kind="lib" path="bomupadte/"/>
|
||||
<classpathentry kind="lib" path="lib/itextpdf-5.5.5.jar"/>
|
||||
<classpathentry kind="lib" path="lib/Spire.Office.jar"/>
|
||||
<classpathentry kind="lib" path="lib/spire.pdf-3.4.2.jar"/>
|
||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="lib" path="lib/activation-1.1.jar"/>
|
||||
<classpathentry kind="lib" path="lib/antlr-2.7.7.jar"/>
|
||||
<classpathentry kind="lib" path="lib/apache-commons-codec-1.4.jar"/>
|
||||
<classpathentry kind="lib" path="lib/apache-mime4j-core-0.7.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axiom-api-1.2.12.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axiom-dom-1.2.12.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axiom-impl-1.2.12.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-adb-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-adb-codegen-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-ant-plugin-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-clustering-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-codegen-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-corba-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-fastinfoset-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-java2wsdl-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-jaxbri-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-jaxws-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-jibx-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-json-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-kernel-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-metadata-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-mtompolicy-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-saaj-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-soapmonitor-servlet-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-spring-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-transport-http-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-transport-local-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/axis2-xmlbeans-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/bcel-5.1.jar"/>
|
||||
<classpathentry kind="lib" path="lib/commons-beanutils-1.7.0.jar"/>
|
||||
<classpathentry kind="lib" path="lib/commons-cli-1.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/commons-codec-1.3.jar"/>
|
||||
<classpathentry kind="lib" path="lib/commons-collections-3.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/commons-fileupload-1.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/commons-httpclient-3.1.jar"/>
|
||||
<classpathentry kind="lib" path="lib/commons-io-1.4.jar"/>
|
||||
<classpathentry kind="lib" path="lib/commons-lang-2.4.jar"/>
|
||||
<classpathentry kind="lib" path="lib/commons-logging-1.1.1.jar"/>
|
||||
<classpathentry kind="lib" path="lib/commons-logging-1.1.jar"/>
|
||||
<classpathentry kind="lib" path="lib/dom4j-1.6.1.jar"/>
|
||||
<classpathentry kind="lib" path="lib/ezmorph-1.0.4.jar"/>
|
||||
<classpathentry kind="lib" path="lib/geronimo-annotation_1.0_spec-1.1.jar"/>
|
||||
<classpathentry kind="lib" path="lib/geronimo-jaxws_2.2_spec-1.0.jar"/>
|
||||
<classpathentry kind="lib" path="lib/geronimo-jta_1.1_spec-1.1.jar"/>
|
||||
<classpathentry kind="lib" path="lib/geronimo-saaj_1.3_spec-1.0.1.jar"/>
|
||||
<classpathentry kind="lib" path="lib/geronimo-stax-api_1.0_spec-1.0.1.jar"/>
|
||||
<classpathentry kind="lib" path="lib/geronimo-ws-metadata_2.0_spec-1.1.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/httpcore-4.0.jar"/>
|
||||
<classpathentry kind="lib" path="lib/itext-2.0.3.jar"/>
|
||||
<classpathentry kind="lib" path="lib/iText-5.0.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/iTextAsian.jar"/>
|
||||
<classpathentry kind="lib" path="lib/jalopy-1.5rc3.jar"/>
|
||||
<classpathentry kind="lib" path="lib/jaxb-api-2.1.jar"/>
|
||||
<classpathentry kind="lib" path="lib/jaxb-impl-2.1.7.jar"/>
|
||||
<classpathentry kind="lib" path="lib/jaxb-xjc-2.1.7.jar"/>
|
||||
<classpathentry kind="lib" path="lib/jaxen-1.1.6.jar"/>
|
||||
<classpathentry kind="lib" path="lib/jaxws-tools-2.1.3.jar"/>
|
||||
<classpathentry kind="lib" path="lib/jdom.jar"/>
|
||||
<classpathentry kind="lib" path="lib/jettison-1.0-RC2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/jibx-bind-1.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/jibx-run-1.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/json-lib-2.2.2-jdk15.jar"/>
|
||||
<classpathentry kind="lib" path="lib/json-lib-2.2.3-jdk13.jar"/>
|
||||
<classpathentry kind="lib" path="lib/jsr311-api-1.0.jar"/>
|
||||
<classpathentry kind="lib" path="lib/juli-6.0.16.jar"/>
|
||||
<classpathentry kind="lib" path="lib/log4j-1.2.15.jar"/>
|
||||
<classpathentry kind="lib" path="lib/mail-1.4.jar"/>
|
||||
<classpathentry kind="lib" path="lib/mex-1.6.2-impl.jar"/>
|
||||
<classpathentry kind="lib" path="lib/mysql-connector-java-5.0.8-bin.jar"/>
|
||||
<classpathentry kind="lib" path="lib/neethi-3.0.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/ojdbc6.jar"/>
|
||||
<classpathentry kind="lib" path="lib/regexp-1.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/tribes-6.0.16.jar"/>
|
||||
<classpathentry kind="lib" path="lib/woden-api-1.0M9.jar"/>
|
||||
<classpathentry kind="lib" path="lib/woden-impl-commons-1.0M9.jar"/>
|
||||
<classpathentry kind="lib" path="lib/woden-impl-dom-1.0M9.jar"/>
|
||||
<classpathentry kind="lib" path="lib/wsdl4j-1.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/wstx-asl-3.2.9.jar"/>
|
||||
<classpathentry kind="lib" path="lib/xalan-2.7.0.jar"/>
|
||||
<classpathentry kind="lib" path="lib/xml-resolver-1.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/xmlbeans-2.3.0.jar"/>
|
||||
<classpathentry kind="lib" path="lib/XmlSchema-1.4.7.jar"/>
|
||||
<classpathentry kind="lib" path="lib/commons-logging.jar"/>
|
||||
<classpathentry kind="lib" path="lib/fontbox-2.0.11.jar"/>
|
||||
<classpathentry kind="lib" path="lib/pdfbox-2.0.11.jar"/>
|
||||
<classpathentry kind="lib" path="lib/pdfbox-debugger-2.0.11.jar"/>
|
||||
<classpathentry kind="lib" path="lib/pdfbox-tools-2.0.11.jar"/>
|
||||
<classpathentry kind="lib" path="lib/preflight-2.0.11.jar"/>
|
||||
<classpathentry kind="lib" path="lib/xmpbox-2.0.11.jar"/>
|
||||
<classpathentry kind="lib" path="lib/jacob.jar"/>
|
||||
<classpathentry kind="lib" path="lib/cn.com.origin.autocodemanager_1.0.0.jar"/>
|
||||
<classpathentry kind="lib" path="lib/aspose-cells-18.9.jar"/>
|
||||
<classpathentry kind="lib" path="lib/hutool-all-5.0.7.jar"/>
|
||||
<classpathentry kind="lib" path="lib/datepicker.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/classes12.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/commons-beanutils-1.9.2.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/commons-codec-1.10.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/commons-collections-3.2.1.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/commons-dbutils-1.5.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/commons-lang-2.6.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/commons-logging-1.1.3.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/commons-logging-1.1.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/dom4j-1.6.1.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/ezmorph-1.0.6.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/json-lib-2.4-jdk15.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/jsr173_1.0_api.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/jxl_1.0.0.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/ojdbc5.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/ojdbc6.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/ojdbc8.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/poi-3.9-20121203.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/poi-examples-3.9-20121203.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/poi-excelant-3.9-20121203.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/poi-ooxml-3.9-20121203.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/poi-ooxml-schemas-3.9-20121203.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/poi-scratchpad-3.9-20121203.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/sqljdbc4.jar"/>
|
||||
<classpathentry kind="lib" path="bomupadte/xmlbeans-2.5.0.jar"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
||||
<classpathentry kind="lib" path="lib/logback-classic-1.2.10.jar"/>
|
||||
<classpathentry kind="lib" path="lib/logback-core-1.2.10.jar"/>
|
||||
<classpathentry kind="lib" path="lib/slf4j-api-1.7.30.jar"/>
|
||||
<classpathentry kind="lib" path="lib/imageio-tiff-3.8.2.jar"/>
|
||||
<classpathentry kind="lib" path="lib/cn.com.origin.autocode_1.0.0.jar"/>
|
||||
<classpathentry kind="lib" path="lib/aspose-cad-21.8.jar"/>
|
||||
<classpathentry kind="lib" path="lib/fastjson2-2.0.15.jar"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
@ -0,0 +1,8 @@
|
||||
# 默认忽略的文件
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# 基于编辑器的 HTTP 客户端请求
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding">
|
||||
<file url="file://$PROJECT_DIR$/src/com/connor/rb/plm/exportBOM/ExportBOMDialog.java" charset="GBK" />
|
||||
<file url="file://$PROJECT_DIR$/src/com/connor/rb/plm/exportBOM/ExportBOMOperation.java" charset="GBK" />
|
||||
<file url="file://$PROJECT_DIR$/src/com/connor/rb/plm/rb026/Rb026Dialog.java" charset="GBK" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="GitToolBoxBlameSettings">
|
||||
<option name="version" value="2" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ASMSmaliIdeaPluginConfiguration">
|
||||
<asm skipDebug="true" skipFrames="true" skipCode="false" expandFrames="false" />
|
||||
<groovy codeStyle="LEGACY" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_22" default="true" project-jdk-name="openjdk-22" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/classes" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>com.connor.rb.plm</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.ManifestBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.SchemaBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
@ -0,0 +1,15 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
|
||||
org.eclipse.jdt.core.compiler.release=disabled
|
||||
org.eclipse.jdt.core.compiler.source=1.8
|
@ -0,0 +1,2 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.ui.text.custom_code_templates=
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,106 @@
|
||||
package com.connor.rb.plm.rb027;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.http.client.methods.CloseableHttpResponse;
|
||||
import org.apache.http.client.methods.HttpGet;
|
||||
import org.apache.http.impl.client.CloseableHttpClient;
|
||||
import org.apache.http.impl.client.HttpClients;
|
||||
import org.apache.http.util.EntityUtils;
|
||||
|
||||
import com.teamcenter.rac.aif.AbstractAIFApplication;
|
||||
import com.teamcenter.rac.aif.AbstractAIFCommand;
|
||||
import com.teamcenter.rac.aif.kernel.InterfaceAIFComponent;
|
||||
import com.teamcenter.rac.kernel.TCComponentItemRevision;
|
||||
import com.teamcenter.rac.kernel.TCSession;
|
||||
import com.teamcenter.rac.util.MessageBox;
|
||||
|
||||
import net.sf.json.JSONArray;
|
||||
import net.sf.json.JSONObject;
|
||||
|
||||
|
||||
public class GetNumberCommand extends AbstractAIFCommand {
|
||||
private AbstractAIFApplication app;
|
||||
private TCSession session;
|
||||
|
||||
|
||||
public GetNumberCommand(AbstractAIFApplication app, TCSession session) {
|
||||
// TODO Auto-generated constructor stub
|
||||
this.app = app;
|
||||
this.session = session;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeModal() throws Exception {
|
||||
// TODO Auto-generated method stub
|
||||
//获取选中对象
|
||||
InterfaceAIFComponent comp = app.getTargetComponent();
|
||||
|
||||
if(!(comp instanceof TCComponentItemRevision))
|
||||
{
|
||||
MessageBox.post("请选中版本对象!", "错误", MessageBox.ERROR);
|
||||
return;
|
||||
}
|
||||
|
||||
TCComponentItemRevision itemRevision = (TCComponentItemRevision) comp;
|
||||
String result = sendPost("http://10.20.7.27:9889/jde/getNumber");
|
||||
System.out.println(result);
|
||||
//获取返回结果
|
||||
JSONObject resultJson = JSONObject.fromObject(result);
|
||||
|
||||
|
||||
JSONArray jsonArray = resultJson.getJSONArray("data");
|
||||
for (int i=0; i < jsonArray.size(); i++) {
|
||||
|
||||
//获取autoNextNumber
|
||||
String autoNextNumber = "";
|
||||
JSONObject jsonObject = jsonArray.getJSONObject(i);
|
||||
Iterator iter = jsonObject.entrySet().iterator();
|
||||
while (iter.hasNext()) {
|
||||
Map.Entry entry = (Map.Entry) iter.next();
|
||||
System.out.println(entry.getKey().toString());
|
||||
switch (entry.getKey().toString()) {
|
||||
case "autoNextNumber":
|
||||
System.out.println(entry.getValue().toString());
|
||||
autoNextNumber = entry.getValue().toString();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
itemRevision.setStringProperty("rb3_spm", autoNextNumber);
|
||||
itemRevision.refresh();
|
||||
MessageBox.post("获取商品码成功!", "成功", MessageBox.INFORMATION);
|
||||
return;
|
||||
}
|
||||
super.executeModal();
|
||||
}
|
||||
public static String sendPost(String url) {
|
||||
String response = null;
|
||||
|
||||
try {
|
||||
CloseableHttpClient httpclient = null;
|
||||
CloseableHttpResponse httpresponse = null;
|
||||
try {
|
||||
httpclient = HttpClients.createDefault();
|
||||
HttpGet httpGet = new HttpGet(url);
|
||||
httpresponse = httpclient.execute(httpGet);
|
||||
response = EntityUtils.toString(httpresponse.getEntity());
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
if (httpclient != null) {
|
||||
httpclient.close();
|
||||
}
|
||||
if (httpresponse != null) {
|
||||
httpresponse.close();
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue