first commit

main
李建辉 1 month ago
commit 6c3f0c7389

@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry exported="true" kind="lib" path="jason/fastjson-1.2.76.jar"/>
<classpathentry exported="true" kind="lib" path="jason/okhttp-2.7.4.jar"/>
<classpathentry exported="true" kind="lib" path="jason/okio-1.13.0.jar"/>
<classpathentry exported="true" kind="lib" path="jason/commons-beanutils-1.7.0.jar"/>
<classpathentry exported="true" kind="lib" path="jason/commons-collections-3.2.jar"/>
<classpathentry exported="true" kind="lib" path="jason/commons-lang-2.4.jar"/>
<classpathentry exported="true" kind="lib" path="jason/commons-logging-1.1.jar"/>
<classpathentry exported="true" kind="lib" path="jason/ezmorph-1.0.4.jar"/>
<classpathentry exported="true" kind="lib" path="jason/jdom.jar"/>
<classpathentry exported="true" kind="lib" path="jason/json-lib-2.2.2-jdk15.jar"/>
<classpathentry exported="true" kind="lib" path="jason/json-lib-2.2.3-jdk13.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/activation-1.1.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/antlr-2.7.7.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/apache-mime4j-core-0.7.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axiom-api-1.2.13.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axiom-dom-1.2.13.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axiom-impl-1.2.13.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-adb-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-adb-codegen-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-ant-plugin-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-clustering-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-codegen-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-corba-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-fastinfoset-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-java2wsdl-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-jaxbri-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-jaxws-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-jibx-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-json-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-kernel-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-metadata-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-mtompolicy-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-saaj-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-soapmonitor-servlet-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-spring-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-transport-http-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-transport-local-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/axis2-xmlbeans-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/bcel-5.1.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/commons-cli-1.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/commons-codec-1.3.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/commons-fileupload-1.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/commons-httpclient-3.1.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/commons-io-1.4.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/commons-logging-1.1.1.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/geronimo-annotation_1.0_spec-1.1.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/geronimo-jaxws_2.2_spec-1.0.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/geronimo-jta_1.1_spec-1.1.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/geronimo-saaj_1.3_spec-1.0.1.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/geronimo-stax-api_1.0_spec-1.0.1.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/geronimo-ws-metadata_2.0_spec-1.1.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/httpcore-4.0.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/jalopy-1.5rc3.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/jaxb-api-2.1.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/jaxb-impl-2.1.7.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/jaxb-xjc-2.1.7.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/jaxen-1.1.1.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/jaxws-tools-2.1.3.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/jettison-1.0-RC2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/jibx-bind-1.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/jibx-run-1.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/jsr311-api-1.0.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/juli-6.0.16.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/log4j-1.2.15.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/mail-1.4.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/mex-1.6.2-impl.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/neethi-3.0.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/regexp-1.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/tribes-6.0.16.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/woden-api-1.0M9.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/woden-impl-commons-1.0M9.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/woden-impl-dom-1.0M9.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/wsdl4j-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/wstx-asl-3.2.9.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/xalan-2.7.0.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/xml-resolver-1.2.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/xmlbeans-2.3.0.jar"/>
<classpathentry exported="true" kind="lib" path="axis2_1.6/XmlSchema-1.4.7.jar"/>
<classpathentry exported="true" kind="lib" path="poilib/msbase.jar"/>
<classpathentry exported="true" kind="lib" path="poilib/mssqlserver.jar"/>
<classpathentry exported="true" kind="lib" path="poilib/msutil.jar"/>
<classpathentry exported="true" kind="lib" path="poilib/sqljdbc41.jar"/>
<classpathentry kind="lib" path="poilib/mailapi.jar"/>
<classpathentry kind="lib" path="poilib/smtp.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="lib" path="poilib/commons-codec-1.10.jar"/>
<classpathentry kind="lib" path="poilib/commons-logging-1.1.jar"/>
<classpathentry kind="lib" path="poilib/dom4j-1.6.1.jar"/>
<classpathentry kind="lib" path="poilib/geronimo-stax-api_1.0_spec-1.0.jar"/>
<classpathentry kind="lib" path="poilib/jacob.jar"/>
<classpathentry kind="lib" path="poilib/jcommon-1.0.12.jar"/>
<classpathentry kind="lib" path="poilib/jfreechart-1.0.9.jar"/>
<classpathentry kind="lib" path="poilib/jsr173_1.0_api.jar"/>
<classpathentry kind="lib" path="poilib/jxl_1.0.0.jar"/>
<classpathentry kind="lib" path="poilib/poi-3.9-20121203.jar"/>
<classpathentry kind="lib" path="poilib/poi-examples-3.9-20121203.jar"/>
<classpathentry kind="lib" path="poilib/poi-excelant-3.9-20121203.jar"/>
<classpathentry kind="lib" path="poilib/poi-ooxml-3.9-20121203.jar"/>
<classpathentry kind="lib" path="poilib/poi-ooxml-schemas-3.9-20121203.jar"/>
<classpathentry kind="lib" path="poilib/poi-scratchpad-3.9-20121203.jar"/>
<classpathentry kind="lib" path="poilib/xmlbeans-2.5.0.jar"/>
<classpathentry kind="lib" path="poilib/ojdbc6.jar"/>
<classpathentry kind="lib" path="jason/itext-2.0.3.jar"/>
<classpathentry kind="lib" path="jason/iTextAsian.jar"/>
<classpathentry kind="lib" path="poilib/com.connor.getlsms_1.0.0.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>com.connor.jk.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,91 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore
org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull
org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault
org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable
org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
org.eclipse.jdt.core.compiler.problem.deadCode=warning
org.eclipse.jdt.core.compiler.problem.deprecation=warning
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore
org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled
org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error
org.eclipse.jdt.core.compiler.problem.nullReference=warning
org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore
org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning
org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore
org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
org.eclipse.jdt.core.compiler.problem.unusedImport=warning
org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
org.eclipse.jdt.core.compiler.source=1.7

@ -0,0 +1,500 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Plm
Bundle-SymbolicName: com.connor.jk.plm; singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: com.connor.jk.plm.Activator
Bundle-Vendor: CONNOR
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
com.teamcenter.rac.util;bundle-version="11000.2.0",
com.teamcenter.rac.kernel;bundle-version="11000.2.0",
com.teamcenter.rac.aifrcp;bundle-version="11000.2.0",
com.teamcenter.rac.tcapps;bundle-version="11000.2.0",
com.teamcenter.rac.common;bundle-version="11000.2.0",
org.eclipse.ui.forms;bundle-version="3.5.200",
org.apache.log4j;bundle-version="1.2.15",
org.apache.poi;bundle-version="3.6.0",
com.teamcenter.rac.ui;bundle-version="11000.2.0",
TcSoaCoreRac;bundle-version="11000.2.0",
com.teamcenter.rac.pse;bundle-version="11000.2.0",
TcSoaStructureManagementRac,
com.teamcenter.rac.project;bundle-version="11000.2.0",
TcSoaCadRac;bundle-version="11000.2.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-ActivationPolicy: lazy
Export-Package: com.connor.jk.plm,
com.connor.jk.plm.DbomToEbom,
com.connor.jk.plm.E_U8ToU8,
com.connor.jk.plm.TC_OA_Integration,
com.connor.jk.plm.YSXQForm,
com.connor.jk.plm.addMark,
com.connor.jk.plm.allBomline,
com.connor.jk.plm.bom.until,
com.connor.jk.plm.classify,
com.connor.jk.plm.createPCBForm,
com.connor.jk.plm.createproject,
com.connor.jk.plm.exportBOM,
com.connor.jk.plm.exportForm,
com.connor.jk.plm.exportPCB,
com.connor.jk.plm.form,
com.connor.jk.plm.handlers,
com.connor.jk.plm.imform,
com.connor.jk.plm.imp.bom,
com.connor.jk.plm.importPCB,
com.connor.jk.plm.itemsave,
com.connor.jk.plm.mail,
com.connor.jk.plm.paste,
com.connor.jk.plm.pcb,
com.connor.jk.plm.project,
com.connor.jk.plm.report,
com.connor.jk.plm.search,
com.connor.jk.plm.sendToClassification,
com.connor.jk.plm.setBomline,
com.connor.jk.plm.sign,
com.connor.jk.plm.sqb,
com.connor.jk.plm.tallySheet,
com.connor.jk.plm.tempToFormal,
com.connor.jk.plm.transfer,
com.connor.jk.plm.util,
com.connor.jk.plm.view,
com.connor.jk.plm.xmkb,
com.jacob.activeX,
com.jacob.com,
com.keypoint,
com.microsoft.jdbc.base,
com.microsoft.jdbc.extensions,
com.microsoft.jdbc.sqlserver,
com.microsoft.jdbc.sqlserver.tds,
com.microsoft.jdbc.vprt,
com.microsoft.jdbcx.base,
com.microsoft.jdbcx.sqlserver,
com.microsoft.sqlserver.jdbc,
com.microsoft.util,
com.sun.mail.handlers,
com.sun.mail.smtp,
com.sun.mail.util,
com.teamcenter.rac.commands.cut,
com.teamcenter.rac.form,
com.teamcenter.rac.project.views,
javax.mail,
javax.mail.event,
javax.mail.internet,
javax.mail.search,
javax.mail.util,
javax.xml,
javax.xml.namespace,
javax.xml.stream,
javax.xml.stream.events,
javax.xml.stream.util,
jxl,
jxl.biff,
jxl.biff.drawing,
jxl.biff.formula,
jxl.common,
jxl.common.log,
jxl.demo,
jxl.format,
jxl.read.biff,
jxl.write,
jxl.write.biff,
microsoft.sql,
oracle.core.lmx,
oracle.core.lvf,
oracle.jdbc,
oracle.jdbc.aq,
oracle.jdbc.babelfish,
oracle.jdbc.connector,
oracle.jdbc.dcn,
oracle.jdbc.diagnostics,
oracle.jdbc.driver,
oracle.jdbc.internal,
oracle.jdbc.oci,
oracle.jdbc.oracore,
oracle.jdbc.pool,
oracle.jdbc.proxy,
oracle.jdbc.proxy.annotation,
oracle.jdbc.replay,
oracle.jdbc.replay.driver,
oracle.jdbc.replay.internal,
oracle.jdbc.rowset,
oracle.jdbc.util,
oracle.jdbc.xa,
oracle.jdbc.xa.client,
oracle.jpub.runtime,
oracle.net.ano,
oracle.net.aso,
oracle.net.jdbc.TNSAddress,
oracle.net.jdbc.nl,
oracle.net.jdbc.nl.mesg,
oracle.net.jndi,
oracle.net.ns,
oracle.net.nt,
oracle.net.resolver,
oracle.security.o3logon,
oracle.security.o5logon,
oracle.sql,
oracle.sql.converter,
org.apache.commons.codec,
org.apache.commons.codec.binary,
org.apache.commons.codec.digest,
org.apache.commons.codec.language,
org.apache.commons.codec.language.bm,
org.apache.commons.codec.net,
org.apache.commons.logging,
org.apache.commons.logging.impl,
org.apache.poi,
org.apache.poi.common.usermodel,
org.apache.poi.ddf,
org.apache.poi.dev,
org.apache.poi.extractor,
org.apache.poi.hdf.event,
org.apache.poi.hdf.extractor,
org.apache.poi.hdf.extractor.data,
org.apache.poi.hdf.extractor.util,
org.apache.poi.hdf.model,
org.apache.poi.hdf.model.hdftypes,
org.apache.poi.hdf.model.hdftypes.definitions,
org.apache.poi.hdf.model.util,
org.apache.poi.hdgf,
org.apache.poi.hdgf.chunks,
org.apache.poi.hdgf.dev,
org.apache.poi.hdgf.exceptions,
org.apache.poi.hdgf.extractor,
org.apache.poi.hdgf.pointers,
org.apache.poi.hdgf.streams,
org.apache.poi.hmef,
org.apache.poi.hmef.attribute,
org.apache.poi.hmef.dev,
org.apache.poi.hmef.extractor,
org.apache.poi.hpbf,
org.apache.poi.hpbf.dev,
org.apache.poi.hpbf.extractor,
org.apache.poi.hpbf.model,
org.apache.poi.hpbf.model.qcbits,
org.apache.poi.hpsf,
org.apache.poi.hpsf.examples,
org.apache.poi.hpsf.extractor,
org.apache.poi.hpsf.wellknown,
org.apache.poi.hslf,
org.apache.poi.hslf.blip,
org.apache.poi.hslf.dev,
org.apache.poi.hslf.examples,
org.apache.poi.hslf.exceptions,
org.apache.poi.hslf.extractor,
org.apache.poi.hslf.model,
org.apache.poi.hslf.model.textproperties,
org.apache.poi.hslf.record,
org.apache.poi.hslf.usermodel,
org.apache.poi.hslf.util,
org.apache.poi.hsmf,
org.apache.poi.hsmf.datatypes,
org.apache.poi.hsmf.dev,
org.apache.poi.hsmf.examples,
org.apache.poi.hsmf.exceptions,
org.apache.poi.hsmf.extractor,
org.apache.poi.hsmf.parsers,
org.apache.poi.hssf,
org.apache.poi.hssf.converter,
org.apache.poi.hssf.dev,
org.apache.poi.hssf.eventmodel,
org.apache.poi.hssf.eventusermodel,
org.apache.poi.hssf.eventusermodel.dummyrecord,
org.apache.poi.hssf.eventusermodel.examples,
org.apache.poi.hssf.extractor,
org.apache.poi.hssf.model,
org.apache.poi.hssf.record,
org.apache.poi.hssf.record.aggregates,
org.apache.poi.hssf.record.cf,
org.apache.poi.hssf.record.chart,
org.apache.poi.hssf.record.common,
org.apache.poi.hssf.record.cont,
org.apache.poi.hssf.record.crypto,
org.apache.poi.hssf.record.pivottable,
org.apache.poi.hssf.usermodel,
org.apache.poi.hssf.usermodel.examples,
org.apache.poi.hssf.util,
org.apache.poi.hssf.view,
org.apache.poi.hssf.view.brush,
org.apache.poi.hwpf,
org.apache.poi.hwpf.converter,
org.apache.poi.hwpf.dev,
org.apache.poi.hwpf.extractor,
org.apache.poi.hwpf.model,
org.apache.poi.hwpf.model.io,
org.apache.poi.hwpf.model.types,
org.apache.poi.hwpf.sprm,
org.apache.poi.hwpf.usermodel,
org.apache.poi.openxml4j.exceptions,
org.apache.poi.openxml4j.opc,
org.apache.poi.openxml4j.opc.internal,
org.apache.poi.openxml4j.opc.internal.marshallers,
org.apache.poi.openxml4j.opc.internal.signature,
org.apache.poi.openxml4j.opc.internal.unmarshallers,
org.apache.poi.openxml4j.opc.signature,
org.apache.poi.openxml4j.util,
org.apache.poi.poifs.common,
org.apache.poi.poifs.crypt,
org.apache.poi.poifs.dev,
org.apache.poi.poifs.eventfilesystem,
org.apache.poi.poifs.filesystem,
org.apache.poi.poifs.nio,
org.apache.poi.poifs.poibrowser,
org.apache.poi.poifs.property,
org.apache.poi.poifs.storage,
org.apache.poi.sl.usermodel,
org.apache.poi.ss,
org.apache.poi.ss.examples,
org.apache.poi.ss.examples.formula,
org.apache.poi.ss.examples.html,
org.apache.poi.ss.excelant,
org.apache.poi.ss.excelant.util,
org.apache.poi.ss.extractor,
org.apache.poi.ss.format,
org.apache.poi.ss.formula,
org.apache.poi.ss.formula.atp,
org.apache.poi.ss.formula.constant,
org.apache.poi.ss.formula.eval,
org.apache.poi.ss.formula.eval.forked,
org.apache.poi.ss.formula.function,
org.apache.poi.ss.formula.functions,
org.apache.poi.ss.formula.ptg,
org.apache.poi.ss.formula.udf,
org.apache.poi.ss.usermodel,
org.apache.poi.ss.usermodel.charts,
org.apache.poi.ss.util,
org.apache.poi.ss.util.cellwalk,
org.apache.poi.util,
org.apache.poi.xslf,
org.apache.poi.xslf.extractor,
org.apache.poi.xslf.model,
org.apache.poi.xslf.model.geom,
org.apache.poi.xslf.usermodel,
org.apache.poi.xslf.usermodel.tutorial,
org.apache.poi.xslf.util,
org.apache.poi.xssf.dev,
org.apache.poi.xssf.eventusermodel,
org.apache.poi.xssf.eventusermodel.examples,
org.apache.poi.xssf.extractor,
org.apache.poi.xssf.model,
org.apache.poi.xssf.streaming,
org.apache.poi.xssf.usermodel,
org.apache.poi.xssf.usermodel.charts,
org.apache.poi.xssf.usermodel.examples,
org.apache.poi.xssf.usermodel.extensions,
org.apache.poi.xssf.usermodel.helpers,
org.apache.poi.xssf.util,
org.apache.poi.xwpf.extractor,
org.apache.poi.xwpf.model,
org.apache.poi.xwpf.usermodel,
org.apache.xmlbeans,
org.apache.xmlbeans.impl.common,
org.apache.xmlbeans.impl.config,
org.apache.xmlbeans.impl.inst2xsd,
org.apache.xmlbeans.impl.inst2xsd.util,
org.apache.xmlbeans.impl.jam,
org.apache.xmlbeans.impl.jam.annotation,
org.apache.xmlbeans.impl.jam.internal,
org.apache.xmlbeans.impl.jam.internal.classrefs,
org.apache.xmlbeans.impl.jam.internal.elements,
org.apache.xmlbeans.impl.jam.internal.javadoc,
org.apache.xmlbeans.impl.jam.internal.parser,
org.apache.xmlbeans.impl.jam.internal.reflect,
org.apache.xmlbeans.impl.jam.mutable,
org.apache.xmlbeans.impl.jam.provider,
org.apache.xmlbeans.impl.jam.visitor,
org.apache.xmlbeans.impl.jam.xml,
org.apache.xmlbeans.impl.piccolo.io,
org.apache.xmlbeans.impl.piccolo.util,
org.apache.xmlbeans.impl.piccolo.xml,
org.apache.xmlbeans.impl.regex,
org.apache.xmlbeans.impl.richParser,
org.apache.xmlbeans.impl.schema,
org.apache.xmlbeans.impl.soap,
org.apache.xmlbeans.impl.store,
org.apache.xmlbeans.impl.tool,
org.apache.xmlbeans.impl.util,
org.apache.xmlbeans.impl.validator,
org.apache.xmlbeans.impl.values,
org.apache.xmlbeans.impl.xb.ltgfmt,
org.apache.xmlbeans.impl.xb.ltgfmt.impl,
org.apache.xmlbeans.impl.xb.substwsdl,
org.apache.xmlbeans.impl.xb.substwsdl.impl,
org.apache.xmlbeans.impl.xb.xmlconfig,
org.apache.xmlbeans.impl.xb.xmlconfig.impl,
org.apache.xmlbeans.impl.xb.xmlschema,
org.apache.xmlbeans.impl.xb.xmlschema.impl,
org.apache.xmlbeans.impl.xb.xsdownload,
org.apache.xmlbeans.impl.xb.xsdownload.impl,
org.apache.xmlbeans.impl.xb.xsdschema,
org.apache.xmlbeans.impl.xb.xsdschema.impl,
org.apache.xmlbeans.impl.xpathgen,
org.apache.xmlbeans.impl.xsd2inst,
org.apache.xmlbeans.soap,
org.apache.xmlbeans.xml.stream,
org.apache.xmlbeans.xml.stream.events,
org.apache.xmlbeans.xml.stream.utils,
org.dom4j,
org.dom4j.bean,
org.dom4j.datatype,
org.dom4j.dom,
org.dom4j.dtd,
org.dom4j.io,
org.dom4j.jaxb,
org.dom4j.rule,
org.dom4j.rule.pattern,
org.dom4j.swing,
org.dom4j.tree,
org.dom4j.util,
org.dom4j.xpath,
org.dom4j.xpp,
org.openxmlformats.schemas.drawingml.x2006.chart,
org.openxmlformats.schemas.drawingml.x2006.chart.impl,
org.openxmlformats.schemas.drawingml.x2006.main,
org.openxmlformats.schemas.drawingml.x2006.main.impl,
org.openxmlformats.schemas.drawingml.x2006.picture,
org.openxmlformats.schemas.drawingml.x2006.picture.impl,
org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing,
org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.impl,
org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing,
org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.impl,
org.openxmlformats.schemas.officeDocument.x2006.customProperties,
org.openxmlformats.schemas.officeDocument.x2006.customProperties.impl,
org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes,
org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.impl,
org.openxmlformats.schemas.officeDocument.x2006.extendedProperties,
org.openxmlformats.schemas.officeDocument.x2006.extendedProperties.impl,
org.openxmlformats.schemas.officeDocument.x2006.relationships,
org.openxmlformats.schemas.officeDocument.x2006.relationships.impl,
org.openxmlformats.schemas.presentationml.x2006.main,
org.openxmlformats.schemas.presentationml.x2006.main.impl,
org.openxmlformats.schemas.spreadsheetml.x2006.main,
org.openxmlformats.schemas.spreadsheetml.x2006.main.impl,
org.openxmlformats.schemas.wordprocessingml.x2006.main,
org.openxmlformats.schemas.wordprocessingml.x2006.main.impl,
org.w3c.dom,
repackage,
schemaorg_apache_xmlbeans.system.sE130CAA0A01A7CDE5A2B4FEB8B311707,
schemaorg_apache_xmlbeans.system.sXMLCONFIG,
schemaorg_apache_xmlbeans.system.sXMLLANG,
schemaorg_apache_xmlbeans.system.sXMLSCHEMA,
schemaorg_apache_xmlbeans.system.sXMLTOOLS,
schemasMicrosoftComOfficeExcel,
schemasMicrosoftComOfficeExcel.impl,
schemasMicrosoftComOfficeOffice,
schemasMicrosoftComOfficeOffice.impl,
schemasMicrosoftComVml,
schemasMicrosoftComVml.impl
Bundle-ClassPath: poilib/commons-codec-1.10.jar,
poilib/commons-logging-1.1.jar,
poilib/dom4j-1.6.1.jar,
poilib/geronimo-stax-api_1.0_spec-1.0.jar,
poilib/jacob.jar,
poilib/jcommon-1.0.12.jar,
poilib/jfreechart-1.0.9.jar,
poilib/jsr173_1.0_api.jar,
poilib/jxl_1.0.0.jar,
poilib/poi-3.9-20121203.jar,
poilib/poi-examples-3.9-20121203.jar,
poilib/poi-excelant-3.9-20121203.jar,
poilib/poi-ooxml-3.9-20121203.jar,
poilib/poi-ooxml-schemas-3.9-20121203.jar,
poilib/poi-scratchpad-3.9-20121203.jar,
poilib/xmlbeans-2.5.0.jar,
.,
poilib/ojdbc6.jar,
poilib/msbase.jar,
poilib/mssqlserver.jar,
poilib/msutil.jar,
poilib/sqljdbc41.jar,
poilib/mailapi.jar,
poilib/smtp.jar,
axis2_1.6/activation-1.1.jar,
axis2_1.6/antlr-2.7.7.jar,
axis2_1.6/apache-mime4j-core-0.7.2.jar,
axis2_1.6/axiom-api-1.2.13.jar,
axis2_1.6/axiom-dom-1.2.13.jar,
axis2_1.6/axiom-impl-1.2.13.jar,
axis2_1.6/axis2-adb-1.6.2.jar,
axis2_1.6/axis2-adb-codegen-1.6.2.jar,
axis2_1.6/axis2-ant-plugin-1.6.2.jar,
axis2_1.6/axis2-clustering-1.6.2.jar,
axis2_1.6/axis2-codegen-1.6.2.jar,
axis2_1.6/axis2-corba-1.6.2.jar,
axis2_1.6/axis2-fastinfoset-1.6.2.jar,
axis2_1.6/axis2-java2wsdl-1.6.2.jar,
axis2_1.6/axis2-jaxbri-1.6.2.jar,
axis2_1.6/axis2-jaxws-1.6.2.jar,
axis2_1.6/axis2-jibx-1.6.2.jar,
axis2_1.6/axis2-json-1.6.2.jar,
axis2_1.6/axis2-kernel-1.6.2.jar,
axis2_1.6/axis2-metadata-1.6.2.jar,
axis2_1.6/axis2-mtompolicy-1.6.2.jar,
axis2_1.6/axis2-saaj-1.6.2.jar,
axis2_1.6/axis2-soapmonitor-servlet-1.6.2.jar,
axis2_1.6/axis2-spring-1.6.2.jar,
axis2_1.6/axis2-transport-http-1.6.2.jar,
axis2_1.6/axis2-transport-local-1.6.2.jar,
axis2_1.6/axis2-xmlbeans-1.6.2.jar,
axis2_1.6/bcel-5.1.jar,
axis2_1.6/commons-cli-1.2.jar,
axis2_1.6/commons-codec-1.3.jar,
axis2_1.6/commons-fileupload-1.2.jar,
axis2_1.6/commons-httpclient-3.1.jar,
axis2_1.6/commons-io-1.4.jar,
axis2_1.6/commons-logging-1.1.1.jar,
axis2_1.6/geronimo-annotation_1.0_spec-1.1.jar,
axis2_1.6/geronimo-jaxws_2.2_spec-1.0.jar,
axis2_1.6/geronimo-jta_1.1_spec-1.1.jar,
axis2_1.6/geronimo-saaj_1.3_spec-1.0.1.jar,
axis2_1.6/geronimo-stax-api_1.0_spec-1.0.1.jar,
axis2_1.6/geronimo-ws-metadata_2.0_spec-1.1.2.jar,
axis2_1.6/httpcore-4.0.jar,
axis2_1.6/jalopy-1.5rc3.jar,
axis2_1.6/jaxb-api-2.1.jar,
axis2_1.6/jaxb-impl-2.1.7.jar,
axis2_1.6/jaxb-xjc-2.1.7.jar,
axis2_1.6/jaxen-1.1.1.jar,
axis2_1.6/jaxws-tools-2.1.3.jar,
axis2_1.6/jettison-1.0-RC2.jar,
axis2_1.6/jibx-bind-1.2.jar,
axis2_1.6/jibx-run-1.2.jar,
axis2_1.6/jsr311-api-1.0.jar,
axis2_1.6/juli-6.0.16.jar,
axis2_1.6/log4j-1.2.15.jar,
axis2_1.6/mail-1.4.jar,
axis2_1.6/mex-1.6.2-impl.jar,
axis2_1.6/neethi-3.0.2.jar,
axis2_1.6/regexp-1.2.jar,
axis2_1.6/tribes-6.0.16.jar,
axis2_1.6/woden-api-1.0M9.jar,
axis2_1.6/woden-impl-commons-1.0M9.jar,
axis2_1.6/woden-impl-dom-1.0M9.jar,
axis2_1.6/wsdl4j-1.6.2.jar,
axis2_1.6/wstx-asl-3.2.9.jar,
axis2_1.6/xalan-2.7.0.jar,
axis2_1.6/xml-resolver-1.2.jar,
axis2_1.6/xmlbeans-2.3.0.jar,
axis2_1.6/XmlSchema-1.4.7.jar,
jason/commons-beanutils-1.7.0.jar,
jason/commons-collections-3.2.jar,
jason/commons-lang-2.4.jar,
jason/commons-logging-1.1.jar,
jason/ezmorph-1.0.4.jar,
jason/jdom.jar,
jason/json-lib-2.2.2-jdk15.jar,
jason/json-lib-2.2.3-jdk13.jar,
jason/itext-2.0.3.jar,
jason/okhttp-2.7.4.jar,
jason/okio-1.13.0.jar,
jason/fastjson-1.2.76.jar
Import-Package: com.teamcenter.rac.aif.registryeditor,
com.teamcenter.rac.ui.views.providers,
com.teamcenter.rac.vns.model,
com.teamcenter.services,
com.teamcenter.services.internal,
com.teamcenter.services.internal.rac.structuremanagement,
com.teamcenter.services.internal.rac.structuremanagement._2007_06,
com.teamcenter.services.rac,
com.teamcenter.soa.exceptions,
org.apache.poi.hssf.usermodel

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.

@ -0,0 +1,501 @@
package com.connor.jk.plm.E_U8ToEBOM_New;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JTextField;
//import com.connor.jk.plm.tempToFormal.ClassProperty;
//import com.connor.jk.plm.tempToFormal.SoaServerUtil;
import com.teamcenter.rac.aif.AbstractAIFApplication;
import com.teamcenter.rac.aif.AbstractAIFOperation;
import com.teamcenter.rac.aif.kernel.AIFComponentContext;
import com.teamcenter.rac.aif.kernel.InterfaceAIFComponent;
import com.teamcenter.rac.kernel.TCClassificationService;
import com.teamcenter.rac.kernel.TCComponent;
import com.teamcenter.rac.kernel.TCComponentBOMLine;
import com.teamcenter.rac.kernel.TCComponentBOMViewRevision;
import com.teamcenter.rac.kernel.TCComponentBOMWindow;
import com.teamcenter.rac.kernel.TCComponentBOMWindowType;
import com.teamcenter.rac.kernel.TCComponentFolder;
import com.teamcenter.rac.kernel.TCComponentForm;
import com.teamcenter.rac.kernel.TCComponentICO;
import com.teamcenter.rac.kernel.TCComponentItem;
import com.teamcenter.rac.kernel.TCComponentItemRevision;
import com.teamcenter.rac.kernel.TCComponentItemType;
import com.teamcenter.rac.kernel.TCComponentUser;
import com.teamcenter.rac.kernel.TCException;
import com.teamcenter.rac.kernel.TCPreferenceService;
import com.teamcenter.rac.kernel.TCProperty;
import com.teamcenter.rac.kernel.TCSession;
import com.teamcenter.rac.kernel.TCTypeService;
import com.teamcenter.rac.kernel.TCUserService;
import com.teamcenter.rac.kernel.ics.ICSApplicationObject;
import com.teamcenter.rac.kernel.ics.ICSProperty;
import com.teamcenter.rac.util.MessageBox;
import com.teamcenter.schemas.soa._2006_03.exceptions.ServiceException;
public class E_U8ToU8_Operation extends AbstractAIFOperation {
private AbstractAIFApplication app;
private TCSession session;
private InterfaceAIFComponent targetComp;
private AIFComponentContext aif;
private String[] prop;
private TCProperty[] props;
private TCUserService userService;
private TCPreferenceService service;
private TCComponentItem target;
private TCComponentBOMLine line = null;
private TCComponentBOMWindow window=null;
private TCComponentBOMWindow windowOld=null;
private List<TCComponentItemRevision> childRevList;//与创建JList有关
public E_U8ToU8_Operation(AbstractAIFApplication app2, AIFComponentContext aif, InterfaceAIFComponent targetComp,
TCSession session2) {
this.app = app2;
this.targetComp = targetComp;
this.aif = aif;
this.session = session2;
}
private String itemId;// 正式物料的ID
private String itemRev;// 正式物料的版本
private String itemName;// 正式物料的名称
private TCComponentItemRevision itemRevision;// 正式物料的版本
private TCComponentItemRevision rev;
private TCComponentBOMViewRevision bomViewRevision;
private AIFComponentContext[] Context2;
String class_id ;
Integer[] keys = null;
String[] vals = null;
String url="";
String[] propertyValue=null;
String[] properties=null;
String[] values=null;
@Override
public void executeOperation() throws Exception {
service=session.getPreferenceService();
url= service.getStringValue("Autocode_SendClassServer_URL");
// TODO 分类属性
// 1.获取已发布最新版本的分类属性
class_id = ((TCComponent) aif.getComponent()).getClassificationClass();
if(class_id==""){
MessageBox.post("此物料尚未分类,请分类后再执行此操作", "错误", MessageBox.ERROR);
return;
}
// int a=1;
// target = (TCComponentItem) targetComp;
// TODO 首选项待配置
// service = session.getPreferenceService();
// String class_id=service.getStringValue("");
if (aif.getComponent() instanceof TCComponentItemRevision) {
rev = (TCComponentItemRevision) aif.getComponent();
// AIFComponentd
// 设置名称object_name
props = rev.getTCProperties(new String[] { "object_name" });
itemName = props[0].getStringValue();
// 设置ID
props = rev.getTCProperties(new String[] { "item_id" });
itemId = props[0].getStringValue().substring(2);
}
//只允许转一个版本
TCComponentItem newitem =null;
TCComponentItemRevision newrev=null;
boolean isExist=false;
try {
//应该先查询一下看是否已经存在这个item没有再新建有就直接获取
newitem = rev.saveAsItem(itemId, null);
newrev = newitem.getLatestItemRevision();//另存后的最新版本
} catch (Exception e1) {
// TCComponent[] u8items=session.search("零组件...", new String[] {"零组件 ID"}, new String[] {itemId});
InterfaceAIFComponent[] comps = null;
comps = Util.searchComponentsCollection(session,"零组件...", new String[] { "零组件 ID" },new String[] { itemId });
// newitem=(TCComponentItem) u8items[0];
newitem=(TCComponentItem) comps[0];
//先要检查已经生成的u8bom是否已经发布
if(newitem.getLatestItemRevision().getProperty("release_status_list").length()>0) {
try {
newrev=newitem.getLatestItemRevision().saveAs(newitem.getNewRev());
} catch (Exception e) {
// e.printStackTrace();
}
isExist=true;
}else {
MessageBox.post("该物料已经另存为U8物料,请检查U8物料最新版是否发布。","错误",MessageBox.ERROR);
return;
}
}
if(isExist==false) {
TCComponentUser user = this.session.getUser();
TCComponentFolder newStuff = user.getNewStuffFolder();
newStuff.add("contents", newitem);
}
newitem.refresh();
propertyValue=service.getStringValues("jk_prop_value");//支持字符串类型的属性赋值
TCComponentForm form1=(TCComponentForm) rev.getReferenceListProperty("IMAN_master_form_rev")[0];
TCComponentForm form2=(TCComponentForm) newitem.getLatestItemRevision().getReferenceListProperty("IMAN_master_form_rev")[0];
if(propertyValue==null) {
MessageBox.post("请联系管理员检查首选项jk_prop_value","错误",MessageBox.ERROR);
return;
}
for(int i=0;i<propertyValue.length;i++) {
String[] info=propertyValue[i].split(":");
if(info.length!=2) {
MessageBox.post("请联系管理员检查首选项jk_prop_value","错误",MessageBox.ERROR);
return;
}else {
if(info[0].equals("itemRev")) {
try {
// newitem.getLatestItemRevision().setTCProperty(rev.getTCProperty(info[1]));
newitem.getLatestItemRevision().refresh();
newitem.getLatestItemRevision().getTCProperty(info[1]).setStringValue(rev.getProperty(info[1]));
} catch (Exception e) {
e.printStackTrace();
}
}else if(info[0].equals("form")) {
try {
form2.setTCProperty(form1.getTCProperty(info[1]));
} catch (Exception e) {
}
}
}
}
try {
// form2.getTCProperty("object_name").setStringValue(form1.getTCProperty("object_name").getStringValue().split("E-")[1]);
form2.getTCProperty("object_name").setStringValue(newitem.getLatestItemRevision().getProperty("item_id")+"/"+newitem.getLatestItemRevision().getProperty("item_revision_id"));
} catch (Exception e1) {
}
if(form2.getTCProperty("object_name").getStringValue().startsWith("8")) {
try {
form2.getTCProperty("jk8IsDomesticMarket").setStringValue("是");
} catch (Exception e) {
}
}
//TODO 把视图搭起来
if(isExist==false) {
//如果是新生成的item对象
TCComponentBOMLine line = getTopLineByRev(newitem.getLatestItemRevision());// 获得顶层bomline
if(line!=null){
setbom(line,rev);
}
window.close();
}else {
//如果是升版而来的版本
TCTypeService service = session.getTypeService();
TCComponentBOMWindowType winType = (TCComponentBOMWindowType) service
.getTypeComponent("BOMWindow");
window = winType.create(null);
windowOld = winType.create(null);
TCComponentBOMLine line = getTopLineByRev2(newitem.getLatestItemRevision(),window);// 获得顶层bomline
TCComponentBOMLine lineOld = getTopLineByRev2(rev,windowOld);// 获得顶层bomline
if(line!=null){
setbom2(window,line,lineOld,0);
}
window.close();
windowOld.close();
}
rev = itemRevision;
TCComponentICO[] icoS = ((TCComponentItemRevision)aif.getComponent()).getClassificationObjects();
int count=0;
int count1=0;
System.out.println("icoS.length---------------"+icoS.length);
for (int i = 0; i < icoS.length; i++) {
ICSProperty[] cPropS = icoS[i].getICSProperties(true);
for (int j = 0; j < cPropS.length; j++) {
System.out.println(count);
count++;
}
keys=new Integer[count];
vals = new String[count];
for (int j = 0; j < cPropS.length; j++) {
System.out.println(count);
keys[count1] = cPropS[j].getId();
System.out.println("keys["+count1+"]================>"+keys[count1]);
vals[count1] = cPropS[j].getValue();
System.out.println("vals["+count1+"]================>"+vals[count1]);
count1++;
}
break;
}
// if(a==1){
// return;
// }
// TODO 2.创建分类库,新版本发送到分类库
// class_id = "";// TODO 分类库写到首选项里
try {
// createICS(class_id, newrev, newrev.getTCProperty("item_id").getStringValue(), keys, vals);
sendObjToClassficationByWebService(newitem.getLatestItemRevision(),keys,vals);
} catch (Exception e) {
MessageBox.post("分类库操作失败","错误",MessageBox.ERROR);
e.printStackTrace();
return;
}
if(isSucceed==false) {
MessageBox.post("分类库操作失败","错误",MessageBox.ERROR);
return;
}
if (isExist == false) {
MessageBox.post("物料" + itemId + "创建成功\n保存在NewStuff文件夹下", "成功", MessageBox.INFORMATION);
}else {
MessageBox.post("物料" + itemId + "升版成功", "成功", MessageBox.INFORMATION);
}
}
// 新物料版本发送到分类库
public void createICS(String class_id, TCComponentItemRevision target, String partid, Integer[] integers,
String[] vals) throws TCException {
TCClassificationService myService = session.getClassificationService();
ICSApplicationObject icsAppObj = myService.newICSApplicationObject("ICM");
icsAppObj.create(partid, target.getUid());
icsAppObj.setView(class_id);
// // 删除临时物料
// rev = (TCComponentItemRevision) aif.getComponent();
// TCComponentICO[] ico = rev.getClassificationObjects();
// for (int i = 0; i < ico.length; i++) {
// ico[0].delete();
// }
ICSProperty icspro[] = new ICSProperty[integers.length];
for (int i = 0; i < icspro.length; i++) {
System.out.println(" CLASS ID = " + integers[i] + " =" + vals[i]);
icspro[i] = new ICSProperty(integers[i], vals[i]);
}
icsAppObj.setProperties(icspro);
// icsAppObj.save();TODO 有什么用?
}
public TCComponentBOMLine getTopLineByRev(TCComponentItemRevision rev) {//获得顶层bomline
try {
TCTypeService service = session.getTypeService();
TCComponentBOMWindowType winType = (TCComponentBOMWindowType) service
.getTypeComponent("BOMWindow");
window = winType.create(null);
line = window.setWindowTopLine(rev.getItem(), rev, null, null);
// window.close();//如果不关闭会导致BOM被占用乃至包含BOM的版本不能删除除非重启TC
} catch (TCException e) {
e.printStackTrace();
}
return line;
}
public TCComponentBOMLine getTopLineByRev2(TCComponentItemRevision rev,TCComponentBOMWindow window) {//获得顶层bomline
try {
line = window.setWindowTopLine(rev.getItem(), rev, null, null);
// window.close();//如果不关闭会导致BOM被占用乃至包含BOM的版本不能删除除非重启TC
} catch (TCException e) {
e.printStackTrace();
}
return line;
}
private void setbom(TCComponentBOMLine line ,TCComponentItemRevision rev) {//设置bom
try {
// setGlxq(rev);
// System.out.println("lineddd=" + line.toString());
AIFComponentContext[] lins = line.getChildren();
if (lins == null || lins.length <= 0) {
return;
}
for (AIFComponentContext l : lins) {
TCComponent lt = (TCComponent) l.getComponent();
//获得bl_substitute_list属性替代件列表
String bl_substitute_list=((TCComponentBOMLine) lt).getProperty("bl_substitute_list");
System.out.println("bl_substitute_list---->"+bl_substitute_list);
String[] substitute_list=bl_substitute_list.split(",");
System.out.println("bl_substitute_list=========>"+substitute_list.length);
for (int i = 0; i < substitute_list.length; i++) {
System.out.println("--------1----------"+substitute_list[i]);
}
TCProperty[] tcs = ((TCComponentBOMLine) lt)
.getTCProperties(new String[] {
"bl_quantity","bl_sequence_no",
// "jk8SubstitRatio", "jk8SubstitOrder","jk8EffectiveDate","jk8SubCompLossRate",//保存不了获取不到
// "bl_item_uom_tag","jk8TechnicModel","jk8SpecificModel",//物料属性
"JK8Remark","JK8SupplyType","JK8Warehouse",
"JK8RemarkDesc","jk8SubCompLossRate"
});//仓库、供应类型、替代件bl_substitute、替代比jk8SubstitRatio、替代次序jk8SubstitOrder、替代件生效日期jk8EffectiveDate
line.lock();
line.remove("", lt);
// TCComponentItem chitem = ((TCComponentBOMLine) lt).getItem()
// .getLatestItemRevision().saveAsItem(null, null);
// TCComponentItemRevision r = chitem.getLatestItemRevision();
// TCComponentItemRevision r=((TCComponentBOMLine) lt).getItem().getLatestItemRevision();
TCComponentItemRevision r=((TCComponentBOMLine) lt).getItemRevision();//获得BOMLine对应的ItemRevision
System.out.println(line==null);
System.out.println(r==null);
TCComponentBOMLine childBomLine = line.add(r.getItem(), r,
null, false, "");
if(substitute_list.length>0&&!bl_substitute_list.trim().equals("")){
for (int i = 0; i < substitute_list.length; i++) {
System.out.println("--------------"+substitute_list[i]+"----------");
TCComponentItemRevision itemRevision=((TCComponentItem)(session.search("零组件 ID",new String[]{ "零组件 ID"}, new String[]{substitute_list[i].trim()})[0])).getLatestItemRevision();
childBomLine.add(null, itemRevision, null, true);
}
}
childBomLine.setTCProperties(tcs);
setbom(childBomLine,r);
line.save();
line.unlock();
}
} catch (Exception e) {
e.printStackTrace();
}
}
private void setbom2(TCComponentBOMWindow window,TCComponentBOMLine line ,TCComponentBOMLine lineOld,int mark) {//设置bom
System.out.println("搭建bom");
if (mark == 0) {
try {
AIFComponentContext[] lins = line.getChildren();
if (lins == null || lins.length <= 0) {
// return;
}else {
window.lock();
// 先删除子级所有bomline
for (AIFComponentContext l : lins) {
System.out.println("删除bom");
TCComponent lt = (TCComponent) l.getComponent();
line.lock();
line.remove("", lt);
line.save();
line.unlock();
}
}
// 再把ebom的属性复制将bomline添加过来
lins = lineOld.getChildren();
if (lins == null || lins.length <= 0) {
return;
}
for (AIFComponentContext l : lins) {
TCComponent lt = (TCComponent) l.getComponent();
//获得bl_substitute_list属性替代件列表
String bl_substitute_list=((TCComponentBOMLine) lt).getProperty("bl_substitute_list");
System.out.println("bl_substitute_list---->"+bl_substitute_list);
String[] substitute_list=bl_substitute_list.split(",");
System.out.println("bl_substitute_list=========>"+substitute_list.length);
for (int i = 0; i < substitute_list.length; i++) {
System.out.println("--------1----------"+substitute_list[i]);
}
TCProperty[] tcs = ((TCComponentBOMLine) lt)
.getTCProperties(new String[] {
"bl_quantity","bl_sequence_no",
"JK8Remark","JK8SupplyType","JK8Warehouse",
"JK8RemarkDesc","jk8SubCompLossRate"
});//仓库、供应类型、替代件bl_substitute、替代比jk8SubstitRatio、替代次序jk8SubstitOrder、替代件生效日期jk8EffectiveDate
line.lock();
TCComponentItemRevision r=((TCComponentBOMLine) lt).getItemRevision();//获得BOMLine对应的ItemRevision
TCComponentBOMLine childBomLine = line.add(r.getItem(), r,
null, false, "");
if(substitute_list.length>0&&!bl_substitute_list.trim().equals("")){
for (int i = 0; i < substitute_list.length; i++) {
System.out.println("--------------"+substitute_list[i]+"----------");
TCComponentItemRevision itemRevision=((TCComponentItem)(session.search("零组件 ID",new String[]{ "零组件 ID"}, new String[]{substitute_list[i].trim()})[0])).getLatestItemRevision();
childBomLine.add(null, itemRevision, null, true);
}
}
childBomLine.setTCProperties(tcs);
// setbom2(childBomLine,r,1);
line.save();
line.unlock();
}
window.save();
window.unlock();
;
} catch (Exception e) {
e.printStackTrace();
}
}
}
//发送到分类库 class_id=codeRemark流水码
boolean isSucceed=true;
public void sendObjToClassficationByWebService(TCComponentItemRevision rev,Integer[] keys,
String[] vals){
try {
System.out.println("class_id-----dddddd----->"+class_id);
if( !class_id.replace(" ", "").equals("") ){
List<ClassProperty> propList = new ArrayList<>();
for(int i = 0; i < keys.length; i++){
ClassProperty prop = new ClassProperty(keys[i], vals[i]);//分类属性
propList.add(prop);
}
String json = SoaServerUtil.objectToJson(propList);//将Java对象转换为json对象
try {
SoaServerUtil.grantWritePrivilege(session, rev);//赋予写权限
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try {
SoaServerUtil.sendToClass(rev.getUid(), class_id, json,url);//发送到分类
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try {
SoaServerUtil.grantReadPrivilege(session, rev);//赋予读权限
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
} catch (Exception e) {
isSucceed=false;
e.printStackTrace();
}
}
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save