first commit

main
李建辉 1 month ago
commit f2610238ef

@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="lib" path="lib/commons-beanutils-1.7.0.jar"/>
<classpathentry kind="lib" path="lib/commons-collections-3.2.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/ezmorph-1.0.4.jar"/>
<classpathentry kind="lib" path="lib/itext-2.0.3.jar"/>
<classpathentry kind="lib" path="lib/iText-5.0.2.jar"/>
<classpathentry kind="lib" path="lib/iTextAsian.jar"/>
<classpathentry kind="lib" path="lib/jdom.jar"/>
<classpathentry kind="lib" path="lib/json-lib-2.2.2-jdk15.jar"/>
<classpathentry kind="lib" path="lib/json-lib-2.2.3-jdk13.jar"/>
<classpathentry kind="lib" path="lib/ojdbc6.jar"/>
<classpathentry kind="lib" path="lib/activation-1.1.jar"/>
<classpathentry kind="lib" path="lib/antlr-2.7.7.jar"/>
<classpathentry kind="lib" path="lib/apache-mime4j-core-0.7.2.jar"/>
<classpathentry kind="lib" path="lib/axiom-api-1.2.13.jar"/>
<classpathentry kind="lib" path="lib/axiom-dom-1.2.13.jar"/>
<classpathentry kind="lib" path="lib/axiom-impl-1.2.13.jar"/>
<classpathentry kind="lib" path="lib/axis2-adb-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/axis2-adb-codegen-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/axis2-ant-plugin-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/axis2-clustering-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/axis2-codegen-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/axis2-corba-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/axis2-fastinfoset-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/axis2-java2wsdl-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/axis2-jaxbri-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/axis2-jaxws-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/axis2-jibx-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/axis2-json-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/axis2-kernel-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/axis2-metadata-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/axis2-mtompolicy-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/axis2-saaj-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/axis2-soapmonitor-servlet-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/axis2-spring-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/axis2-transport-http-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/axis2-transport-local-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/axis2-xmlbeans-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/bcel-5.1.jar"/>
<classpathentry kind="lib" path="lib/commons-cli-1.2.jar"/>
<classpathentry kind="lib" path="lib/commons-codec-1.3.jar"/>
<classpathentry kind="lib" path="lib/commons-fileupload-1.2.jar"/>
<classpathentry kind="lib" path="lib/commons-httpclient-3.1.jar"/>
<classpathentry kind="lib" path="lib/commons-io-1.4.jar"/>
<classpathentry kind="lib" path="lib/commons-logging-1.1.1.jar"/>
<classpathentry kind="lib" path="lib/geronimo-annotation_1.0_spec-1.1.jar"/>
<classpathentry kind="lib" path="lib/geronimo-jaxws_2.2_spec-1.0.jar"/>
<classpathentry kind="lib" path="lib/geronimo-jta_1.1_spec-1.1.jar"/>
<classpathentry kind="lib" path="lib/geronimo-saaj_1.3_spec-1.0.1.jar"/>
<classpathentry kind="lib" path="lib/geronimo-stax-api_1.0_spec-1.0.1.jar"/>
<classpathentry kind="lib" path="lib/geronimo-ws-metadata_2.0_spec-1.1.2.jar"/>
<classpathentry kind="lib" path="lib/httpcore-4.0.jar"/>
<classpathentry kind="lib" path="lib/jalopy-1.5rc3.jar"/>
<classpathentry kind="lib" path="lib/jaxb-api-2.1.jar"/>
<classpathentry kind="lib" path="lib/jaxb-impl-2.1.7.jar"/>
<classpathentry kind="lib" path="lib/jaxb-xjc-2.1.7.jar"/>
<classpathentry kind="lib" path="lib/jaxws-tools-2.1.3.jar"/>
<classpathentry kind="lib" path="lib/jettison-1.0-RC2.jar"/>
<classpathentry kind="lib" path="lib/jibx-bind-1.2.jar"/>
<classpathentry kind="lib" path="lib/jibx-run-1.2.jar"/>
<classpathentry kind="lib" path="lib/jsr311-api-1.0.jar"/>
<classpathentry kind="lib" path="lib/juli-6.0.16.jar"/>
<classpathentry kind="lib" path="lib/log4j-1.2.15.jar"/>
<classpathentry kind="lib" path="lib/mail-1.4.jar"/>
<classpathentry kind="lib" path="lib/mex-1.6.2-impl.jar"/>
<classpathentry kind="lib" path="lib/neethi-3.0.2.jar"/>
<classpathentry kind="lib" path="lib/regexp-1.2.jar"/>
<classpathentry kind="lib" path="lib/tribes-6.0.16.jar"/>
<classpathentry kind="lib" path="lib/woden-api-1.0M9.jar"/>
<classpathentry kind="lib" path="lib/woden-impl-commons-1.0M9.jar"/>
<classpathentry kind="lib" path="lib/woden-impl-dom-1.0M9.jar"/>
<classpathentry kind="lib" path="lib/wsdl4j-1.6.2.jar"/>
<classpathentry kind="lib" path="lib/wstx-asl-3.2.9.jar"/>
<classpathentry kind="lib" path="lib/xalan-2.7.0.jar"/>
<classpathentry kind="lib" path="lib/xml-resolver-1.2.jar"/>
<classpathentry kind="lib" path="lib/xmlbeans-2.3.0.jar"/>
<classpathentry kind="lib" path="lib/XmlSchema-1.4.7.jar"/>
<classpathentry kind="lib" path="lib/jaxen-1.1.6.jar"/>
<classpathentry kind="lib" path="lib/dom4j-1.6.1.jar"/>
<classpathentry kind="lib" path="lib/apache-commons-codec-1.4.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
</classpath>

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>com.connor.wf.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,7 @@
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.source=1.8

@ -0,0 +1,140 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Plm
Bundle-SymbolicName: com.connor.wf.plm; singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: com.connor.wf.plm.Activator
Bundle-Vendor: CONNOR
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
com.teamcenter.rac.aifrcp;bundle-version="11000.2.0",
com.teamcenter.rac.kernel;bundle-version="11000.2.0",
com.teamcenter.rac.util;bundle-version="11000.2.0",
com.teamcenter.rac.common;bundle-version="11000.2.0",
com.teamcenter.rac.tcapps;bundle-version="11000.2.0",
com.teamcenter.rac.schedule;bundle-version="11000.2.0",
com.teamcenter.rac.ui.commands;bundle-version="11000.2.0",
com.teamcenter.rac.project;bundle-version="11000.2.0",
TcSoaCoreRac;bundle-version="11000.2.0",
com.teamcenter.rac.ui;bundle-version="11000.2.0",
org.eclipse.ui.forms;bundle-version="3.5.200",
com.connor.getNumber;bundle-version="1.0.0",
org.apache.poi.39;bundle-version="3.9.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-ActivationPolicy: lazy
Export-Package: com.connor.wf.plm,
com.connor.wf.plm.handlers,
com.connor.wf.plm.table,
com.connor.wf.plm.util,
com.connor.wf.plm.wf001,
com.connor.wf.plm.wf002,
com.connor.wf.plm.wf007,
com.connor.wf.plm.wf008,
com.connor.wf.plm.wf009,
com.connor.wf.plm.wf010,
com.connor.wf.plm.wf011,
com.connor.wf.plm.wf012,
com.connor.wf.plm.wf013,
com.connor.wf.plm.wf015,
com.connor.wf.plm.wf016,
com.connor.wf.plm.wf017,
com.connor.wf.plm.wf020,
com.connor.wf.plm.wf022,
com.connor.wf.plm.wf023,
com.connor.wf.plm.wf024,
com.connor.wf.plm.wf037,
com.connor.wf.plm.wf038,
com.connor.wf.plm.wf046,
com.connor.wf.plm.wf050,
com.connor.wf.plm.wf051,
com.connor.wf.plm.wf052,
com.connor.wf.plm.wf053,
com.connor.wf.plm.wf057,
com.connor.wf.plm.wf058,
com.connor.wf.plm.wf059,
com.connor.wf.plm.wf060,
com.connor.wf.plm.wf061,
com.teamcenter.rac.form,
com.teamcenter.rac.schedule
Bundle-ClassPath: .,
lib/activation-1.1.jar,
lib/antlr-2.7.7.jar,
lib/apache-mime4j-core-0.7.2.jar,
lib/axiom-api-1.2.13.jar,
lib/axiom-dom-1.2.13.jar,
lib/axiom-impl-1.2.13.jar,
lib/axis2-adb-1.6.2.jar,
lib/axis2-adb-codegen-1.6.2.jar,
lib/axis2-ant-plugin-1.6.2.jar,
lib/axis2-clustering-1.6.2.jar,
lib/axis2-codegen-1.6.2.jar,
lib/axis2-corba-1.6.2.jar,
lib/axis2-fastinfoset-1.6.2.jar,
lib/axis2-java2wsdl-1.6.2.jar,
lib/axis2-jaxbri-1.6.2.jar,
lib/axis2-jaxws-1.6.2.jar,
lib/axis2-jibx-1.6.2.jar,
lib/axis2-json-1.6.2.jar,
lib/axis2-kernel-1.6.2.jar,
lib/axis2-metadata-1.6.2.jar,
lib/axis2-mtompolicy-1.6.2.jar,
lib/axis2-saaj-1.6.2.jar,
lib/axis2-soapmonitor-servlet-1.6.2.jar,
lib/axis2-spring-1.6.2.jar,
lib/axis2-transport-http-1.6.2.jar,
lib/axis2-transport-local-1.6.2.jar,
lib/axis2-xmlbeans-1.6.2.jar,
lib/bcel-5.1.jar,
lib/commons-beanutils-1.7.0.jar,
lib/commons-cli-1.2.jar,
lib/commons-codec-1.3.jar,
lib/commons-collections-3.2.jar,
lib/commons-fileupload-1.2.jar,
lib/commons-httpclient-3.1.jar,
lib/commons-io-1.4.jar,
lib/commons-lang-2.4.jar,
lib/commons-logging-1.1.1.jar,
lib/commons-logging-1.1.jar,
lib/ezmorph-1.0.4.jar,
lib/geronimo-annotation_1.0_spec-1.1.jar,
lib/geronimo-jaxws_2.2_spec-1.0.jar,
lib/geronimo-jta_1.1_spec-1.1.jar,
lib/geronimo-saaj_1.3_spec-1.0.1.jar,
lib/geronimo-stax-api_1.0_spec-1.0.1.jar,
lib/geronimo-ws-metadata_2.0_spec-1.1.2.jar,
lib/httpcore-4.0.jar,
lib/itext-2.0.3.jar,
lib/iText-5.0.2.jar,
lib/iTextAsian.jar,
lib/jalopy-1.5rc3.jar,
lib/jaxb-api-2.1.jar,
lib/jaxb-impl-2.1.7.jar,
lib/jaxb-xjc-2.1.7.jar,
lib/jaxws-tools-2.1.3.jar,
lib/jdom.jar,
lib/jettison-1.0-RC2.jar,
lib/jibx-bind-1.2.jar,
lib/jibx-run-1.2.jar,
lib/json-lib-2.2.2-jdk15.jar,
lib/json-lib-2.2.3-jdk13.jar,
lib/jsr311-api-1.0.jar,
lib/juli-6.0.16.jar,
lib/log4j-1.2.15.jar,
lib/mail-1.4.jar,
lib/mex-1.6.2-impl.jar,
lib/neethi-3.0.2.jar,
lib/ojdbc6.jar,
lib/regexp-1.2.jar,
lib/tribes-6.0.16.jar,
lib/woden-api-1.0M9.jar,
lib/woden-impl-commons-1.0M9.jar,
lib/woden-impl-dom-1.0M9.jar,
lib/wsdl4j-1.6.2.jar,
lib/wstx-asl-3.2.9.jar,
lib/xalan-2.7.0.jar,
lib/xml-resolver-1.2.jar,
lib/xmlbeans-2.3.0.jar,
lib/XmlSchema-1.4.7.jar,
lib/dom4j-1.6.1.jar,
lib/jaxen-1.1.6.jar
Import-Package: com.teamcenter.services.loose.projectmanagement

1
bin/.gitignore vendored

@ -0,0 +1 @@
/com/

@ -0,0 +1,86 @@
source.. = src/
output.. = bin/
bin.includes = plugin.xml,\
META-INF/,\
.,\
icons/,\
lib/activation-1.1.jar,\
lib/antlr-2.7.7.jar,\
lib/apache-mime4j-core-0.7.2.jar,\
lib/axiom-api-1.2.13.jar,\
lib/axiom-dom-1.2.13.jar,\
lib/axiom-impl-1.2.13.jar,\
lib/axis2-adb-1.6.2.jar,\
lib/axis2-adb-codegen-1.6.2.jar,\
lib/axis2-ant-plugin-1.6.2.jar,\
lib/axis2-clustering-1.6.2.jar,\
lib/axis2-codegen-1.6.2.jar,\
lib/axis2-corba-1.6.2.jar,\
lib/axis2-fastinfoset-1.6.2.jar,\
lib/axis2-java2wsdl-1.6.2.jar,\
lib/axis2-jaxbri-1.6.2.jar,\
lib/axis2-jaxws-1.6.2.jar,\
lib/axis2-jibx-1.6.2.jar,\
lib/axis2-json-1.6.2.jar,\
lib/axis2-kernel-1.6.2.jar,\
lib/axis2-metadata-1.6.2.jar,\
lib/axis2-mtompolicy-1.6.2.jar,\
lib/axis2-saaj-1.6.2.jar,\
lib/axis2-soapmonitor-servlet-1.6.2.jar,\
lib/axis2-spring-1.6.2.jar,\
lib/axis2-transport-http-1.6.2.jar,\
lib/axis2-transport-local-1.6.2.jar,\
lib/axis2-xmlbeans-1.6.2.jar,\
lib/bcel-5.1.jar,\
lib/commons-beanutils-1.7.0.jar,\
lib/commons-cli-1.2.jar,\
lib/commons-codec-1.3.jar,\
lib/commons-collections-3.2.jar,\
lib/commons-fileupload-1.2.jar,\
lib/commons-httpclient-3.1.jar,\
lib/commons-io-1.4.jar,\
lib/commons-lang-2.4.jar,\
lib/commons-logging-1.1.1.jar,\
lib/commons-logging-1.1.jar,\
lib/ezmorph-1.0.4.jar,\
lib/geronimo-annotation_1.0_spec-1.1.jar,\
lib/geronimo-jaxws_2.2_spec-1.0.jar,\
lib/geronimo-jta_1.1_spec-1.1.jar,\
lib/geronimo-saaj_1.3_spec-1.0.1.jar,\
lib/geronimo-stax-api_1.0_spec-1.0.1.jar,\
lib/geronimo-ws-metadata_2.0_spec-1.1.2.jar,\
lib/httpcore-4.0.jar,\
lib/itext-2.0.3.jar,\
lib/iText-5.0.2.jar,\
lib/iTextAsian.jar,\
lib/jalopy-1.5rc3.jar,\
lib/jaxb-api-2.1.jar,\
lib/jaxb-impl-2.1.7.jar,\
lib/jaxb-xjc-2.1.7.jar,\
lib/jaxws-tools-2.1.3.jar,\
lib/jdom.jar,\
lib/jettison-1.0-RC2.jar,\
lib/jibx-bind-1.2.jar,\
lib/jibx-run-1.2.jar,\
lib/json-lib-2.2.2-jdk15.jar,\
lib/json-lib-2.2.3-jdk13.jar,\
lib/jsr311-api-1.0.jar,\
lib/juli-6.0.16.jar,\
lib/log4j-1.2.15.jar,\
lib/mail-1.4.jar,\
lib/mex-1.6.2-impl.jar,\
lib/neethi-3.0.2.jar,\
lib/ojdbc6.jar,\
lib/regexp-1.2.jar,\
lib/tribes-6.0.16.jar,\
lib/woden-api-1.0M9.jar,\
lib/woden-impl-commons-1.0M9.jar,\
lib/woden-impl-dom-1.0M9.jar,\
lib/wsdl4j-1.6.2.jar,\
lib/wstx-asl-3.2.9.jar,\
lib/xalan-2.7.0.jar,\
lib/xml-resolver-1.2.jar,\
lib/xmlbeans-2.3.0.jar,\
lib/XmlSchema-1.4.7.jar,\
lib/dom4j-1.6.1.jar,\
lib/jaxen-1.1.6.jar

Binary file not shown.

After

Width:  |  Height:  |  Size: 983 B

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

@ -0,0 +1,61 @@
package com.connor.wf.plm;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle
*/
public class Activator extends AbstractUIPlugin {
// The plug-in ID
public static final String PLUGIN_ID = "com.connor.wf.plm"; //$NON-NLS-1$
// The shared instance
private static Activator plugin;
/**
* The constructor
*/
public Activator() {
}
/*
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
}
/*
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}
/**
* Returns the shared instance
*
* @return the shared instance
*/
public static Activator getDefault() {
return plugin;
}
/**
* Returns an image descriptor for the image file at the given
* plug-in relative path
*
* @param path the path
* @return the image descriptor
*/
public static ImageDescriptor getImageDescriptor(String path) {
return imageDescriptorFromPlugin(PLUGIN_ID, path);
}
}

@ -0,0 +1,112 @@
package com.connor.wf.plm;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.ui.IWorkbenchPage;
import com.teamcenter.rac.aif.AbstractAIFApplication;
import com.teamcenter.rac.aif.AbstractAIFUIApplication;
import com.teamcenter.rac.aifrcp.AIFUtility;
import com.teamcenter.rac.kernel.TCClassificationService;
import com.teamcenter.rac.kernel.TCComponentICO;
import com.teamcenter.rac.kernel.TCComponentProject;
import com.teamcenter.rac.kernel.TCComponentProjectType;
import com.teamcenter.rac.kernel.TCException;
import com.teamcenter.rac.kernel.TCSession;
import com.teamcenter.rac.kernel.ics.ICSAdminClass;
import com.teamcenter.rac.kernel.ics.ICSProperty;
import com.teamcenter.rac.kernel.ics.ICSSearchResult;
import com.teamcenter.rac.util.PlatformHelper;
/**
* :Wf000Handler
* :
*
*
* 2019-01-24 XXXX
*/
public class Wf000Handler extends AbstractHandler{
private AbstractAIFUIApplication app;
/**
*
* 线
* @param pz
* @return
*/
public Object execute(ExecutionEvent arg0) throws ExecutionException {
IWorkbenchPage iworkbenchpage = PlatformHelper.getCurrentPage();
AbstractAIFApplication app = AIFUtility.getCurrentApplication();
TCSession session=(TCSession) app.getSession();
TCClassificationService classificationService = session.getClassificationService();
try {
ICSAdminClass c = classificationService.newICSAdminClass();
ICSSearchResult[] searchs = classificationService.searchICOs("ICM010601", null, 0);
String icoUid = searchs[0].getIcoUid();
TCComponentICO ico = (TCComponentICO) session.stringToComponent(icoUid);
ICSProperty[] icss = ico.getICSProperties(true);
for (int i = 0; i < icss.length; i++) {
String value = icss[i].getValue();
System.out.println("value================="+value);
}
} catch (TCException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
try {
TCComponentProjectType type=(TCComponentProjectType) session.getTypeComponent("TC_Project");
TCComponentProject tccomponentproject = type.find("P00001");
System.out.println("tccomponentproject="+tccomponentproject);
iworkbenchpage.showView("com.teamcenter.rac.project.ProjectDefinitionView", null, 2);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
// com.teamcenter.rac.aif.kernel.InterfaceAIFComponent ainterfaceaifcomponent[] = SelectionHelper.getTargetComponents(HandlerUtil.getCurrentSelection(arg0));
// if(ainterfaceaifcomponent.length > 1)
// {
// MessageBox.post(Messages.getString("multiprogramSelected"), Messages.getString("programNotSelected.TITLE"), 1);
// return null;
// }
// TCComponentProject tccomponentproject = (TCComponentProject)AdapterUtil.getAdapter(ainterfaceaifcomponent[0], com.teamcenter.rac.kernel.TCComponentProject.class);
// if(tccomponentproject != null)
// try
// {
// if(tccomponentproject.getLogicalProperty("use_program_security"))
// {
// IWorkbenchPage iworkbenchpage = PlatformHelper.getCurrentPage();
// if(iworkbenchpage != null)
// {
// iworkbenchpage.showView("com.teamcenter.rac.project.ProjectDefinitionView", null, 2);
// ProjectDefinitionView projectdefinitionview = ProjectDefinitionView.getProjectDefViewInstance();
// projectdefinitionview.clearOperation();
// projectdefinitionview.setParentProgram(tccomponentproject.getProperty("project_id"));
// projectdefinitionview.setProjectButton();
// ProgramTreeFilter programtreefilter = new ProgramTreeFilter(tccomponentproject, 3);
// projectdefinitionview.getProjectTeamManager().getAvailableTreeViewer().addFilter(programtreefilter);
// projectdefinitionview.getProjectTeamManager().setParentProject(tccomponentproject);
// }
// } else
// {
// MessageBox.post(Messages.getString("programNotSelected"), Messages.getString("programNotSelected.TITLE"), 1);
// }
// }
// catch(TCException tcexception)
// {
// Logger.getLogger("com.teamcenter.rac.project.handlers.CreateChildProjectHandler").error(tcexception.getLocalizedMessage(), tcexception);
// }
// catch(PartInitException partinitexception)
// {
// Logger.getLogger("com.teamcenter.rac.project.handlers.CreateChildProjectHandler").error(partinitexception.getLocalizedMessage(), partinitexception);
// }
// else
// MessageBox.post(Messages.getString("programNotSelected"), Messages.getString("programNotSelected.TITLE"), 1);
return null;
}
}

@ -0,0 +1,34 @@
package com.connor.wf.plm.handlers;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.handlers.HandlerUtil;
import org.eclipse.jface.dialogs.MessageDialog;
/**
* Our sample handler extends AbstractHandler, an IHandler base class.
* @see org.eclipse.core.commands.IHandler
* @see org.eclipse.core.commands.AbstractHandler
*/
public class SampleHandler extends AbstractHandler {
/**
* The constructor.
*/
public SampleHandler() {
}
/**
* the command has been executed, so extract extract the needed information
* from the application context.
*/
public Object execute(ExecutionEvent event) throws ExecutionException {
IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);
MessageDialog.openInformation(
window.getShell(),
"Plm",
"Hello, Eclipse world");
return null;
}
}

@ -0,0 +1,44 @@
package com.connor.wf.plm.table;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.SimpleDateFormat;
import javax.swing.DefaultCellEditor;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JOptionPane;
import javax.swing.JTable;
import com.teamcenter.rac.util.DateButton;
public class ButtonEditor extends DefaultCellEditor {
protected DateButton button;
private String label;
private boolean isPushed;
public ButtonEditor(JCheckBox checkBox) {
super(checkBox);
button = new DateButton();
}
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
if (isSelected) {
button.setForeground(table.getSelectionForeground());
button.setBackground(table.getSelectionBackground());
} else {
button.setForeground(table.getForeground());
button.setBackground(table.getBackground());
}
return button;
}
public Object getCellEditorValue() {
SimpleDateFormat format=new SimpleDateFormat("20YYÄêMMÔÂddÈÕ");
return format.format(button.getDate());
}
}

@ -0,0 +1,207 @@
package com.connor.wf.plm.table;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Point;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Vector;
import javax.swing.event.TableModelEvent;
import javax.swing.table.DefaultTableModel;
public class CTMap extends DefaultTableModel implements CellSpan {
protected int rowSize;
protected int columnSize;
protected int[][][] span; // CellSpan
@Override
public int[] getSpan(int row, int column) {
// TODO Auto-generated method stub
if (isOutOfBounds(row, column)) {
int[] ret_code = { 1, 1 };
return ret_code;
}
return span[row][column];
}
@Override
public void setSpan(int[] span, int row, int column) {
// TODO Auto-generated method stub
if (isOutOfBounds(row, column))
return;
this.span[row][column] = span;
}
@Override
public boolean isVisible(int row, int column) {
// TODO Auto-generated method stub
if (isOutOfBounds(row, column))
return false;
if ((span[row][column][CellSpan.COLUMN] < 1) || (span[row][column][CellSpan.ROW] < 1))
return false;
return true;
}
@Override
public void combine(int[] rows, int[] columns) {
// TODO Auto-generated method stub
int rowSpan = rows.length;
int columnSpan = columns.length;
int startRow = rows[0];
int startColumn = columns[0];
for (int i = 0; i < rowSpan; i++) {
for (int j = 0; j < columnSpan; j++) {
if ((span[startRow + i][startColumn + j][CellSpan.COLUMN] != 1)
|| (span[startRow + i][startColumn + j][CellSpan.ROW] != 1)) {
// System.out.println("can't combine");
return;
}
}
}
for (int i = 0, ii = 0; i < rowSpan; i++, ii--) {
for (int j = 0, jj = 0; j < columnSpan; j++, jj--) {
span[startRow + i][startColumn + j][CellSpan.COLUMN] = jj;
span[startRow + i][startColumn + j][CellSpan.ROW] = ii;
// System.out.println("r " +ii +" c " +jj);
}
}
span[startRow][startColumn][CellSpan.COLUMN] = columnSpan;
span[startRow][startColumn][CellSpan.ROW] = rowSpan;
}
public void setSize(Dimension size) {
columnSize = size.width;
rowSize = size.height;
span = new int[rowSize][columnSize][2]; // 2: COLUMN,ROW
initValue();
}
protected boolean isOutOfBounds(int row, int column) {
if ((row < 0) || (rowSize <= row) || (column < 0) || (columnSize <= column)) {
return true;
}
return false;
}
public void addRow() {
Vector newData = new Vector(getColumnCount());
dataVector.add(newData);
//
newRowsAdded(new TableModelEvent(this, getRowCount() - 1, getRowCount() - 1, TableModelEvent.ALL_COLUMNS,
TableModelEvent.INSERT));
int[][][] oldSpan = span;
int numRows = oldSpan.length;
int numColumns = oldSpan[0].length;
span = new int[numRows + 1][numColumns][2];
System.arraycopy(oldSpan, 0, span, 0, numRows);
for (int i = 0; i < numColumns; i++) {
span[numRows][i][CellSpan.COLUMN] = 1;
span[numRows][i][CellSpan.ROW] = 1;
}
rowSize = span.length;
}
public void addColumn(Object columnName) {
int[][][] oldSpan = span;
int numRows = oldSpan.length;
int numColumns = oldSpan[0].length;
span = new int[numRows][numColumns + 1][2];
for (int i = 0; i < span.length; i++) {
for (int j = 0; j < span[0].length; j++) {
span[i][j][CellSpan.COLUMN] = 1;
span[i][j][CellSpan.ROW] = 1;
}
}
columnSize = span[0].length;
addColumn(columnName, (Vector) null);
}
public void insertRow(int row) {
Vector rowData = new Vector(getColumnCount());
dataVector.insertElementAt(rowData, row);
System.out.println("size:" + dataVector.size());
//
newRowsAdded(new TableModelEvent(this, row, row, TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT));
int[][][] newSpan = new int[span.length + 1][span[0].length][2];
int numRows = span.length;
int numColumns = span[0].length;
for (int i = 0; i < newSpan.length; i++) {
if (i < row) {
for (int j = 0; j < numColumns; j++) {
newSpan[i][j][0] = span[i][j][0];
newSpan[i][j][1] = span[i][j][1];
}
} else if (i == row) {
for (int j = 0; j < numColumns; j++) {
newSpan[i][j][0] = 1;
newSpan[i][j][1] = 1;
}
} else {
for (int j = 0; j < numColumns; j++) {
newSpan[i][j][0] = span[i - 1][j][0];
newSpan[i][j][1] = span[i - 1][j][1];
}
}
}
span = newSpan;
rowSize = span.length;
}
public CTMap(int numRows, int numColumns) {
Vector names = new Vector(numColumns);
names.setSize(numColumns);
setColumnIdentifiers(names);
dataVector = new Vector();
setNumRows(numRows);
setSize(new Dimension(numColumns, numRows));
}
protected void initValue() {
System.out.println(span.length);
for (int i = 0; i < span.length; i++) {
for (int j = 0; j < span[i].length; j++) {
span[i][j][CellSpan.COLUMN] = 1;
span[i][j][CellSpan.ROW] = 1;
}
}
}
public void split(int row, int column) {
if (isOutOfBounds(row, column))
return;
int columnSpan = span[row][column][CellSpan.COLUMN];
int rowSpan = span[row][column][CellSpan.ROW];
for (int i = 0; i < rowSpan; i++) {
for (int j = 0; j < columnSpan; j++) {
span[row + i][column + j][CellSpan.COLUMN] = 1;
span[row + i][column + j][CellSpan.ROW] = 1;
}
}
}
public void removeCol() {
columnIdentifiers.removeElementAt(columnIdentifiers.size()-1);
dataVector.setSize(getRowCount());
for (int i = 0; i < getRowCount()-1; i++) {
((Vector)dataVector.elementAt(i)).setSize(getColumnCount());
}
fireTableStructureChanged();
}
}

@ -0,0 +1,94 @@
package com.connor.wf.plm.table;
import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.Point;
import java.awt.Rectangle;
import javax.swing.JComponent;
import javax.swing.plaf.basic.BasicTableUI;
import javax.swing.table.TableCellRenderer;
public class CTUI extends BasicTableUI {
public void paint(Graphics g, JComponent c){
Rectangle oldClipBounds = g.getClipBounds();
Rectangle clipBounds = new Rectangle(oldClipBounds);
int tableWidth = table.getColumnModel().getTotalColumnWidth();
clipBounds.width = Math.min(clipBounds.width, tableWidth);
g.setClip(clipBounds);
int firstIndex = table.rowAtPoint(new Point(0, clipBounds.y));
int lastIndex = table.getRowCount() - 1;
Rectangle rowRect = new Rectangle(0, 0, tableWidth, table.getRowHeight() + table.getRowMargin());
rowRect.y = firstIndex * rowRect.height;
for (int index = firstIndex; index <= lastIndex; index++) {
if (rowRect.intersects(clipBounds)) {
// System.out.println(); // debug
// System.out.print("" + index +": "); // row
paintRow(g, index);
}
rowRect.y += rowRect.height;
}
g.setClip(oldClipBounds);
}
private void paintRow(Graphics g, int row) {
Rectangle rect = g.getClipBounds();
boolean drawn = false;
CellSpan cellAtt = (CellSpan) table.getModel();
int numColumns = table.getColumnCount();
for (int column = 0; column < numColumns; column++) {
Rectangle cellRect = table.getCellRect(row, column, true);
int cellRow, cellColumn;
if (cellAtt.isVisible(row, column)) {
cellRow = row;
cellColumn = column;
// System.out.print(" "+column+" "); // debug
} else {
cellRow = row + cellAtt.getSpan(row, column)[CellSpan.ROW];
cellColumn = column + cellAtt.getSpan(row, column)[CellSpan.COLUMN];
// System.out.print(" ("+column+")"); // debug
}
if (cellRect.intersects(rect)) {
drawn = true;
paintCell(g, cellRect, cellRow, cellColumn);
} else {
if (drawn)
break;
}
}
}
private void paintCell(Graphics g, Rectangle cellRect, int row, int column) {
int spacingHeight = table.getRowMargin();
int spacingWidth = table.getColumnModel().getColumnMargin();
Color c = g.getColor();
g.setColor(table.getGridColor());
g.drawRect(cellRect.x, cellRect.y, cellRect.width - 1, cellRect.height - 1);
g.setColor(c);
cellRect.setBounds(cellRect.x + spacingWidth / 2, cellRect.y + spacingHeight / 2, cellRect.width - spacingWidth,
cellRect.height - spacingHeight);
if (table.isEditing() && table.getEditingRow() == row && table.getEditingColumn() == column) {
Component component = table.getEditorComponent();
component.setBounds(cellRect);
component.validate();
} else {
TableCellRenderer renderer = table.getCellRenderer(row, column);
Component component = table.prepareRenderer(renderer, row, column);
if (component.getParent() == null) {
rendererPane.add(component);
}
rendererPane.paintComponent(g, component, table, cellRect.x, cellRect.y, cellRect.width, cellRect.height,
true);
}
}
}

@ -0,0 +1,145 @@
package com.connor.wf.plm.table;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.MouseEvent;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;
import javax.swing.event.ListSelectionEvent;
import javax.swing.table.TableCellEditor;
import javax.swing.table.TableColumn;
import javax.swing.table.TableModel;
public class CTable extends JTable {
Map<Point,TableCellEditor> map;
public CTable(TableModel model) {
super(model);
setUI(new CTUI());
getTableHeader().setReorderingAllowed(false);
setCellSelectionEnabled(true);
setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
map=new HashMap();
}
public String getToolTipText(MouseEvent e) {
int row=this.rowAtPoint(e.getPoint());
int col=this.columnAtPoint(e.getPoint());
String tiptextString=null;
if(row>-1 && col>-1){
Object value=this.getValueAt(row, col);
if(null!=value && !"".equals(value))
tiptextString=value.toString();//Ðü¸¡ÏÔʾµ¥Ôª¸ñÄÚÈÝ
}
return tiptextString;
}
public Rectangle getCellRect(int row, int column, boolean includeSpacing) {
Rectangle sRect = super.getCellRect(row, column, includeSpacing);
if ((row < 0) || (column < 0) || (getRowCount() <= row) || (getColumnCount() <= column)) {
return sRect;
}
CellSpan cellAtt = (CellSpan) getModel();
if (!cellAtt.isVisible(row, column)) {
int temp_row = row;
int temp_column = column;
row += cellAtt.getSpan(temp_row, temp_column)[CellSpan.ROW];
column += cellAtt.getSpan(temp_row, temp_column)[CellSpan.COLUMN];
}
int[] n = cellAtt.getSpan(row, column);
int index = 0;
int columnMargin = getColumnModel().getColumnMargin();
Rectangle cellFrame = new Rectangle();
int aCellHeight = rowHeight + rowMargin;
cellFrame.y = row * aCellHeight;
cellFrame.height = n[CellSpan.ROW] * aCellHeight;
Enumeration eeration = getColumnModel().getColumns();
while (eeration.hasMoreElements()) {
TableColumn aColumn = (TableColumn) eeration.nextElement();
cellFrame.width = aColumn.getWidth() + columnMargin;
if (index == column)
break;
cellFrame.x += cellFrame.width;
index++;
}
for (int i = 0; i < n[CellSpan.COLUMN] - 1; i++) {
TableColumn aColumn = (TableColumn) eeration.nextElement();
cellFrame.width += aColumn.getWidth() + columnMargin;
}
if (!includeSpacing) {
Dimension spacing = getIntercellSpacing();
cellFrame.setBounds(cellFrame.x + spacing.width / 2, cellFrame.y + spacing.height / 2,
cellFrame.width - spacing.width, cellFrame.height - spacing.height);
}
return cellFrame;
}
private int[] rowColumnAtPoint(Point point) {
int[] retValue = { -1, -1 };
int row = point.y / (rowHeight + rowMargin);
if ((row < 0) || (getRowCount() <= row))
return retValue;
int column = getColumnModel().getColumnIndexAtX(point.x);
CellSpan cellAtt = (CellSpan) getModel();
if (cellAtt.isVisible(row, column)) {
retValue[CellSpan.COLUMN] = column;
retValue[CellSpan.ROW] = row;
return retValue;
}
retValue[CellSpan.COLUMN] = column + cellAtt.getSpan(row, column)[CellSpan.COLUMN];
retValue[CellSpan.ROW] = row + cellAtt.getSpan(row, column)[CellSpan.ROW];
return retValue;
}
public int rowAtPoint(Point point) {
return rowColumnAtPoint(point)[CellSpan.ROW];
}
public int columnAtPoint(Point point) {
return rowColumnAtPoint(point)[CellSpan.COLUMN];
}
public void columnSelectionChanged(ListSelectionEvent e) {
repaint();
}
public void valueChanged(ListSelectionEvent e) {
int firstIndex = e.getFirstIndex();
int lastIndex = e.getLastIndex();
if (firstIndex == -1 && lastIndex == -1) { // Selection cleared.
repaint();
}
Rectangle dirtyRegion = getCellRect(firstIndex, 0, false);
int numCoumns = getColumnCount();
int index = firstIndex;
for (int i = 0; i < numCoumns; i++) {
dirtyRegion.add(getCellRect(index, i, false));
}
index = lastIndex;
for (int i = 0; i < numCoumns; i++) {
dirtyRegion.add(getCellRect(index, i, false));
}
repaint(dirtyRegion.x, dirtyRegion.y, dirtyRegion.width, dirtyRegion.height);
}
public void setCombo(int row,int col,TableCellEditor ce){
map.put(new Point(row,col), ce);
}
public TableCellEditor getCellEditor(int row, int column){
Point point = new Point(row,column);
if(map.containsKey(point)){
return map.get(point);
}else{
return super.getCellEditor(row, column);
}
}
public void setRowHeight(int row, int rowHeight) {
super.setRowHeight(row, rowHeight);
}
}

@ -0,0 +1,49 @@
package com.connor.wf.plm.table;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Arrays;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.plaf.basic.BasicTableUI;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
public class CTest {
static int[] rows;
static JScrollPane pane;
public static void main(String args[]) {
JFrame dialog = new JFrame("Table with cell spanning");
final CTMap map = new CTMap(5,5);
final CTable table = new CTable(map);
table.setDefaultRenderer(Object.class, new TableCellTextAreaRenderer());
pane = new JScrollPane(table);
JButton button = new JButton("add");
table.setShowGrid(false);
//final JDialog dialog = new JDialog();
dialog.setPreferredSize(new Dimension(500,500));
dialog.setLayout(new BorderLayout());
button.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
table.setRowHeight(2,50);
table.revalidate();
table.repaint();
map.combine(new int[]{0,1,2,3}, new int[]{1});
}
});
dialog.add(pane, BorderLayout.CENTER);
dialog.add(button, BorderLayout.SOUTH);
dialog.show();
}
}

@ -0,0 +1,14 @@
package com.connor.wf.plm.table;
interface CellSpan {
public final int ROW = 0;
public final int COLUMN = 1;
public int[] getSpan(int row, int column);
public void setSpan(int[] span, int row, int column);
public boolean isVisible(int row, int column);
public void combine(int[] rows, int[] columns);
}

@ -0,0 +1,72 @@
package com.connor.wf.plm.table;
import java.awt.Color;
import java.awt.Component;
import javax.swing.BorderFactory;
import javax.swing.JTable;
import javax.swing.JTextArea;
import javax.swing.table.TableCellRenderer;
public class TableCellTextAreaRenderer extends JTextArea implements TableCellRenderer {
public TableCellTextAreaRenderer() {
setLineWrap(true);
setWrapStyleWord(true);
}
@Override
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column) {
// TODO Auto-generated method stub
int maxPreferredHeight = 0;
for (int i = 0; i < table.getColumnCount(); i++) {
setText("" + table.getValueAt(row, i));
setSize(table.getColumnModel().getColumn(column).getWidth(), 0);
maxPreferredHeight = Math.max(maxPreferredHeight, getPreferredSize().height);
}
setBackground(Color.white);
setForeground(Color.black);
if(isSelected){
setBackground(new Color(0, 120, 215));
setForeground(Color.white);
}
if (table.getRowHeight(row) != maxPreferredHeight) // ÉÙÁËÕâÐÐÔò´¦ÀíÆ÷Ϲæ
table.setRowHeight(row, maxPreferredHeight);
setText(value == null ? "" : value.toString());
return this;
}
// @Override
// public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
// int row, int column) {
// // TODO Auto-generated method stub
// int maxPreferredHeight = 0;
// for (int i = 0; i < table.getColumnCount(); i++) {
// setText("" + table.getValueAt(row, i));
// setSize(table.getColumnModel().getColumn(column).getWidth(), 0);
// maxPreferredHeight = Math.max(maxPreferredHeight, getPreferredSize().height);
// }
// setBorder(BorderFactory.createLineBorder(Color.white));
// setBackground(Color.white);
// setForeground(Color.black);
// if(isSelected){
// setBackground(new Color(0, 120, 215));
// setForeground(Color.white);
// }
// String val=(String) table.getValueAt(row, column);
// int w=0;
// if(val!=null){
// w=val.length()*6/table.getColumn(table.getColumnName(column)).getWidth();
// }
// if(w!=0){
// //System.out.println("height:"+table.getRowHeight()*(w+1));
// table.setRowHeight(row,table.getRowHeight()*(w+1));
// }
//
//
// setText(value == null ? "" : value.toString());
// return this;
// }
}

@ -0,0 +1,57 @@
package com.connor.wf.plm.table;
import java.awt.BorderLayout;
import javax.swing.JButton;
import javax.swing.JDialog;
public class TempTest {
public static void main(String[] args) {
// String temp="<command name=\"";
// String temp2="\" categoryId=\"com.connor.bs.plm.commands.category\" id=\"FinalTestCommand";
// String temp3="\"></command>";;
// String[] name=new String[]{"设计潜在失效模式和后果分析","小试过程流程图","初始产品特殊特性清单","控制计划","小试产品验证方案","新原料开发申请表","物料信息调查表","供应商基本资料调查表","原料进料检验评定表","供应商初审评价表","原料转阶段评审表","项目开发技术思路及总结","试验配方单","小试试验操作单","常规性检测单","可靠性项目验证报告","小试配色记录单","小试试验工艺记录单","试验检测数据表","可靠性验证报告","实验性能总结报告","小试试验工艺单","小试试验安排计划表","产品研究汇总表","车间生产申请单","中试产品验证方案","注塑工艺记录表","试验料检测报告","项目发货技术评审记录表","试料前风险预判与行动计划表","客户处试料工艺记录表","客户处试料总结与分析表","小试阶段评审表"};
// String t="<handler commandId=\"FinalTestCommand";
// String t2="\" class=\"com.connor.bs.plm.handlers.SampleHandler\"></handler>";
// String te="<command commandId=\"FinalTestCommand";
// String te2="\" mnemonic=\"S\" id=\"com.connor.bs.plm.menus.FinalTestCommand";
// String te3="\"></command>";
// String[] name2=new String[]{"原料清单","产品特殊特性清单","BOM表","中试产品验证方案","车间生产申请表","生产过程流程图","过程特殊特性清单","PFMEA","初始过程能力研究计划","生产过程确认计划","生产线平衡分析计划","中试生产工艺卡","新产品上线评审表","生产过程记录总结表","工艺设计目标分析表","中试工艺验证报告","初始过程能力研究报告","生产线平衡分析报告","中试生产过程评审表","试验性能总结报告","可靠性验证报告","技术证明书","检测报告","项目发货技术评审记录表","试料前风险预判与行动计划表","客户处试料工艺记录表","客户处试料总结与分析表","中试阶段评审表"};
// String[] name3=new String[]{"量试控制计划","量试生产工艺卡","PSW","生产过程记录总结表","工艺设计目标分析表","量试PFMEA","量试生产过程流程图","量试工艺优化计划","量试工艺优化方案及总结","客户使用稳定性分析报告","生产原料稳定性分析报告","产品质量稳定性分析报告","生产过程稳定性分析报告","量试阶段评审表"};
// for(int i=0;i<name3.length;i++)
// System.out.println(te+i+te2+i+te3);
JDialog dialog=new JDialog();
CTMap model2=new CTMap(11,10);
CTable table2=new CTable(model2);
// table2.getColumnModel().getColumn(0).setPreferredWidth(20);
// JButton button1=new JButton("导出");
// model2.combine(new int[]{0, 1, 2},new int[]{0});
// model2.combine(new int[]{3, 4, 5, 6, 7, 8},new int[]{0});
// model2.combine(new int[]{9, 10},new int[]{0, 1});
// model2.combine(new int[]{0},new int[]{1, 2, 3});
// model2.combine(new int[]{0},new int[]{4, 5, 6, 7});
// model2.combine(new int[]{1},new int[]{1, 2, 3});
// model2.combine(new int[]{2},new int[]{1, 2, 3});
// model2.combine(new int[]{3},new int[]{1, 2, 3});
// model2.combine(new int[]{4},new int[]{1, 2, 3});
// model2.combine(new int[]{5},new int[]{1, 2, 3});
// model2.combine(new int[]{6},new int[]{1, 2, 3});
// model2.combine(new int[]{7, 8},new int[]{1, 2, 3});
// model2.combine(new int[]{7, 8},new int[]{4, 5, 6, 7});
// model2.combine(new int[]{1},new int[]{4, 5, 6, 7});
// model2.combine(new int[]{2},new int[]{4, 5, 6, 7});
// model2.combine(new int[]{3},new int[]{4, 5, 6, 7});
// model2.combine(new int[]{4},new int[]{4, 5, 6, 7});
// model2.combine(new int[]{5},new int[]{4, 5, 6, 7});
// model2.combine(new int[]{6},new int[]{4, 5, 6, 7});
// model2.combine(new int[]{1, 2},new int[]{9});
// model2.combine(new int[]{4, 5, 6, 7, 8},new int[]{9});
// model2.combine(new int[]{9},new int[]{4, 5, 6, 7, 8, 9});
// model2.combine(new int[]{10},new int[]{4, 5, 6, 7, 8, 9});
// model2.combine(new int[]{9},new int[]{2, 3});
// model2.combine(new int[]{10},new int[]{2, 3});
// model2.combine(new int[]{7, 8},new int[]{8});
dialog.add(table2);
dialog.show();
}
}

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

Loading…
Cancel
Save