|
|
|
@ -67,6 +67,7 @@ import com.teamcenter.rac.kernel.SoaUtil;
|
|
|
|
|
import com.teamcenter.rac.kernel.TCAccessControlService;
|
|
|
|
|
import com.teamcenter.rac.kernel.TCClassificationService;
|
|
|
|
|
import com.teamcenter.rac.kernel.TCComponent;
|
|
|
|
|
import com.teamcenter.rac.kernel.TCComponentDataset;
|
|
|
|
|
import com.teamcenter.rac.kernel.TCComponentFolder;
|
|
|
|
|
import com.teamcenter.rac.kernel.TCComponentForm;
|
|
|
|
|
import com.teamcenter.rac.kernel.TCComponentFormType;
|
|
|
|
@ -3252,6 +3253,37 @@ public class NewCodeItemDialog extends Dialog {
|
|
|
|
|
System.out.println("Ñ¡ÖжÔÏó:" + targetObject + " ÀàÐÍ:" + type);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < generalPropLabelList.size(); i++) {
|
|
|
|
|
String text = generalPropLabelList.get(i).getText();
|
|
|
|
|
System.out.println(text);
|
|
|
|
|
if ("二维图框大小:".equals(text)) {
|
|
|
|
|
String rwtkdx = ((Combo) generalPropTextList.get(i)).getText();
|
|
|
|
|
if (rwtkdx != null && !"".equals(rwtkdx)) {
|
|
|
|
|
String[] preArr = getPrefStrArray("jd2_rwtkdx_list");
|
|
|
|
|
String rwtk = null;
|
|
|
|
|
String uid = null;
|
|
|
|
|
boolean flag = false;
|
|
|
|
|
for (int ii = 0; ii < preArr.length; ii++) {
|
|
|
|
|
System.out.println(preArr[ii]);
|
|
|
|
|
rwtk = preArr[ii].split(":")[0];
|
|
|
|
|
uid = preArr[ii].split(":")[1];
|
|
|
|
|
|
|
|
|
|
if (rwtkdx.equals(rwtk)) {
|
|
|
|
|
flag = true;
|
|
|
|
|
TCComponent cadTemplate = session.stringToComponent(uid);
|
|
|
|
|
TCComponentDataset cadDataset = (TCComponentDataset) cadTemplate;
|
|
|
|
|
TCComponentDataset newCad = cadDataset.saveAs(null);
|
|
|
|
|
TCComponentItem item = (TCComponentItem) newComp;
|
|
|
|
|
item.getLatestItemRevision().add("IMAN_specification", newCad);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (!flag) {
|
|
|
|
|
MessageBox.post("没有找到对应二维图框大小的cad模板", "错误", MessageBox.ERROR);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (ksfl != null) {
|
|
|
|
|
TCComponentItem newItem = (TCComponentItem) newComp;
|
|
|
|
|
TCComponentItemRevision rev = newItem.getLatestItemRevision();
|
|
|
|
@ -3265,7 +3297,9 @@ public class NewCodeItemDialog extends Dialog {
|
|
|
|
|
folder.refresh();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} else if (targetObject instanceof TCComponentFolder) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (targetObject instanceof TCComponentFolder) {
|
|
|
|
|
|
|
|
|
|
if (newComp != null) {
|
|
|
|
|
TCComponentFolder folder = (TCComponentFolder) targetObject;
|
|
|
|
|