mian
parent
23c7660aa8
commit
2663929ff7
@ -1,8 +1,14 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
|
<classpathentry exported="true" kind="lib" path="lib/log4j-core-2.17.1.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="lib/hutool-all-5.8.25.jar"/>
|
<classpathentry exported="true" kind="lib" path="lib/hutool-all-5.8.25.jar"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
|
<classpathentry kind="lib" path="lib/TcSoaClient_12000.0.0.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/TcSoaCommon_12000.0.0.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/TcSoaCoreStrong_12000.0.0.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/TcSoaQueryStrong_12000.0.0.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/TcSoaStrongModel_12000.0.0.jar"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="VcsDirectoryMappings">
|
|
||||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,60 @@
|
|||||||
|
package cn.net.connor.createTempDrawings.pojo;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
/**
|
||||||
|
* LOV属性对象
|
||||||
|
* @author kuma
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class LovProperty {
|
||||||
|
//属性名称
|
||||||
|
private String propName;
|
||||||
|
private String propTrueName;
|
||||||
|
//属性值
|
||||||
|
private String propValue;
|
||||||
|
private boolean isLov;
|
||||||
|
/**
|
||||||
|
* lov类型属性的“显示值-真实值”集合
|
||||||
|
*/
|
||||||
|
private Map<String, String> lovMap;
|
||||||
|
|
||||||
|
public String getPropName() {
|
||||||
|
return propName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPropName(String propName) {
|
||||||
|
this.propName = propName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPropTrueName() {
|
||||||
|
return propTrueName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPropTrueName(String propTrueName) {
|
||||||
|
this.propTrueName = propTrueName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPropValue() {
|
||||||
|
return propValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPropValue(String propValue) {
|
||||||
|
this.propValue = propValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isLov() {
|
||||||
|
return isLov;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLov(boolean lov) {
|
||||||
|
isLov = lov;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Map<String, String> getLovMap() {
|
||||||
|
return lovMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLovMap(Map<String, String> lovMap) {
|
||||||
|
this.lovMap = lovMap;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
package cn.net.connor.createTempDrawings.utils;
|
||||||
|
|
||||||
|
import com.teamcenter.rac.kernel.TCComponentListOfValues;
|
||||||
|
import com.teamcenter.rac.kernel.TCComponentListOfValuesType;
|
||||||
|
import com.teamcenter.rac.kernel.TCException;
|
||||||
|
import com.teamcenter.rac.kernel.TCSession;
|
||||||
|
|
||||||
|
public class TCLOVUtil {
|
||||||
|
|
||||||
|
|
||||||
|
public static TCComponentListOfValues findLOVByName(TCSession tcsession, String s) {
|
||||||
|
TCComponentListOfValues tccomponentlistofvalues = null;
|
||||||
|
try {
|
||||||
|
TCComponentListOfValuesType tccomponentlistofvaluestype = (TCComponentListOfValuesType) tcsession.getTypeComponent("ListOfValues");
|
||||||
|
TCComponentListOfValues atccomponentlistofvalues[] = tccomponentlistofvaluestype.find(s);
|
||||||
|
if (atccomponentlistofvalues != null && atccomponentlistofvalues.length > 0)
|
||||||
|
tccomponentlistofvalues = atccomponentlistofvalues[0];
|
||||||
|
else
|
||||||
|
tccomponentlistofvalues = null;
|
||||||
|
} catch (TCException tcexception) {
|
||||||
|
tccomponentlistofvalues = null;
|
||||||
|
}
|
||||||
|
return tccomponentlistofvalues;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
### \u6839\u65E5\u5FD7\u914D\u7F6E ###
|
||||||
|
log4j.rootLogger = debug,stdout,D
|
||||||
|
|
||||||
|
### \u63A7\u5236\u53F0\u65E5\u5FD7\u8F93\u51FA\u914D\u7F6E ###
|
||||||
|
log4j.appender.stdout = org.apache.log4j.ConsoleAppender
|
||||||
|
log4j.appender.stdout.Target = System.out
|
||||||
|
log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
|
||||||
|
log4j.appender.stdout.layout.ConversionPattern = [%-5p] %d{yyyy-MM-dd HH:mm:ss,SSS} method:%l%n%m%n
|
||||||
|
|
||||||
|
### \u6587\u4EF6\u65E5\u5FD7\u8F93\u51FA\u914D\u7F6E ###
|
||||||
|
log4j.appender.D = org.apache.log4j.FileAppender
|
||||||
|
log4j.appender.D.File = D:/logs/all.log
|
||||||
|
log4j.appender.D.Append = true
|
||||||
|
# \u8BBE\u7F6E Threshold \u4E3A DEBUG\uFF0C\u8868\u793A\u8BB0\u5F55\u6240\u6709\u7EA7\u522B\u7684\u65E5\u5FD7
|
||||||
|
log4j.appender.D.Threshold = debug
|
||||||
|
log4j.appender.D.layout = org.apache.log4j.PatternLayout
|
||||||
|
log4j.appender.D.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %t:%r ] - [ %p ] %m%n
|
Loading…
Reference in new issue