chore: 添加项目配置和资源文件

- 新增 .idea目录下的项目配置文件,包括 .gitignore、iml 文件、vcs.xml 等
- 添加 bin 目录下的资源文件,如属性文件、SQL 文件等
- 新增多语言支持文件 k_locale.properties 和 k_locale_zh_CN.properties
- 添加 stylesheet 配置文件和 PLM 相关属性文件
main
熊朝柱 1 week ago
commit 5e54e67297

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry exported="true" kind="lib" path="lib/sqljdbc4.jar"/>
<classpathentry kind="lib" path="lib/easyexcel-2.1.4.jar"/>
<classpathentry kind="lib" path="lib/slf4j-api-1.7.26.jar"/>
<classpathentry kind="lib" path="lib/poi-examples-3.17.jar"/>
<classpathentry kind="lib" path="lib/poi-excelant-3.17.jar"/>
<classpathentry kind="lib" path="lib/poi-ooxml-3.17.jar"/>
<classpathentry kind="lib" path="lib/poi-ooxml-schemas-3.17.jar"/>
<classpathentry kind="lib" path="lib/poi-scratchpad-3.17.jar"/>
<classpathentry kind="lib" path="lib/poi-3.17.jar"/>
<classpathentry kind="lib" path="lib/cglib-3.1.jar"/>
<classpathentry kind="lib" path="lib/com.ibm.icu-4.4.2.jar"/>
<classpathentry kind="lib" path="lib/commons-collections4-4.1.jar"/>
<classpathentry kind="lib" path="lib/commons-math3-3.6.1.jar"/>
<classpathentry kind="lib" path="lib/ehcache-3.7.1.jar"/>
<classpathentry kind="lib" path="lib/FastInfoset-1.2.15.jar"/>
<classpathentry kind="lib" path="lib/fastjson-1.2.76.jar"/>
<classpathentry kind="lib" path="lib/istack-commons-runtime-3.0.7.jar"/>
<classpathentry kind="lib" path="lib/javax.activation-api-1.2.0.jar"/>
<classpathentry kind="lib" path="lib/jaxb-runtime-2.3.1.jar"/>
<classpathentry kind="lib" path="lib/xmlbeans-2.6.0.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="module" value="true"/>
</attributes>
<accessrules>
<accessrule kind="accessible" pattern="sun/**"/>
</accessrules>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="lib" path="lib/jaxb-api-2.2.jar"/>
<classpathentry kind="lib" path="lib/fastjson-1.2.78.jar"/>
<classpathentry kind="lib" path="lib/httpclient-4.5.10.jar"/>
<classpathentry kind="lib" path="lib/httpcore-4.4.12.jar"/>
<classpathentry kind="lib" path="lib/httpmime-4.5.10.jar"/>
<classpathentry kind="lib" path="lib/commons-beanutils-1.7.0.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-httpclient-3.1.jar"/>
<classpathentry kind="lib" path="lib/commons-lang-2.4.jar"/>
<classpathentry kind="lib" path="lib/commons-logging-1.1.jar"/>
<classpathentry kind="lib" path="lib/jcommon-1.0.23.jar"/>
<classpathentry kind="lib" path="lib/jfreechart-1.0.19.jar"/>
<classpathentry kind="lib" path="lib/yujianbo-java-tools-8.2.1.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

8
.idea/.gitignore vendored

@ -0,0 +1,8 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GitToolBoxBlameSettings">
<option name="showEditorInlineBlameOverride">
<BoolValueOverride>
<option name="enabled" value="true" />
</BoolValueOverride>
</option>
<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" project-jdk-name="JavaSE-1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/classes" />
</component>
</project>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/cn.net.connor.ml.plm.iml" filepath="$PROJECT_DIR$/.idea/cn.net.connor.ml.plm.iml" />
</modules>
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>cn.net.connor.ml.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,2 @@
eclipse.preferences.version=1
encoding//src/plm.properties=GBK

@ -0,0 +1,8 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.8

@ -0,0 +1,844 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Plm
Bundle-SymbolicName: cn.net.connor.ml.plm;singleton:=true
Bundle-Version: 1.0.0.0
Bundle-Activator: cn.net.connor.ml.plm.Activator
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
com.teamcenter.rac.pca.kernel,
com.teamcenter.rac.util,
com.teamcenter.rac.aifrcp,
TcSoaCoreRac,
TcSoaClient,
com.teamcenter.rac.common,
com.teamcenter.rac.ui,
org.eclipse.osgi.services;bundle-version="3.7.100",
org.eclipse.osgi.util;bundle-version="3.5.100",
com.teamcenter.rac.commonclient;bundle-version="13000.1.0",
com.teamcenter.rac.tcapps,
com.teamcenter.rac.classification.icm;bundle-version="13000.1.0",
com.teamcenter.rac.kernel,
com.teamcenter.rac.aps0apscore.kernel
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Automatic-Module-Name: cn.net.connor.ml.plm
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: lib/fastjson-1.2.78.jar,
lib/httpclient-4.5.10.jar,
lib/httpcore-4.4.12.jar,
lib/httpmime-4.5.10.jar,
lib/jaxb-api-2.2.jar,
lib/commons-beanutils-1.7.0.jar,
lib/commons-codec-1.3.jar,
lib/commons-collections-3.2.jar,
lib/commons-httpclient-3.1.jar,
lib/commons-lang-2.4.jar,
lib/commons-logging-1.1.jar,
lib/jcommon-1.0.23.jar,
lib/jfreechart-1.0.19.jar,
lib/yujianbo-java-tools-8.2.1.jar,
lib/sqljdbc4.jar,
lib/easyexcel-2.1.4.jar,
lib/slf4j-api-1.7.26.jar,
lib/poi-examples-3.17.jar,
lib/poi-excelant-3.17.jar,
lib/poi-ooxml-3.17.jar,
lib/poi-ooxml-schemas-3.17.jar,
lib/poi-scratchpad-3.17.jar,
lib/poi-3.17.jar,
.,
lib/cglib-3.1.jar,
lib/com.ibm.icu-4.4.2.jar,
lib/commons-collections4-4.1.jar,
lib/commons-math3-3.6.1.jar,
lib/ehcache-3.7.1.jar,
lib/FastInfoset-1.2.15.jar,
lib/fastjson-1.2.76.jar,
lib/istack-commons-runtime-3.0.7.jar,
lib/javax.activation-api-1.2.0.jar,
lib/jaxb-runtime-2.3.1.jar,
lib/stax-ex-1.8.jar,
lib/txw2-2.3.1.jar,
lib/xmlbeans-2.6.0.jar
Export-Package: .,
cn.net.connor.ml.plm,
cn.net.connor.ml.plm.AssignProductName,
cn.net.connor.ml.plm.CreateTimeSheet,
cn.net.connor.ml.plm.WBSExport,
cn.net.connor.ml.plm.beans,
cn.net.connor.ml.plm.createProject,
cn.net.connor.ml.plm.exportExcel,
cn.net.connor.ml.plm.getFolder,
cn.net.connor.ml.plm.getSpecifications,
cn.net.connor.ml.plm.implementRate,
cn.net.connor.ml.plm.melingKnowledgeBase,
cn.net.connor.ml.plm.melingSectrum,
cn.net.connor.ml.plm.modelImport,
cn.net.connor.ml.plm.planningPanel,
cn.net.connor.ml.plm.projectSchedule,
cn.net.connor.ml.plm.saveAs,
cn.net.connor.ml.plm.updateDesignName,
cn.net.connor.ml.plm.updateDesignProperty,
cn.net.connor.ml.plm.updateDocState,
cn.net.connor.ml.plm.updateUser,
cn.net.connor.ml.plm.util,
com.alibaba.excel,
com.alibaba.excel.analysis,
com.alibaba.excel.analysis.v03,
com.alibaba.excel.analysis.v03.handlers,
com.alibaba.excel.analysis.v07,
com.alibaba.excel.analysis.v07.handlers,
com.alibaba.excel.annotation,
com.alibaba.excel.annotation.format,
com.alibaba.excel.annotation.write.style,
com.alibaba.excel.cache,
com.alibaba.excel.cache.selector,
com.alibaba.excel.constant,
com.alibaba.excel.context,
com.alibaba.excel.converters,
com.alibaba.excel.converters.bigdecimal,
com.alibaba.excel.converters.booleanconverter,
com.alibaba.excel.converters.bytearray,
com.alibaba.excel.converters.byteconverter,
com.alibaba.excel.converters.date,
com.alibaba.excel.converters.doubleconverter,
com.alibaba.excel.converters.file,
com.alibaba.excel.converters.floatconverter,
com.alibaba.excel.converters.inputstream,
com.alibaba.excel.converters.integer,
com.alibaba.excel.converters.longconverter,
com.alibaba.excel.converters.shortconverter,
com.alibaba.excel.converters.string,
com.alibaba.excel.converters.url,
com.alibaba.excel.enums,
com.alibaba.excel.event,
com.alibaba.excel.exception,
com.alibaba.excel.metadata,
com.alibaba.excel.metadata.property,
com.alibaba.excel.parameter,
com.alibaba.excel.read.builder,
com.alibaba.excel.read.listener,
com.alibaba.excel.read.listener.event,
com.alibaba.excel.read.metadata,
com.alibaba.excel.read.metadata.holder,
com.alibaba.excel.read.metadata.property,
com.alibaba.excel.support,
com.alibaba.excel.util,
com.alibaba.excel.write,
com.alibaba.excel.write.builder,
com.alibaba.excel.write.executor,
com.alibaba.excel.write.handler,
com.alibaba.excel.write.merge,
com.alibaba.excel.write.metadata,
com.alibaba.excel.write.metadata.fill,
com.alibaba.excel.write.metadata.holder,
com.alibaba.excel.write.metadata.style,
com.alibaba.excel.write.property,
com.alibaba.excel.write.style,
com.alibaba.excel.write.style.column,
com.alibaba.excel.write.style.row,
com.alibaba.fastjson,
com.alibaba.fastjson.annotation,
com.alibaba.fastjson.asm,
com.alibaba.fastjson.parser,
com.alibaba.fastjson.parser.deserializer,
com.alibaba.fastjson.serializer,
com.alibaba.fastjson.spi,
com.alibaba.fastjson.support.config,
com.alibaba.fastjson.support.geo,
com.alibaba.fastjson.support.hsf,
com.alibaba.fastjson.support.jaxrs,
com.alibaba.fastjson.support.moneta,
com.alibaba.fastjson.support.retrofit,
com.alibaba.fastjson.support.spring,
com.alibaba.fastjson.support.spring.annotation,
com.alibaba.fastjson.support.spring.messaging,
com.alibaba.fastjson.support.springfox,
com.alibaba.fastjson.util,
com.ibm.icu.impl,
com.ibm.icu.impl.data,
com.ibm.icu.impl.duration,
com.ibm.icu.impl.duration.impl,
com.ibm.icu.impl.locale,
com.ibm.icu.lang,
com.ibm.icu.math,
com.ibm.icu.text,
com.ibm.icu.util,
com.keypoint,
com.microsoft.schemas.office.excel,
com.microsoft.schemas.office.excel.impl,
com.microsoft.schemas.office.office,
com.microsoft.schemas.office.office.impl,
com.microsoft.schemas.office.visio.x2012.main,
com.microsoft.schemas.office.visio.x2012.main.impl,
com.microsoft.schemas.office.x2006.digsig,
com.microsoft.schemas.office.x2006.digsig.impl,
com.microsoft.schemas.office.x2006.encryption,
com.microsoft.schemas.office.x2006.encryption.impl,
com.microsoft.schemas.office.x2006.keyEncryptor.certificate,
com.microsoft.schemas.office.x2006.keyEncryptor.certificate.impl,
com.microsoft.schemas.office.x2006.keyEncryptor.password,
com.microsoft.schemas.office.x2006.keyEncryptor.password.impl,
com.microsoft.schemas.vml,
com.microsoft.schemas.vml.impl,
com.microsoft.sqlserver.jdbc,
com.sun.istack,
com.sun.istack.localization,
com.sun.istack.logging,
com.sun.xml.bind,
com.sun.xml.bind.annotation,
com.sun.xml.bind.api,
com.sun.xml.bind.api.impl,
com.sun.xml.bind.marshaller,
com.sun.xml.bind.unmarshaller,
com.sun.xml.bind.util,
com.sun.xml.bind.v2,
com.sun.xml.bind.v2.bytecode,
com.sun.xml.bind.v2.model.annotation,
com.sun.xml.bind.v2.model.core,
com.sun.xml.bind.v2.model.impl,
com.sun.xml.bind.v2.model.nav,
com.sun.xml.bind.v2.model.runtime,
com.sun.xml.bind.v2.model.util,
com.sun.xml.bind.v2.runtime,
com.sun.xml.bind.v2.runtime.output,
com.sun.xml.bind.v2.runtime.property,
com.sun.xml.bind.v2.runtime.reflect,
com.sun.xml.bind.v2.runtime.reflect.opt,
com.sun.xml.bind.v2.runtime.unmarshaller,
com.sun.xml.bind.v2.schemagen,
com.sun.xml.bind.v2.schemagen.episode,
com.sun.xml.bind.v2.schemagen.xmlschema,
com.sun.xml.bind.v2.util,
com.sun.xml.fastinfoset,
com.sun.xml.fastinfoset.algorithm,
com.sun.xml.fastinfoset.alphabet,
com.sun.xml.fastinfoset.dom,
com.sun.xml.fastinfoset.org.apache.xerces.util,
com.sun.xml.fastinfoset.sax,
com.sun.xml.fastinfoset.stax,
com.sun.xml.fastinfoset.stax.events,
com.sun.xml.fastinfoset.stax.factory,
com.sun.xml.fastinfoset.stax.util,
com.sun.xml.fastinfoset.tools,
com.sun.xml.fastinfoset.util,
com.sun.xml.fastinfoset.vocab,
com.sun.xml.txw2,
com.sun.xml.txw2.annotation,
com.sun.xml.txw2.output,
com.yujianbo.charts,
com.yujianbo.config,
com.yujianbo.json,
com.yujianbo.main,
com.yujianbo.sql.hibernate.interfaces,
com.yujianbo.sql.hibernate.service,
com.yujianbo.sql.sql.bean,
com.yujianbo.sql.sql.service,
com.yujianbo.sql.sql.statements,
com.yujianbo.swing,
com.yujianbo.system.date,
com.yujianbo.system.excel,
com.yujianbo.system.file,
com.yujianbo.system.image,
com.yujianbo.system.lunar,
com.yujianbo.system.math,
com.yujianbo.system.net,
com.yujianbo.system.pdf,
com.yujianbo.system.qrcode,
com.yujianbo.system.string,
com.yujianbo.system.video,
com.yujianbo.web.servlet.editor.filter,
com.yujianbo.web.servlet.editor.service,
com.yujianbo.web.servlet.editor.servlet,
com.yujianbo.web.servlet.filter,
com.yujianbo.web.servlet.upload.pojo,
com.yujianbo.web.servlet.upload.service,
com.yujianbo.web.servlet.upload.servlet,
com.yujianbo.web.struts2.action.upload,
com.yujianbo.web.struts2.pojo,
javax.activation,
javax.xml.bind,
javax.xml.bind.annotation,
javax.xml.bind.annotation.adapters,
javax.xml.bind.attachment,
javax.xml.bind.helpers,
javax.xml.bind.util,
microsoft.sql,
net.sf.cglib.beans,
net.sf.cglib.core,
net.sf.cglib.proxy,
net.sf.cglib.reflect,
net.sf.cglib.transform,
net.sf.cglib.transform.impl,
net.sf.cglib.util,
org.apache.commons.beanutils,
org.apache.commons.beanutils.converters,
org.apache.commons.beanutils.locale,
org.apache.commons.beanutils.locale.converters,
org.apache.commons.codec,
org.apache.commons.codec.binary,
org.apache.commons.codec.digest,
org.apache.commons.codec.language,
org.apache.commons.codec.net,
org.apache.commons.collections,
org.apache.commons.collections.bag,
org.apache.commons.collections.bidimap,
org.apache.commons.collections.buffer,
org.apache.commons.collections.collection,
org.apache.commons.collections.comparators,
org.apache.commons.collections.functors,
org.apache.commons.collections.iterators,
org.apache.commons.collections.keyvalue,
org.apache.commons.collections.list,
org.apache.commons.collections.map,
org.apache.commons.collections.set,
org.apache.commons.collections4,
org.apache.commons.collections4.bag,
org.apache.commons.collections4.bidimap,
org.apache.commons.collections4.collection,
org.apache.commons.collections4.comparators,
org.apache.commons.collections4.functors,
org.apache.commons.collections4.iterators,
org.apache.commons.collections4.keyvalue,
org.apache.commons.collections4.list,
org.apache.commons.collections4.map,
org.apache.commons.collections4.multimap,
org.apache.commons.collections4.multiset,
org.apache.commons.collections4.queue,
org.apache.commons.collections4.sequence,
org.apache.commons.collections4.set,
org.apache.commons.collections4.splitmap,
org.apache.commons.collections4.trie,
org.apache.commons.collections4.trie.analyzer,
org.apache.commons.httpclient,
org.apache.commons.httpclient.auth,
org.apache.commons.httpclient.cookie,
org.apache.commons.httpclient.methods,
org.apache.commons.httpclient.methods.multipart,
org.apache.commons.httpclient.params,
org.apache.commons.httpclient.protocol,
org.apache.commons.httpclient.util,
org.apache.commons.lang,
org.apache.commons.lang.builder,
org.apache.commons.lang.enum,
org.apache.commons.lang.enums,
org.apache.commons.lang.exception,
org.apache.commons.lang.math,
org.apache.commons.lang.mutable,
org.apache.commons.lang.text,
org.apache.commons.lang.time,
org.apache.commons.logging,
org.apache.commons.logging.impl,
org.apache.commons.math3,
org.apache.commons.math3.analysis,
org.apache.commons.math3.analysis.differentiation,
org.apache.commons.math3.analysis.function,
org.apache.commons.math3.analysis.integration,
org.apache.commons.math3.analysis.integration.gauss,
org.apache.commons.math3.analysis.interpolation,
org.apache.commons.math3.analysis.polynomials,
org.apache.commons.math3.analysis.solvers,
org.apache.commons.math3.complex,
org.apache.commons.math3.dfp,
org.apache.commons.math3.distribution,
org.apache.commons.math3.distribution.fitting,
org.apache.commons.math3.exception,
org.apache.commons.math3.exception.util,
org.apache.commons.math3.filter,
org.apache.commons.math3.fitting,
org.apache.commons.math3.fitting.leastsquares,
org.apache.commons.math3.fraction,
org.apache.commons.math3.genetics,
org.apache.commons.math3.geometry,
org.apache.commons.math3.geometry.enclosing,
org.apache.commons.math3.geometry.euclidean.oned,
org.apache.commons.math3.geometry.euclidean.threed,
org.apache.commons.math3.geometry.euclidean.twod,
org.apache.commons.math3.geometry.euclidean.twod.hull,
org.apache.commons.math3.geometry.hull,
org.apache.commons.math3.geometry.partitioning,
org.apache.commons.math3.geometry.partitioning.utilities,
org.apache.commons.math3.geometry.spherical.oned,
org.apache.commons.math3.geometry.spherical.twod,
org.apache.commons.math3.linear,
org.apache.commons.math3.ml.clustering,
org.apache.commons.math3.ml.clustering.evaluation,
org.apache.commons.math3.ml.distance,
org.apache.commons.math3.ml.neuralnet,
org.apache.commons.math3.ml.neuralnet.oned,
org.apache.commons.math3.ml.neuralnet.sofm,
org.apache.commons.math3.ml.neuralnet.sofm.util,
org.apache.commons.math3.ml.neuralnet.twod,
org.apache.commons.math3.ml.neuralnet.twod.util,
org.apache.commons.math3.ode,
org.apache.commons.math3.ode.events,
org.apache.commons.math3.ode.nonstiff,
org.apache.commons.math3.ode.sampling,
org.apache.commons.math3.optim,
org.apache.commons.math3.optim.linear,
org.apache.commons.math3.optim.nonlinear.scalar,
org.apache.commons.math3.optim.nonlinear.scalar.gradient,
org.apache.commons.math3.optim.nonlinear.scalar.noderiv,
org.apache.commons.math3.optim.nonlinear.vector,
org.apache.commons.math3.optim.nonlinear.vector.jacobian,
org.apache.commons.math3.optim.univariate,
org.apache.commons.math3.optimization,
org.apache.commons.math3.optimization.direct,
org.apache.commons.math3.optimization.fitting,
org.apache.commons.math3.optimization.general,
org.apache.commons.math3.optimization.linear,
org.apache.commons.math3.optimization.univariate,
org.apache.commons.math3.primes,
org.apache.commons.math3.random,
org.apache.commons.math3.special,
org.apache.commons.math3.stat,
org.apache.commons.math3.stat.clustering,
org.apache.commons.math3.stat.correlation,
org.apache.commons.math3.stat.descriptive,
org.apache.commons.math3.stat.descriptive.moment,
org.apache.commons.math3.stat.descriptive.rank,
org.apache.commons.math3.stat.descriptive.summary,
org.apache.commons.math3.stat.inference,
org.apache.commons.math3.stat.interval,
org.apache.commons.math3.stat.ranking,
org.apache.commons.math3.stat.regression,
org.apache.commons.math3.transform,
org.apache.commons.math3.util,
org.apache.http,
org.apache.http.annotation,
org.apache.http.auth,
org.apache.http.auth.params,
org.apache.http.client,
org.apache.http.client.config,
org.apache.http.client.entity,
org.apache.http.client.methods,
org.apache.http.client.params,
org.apache.http.client.protocol,
org.apache.http.client.utils,
org.apache.http.concurrent,
org.apache.http.config,
org.apache.http.conn,
org.apache.http.conn.params,
org.apache.http.conn.routing,
org.apache.http.conn.scheme,
org.apache.http.conn.socket,
org.apache.http.conn.ssl,
org.apache.http.conn.util,
org.apache.http.cookie,
org.apache.http.cookie.params,
org.apache.http.entity,
org.apache.http.entity.mime,
org.apache.http.entity.mime.content,
org.apache.http.impl,
org.apache.http.impl.auth,
org.apache.http.impl.bootstrap,
org.apache.http.impl.client,
org.apache.http.impl.conn,
org.apache.http.impl.conn.tsccm,
org.apache.http.impl.cookie,
org.apache.http.impl.entity,
org.apache.http.impl.execchain,
org.apache.http.impl.io,
org.apache.http.impl.pool,
org.apache.http.io,
org.apache.http.message,
org.apache.http.params,
org.apache.http.pool,
org.apache.http.protocol,
org.apache.http.ssl,
org.apache.http.util,
org.apache.poi,
org.apache.poi.common.usermodel,
org.apache.poi.common.usermodel.fonts,
org.apache.poi.crypt.examples,
org.apache.poi.ddf,
org.apache.poi.dev,
org.apache.poi.examples.util,
org.apache.poi.extractor,
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.hemf.extractor,
org.apache.poi.hemf.hemfplus.record,
org.apache.poi.hemf.record,
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.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.usermodel.helpers,
org.apache.poi.hssf.util,
org.apache.poi.hssf.view,
org.apache.poi.hssf.view.brush,
org.apache.poi.hwmf.draw,
org.apache.poi.hwmf.record,
org.apache.poi.hwmf.usermodel,
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.unmarshallers,
org.apache.poi.openxml4j.util,
org.apache.poi.poifs.common,
org.apache.poi.poifs.crypt,
org.apache.poi.poifs.crypt.agile,
org.apache.poi.poifs.crypt.binaryrc4,
org.apache.poi.poifs.crypt.cryptoapi,
org.apache.poi.poifs.crypt.dsig,
org.apache.poi.poifs.crypt.dsig.facets,
org.apache.poi.poifs.crypt.dsig.services,
org.apache.poi.poifs.crypt.standard,
org.apache.poi.poifs.crypt.temp,
org.apache.poi.poifs.crypt.xor,
org.apache.poi.poifs.dev,
org.apache.poi.poifs.eventfilesystem,
org.apache.poi.poifs.filesystem,
org.apache.poi.poifs.macros,
org.apache.poi.poifs.nio,
org.apache.poi.poifs.poibrowser,
org.apache.poi.poifs.property,
org.apache.poi.poifs.storage,
org.apache.poi.sl.draw,
org.apache.poi.sl.draw.binding,
org.apache.poi.sl.draw.geom,
org.apache.poi.sl.image,
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.usermodel.helpers,
org.apache.poi.ss.util,
org.apache.poi.ss.util.cellwalk,
org.apache.poi.util,
org.apache.poi.wp.usermodel,
org.apache.poi.xdgf.exceptions,
org.apache.poi.xdgf.extractor,
org.apache.poi.xdgf.geom,
org.apache.poi.xdgf.usermodel,
org.apache.poi.xdgf.usermodel.section,
org.apache.poi.xdgf.usermodel.section.geometry,
org.apache.poi.xdgf.usermodel.shape,
org.apache.poi.xdgf.usermodel.shape.exceptions,
org.apache.poi.xdgf.util,
org.apache.poi.xdgf.xml,
org.apache.poi.xslf.extractor,
org.apache.poi.xslf.model,
org.apache.poi.xslf.usermodel,
org.apache.poi.xslf.usermodel.tutorial,
org.apache.poi.xslf.util,
org.apache.poi.xssf,
org.apache.poi.xssf.binary,
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.streaming.examples,
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.poi.xwpf.usermodel.examples,
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.ehcache,
org.ehcache.config,
org.ehcache.config.builders,
org.ehcache.config.units,
org.ehcache.core,
org.ehcache.core.collections,
org.ehcache.core.config,
org.ehcache.core.config.store,
org.ehcache.core.events,
org.ehcache.core.exceptions,
org.ehcache.core.internal.resilience,
org.ehcache.core.internal.util,
org.ehcache.core.osgi,
org.ehcache.core.resilience,
org.ehcache.core.spi,
org.ehcache.core.spi.service,
org.ehcache.core.spi.store,
org.ehcache.core.spi.store.events,
org.ehcache.core.spi.store.heap,
org.ehcache.core.spi.store.tiering,
org.ehcache.core.spi.time,
org.ehcache.core.statistics,
org.ehcache.core.store,
org.ehcache.core.util,
org.ehcache.event,
org.ehcache.expiry,
org.ehcache.impl.config.copy,
org.ehcache.impl.config.event,
org.ehcache.impl.config.executor,
org.ehcache.impl.config.loaderwriter,
org.ehcache.impl.config.loaderwriter.writebehind,
org.ehcache.impl.config.persistence,
org.ehcache.impl.config.resilience,
org.ehcache.impl.config.serializer,
org.ehcache.impl.config.store.disk,
org.ehcache.impl.config.store.heap,
org.ehcache.impl.copy,
org.ehcache.impl.events,
org.ehcache.impl.internal,
org.ehcache.impl.internal.classes,
org.ehcache.impl.internal.classes.commonslang,
org.ehcache.impl.internal.classes.commonslang.reflect,
org.ehcache.impl.internal.concurrent,
org.ehcache.impl.internal.events,
org.ehcache.impl.internal.executor,
org.ehcache.impl.internal.loaderwriter.writebehind,
org.ehcache.impl.internal.loaderwriter.writebehind.operations,
org.ehcache.impl.internal.persistence,
org.ehcache.impl.internal.resilience,
org.ehcache.impl.internal.sizeof,
org.ehcache.impl.internal.sizeof.listeners,
org.ehcache.impl.internal.sizeof.listeners.exceptions,
org.ehcache.impl.internal.spi.copy,
org.ehcache.impl.internal.spi.event,
org.ehcache.impl.internal.spi.loaderwriter,
org.ehcache.impl.internal.spi.resilience,
org.ehcache.impl.internal.spi.serialization,
org.ehcache.impl.internal.statistics,
org.ehcache.impl.internal.store,
org.ehcache.impl.internal.store.basic,
org.ehcache.impl.internal.store.disk,
org.ehcache.impl.internal.store.disk.factories,
org.ehcache.impl.internal.store.heap,
org.ehcache.impl.internal.store.heap.holders,
org.ehcache.impl.internal.store.loaderwriter,
org.ehcache.impl.internal.store.offheap,
org.ehcache.impl.internal.store.offheap.factories,
org.ehcache.impl.internal.store.offheap.portability,
org.ehcache.impl.internal.store.tiering,
org.ehcache.impl.internal.util,
org.ehcache.impl.persistence,
org.ehcache.impl.serialization,
org.ehcache.impl.store,
org.ehcache.jsr107,
org.ehcache.jsr107.config,
org.ehcache.jsr107.internal,
org.ehcache.jsr107.internal.tck,
org.ehcache.sizeof,
org.ehcache.sizeof.annotations,
org.etsi.uri.x01903.v13,
org.etsi.uri.x01903.v13.impl,
org.jfree,
org.jfree.base,
org.jfree.base.config,
org.jfree.base.log,
org.jfree.base.modules,
org.jfree.chart,
org.jfree.chart.annotations,
org.jfree.chart.axis,
org.jfree.chart.block,
org.jfree.chart.demo,
org.jfree.chart.editor,
org.jfree.chart.encoders,
org.jfree.chart.entity,
org.jfree.chart.event,
org.jfree.chart.imagemap,
org.jfree.chart.labels,
org.jfree.chart.needle,
org.jfree.chart.panel,
org.jfree.chart.plot,
org.jfree.chart.plot.dial,
org.jfree.chart.renderer,
org.jfree.chart.renderer.category,
org.jfree.chart.renderer.xy,
org.jfree.chart.resources,
org.jfree.chart.servlet,
org.jfree.chart.title,
org.jfree.chart.urls,
org.jfree.chart.util,
org.jfree.data,
org.jfree.data.category,
org.jfree.data.contour,
org.jfree.data.function,
org.jfree.data.gantt,
org.jfree.data.general,
org.jfree.data.io,
org.jfree.data.jdbc,
org.jfree.data.resources,
org.jfree.data.statistics,
org.jfree.data.time,
org.jfree.data.time.ohlc,
org.jfree.data.xml,
org.jfree.data.xy,
org.jfree.date,
org.jfree.io,
org.jfree.layout,
org.jfree.resources,
org.jfree.text,
org.jfree.threads,
org.jfree.ui,
org.jfree.ui.about,
org.jfree.ui.about.resources,
org.jfree.ui.action,
org.jfree.ui.tabbedui,
org.jfree.util,
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.openxmlformats.schemas.xpackage.x2006.digitalSignature,
org.openxmlformats.schemas.xpackage.x2006.digitalSignature.impl,
org.slf4j,
org.slf4j.event,
org.slf4j.helpers,
org.slf4j.spi,
org.w3.x2000.x09.xmldsig,
org.w3.x2000.x09.xmldsig.impl,
schemaorg_apache_xmlbeans.system.s8C3F193EE11A2F798ACF65489B9E6078,
schemaorg_apache_xmlbeans.system.sF1327CCA741569E70F9CA8C9AF9B44B2
Import-Package: com.teamcenter.rac.schedule.commands.newschedule,
com.teamcenter.rac.schedule.plugin,
com.teamcenter.rac.schedule.project.sharedUtils,
com.teamcenter.rac.schedule.wizardpages,
com.teamcenter.rac.ui.commands.handlers,
org.apache.poi.xssf.usermodel,
org.dom4j,
org.dom4j.io

@ -0,0 +1,77 @@
package cn.net.connor.ml.plm.bom;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import com.teamcenter.rac.aif.AIFDesktop;
import com.teamcenter.rac.aif.AbstractAIFUIApplication;
import com.teamcenter.rac.aifrcp.AIFUtility;
import com.teamcenter.rac.kernel.TCComponent;
import com.teamcenter.rac.kernel.TCComponentItemRevision;
import com.teamcenter.rac.kernel.TCComponentUser;
import com.teamcenter.rac.kernel.TCSession;
import cn.net.connor.ml.plm.KUtil;
public class UpdateDescHandler extends AbstractHandler {
@Override
public Object execute(ExecutionEvent arg0) throws ExecutionException {
AbstractAIFUIApplication app = AIFUtility.getCurrentApplication();
TCSession session = (TCSession) app.getSession();
TCComponent target = (TCComponent) app.getTargetComponent();
if (target == null || !(target instanceof TCComponentItemRevision)) {
KUtil.info(AIFDesktop.getActiveDesktop(), "请选择对象版本!");
return null;
}
TCComponentUser user = session.getUser();
try {
TCComponent group = user.getRelatedComponent("login_group");
String group_name = group.getProperty("object_string");
System.out.println("group_name=" + group_name);
if (group_name.contains("dba")) {
new Thread(new UpdateDescDialog(app, target, session)).start();
return null;
}
TCComponent[] tasks = target.getRelatedComponents("fnd0StartedWorkflowTasks");
if (tasks == null || tasks.length == 0) {
KUtil.info(AIFDesktop.getActiveDesktop(), "没有找到流程对象!");
return null;
}
String task_name = KUtil.getPrefVal(session, "Meling_task_name2");
boolean flag = false;
String user_name = "";
for (TCComponent task : tasks) {
String name = task.getProperty("fnd0AliasTaskName");
if (task_name.contains(name)) {
flag = true;
TCComponent[] users = task.getRelatedComponents("valid_signoffs");
if (users == null || users.length == 0) {
KUtil.info(AIFDesktop.getActiveDesktop(), "认可人为空!");
return null;
}
user_name = users[0].getRelatedComponent("fnd0Performer").getProperty("user_id");
}
}
if (!flag) {
KUtil.info(AIFDesktop.getActiveDesktop(), "节点名称不匹配!");
return null;
}
String userName = user.getProperty("user_id");
if (!userName.equals(user_name)) {
KUtil.info(AIFDesktop.getActiveDesktop(), "认可人与当前登录用户不匹配!");
return null;
}
new Thread(new UpdateDescDialog(app, target, session)).start();
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
}

@ -0,0 +1,269 @@
package cn.net.connor.ml.plm.exportExcel;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.ResultSet;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Properties;
import org.apache.poi.xssf.usermodel.XSSFCell;
import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import com.teamcenter.rac.aif.AIFDesktop;
import com.teamcenter.rac.aif.AbstractAIFOperation;
import com.teamcenter.rac.aifrcp.AIFUtility;
import com.teamcenter.rac.kernel.TCComponent;
import com.teamcenter.rac.kernel.TCComponentDataset;
import com.teamcenter.rac.kernel.TCComponentItemRevision;
import com.teamcenter.rac.kernel.TCComponentTcFile;
import com.teamcenter.rac.kernel.TCException;
import com.teamcenter.rac.kernel.TCSession;
import com.teamcenter.rac.util.MessageBox;
import cn.net.connor.ml.plm.KUtil;
import cn.net.connor.ml.plm.getSpecifications.SqlUtil;
public class UsedbyProductReportOperation extends AbstractAIFOperation {
private TCSession session;
private TCComponentItemRevision target;
private TCComponentDataset model;
private XSSFRow sourceRow;
private ArrayList<TCComponentItemRevision> ulist;
public UsedbyProductReportOperation(TCSession session, TCComponentItemRevision target, TCComponentDataset model) {
this.session = session;
this.target = target;
this.model = model;
}
@Override
public void executeOperation() throws Exception {
AIFDesktop desktop = AIFUtility.getActiveDesktop();
FileInputStream input = null;
FileOutputStream output = null;
try {
KUtil.setByPass(true);
if (!getParents(target)) {
return;
}
Date now = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
File directory = TCUtil.saveExcelChooser(target.getProperty("item_id")+"_"+"使用于机型清单" + sdf.format(now),target.getStringProperty("item_id"));
if (directory == null)
return;
if (directory.exists())
directory.delete();
String path = directory.getPath();
TCComponentTcFile[] files = model.getTcFiles();
File file = files[0].getFile(System.getProperty("java.io.tmpdir"));
input = new FileInputStream(file);
XSSFWorkbook wb = new XSSFWorkbook(input);
int i = 2;
XSSFSheet sheet = wb.getSheetAt(0);
XSSFRow row;
XSSFCell cell;
sourceRow = getRow(sheet, i);
for (TCComponent c : ulist) {
row = getRow(sheet, i);
cell = getCell(row, 0);
cell.setCellValue(i - 1);// 序号
cell = getCell(row, 1);
cell.setCellValue(c.getProperty("item_id"));// 物料代码
cell = getCell(row, 2);
cell.setCellValue(c.getProperty("object_name"));// 产品名称
cell = getCell(row, 3);
cell.setCellValue(c.getProperty("object_desc"));// 物料描述
cell = getCell(row, 4);
cell.setCellValue(c.getProperty("ml8_SalesMode").equals("出口订单") ? "是" : "否");// 是否出口订单
cell = getCell(row, 5);
cell.setCellValue(c.getProperty("item_revision_id"));// 版本
// TCComponent[] relateds1 = c.getRelatedComponents("release_status_list");
// if (relateds1.length > 0 && relateds1[0].getProperty("object_name").equals("被取代")) {
// cell.setCellValue("是");// 是否被取代
// } else {
// cell.setCellValue("否");// 是否被取代
// }
TCComponent[] relateds2 = c.getRelatedComponents("ML8_ProjectRelation");
if (relateds2.length > 0) {
cell = getCell(row, 7);
cell.setCellValue(relateds2[0].getProperty("ml8_ProductCode"));// 产品代号
cell = getCell(row, 8);
cell.setCellValue(relateds2[0].getProperty("ml8_ProductType"));// 产品型号
} else {
cell = getCell(row, 7);
cell.setCellValue("");// 产品代号
cell = getCell(row, 8);
cell.setCellValue("");// 产品型号
}
cell = getCell(row, 9);
cell.setCellValue(c.getProperty("ml8_NativeProducts"));// 原生产品
cell = getCell(row, 10);
cell.setCellValue(c.getProperty("ml8_ProductCode"));// 历史产品代号
cell = getCell(row, 11);
cell.setCellValue(c.getProperty("ml8_ProductType"));// 历史产品型号
cell = getCell(row, 12);
cell.setCellValue(c.getProperty("release_status_list"));// 产品状态
cell = getCell(row, 6);
cell.setCellFormula(cell.getCellFormula());
i++;
}
output = new FileOutputStream(file.getPath());
wb.write(output);
wb.close();
input.close();
output.close();
// System.out.println("file:"+file.getPath());
String newPath = System.getProperty("java.io.tmpdir") + path.substring(path.lastIndexOf("\\"));
File reFile = new File(newPath);
file.renameTo(reFile);
// System.out.println("new directory:"+reFile.getPath());
reFile.renameTo(directory);
MessageBox.post(desktop, "导出完成", "INFO", MessageBox.INFORMATION);
} catch (Exception e) {
e.printStackTrace();
MessageBox.post(desktop, "错误:" + e.getMessage(), "ERROR", MessageBox.ERROR);
} finally {
KUtil.setByPass(false);
if (input != null)
input.close();
if (output != null)
output.close();
}
}
private XSSFRow getRow(XSSFSheet sheet, int num) throws Exception {
XSSFRow row = sheet.getRow(num);
if (row == null)
row = sheet.createRow(num);
return row;
}
private XSSFCell getCell(XSSFRow row, int col) throws Exception {
XSSFCell cell = row.getCell(col);
if (cell == null)
cell = row.createCell(col);
if (row.getRowNum() > 2)
cell.setCellStyle(getCell(sourceRow, col).getCellStyle());
return cell;
}
// private List<String> list=new ArrayList<String>();
// private void getUsedParents(TCComponent[] whereUsed,Map<TCComponentItemRevision, String> map,String uid) throws TCException {
// for(TCComponent component:whereUsed) {
// if(component instanceof TCComponentItemRevision) {
// TCComponentItemRevision revision=(TCComponentItemRevision) component;
// String status = revision.getProperty("release_status_list");
// map.put(revision, uid);
// if(status!=null && !status.equals("ML8_Replaced")&&!status.equals("被取代")) {
// System.out.println("revision"+revision.getStringProperty("object_string"));
// TCComponent[] whereUsed2 = revision.whereUsed((short) 0);
//
// for(TCComponent component2:whereUsed2) {
// if(component2 instanceof TCComponentItemRevision) {
// map.put((TCComponentItemRevision) component2, uid);
// TCComponent[] whereUsed3 = component2.whereUsed((short) 0);
// getUsedParents(whereUsed3,map,uid);
// }
// }
// }
// }
// }
// }
private boolean getParents(TCComponentItemRevision target) throws Exception {
String uid = target.getItem().getUid();
// TCComponent[] whereUsed = target.whereUsed((short) 0);
// Map<TCComponentItemRevision, String> map=new HashedMap<TCComponentItemRevision, String> ();
//
// getUsedParents(whereUsed,map,uid);
String[] prefVals = null;
prefVals = KUtil.getPrefVals(session, "Meling_SqlServer");
Connection conn = SqlUtil.getSqlserverConnection(prefVals[0], prefVals[1], prefVals[2], prefVals[3]);
if (conn == null) {
MessageBox.post(AIFDesktop.getActiveDesktop(), "数据库连接失败", "", MessageBox.INFORMATION);
return false;
}
InputStream in = UsedbyProductReportOperation.class.getResourceAsStream("/plm.properties");
Properties p = new Properties();
p.load(in);
String sql = p.getProperty("EXCEL5.SQL");
ResultSet rs = SqlUtil.read(sql, new String[] { uid });
ulist = new ArrayList<TCComponentItemRevision>();
while (rs.next()) {
String id = rs.getString(2);
try {
TCComponentItemRevision topRev = (TCComponentItemRevision) session.stringToComponent(id);
System.out.println("找到版本:"+topRev);
System.out.println("找到版本");
String item_id = topRev.getProperty("item_id");
System.out.println("id="+item_id);
TCComponent[] releaselist = topRev.getReferenceListProperty("release_status_list");
if (item_id.startsWith("ML") && !item_id.contains("-")) {
if(releaselist==null||releaselist.length==0) {
ulist.add(topRev);
System.out.println(topRev+"没有发布状态添加至excel");
}
// else {
// boolean is_Replaced = false;
// for(TCComponent comp2:releaselist) {
// System.out.println(topRev+"的发布状态为:"+comp2.getStringProperty("object_name"));
// if(comp2.getStringProperty("object_name").equals("ML8_Replaced")) {
// is_Replaced = true;
// break;
// }
// }
// if(!is_Replaced) {
// System.out.println(topRev+"发布状态不是被取代添加至excel");
// ulist.add(topRev);
// }
// }
}
} catch (TCException e) {
e.printStackTrace();
}
}
String sql2 = p.getProperty("EXCEL6.SQL");
ResultSet rs2 = SqlUtil.read(sql2, new String[] { uid });
// ulist = new ArrayList<TCComponentItemRevision>();
while (rs2.next()) {
String id = rs2.getString(2);
try {
TCComponentItemRevision topRev = (TCComponentItemRevision) session.stringToComponent(id);
System.out.println("找到版本:"+topRev);
String item_id = topRev.getProperty("item_id");
System.out.println("id="+item_id);
if (item_id.startsWith("ML") && !item_id.contains("-")) {
ulist.add(topRev);
System.out.println(topRev+"添加至excel");
}
} catch (TCException e) {
e.printStackTrace();
}
}
SqlUtil.free();
if (ulist.size() == 0) {
MessageBox.post(AIFDesktop.getActiveDesktop(), "数据库查询为空!", "", MessageBox.INFORMATION);
return false;
}
return true;
}
}

@ -0,0 +1,101 @@
package cn.net.connor.ml.plm.getPropertyByDesign;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.common.NotDefinedException;
import com.teamcenter.rac.aif.AIFDesktop;
import com.teamcenter.rac.aif.AbstractAIFUIApplication;
import com.teamcenter.rac.aif.kernel.AbstractAIFSession;
import com.teamcenter.rac.aifrcp.AIFUtility;
import com.teamcenter.rac.kernel.TCAccessControlService;
import com.teamcenter.rac.kernel.TCComponent;
import com.teamcenter.rac.kernel.TCComponentItemRevision;
import com.teamcenter.rac.kernel.TCComponentUser;
import com.teamcenter.rac.kernel.TCException;
import com.teamcenter.rac.kernel.TCSession;
import com.teamcenter.rac.util.MessageBox;
import cn.net.connor.ml.plm.KUtil;
public class GetPropertyByDesignHandler extends AbstractHandler {
@Override
public Object execute(ExecutionEvent arg0) throws ExecutionException {
AbstractAIFUIApplication app = AIFUtility.getCurrentApplication();
TCComponent target = (TCComponent) app.getTargetComponent();
if (target == null) {
KUtil.info(AIFDesktop.getActiveDesktop(), "请选择物料版本!");
return null;
}
String type = target.getType();
if (!"ML8_RefrigeratorRevision|ML8_PartRevision|ML8_ColdRevision|ML8_WashingRevision|ML8_OthersRevision".contains(type)) {
KUtil.info(AIFDesktop.getActiveDesktop(), "请选择物料版本!");
return null;
}
TCSession session = (TCSession) app.getSession();
String[] props = session.getPreferenceService().getStringValues("Meling_Design_To_Part");
if (props == null || props.length < 1) {
KUtil.info(AIFDesktop.getActiveDesktop(), "首选项[Meling_Design_To_Part]配置有误!");
return null;
}
try {
TCComponentItemRevision related = (TCComponentItemRevision) target.getRelatedComponent("TC_Is_Represented_By");
if (related == null) {
KUtil.info(AIFDesktop.getActiveDesktop(), "提供者为空!");
return null;
}
TCComponentItemRevision rev = related.getItem().getLatestItemRevision();
if (rev.getRelatedComponents("release_status_list").length == 0) {
KUtil.info(AIFDesktop.getActiveDesktop(), "最新的设计版本没有发布!");
return null;
}
for (String prop : props) {
String[] d2p = prop.split("=");
if (d2p == null || d2p.length != 2) {
System.out.println("首选项[Meling_Design_To_Part]配置有误!\n" + prop);
// KUtil.info(AIFDesktop.getActiveDesktop(), "首选项[Meling_Design_To_Part]配置有误!\n" + prop);
continue;
}
System.out.println("2023/1/10增加校验目标状态");
TCComponent[] release_status_list = target.getReferenceListProperty("release_status_list");
TCComponent[] fnd0StartedWorkflowTasks = target.getReferenceListProperty("fnd0StartedWorkflowTasks");
if(release_status_list!=null&&release_status_list.length>0) {
throw new Exception(target+"已发布");
}else if(fnd0StartedWorkflowTasks!=null&&fnd0StartedWorkflowTasks.length>0) {
throw new Exception(target+"处于流程中");
}else {
KUtil.setByPass(true);
try {
target.setProperty(d2p[1], rev.getProperty(d2p[0]));
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally {
KUtil.setByPass(false);
}
}
}
} catch (Exception e) {
e.printStackTrace();
KUtil.info(AIFDesktop.getActiveDesktop(), "同步属性出错:\n" + e.getMessage());
return null;
}
KUtil.info(AIFDesktop.getActiveDesktop(), "属性同步成功!");
return null;
}
/**
* existFile:检验是否有权限
* @param @return 设定文件
* @return String 对象类型
* @throws
* @since CodingExample Ver 1.1
*/
public boolean checkAccessPrivilige(TCSession session, TCComponentUser user, TCComponent comp, String accessName) throws TCException {
TCAccessControlService accessService = ((TCSession) session).getTCAccessControlService();
boolean returnboolean = accessService.checkUsersPrivilege(user, comp, accessName);
return returnboolean;
}
}

@ -0,0 +1,188 @@
package cn.net.connor.ml.plm.getSpecifications;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.DefaultListModel;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import com.teamcenter.rac.aif.AIFDesktop;
import com.teamcenter.rac.aif.AbstractAIFApplication;
import com.teamcenter.rac.aif.AbstractAIFDialog;
import com.teamcenter.rac.kernel.TCComponent;
import com.teamcenter.rac.kernel.TCException;
import com.teamcenter.rac.kernel.TCSession;
import com.teamcenter.rac.util.MessageBox;
import cn.net.connor.ml.plm.KUtil;
public class GetSpecificationsDialog extends AbstractAIFDialog {
private AbstractAIFApplication app;
private TCComponent target;
private JButton query;
private JTextField field;
private DefaultListModel<String> model;
private TCSession session;
public GetSpecificationsDialog(AbstractAIFApplication app) {
super(false);
this.app = app;
this.session = (TCSession) app.getSession();
}
@Override
public void run() {
if (!init()) {
return;
}
initUI();
addListeners();
showDialog();
}
private boolean init() {
target = (TCComponent) app.getTargetComponent();
if (target != null && target.getType().equals("ML8_PartRevision")) {
return true;
} else {
KUtil.info(GetSpecificationsDialog.this, "请选择零部件版本!");
return false;
}
}
private void addListeners() {
this.query.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
try {
// String prop = target.getProperty("ml8_Specifications");
String parm = field.getText().trim();
if (parm.equals("")) {
KUtil.info(GetSpecificationsDialog.this, "查询条件不能为空!");
return;
}
// Connection conn = SqlUtil.getSqlserverConnection();
String[] prefVals = null;
prefVals = KUtil.getPrefVals(session, "Meling_SqlServer");
Connection conn = SqlUtil.getSqlserverConnection(prefVals[0], prefVals[1], prefVals[2], prefVals[3]);
if (conn == null) {
disposeDialog();
MessageBox.post(AIFDesktop.getActiveDesktop(), "数据库连接失败", "", MessageBox.INFORMATION);
return;
}
// SELECT pml8_Specifications FROM PML8_PARTREVISION where pml8_Specifications
// like '%' ORDER BY pml8_Specifications DESC;
parm = parm + "%";
// int i1 = parm.indexOf(".");
int i2 = parm.indexOf("(");
if (i2 < 0) {
MessageBox.post(AIFDesktop.getActiveDesktop(), "查询格式有误!", "", MessageBox.INFORMATION);
return;
}
String left = parm.split("\\(")[0];
int i1 = left.lastIndexOf(".");
if (i1 < 0) {
MessageBox.post(AIFDesktop.getActiveDesktop(), "查询格式有误!", "", MessageBox.INFORMATION);
return;
}
parm = parm.substring(0, i1 + 1) + "%" + parm.substring(i2);
ResultSet rs = SqlUtil.read(
"SELECT pml8_Specifications FROM PML8_PARTREVISION where pml8_Specifications like ? ORDER BY pml8_Specifications DESC;",
new String[] { parm });
model.removeAllElements();
Integer bigNumber = 0;
String bigStr = "";
while (rs.next()) {
String str = rs.getString(1);
// int i11 = str.indexOf(".(");
int i22 = str.indexOf("(");
String leftleft = str.split("\\(")[0];
int i11 = leftleft.lastIndexOf(".");
if ((i11 + 1) == i22) {
MessageBox.post(AIFDesktop.getActiveDesktop(), "查询到异常数据:[" + str + "]", "", MessageBox.INFORMATION);
continue;
}
Integer temp = Integer.valueOf(str.substring(i11 + 1, i22));
bigNumber = bigNumber > temp ? bigNumber : temp;
bigStr = str.substring(0, i11 + 1) + (bigNumber + 1) + str.substring(i22);
model.addElement(str);
}
bigNumber++;
System.out.println("bigStr=" + bigStr);
SqlUtil.free();
if (model.getSize() == 0) {
MessageBox.post(AIFDesktop.getActiveDesktop(), "查询为空!", "", MessageBox.INFORMATION);
return;
}
setModel(bigStr);
} catch (Exception e1) {
e1.printStackTrace();
MessageBox.post(AIFDesktop.getActiveDesktop(), "执行出现异常:\n" + e1, "", MessageBox.INFORMATION);
}
}
});
}
protected void setModel(String str) throws TCException {
// int i1 = str.indexOf(".");
// int i2 = str.indexOf("(");
//
// int big = Integer.valueOf(str.substring(i1 + 1, i2)) + 1;
// str = str.substring(0, i1 + 1) + big + str.substring(i2);
// System.out.println(str);
int yesOrNo = JOptionPane.showConfirmDialog(null, "是否设置[" + str + "]到属性规格型号上?", "", JOptionPane.YES_NO_OPTION);
if (yesOrNo == 0) {
// 0代表是
target.setProperty("ml8_Specifications", str);
} else {
// 1代表否
}
}
private void initUI() {
this.setMinimumSize(new Dimension(200, 100));
this.setLayout(new BorderLayout(20, 5));
this.add(BorderLayout.NORTH, initQueryPanel());
this.add(BorderLayout.CENTER, initListPanel());
}
private Component initListPanel() {
model = new DefaultListModel<String>();
JList<String> list = new JList<String>(model);
JScrollPane pane = new JScrollPane(list);
return pane;
}
private Component initQueryPanel() {
JPanel panel = new JPanel(new FlowLayout(FlowLayout.LEFT, 5, 5));
JLabel label = new JLabel("输入规格型号:");
try {
field = new JTextField(target.getProperty("ml8_Specifications"));
} catch (TCException e) {
e.printStackTrace();
}
field.setPreferredSize(new Dimension(100, 25));
query = new JButton("查询");
panel.add(label);
panel.add(field);
panel.add(query);
return panel;
}
}

@ -0,0 +1,24 @@
SQL.URL=jdbc:sqlserver://10.128.10.50:1433;DatabaseName=Basedb_2012
SQL.DRIVER=com.microsoft.sqlserver.jdbc.SQLServerDriver
SQL.USER=PLMUser
SQL.PASSWORD=PLMUser
SQL.TCDATA.URL=jdbc:oracle:thin:@192.168.0.103:1521:TC
SQL.TCDATA.DRIVER=oracle.jdbc.driver.OracleDriver
SQL.TCDATA.USER=infodba
SQL.TCDATA.PASSWORD=infodba
SQL.TEMPLATE_TREE=select t.PmpcCode, t.PmpcCompanyCode, t.PmpcName, t.PmpcUpperCode, t.PmpcItem, t.PmpcPrhCode, t.PmpcEnd from CcemVW_Pmpc t;
SQL.TEMPLATE=select t.PrhName,t.PrdLine,t.PrdNo,t.PrdFeatureCode,t.FeatureName,t.PrdCanInput,t.PrdRightSign from CcemVW_Prd t where t.prhcode = ? order by t.PrdNo
SQL.LOV=select t.PrddNo,t.PrddFeatureCode,t.PrddValue from CcemVW_Prdd t where t.PrddDisabled=0 and t.PrddCode = ? and PrddLine = ? order by t.PrddNo
DATARELEASE.CHECKPROP=s8WSOType
DATARELEASE.RELEASESTATUS=S81Delivered
DATARELEASE.OTHER=<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʒ<EFBFBD><EFBFBD>
DATARELEASE.ROLE=<EFBFBD>Ŀ<EFBFBD>רԱ
DATARECEIVE.GROUP=<EFBFBD><EFBFBD><EFBFBD>ݽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
SQL.SQLSERVER.DRIVER=com.microsoft.sqlserver.jdbc.SQLServerDriver
SQL.SQLSERVER.URL=jdbc:sqlserver://192.168.220.129:1433;DatabaseName=TC13
SQL.SQLSERVER.USER=infodba
SQL.SQLSERVER.PASSWORD=infodba

@ -0,0 +1,2 @@
ML_WEBSERVICE_LOGINSERTSQL=INSERT INTO ML_WEBSERVICE_LOG VALUES (\'%s\',\'%s\',\'%s\',\'%s\')
ML_TCMSENDSAPBOMINSERTSQL=INSERT INTO ML_TCMSENDSAPBOM VALUES (\'%s\',\'%s\',\'%s\',\'%s\',\'%s\',\'%s\',\'%s\',\'%s\',\'%s\',\'%s\',\'%s\',\'%s\',\'%s\',\'%s\',\'%s\')

@ -0,0 +1,4 @@
DBDriver=com.microsoft.sqlserver.jdbc.SQLServerDriver
Connection=jdbc:sqlserver://10.18.1.100:1433; DatabaseName=TC
User=infodba
Password=Plm_8023

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

Loading…
Cancel
Save