功能移植

main
ChenZichaoczc 1 month ago
parent a068006111
commit 96135fdf15

@ -8,7 +8,6 @@ Automatic-Module-Name: com.conor.ferrorTech.metal
Bundle-RequiredExecutionEnvironment: JavaSE-1.8 Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Import-Package: com.teamcenter.rac.aif, Import-Package: com.teamcenter.rac.aif,
com.teamcenter.rac.aif.kernel, com.teamcenter.rac.aif.kernel,
com.teamcenter.rac.aifrcp,
com.teamcenter.rac.classification.common.table, com.teamcenter.rac.classification.common.table,
com.teamcenter.rac.classification.icm, com.teamcenter.rac.classification.icm,
com.teamcenter.rac.kernel, com.teamcenter.rac.kernel,
@ -23,7 +22,6 @@ Import-Package: com.teamcenter.rac.aif,
org.eclipse.core.databinding org.eclipse.core.databinding
Require-Bundle: org.eclipse.ui, Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime, org.eclipse.core.runtime,
com.teamcenter.rac.aifrcp,
com.teamcenter.rac.common, com.teamcenter.rac.common,
com.teamcenter.rac.ui.commands, com.teamcenter.rac.ui.commands,
com.teamcenter.rac.external, com.teamcenter.rac.external,
@ -38,7 +36,8 @@ Require-Bundle: org.eclipse.ui,
com.teamcenter.rac.classification.icm, com.teamcenter.rac.classification.icm,
com.teamcenter.rac.tcapps, com.teamcenter.rac.tcapps,
com.teamcenter.rac.workflow.processdesigner;bundle-version="14000.3.0", com.teamcenter.rac.workflow.processdesigner;bundle-version="14000.3.0",
TcSoaWorkflowRac;bundle-version="14000.3.0" TcSoaWorkflowRac;bundle-version="14000.3.0",
com.teamcenter.rac.aifrcp;bundle-version="14000.3.0"
Export-Package: ., Export-Package: .,
com.connor.ferrorTech.metal, com.connor.ferrorTech.metal,
com.connor.ferrorTech.metal.NPIproject.NPIprojectCreate, com.connor.ferrorTech.metal.NPIproject.NPIprojectCreate,

@ -25,13 +25,13 @@
<command categoryId="com.connor.ferrorTech.metal.commands.category" name="%quo.6" id="com.connor.ferrorTech.metal.quotationManagher.CreateExternalQuotation"> <command categoryId="com.connor.ferrorTech.metal.commands.category" name="%quo.6" id="com.connor.ferrorTech.metal.quotationManagher.CreateExternalQuotation">
</command> </command>
<command categoryId="com.connor.ferrorTech.metal.commands.category" name="%npi.1" id="com.connor.ferrorTech.metal.NPIproject.createNPIproject"> <command categoryId="com.connor.ferrorTech.metal.commands.category" name="创建NPI项目" id="com.connor.ferrorTech.metal.NPIproject.createNPIproject">
</command> </command>
<command categoryId="com.connor.ferrorTech.metal.commands.category" name="%npi.2" id="com.connor.ferrorTech.metal.NPIproject.createNPIprojectByQuotation"> <command categoryId="com.connor.ferrorTech.metal.commands.category" name="%npi.2" id="com.connor.ferrorTech.metal.NPIproject.createNPIprojectByQuotation">
</command> </command>
<command categoryId="com.connor.ferrorTech.metal.commands.category" name="%npi.3" id="com.connor.ferrorTech.metal.NPIproject.createCustomerDrawing"> <command categoryId="com.connor.ferrorTech.metal.commands.category" name="创建客户图纸" id="com.connor.ferrorTech.metal.NPIproject.createCustomerDrawing">
</command> </command>
<command categoryId="com.connor.ferrorTech.metal.commands.category" name="%npi.4" id="com.connor.ferrorTech.metal.NPIproject.uploadCustomerDrawing"> <command categoryId="com.connor.ferrorTech.metal.commands.category" name="上传客户图纸" id="com.connor.ferrorTech.metal.NPIproject.uploadCustomerDrawing">
</command> </command>
<command categoryId="com.connor.ferrorTech.metal.commands.category" name="%mar.1" id="com.connor.ferrorTech.metal.material.finishedProducts"> <command categoryId="com.connor.ferrorTech.metal.commands.category" name="%mar.1" id="com.connor.ferrorTech.metal.material.finishedProducts">
@ -41,9 +41,9 @@
<command categoryId="com.connor.ferrorTech.metal.commands.category" name="%mar.3" id="com.connor.ferrorTech.metal.material.material"> <command categoryId="com.connor.ferrorTech.metal.commands.category" name="%mar.3" id="com.connor.ferrorTech.metal.material.material">
</command> </command>
<command categoryId="com.connor.ferrorTech.metal.commands.category" name="%gy.1" id="com.connor.ferrorTech.metal.processManagement.callCraft"> <command categoryId="com.connor.ferrorTech.metal.commands.category" name="分类库调用工艺" id="com.connor.ferrorTech.metal.processManagement.callCraft">
</command> </command>
<command categoryId="com.connor.ferrorTech.metal.commands.category" name="%gy.2" id="com.connor.ferrorTech.metal.processManagement.callProcesses"> <command categoryId="com.connor.ferrorTech.metal.commands.category" name="分类库调用工序" id="com.connor.ferrorTech.metal.processManagement.callProcesses">
</command> </command>
<command categoryId="com.connor.ferrorTech.metal.commands.category" name="%gy.3" id="com.connor.ferrorTech.metal.processManagement.createCraft"> <command categoryId="com.connor.ferrorTech.metal.commands.category" name="%gy.3" id="com.connor.ferrorTech.metal.processManagement.createCraft">
</command> </command>
@ -97,7 +97,7 @@
<command categoryId="com.connor.ferrorTech.metal.commands.category" name="%vf.3" id="com.connor.ferrorTech.metal.importMaterial"> <command categoryId="com.connor.ferrorTech.metal.commands.category" name="%vf.3" id="com.connor.ferrorTech.metal.importMaterial">
</command> </command>
<command categoryId="com.connor.ferrorTech.metal.commands.category" name="%toBom.1" id="com.connor.ah.bxw.DBOMtoEBOM"> <command categoryId="com.connor.ferrorTech.metal.commands.category" name="DBOM转MBOM" id="com.connor.ah.bxw.DBOMtoEBOM">
</command> </command>
</extension> </extension>
@ -193,7 +193,7 @@
<extension point="org.eclipse.ui.menus"> <extension point="org.eclipse.ui.menus">
<menuContribution locationURI="menu:org.eclipse.ui.main.menu?after=additions"> <menuContribution locationURI="menu:org.eclipse.ui.main.menu?after=additions">
<menu label="%plugin.0" mnemonic="M" id="com.connor.ferrorTech.metal.menus.plmMenu.metal"> <menu label="PLM" mnemonic="M" id="com.connor.ferrorTech.metal.menus.plmMenu.metal">
<menu label="%quo.0" mnemonic="M" id="com.connor.ferrorTech.metal.menus.metal.quoteManager"> <menu label="%quo.0" mnemonic="M" id="com.connor.ferrorTech.metal.menus.metal.quoteManager">
<command commandId="com.connor.ferrorTech.metal.quotationManagher.createClientFile" id="com.connor.ferrorTech.metal.menus.quotation.client" mnemonic="S"> <command commandId="com.connor.ferrorTech.metal.quotationManagher.createClientFile" id="com.connor.ferrorTech.metal.menus.quotation.client" mnemonic="S">
</command> </command>
@ -208,7 +208,7 @@
<command commandId="com.connor.ferrorTech.metal.quotationManagher.CreateExternalQuotation" id="com.connor.ferrorTech.metal.menus.quotation.external" mnemonic="S"> <command commandId="com.connor.ferrorTech.metal.quotationManagher.CreateExternalQuotation" id="com.connor.ferrorTech.metal.menus.quotation.external" mnemonic="S">
</command> </command>
</menu> </menu>
<menu label="%npi.0" mnemonic="M" id="com.connor.ferrorTech.metal.menus.metal.npiProject"> <menu label="NPI项目" mnemonic="M" id="com.connor.ferrorTech.metal.menus.metal.npiProject">
<command commandId="com.connor.ferrorTech.metal.NPIproject.createNPIproject" id="com.connor.ferrorTech.metal.menus.npiProject.createNpi" mnemonic="S"> <command commandId="com.connor.ferrorTech.metal.NPIproject.createNPIproject" id="com.connor.ferrorTech.metal.menus.npiProject.createNpi" mnemonic="S">
</command> </command>
<command commandId="com.connor.ferrorTech.metal.NPIproject.createNPIprojectByQuotation" id="com.connor.ferrorTech.metal.menus.npiProject.createNpiByQuotation" mnemonic="S"> <command commandId="com.connor.ferrorTech.metal.NPIproject.createNPIprojectByQuotation" id="com.connor.ferrorTech.metal.menus.npiProject.createNpiByQuotation" mnemonic="S">
@ -228,7 +228,7 @@
<command commandId="com.connor.ferrorTech.metal.importMaterial" id="com.connor.ferrorTech.metal.menus.importMaterial" mnemonic="S"> <command commandId="com.connor.ferrorTech.metal.importMaterial" id="com.connor.ferrorTech.metal.menus.importMaterial" mnemonic="S">
</command> </command>
</menu> </menu>
<menu label="%gy.0" mnemonic="M" id="com.connor.ferrorTech.metal.menus.metal.processManagement"> <menu label="工艺管理" mnemonic="M" id="com.connor.ferrorTech.metal.menus.metal.processManagement">
<command commandId="com.connor.ferrorTech.metal.processManagement.callCraft" id="com.connor.ferrorTech.metal.menus.processManagement.callCraft" mnemonic="S"> <command commandId="com.connor.ferrorTech.metal.processManagement.callCraft" id="com.connor.ferrorTech.metal.menus.processManagement.callCraft" mnemonic="S">
</command> </command>
<command commandId="com.connor.ferrorTech.metal.processManagement.callProcesses" id="com.connor.ferrorTech.metal.menus.processManagement.callProcesses" mnemonic="S"> <command commandId="com.connor.ferrorTech.metal.processManagement.callProcesses" id="com.connor.ferrorTech.metal.menus.processManagement.callProcesses" mnemonic="S">
@ -284,7 +284,7 @@
</command> </command>
</menu> </menu>
<menu label="%plugin.1" mnemonic="M" id="com.connor.menus.plmMenu.bxw"> <menu label="物料信息管理" mnemonic="M" id="com.connor.menus.plmMenu.bxw">
<command commandId="com.connor.ah.bxw.DBOMtoEBOM" id="com.connor.menus.plmMenu.bxw.DBOMtoEBOM" mnemonic="S"> <command commandId="com.connor.ah.bxw.DBOMtoEBOM" id="com.connor.menus.plmMenu.bxw.DBOMtoEBOM" mnemonic="S">
</command> </command>
</menu> </menu>

@ -1,28 +1,17 @@
package com.connor.ferrorTech.metal.NPIproject.NPIprojectCreate; package com.connor.ferrorTech.metal.NPIproject.NPIprojectCreate;
import java.awt.Frame; import java.awt.Frame;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import javax.swing.JComboBox;
import javax.swing.JComponent; import javax.swing.JComponent;
import javax.swing.JLabel; import javax.swing.JLabel;
import javax.swing.JTextField; import javax.swing.JTextField;
import org.jdesktop.swingx.JXDatePicker; import org.jdesktop.swingx.JXDatePicker;
import com.connor.ferrorTech.metal.util.SwingUtil;
import com.teamcenter.rac.aif.AbstractAIFApplication; import com.teamcenter.rac.aif.AbstractAIFApplication;
import com.teamcenter.rac.aif.common.actions.AbstractAIFAction; import com.teamcenter.rac.aif.common.actions.AbstractAIFAction;
import com.teamcenter.rac.aif.kernel.InterfaceAIFComponent; import com.teamcenter.rac.aif.kernel.InterfaceAIFComponent;
import com.teamcenter.rac.kernel.TCComponent;
import com.teamcenter.rac.kernel.TCComponentFolder; import com.teamcenter.rac.kernel.TCComponentFolder;
import com.teamcenter.rac.kernel.TCComponentItemRevision;
import com.teamcenter.rac.kernel.TCPreferenceService;
import com.teamcenter.rac.kernel.TCSession;
import com.teamcenter.rac.util.MessageBox; import com.teamcenter.rac.util.MessageBox;
public class CreateNPIprojectAction extends AbstractAIFAction { public class CreateNPIprojectAction extends AbstractAIFAction {
@ -47,21 +36,21 @@ public class CreateNPIprojectAction extends AbstractAIFAction {
if (selectComponent != null && selectComponent instanceof TCComponentFolder) { if (selectComponent != null && selectComponent instanceof TCComponentFolder) {
TCComponentFolder targetRev = (TCComponentFolder) selectComponent; TCComponentFolder targetRev = (TCComponentFolder) selectComponent;
System.out.println("选中对象版本类型为: " + targetRev.getType()); System.out.println("选中对象版本类型为: " + targetRev.getType());
if (targetRev.getType().equals("Folder")) { if (targetRev.getType().equals("Folder") || targetRev.getType().equals("Fnd0HomeFolder")) {
flag = true; flag = true;
} else { } else {
MessageBox.post("Please select the Folder", "Error", MessageBox.ERROR); MessageBox.post("请选择文件夹", "Error", MessageBox.ERROR);
return; return;
} }
} }
else { else {
MessageBox.post("Please select Item Revision", "Error", MessageBox.ERROR); MessageBox.post("请选择文件夹", "Error", MessageBox.ERROR);
return; return;
} }
if(flag) { if(flag) {
inputLabels = new JLabel[]{ inputLabels = new JLabel[]{
new JLabel("NPI Project Name"), new JLabel("Order date"), new JLabel("Special requirements")}; new JLabel("NPI项目编号"), new JLabel("订单日期"), new JLabel("特殊要求")};
inputFields = new JComponent[]{ inputFields = new JComponent[]{
@ -69,7 +58,7 @@ public class CreateNPIprojectAction extends AbstractAIFAction {
}; };
// 表格列标题 // 表格列标题
columnNames = new String[]{"Serial", "Customer PN", "Product Name", "Rev", "Date of Issuance", "Num", "BOM Deadline", "Drawings Deadline", "Tec BOM Deadline", "Tec Drawings Deadline","Remarks"}; columnNames = new String[]{"序号", "客户图号", "产品名称", "客户图纸版本", "签发日期", "数量", "材料清单纳期", "出图纳期", "材料清单回复纳期", "出图回复纳期","备注"};
// 表格数据 // 表格数据
data = new Object[][]{}; data = new Object[][]{};

@ -70,8 +70,8 @@ import com.teamcenter.rac.kernel.TCSession;
import com.teamcenter.rac.util.MessageBox; import com.teamcenter.rac.util.MessageBox;
public class CreateNPIprojectDialog extends JFrame implements Runnable { public class CreateNPIprojectDialog extends JFrame implements Runnable {
private final String TABLE_TITLE = "Drawing Task Book Table"; private final String TABLE_TITLE = "³öͼÈÎÎñÊé±í";
private final String JFRAME_TITLE = "Create NPI Project"; private final String JFRAME_TITLE = "´´½¨NPI";
private final String PREFERENCE_EXCEL_GETUID = "VF5CTRWS"; private final String PREFERENCE_EXCEL_GETUID = "VF5CTRWS";
private final String TARGET_REV_XJXXD_GX = "VF5xjxxdgx"; private final String TARGET_REV_XJXXD_GX = "VF5xjxxdgx";
@ -158,14 +158,14 @@ public class CreateNPIprojectDialog extends JFrame implements Runnable {
* @throws TCException * @throws TCException
*/ */
private void setPanelProperties() throws TCException { private void setPanelProperties() throws TCException {
okButton = new JButton(ConstantPool.EN_BUTTON_CONFIRM); okButton = new JButton(ConstantPool.CH_BUTTON_CONFIRM);
celButton = new JButton(ConstantPool.EN_BUTTON_CANCEL); celButton = new JButton(ConstantPool.CH_BUTTON_CANCEL);
importButton = new JButton(ConstantPool.EN_BUTTON_IMPORT); importButton = new JButton(ConstantPool.CH_BUTTON_IMPORT);
exportButton = new JButton(ConstantPool.EN_BUTTON_EXPORT); exportButton = new JButton(ConstantPool.CH_BUTTON_EXPORT);
addButton = new JButton(ConstantPool.EN_BUTTON_ADD); addButton = new JButton(ConstantPool.CH_BUTTON_ADD);
deleteButton = new JButton(ConstantPool.EN_BUTTON_DELETE); deleteButton = new JButton(ConstantPool.CH_BUTTON_DELETE);
moveUpButton = new JButton(ConstantPool.EN_BUTTON_MOVE_UP); moveUpButton = new JButton(ConstantPool.CH_BUTTON_MOVE_UP);
moveDownButton = new JButton(ConstantPool.EN_BUTTON_MOVE_DOWN); moveDownButton = new JButton(ConstantPool.CH_BUTTON_MOVE_DOWN);
} }
private JScrollPane getTopPanel() { private JScrollPane getTopPanel() {
@ -308,12 +308,12 @@ public class CreateNPIprojectDialog extends JFrame implements Runnable {
buttonPanel.add(moveDownButton); buttonPanel.add(moveDownButton);
importButton.addActionListener(e -> { importButton.addActionListener(e -> {
createDialog(ConstantPool.EN_TITLE_IMPORT_PATH, ConstantPool.EN_LABEL_UPLOAD_PATH, "import"); createDialog(ConstantPool.CH_TITLE_IMPORT_PATH, ConstantPool.CH_LABEL_UPLOAD_PATH, "import");
System.out.println("本地导入按钮被点击"); System.out.println("本地导入按钮被点击");
}); });
exportButton.addActionListener(e -> { exportButton.addActionListener(e -> {
createDialog(ConstantPool.EN_TITLE_EXPORT_PATH, ConstantPool.EN_LABEL_UPLOAD_PATH, "export"); createDialog(ConstantPool.CH_TITLE_EXPORT_PATH, ConstantPool.CH_LABEL_UPLOAD_PATH, "export");
System.out.println("本地导出按钮被点击"); System.out.println("本地导出按钮被点击");
}); });
@ -354,7 +354,7 @@ public class CreateNPIprojectDialog extends JFrame implements Runnable {
table.clearSelection(); table.clearSelection();
} }
} else { } else {
JOptionPane.showMessageDialog(table, ConstantPool.EN_MESSAGE_DELETE); JOptionPane.showMessageDialog(table, ConstantPool.CH_MESSAGE_DELETE);
} }
System.out.println("删除行按钮被点击"); System.out.println("删除行按钮被点击");
}); });
@ -376,7 +376,7 @@ public class CreateNPIprojectDialog extends JFrame implements Runnable {
model.insertRow(selectedRow - 1, row); model.insertRow(selectedRow - 1, row);
table.setRowSelectionInterval(selectedRow - 1, selectedRow - 1); table.setRowSelectionInterval(selectedRow - 1, selectedRow - 1);
} else { } else {
JOptionPane.showMessageDialog(table, ConstantPool.EN_MESSAGE_MOVE_UP); JOptionPane.showMessageDialog(table, ConstantPool.CH_MESSAGE_MOVE_UP);
} }
System.out.println("上移按钮被点击"); System.out.println("上移按钮被点击");
}); });
@ -397,7 +397,7 @@ public class CreateNPIprojectDialog extends JFrame implements Runnable {
model.insertRow(selectedRow + 1, row); model.insertRow(selectedRow + 1, row);
table.setRowSelectionInterval(selectedRow + 1, selectedRow + 1); table.setRowSelectionInterval(selectedRow + 1, selectedRow + 1);
} else { } else {
JOptionPane.showMessageDialog(table, ConstantPool.EN_MESSAGE_MOVE_DOWN); JOptionPane.showMessageDialog(table, ConstantPool.CH_MESSAGE_MOVE_DOWN);
} }
System.out.println("下移按钮被点击"); System.out.println("下移按钮被点击");
@ -417,7 +417,7 @@ public class CreateNPIprojectDialog extends JFrame implements Runnable {
pathField.setBounds(110, 40, 150, 25); pathField.setBounds(110, 40, 150, 25);
dialog.add(pathField); dialog.add(pathField);
JButton selectButton = new JButton(ConstantPool.EN_BUTTON_CHOOSE); JButton selectButton = new JButton(ConstantPool.CH_BUTTON_CHOOSE);
selectButton.setBounds(280, 40, 90, 25); selectButton.setBounds(280, 40, 90, 25);
selectButton.addActionListener(e -> { selectButton.addActionListener(e -> {
@ -443,22 +443,22 @@ public class CreateNPIprojectDialog extends JFrame implements Runnable {
}); });
dialog.add(selectButton, BorderLayout.EAST); dialog.add(selectButton, BorderLayout.EAST);
JButton localOkButton = new JButton(ConstantPool.EN_BUTTON_CONFIRM); JButton localOkButton = new JButton(ConstantPool.CH_BUTTON_CONFIRM);
// localOkButton.setBounds(80, 70, 100, 25); // localOkButton.setBounds(80, 70, 100, 25);
localOkButton.setBounds(80, 90, 100, 25); localOkButton.setBounds(80, 90, 100, 25);
JButton localCancelButton = new JButton(ConstantPool.EN_BUTTON_CANCEL); JButton localCancelButton = new JButton(ConstantPool.CH_BUTTON_CANCEL);
// localCancelButton.setBounds(200, 70, 100, 25); // localCancelButton.setBounds(200, 70, 100, 25);
localCancelButton.setBounds(200, 90, 100, 25); localCancelButton.setBounds(200, 90, 100, 25);
localOkButton.addActionListener(e -> { localOkButton.addActionListener(e -> {
String path = pathField.getText(); String path = pathField.getText();
if (path.isEmpty()) { if (path.isEmpty()) {
JOptionPane.showMessageDialog(dialog, ConstantPool.EN_MESSAGE_IMPORT); JOptionPane.showMessageDialog(dialog, ConstantPool.CH_MESSAGE_IMPORT);
} else if (method.equals("import")) { } else if (method.equals("import")) {
System.out.println(labelName + ":" + path); System.out.println(labelName + ":" + path);
// 检查文件扩展名是否为 .xlsx 或 .xls // 检查文件扩展名是否为 .xlsx 或 .xls
if (!path.toLowerCase().endsWith(".xlsx") && !path.toLowerCase().endsWith(".xls")) { if (!path.toLowerCase().endsWith(".xlsx") && !path.toLowerCase().endsWith(".xls")) {
JOptionPane.showMessageDialog(dialog, ConstantPool.EN_MESSAGE_EXCEL_ERROR); JOptionPane.showMessageDialog(dialog, ConstantPool.CH_MESSAGE_EXCEL_ERROR);
} else { } else {
System.out.println(labelName + ":" + path); System.out.println(labelName + ":" + path);
importData(path); importData(path);
@ -468,7 +468,7 @@ public class CreateNPIprojectDialog extends JFrame implements Runnable {
// 检查文件是否为目录 // 检查文件是否为目录
File file = new File(path); File file = new File(path);
if (!file.isDirectory()) { if (!file.isDirectory()) {
JOptionPane.showMessageDialog(dialog, ConstantPool.EN_MESSAGE_FILE_ERROR); JOptionPane.showMessageDialog(dialog, ConstantPool.CH_MESSAGE_FILE_ERROR);
} else { } else {
// 处理导出逻辑 // 处理导出逻辑
System.out.println(labelName + ":" + path); System.out.println(labelName + ":" + path);

@ -72,7 +72,7 @@ public class CreateNPIprojectOperation extends AbstractAIFOperation {
TCPreferenceService getFolderUID = tcSession.getPreferenceService(); TCPreferenceService getFolderUID = tcSession.getPreferenceService();
String value = getFolderUID.getStringValue(PREFERENCES_FILE_FOLDER); String value = getFolderUID.getStringValue(PREFERENCES_FILE_FOLDER);
if(value == null || value.isEmpty()) { if(value == null || value.isEmpty()) {
MessageBox.post("Preferred VF5NPI not configured", "Error", MessageBox.ERROR); MessageBox.post("未配置首选项VF5NPI", "Error", MessageBox.ERROR);
} }
System.out.println("Îļþ¼ÐUID: " + value); System.out.println("Îļþ¼ÐUID: " + value);
originFolder = (TCComponentFolder) tcSession.stringToComponent(value); originFolder = (TCComponentFolder) tcSession.stringToComponent(value);
@ -97,7 +97,7 @@ public class CreateNPIprojectOperation extends AbstractAIFOperation {
boolean existNpiFolder = isExistNpiFolder(targetFolder, formData.getProjectName()); boolean existNpiFolder = isExistNpiFolder(targetFolder, formData.getProjectName());
if (!existNpiFolder) { if (!existNpiFolder) {
MessageBox.post("NPI Already Exists", "Error", MessageBox.ERROR); MessageBox.post("NPI已存在", "Error", MessageBox.ERROR);
return; return;
} }
TCComponentFolder npiFolder = creatNpiChildFolder(targetFolder); TCComponentFolder npiFolder = creatNpiChildFolder(targetFolder);

@ -78,7 +78,7 @@ public class CreateClientDrawingAction implements Runnable {
e.printStackTrace(); e.printStackTrace();
} }
} else { } else {
MessageBox.post("Fail To Get Preference VF5PROJECTCHILDFOLDER", "Error", MessageBox.ERROR); MessageBox.post("未能获得首选项VF5PROJECTCHILDFOLDER", "Error", MessageBox.ERROR);
} }
} }
@ -96,13 +96,13 @@ public class CreateClientDrawingAction implements Runnable {
parentFolder = newChildFolder; parentFolder = newChildFolder;
} catch (TCException e) { } catch (TCException e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
MessageBox.post("create Folder " + fileName[i] + " error!", "error", MessageBox.ERROR); MessageBox.post("创建文件【" + fileName[i] + "】错误,请联系管理员!", "Error", MessageBox.ERROR);
e.printStackTrace(); e.printStackTrace();
} }
} }
return parentFolder; return parentFolder;
} else { } else {
throw new CustomException("productFolder is not exist"); throw new CustomException("productFolder不存在");
} }
} }
@ -144,13 +144,13 @@ public class CreateClientDrawingAction implements Runnable {
project.add("contents", khtz); project.add("contents", khtz);
npiFolder.add("contents", project); npiFolder.add("contents", project);
} }
MessageBox.post("Created Successfully !", "Info", MessageBox.INFORMATION); MessageBox.post("创建成功 !", "Info", MessageBox.INFORMATION);
} else { } else {
throw new CustomException("xjxxdRevForm or customerFolder is null"); throw new CustomException("xjxxdRevForm或customerFolder为空");
} }
} else { } else {
throw new CustomException("npiFolder is not exist or Preference error !"); throw new CustomException("npiFolder不存在或首选项错误");
} }
} }
@ -169,10 +169,10 @@ public class CreateClientDrawingAction implements Runnable {
} }
} }
} else { } else {
MessageBox.post(ConstantPool.EN_MESSAGE_Folder_TYPE_ERROR, "Error", MessageBox.ERROR); MessageBox.post(ConstantPool.CH_MESSAGE_Folder_TYPE_ERROR, "Error", MessageBox.ERROR);
} }
} else { } else {
MessageBox.post(ConstantPool.EN_MESSAGE_Folder_ERROR, "Error", MessageBox.ERROR); MessageBox.post(ConstantPool.CH_MESSAGE_Folder_ERROR, "Error", MessageBox.ERROR);
} }
return null; return null;
} }

@ -72,12 +72,12 @@ public class UploadClientDrawingDialog extends AbstractAIFDialog implements Runn
} }
public void initializationComponent() { public void initializationComponent() {
selectUploadLabel = new JLabel(ConstantPool.EN_LABEL_UPLOAD_PATH); selectUploadLabel = new JLabel(ConstantPool.CH_LABEL_UPLOAD_PATH);
uploadInput = new JTextField(14); uploadInput = new JTextField(14);
importButton = new JButton(ConstantPool.EN_BUTTON_SELECT); importButton = new JButton(ConstantPool.CH_BUTTON_SELECT);
okButton = new JButton(ConstantPool.EN_BUTTON_CONFIRM); okButton = new JButton(ConstantPool.CH_BUTTON_CONFIRM);
celButton = new JButton(ConstantPool.EN_BUTTON_CANCEL); celButton = new JButton(ConstantPool.CH_BUTTON_CANCEL);
SwingUtilities.getWindowAncestor(importButton); SwingUtilities.getWindowAncestor(importButton);
} }
@ -94,7 +94,7 @@ public class UploadClientDrawingDialog extends AbstractAIFDialog implements Runn
targetRev = (TCComponentItemRevision) selectComponent; targetRev = (TCComponentItemRevision) selectComponent;
initUI(); initUI();
} else { } else {
MessageBox.post(ConstantPool.EN_MESSAGE_REV_ERROR, "error", MessageBox.ERROR); MessageBox.post(ConstantPool.CH_MESSAGE_REV_ERROR, "error", MessageBox.ERROR);
} }
} catch (Exception e) { } catch (Exception e) {
// TODO: handle exception // TODO: handle exception
@ -105,7 +105,7 @@ public class UploadClientDrawingDialog extends AbstractAIFDialog implements Runn
public void initUI() { public void initUI() {
initializationComponent(); initializationComponent();
// 创建一个自定义对话框 // 创建一个自定义对话框
this.setTitle(ConstantPool.EN_TITLE_UPLOAD_PATH); this.setTitle(ConstantPool.CH_TITLE_UPLOAD_PATH);
this.setLayout(null); this.setLayout(null);
@ -139,12 +139,12 @@ public class UploadClientDrawingDialog extends AbstractAIFDialog implements Runn
okButton.addActionListener(e -> { okButton.addActionListener(e -> {
String path = ((JTextField) uploadInput).getText(); String path = ((JTextField) uploadInput).getText();
if (path.isEmpty()) { if (path.isEmpty()) {
JOptionPane.showMessageDialog(this, ConstantPool.EN_MESSAGE_UPLOAD_ERROR); JOptionPane.showMessageDialog(this, ConstantPool.CH_MESSAGE_UPLOAD_ERROR);
} else { } else {
// 检查文件是否为目录 // 检查文件是否为目录
File file = new File(path); File file = new File(path);
if (!file.isDirectory()) { if (!file.isDirectory()) {
JOptionPane.showMessageDialog(this, ConstantPool.EN_MESSAGE_FILE_ERROR); JOptionPane.showMessageDialog(this, ConstantPool.CH_MESSAGE_FILE_ERROR);
} else { } else {
// 检查该版本下的数据集对象 // 检查该版本下的数据集对象
// getDrawingsDataSet(); // getDrawingsDataSet();
@ -400,23 +400,23 @@ public class UploadClientDrawingDialog extends AbstractAIFDialog implements Runn
break; break;
} }
case "sldprt":{ case "sldprt":{
tempData = pptxType.create(fileName, "", "SWPrt"); tempData = swprtType.create(fileName, "", "SWPrt");
tempData.setFiles(new String[] {filePath},new String[] {"powerpoint"}); tempData.setFiles(new String[] {filePath},new String[] {"PrtFile"});
break; break;
} }
case "slddrw":{ case "slddrw":{
tempData = pptxType.create(fileName, "", "SWDrw"); tempData = swdrwType.create(fileName, "", "SWDrw");
tempData.setFiles(new String[] {filePath},new String[] {"PrtFile"}); tempData.setFiles(new String[] {filePath},new String[] {"DrwFile"});
break; break;
} }
case "sldasm":{ case "sldasm":{
tempData = pptxType.create(fileName, "", "SWAsm"); tempData = swasmType.create(fileName, "", "SWAsm");
tempData.setFiles(new String[] {filePath},new String[] {"DrwFile"}); tempData.setFiles(new String[] {filePath},new String[] {"AsmFile"});
break; break;
} }
default :{ default :{
tempData = defaultType.create(fileName, "", "Zip"); tempData = defaultType.create(fileName, "", "Zip");
tempData.setFiles(new String[] {filePath},new String[] {"AsmFile"}); tempData.setFiles(new String[] {filePath},new String[] {"ZIPFILE"});
break; break;
} }
} }

@ -53,7 +53,7 @@ public class ClassificationCraftDialog extends JFrame implements Runnable {
if (itemType.equals("VF5ccpRevision") || itemType.equals("VF5bcpRevision")) { if (itemType.equals("VF5ccpRevision") || itemType.equals("VF5bcpRevision")) {
initUI(); initUI();
} else { } else {
JOptionPane.showMessageDialog(null, "Incorrect version!", "Error", JOptionPane.WARNING_MESSAGE); JOptionPane.showMessageDialog(null, "请选择正确的版本!", "Error", JOptionPane.WARNING_MESSAGE);
} }
} }
@ -81,12 +81,12 @@ public class ClassificationCraftDialog extends JFrame implements Runnable {
} }
public void initializationButton() { public void initializationButton() {
searchButton = new JButton(ConstantPool.EN_BUTTON_SEARCH); searchButton = new JButton(ConstantPool.CH_BUTTON_SEARCH);
searchButton.setPreferredSize(new Dimension(87, 25)); searchButton.setPreferredSize(new Dimension(87, 25));
searchButton.addActionListener(e -> { searchButton.addActionListener(e -> {
searchList(); searchList();
}); });
confirmButton = new JButton(ConstantPool.EN_BUTTON_CONFIRM); confirmButton = new JButton(ConstantPool.CH_BUTTON_CONFIRM);
confirmButton.setPreferredSize(new Dimension(87, 25)); // 设置确定按钮的长宽为100x30 confirmButton.setPreferredSize(new Dimension(87, 25)); // 设置确定按钮的长宽为100x30
confirmButton.addActionListener(e -> { confirmButton.addActionListener(e -> {
// 在这里执行确定操作,例如关闭窗口等 // 在这里执行确定操作,例如关闭窗口等
@ -94,7 +94,7 @@ public class ClassificationCraftDialog extends JFrame implements Runnable {
doTask(); doTask();
}); });
cancelButton = new JButton(ConstantPool.EN_BUTTON_CANCEL); cancelButton = new JButton(ConstantPool.CH_BUTTON_CANCEL);
cancelButton.setPreferredSize(new Dimension(87, 25)); // 设置取消按钮的长宽为100x30 cancelButton.setPreferredSize(new Dimension(87, 25)); // 设置取消按钮的长宽为100x30
cancelButton.addActionListener(e -> { cancelButton.addActionListener(e -> {
// 在这里执行取消操作,例如关闭窗口等 // 在这里执行取消操作,例如关闭窗口等
@ -215,7 +215,7 @@ public class ClassificationCraftDialog extends JFrame implements Runnable {
this.tcSession.queueExcludedOperation(classificationCraftOperation); this.tcSession.queueExcludedOperation(classificationCraftOperation);
} else { } else {
// 如果没有选中任何行,可以弹出提示信息 // 如果没有选中任何行,可以弹出提示信息
JOptionPane.showMessageDialog(this, "Please select a row.", "No Selection", JOptionPane.WARNING_MESSAGE); JOptionPane.showMessageDialog(this, "请选择一行.", "No Selection", JOptionPane.WARNING_MESSAGE);
} }
} }

@ -27,7 +27,7 @@ public class ClassificationCraftHandler extends AbstractHandler {
AbstractAIFApplication application = AIFUtility.getCurrentApplication(); AbstractAIFApplication application = AIFUtility.getCurrentApplication();
JLabel[] jLabels = new JLabel[]{new JLabel("Technical ID"), new JLabel("Technical Name")}; JLabel[] jLabels = new JLabel[]{new JLabel("工艺 ID"), new JLabel("工艺名称")};
JComponent[] jComponents = new JComponent[]{new JTextField(10),new JTextField(10)}; JComponent[] jComponents = new JComponent[]{new JTextField(10),new JTextField(10)};
String[][] data = null; String[][] data = null;
try { try {
@ -37,7 +37,7 @@ public class ClassificationCraftHandler extends AbstractHandler {
e.printStackTrace(); e.printStackTrace();
} }
ClassificationCraftDialog dialog = new ClassificationCraftDialog(application,"Process Routing Library", jLabels, jComponents,data); ClassificationCraftDialog dialog = new ClassificationCraftDialog(application,"分类库调用工艺", jLabels, jComponents,data);
new Thread(dialog).start(); new Thread(dialog).start();
return null; return null;

@ -54,7 +54,7 @@ public class ClassificationCraftOperation extends AbstractAIFOperation {
gyItemRev.add("IMAN_METarget", targetComponent); gyItemRev.add("IMAN_METarget", targetComponent);
setReference(gyItemRev, uid); setReference(gyItemRev, uid);
} else { } else {
MessageBox.post("Currently, no folder named POR was found !", "error", MessageBox.ERROR); MessageBox.post("当前未找到名为POR的文件夹!", "error", MessageBox.ERROR);
} }
} }
@ -68,7 +68,7 @@ public class ClassificationCraftOperation extends AbstractAIFOperation {
if(targetFolder!=null) { if(targetFolder!=null) {
targetFolder = (TCComponentFolder) TcUtil.getLastReferenced(targetFolder, "VF5xmwjj","Folder"); targetFolder = (TCComponentFolder) TcUtil.getLastReferenced(targetFolder, "VF5xmwjj","Folder");
}else { }else {
MessageBox.post("The current parent Folder is not referenced !", "error", MessageBox.ERROR); MessageBox.post("当前父文件夹未被引用!", "error", MessageBox.ERROR);
} }
if (targetFolder != null) { if (targetFolder != null) {
@ -91,12 +91,12 @@ public class ClassificationCraftOperation extends AbstractAIFOperation {
TCComponentBOMWindow newView = winType.create(null); TCComponentBOMWindow newView = winType.create(null);
newView.lock(); newView.lock();
String[] formProp = new String[] { // String[] formProp = new String[] {
"vf5zbsj","vf5zbsjdw","vf5jqsj","vf5jqsjdw","vf5rgsj","vf5rgsjdw","vf5fjfy","vf5fjfydw" // "vf5zbsj","vf5zbsjdw","vf5jqsj","vf5jqsjdw","vf5rgsj","vf5rgsjdw","vf5fjfy","vf5fjfydw"
}; // };
String[] bomProp = new String[] { // String[] bomProp = new String[] {
"VF5zbsj","VF5zbsjdw","VF5jqsj","VF5jqsjdw","VF5rgsj","VF5rgsjdw","VF5fjfy","VF5fjfydw" // "VF5zbsj","VF5zbsjdw","VF5jqsj","VF5jqsjdw","VF5rgsj","VF5rgsjdw","VF5fjfy","VF5fjfydw"
}; // };
// ÐµĹ¤ÒÕ¶ÔÏó¶¥²ãBom // ÐµĹ¤ÒÕ¶ÔÏó¶¥²ãBom
TCComponentBOMLine newTopBomLine = newView.setWindowTopLine(gyItemRev.getItem(),gyItemRev, null, null); TCComponentBOMLine newTopBomLine = newView.setWindowTopLine(gyItemRev.getItem(),gyItemRev, null, null);
if (itemUid != null) { if (itemUid != null) {
@ -142,12 +142,12 @@ public class ClassificationCraftOperation extends AbstractAIFOperation {
TCComponentBOMLine newBomLine = newTopBomLine.add(newGxItem,newGxItem.getLatestItemRevision(),null,false,""); TCComponentBOMLine newBomLine = newTopBomLine.add(newGxItem,newGxItem.getLatestItemRevision(),null,false,"");
TCComponent oldGxRevForm = oldGxRev.getRelatedComponent("IMAN_master_form_rev"); // TCComponent oldGxRevForm = oldGxRev.getRelatedComponent("IMAN_master_form_rev");
for (int j = 0; j < formProp.length; j++) { // for (int j = 0; j < formProp.length; j++) {
String prop = oldGxRevForm.getStringProperty(formProp[j]); // String prop = oldGxRevForm.getStringProperty(formProp[j]);
System.out.println(bomProp[j] + " : "+prop); // System.out.println(bomProp[j] + " : "+prop);
newBomLine.setProperty(bomProp[j], prop); // newBomLine.setProperty(bomProp[j], prop);
} // }
} }
}else { }else {
@ -157,9 +157,9 @@ public class ClassificationCraftOperation extends AbstractAIFOperation {
newView.save(); newView.save();
newView.unlock(); newView.unlock();
newView.close(); newView.close();
MessageBox.post("Created Successfully !", "Info", MessageBox.INFORMATION); MessageBox.post("创建成功!", "Info", MessageBox.INFORMATION);
} else { } else {
MessageBox.post("Currently no process object selected !", "Info", MessageBox.INFORMATION); MessageBox.post("当前未选择任何流程对象!", "Info", MessageBox.INFORMATION);
} }
} }
} }

@ -42,7 +42,7 @@ public class ClassificationProcessesDialog extends JFrame implements Runnable {
this.application = application; this.application = application;
this.tcSession = (TCSession) this.application.getSession(); this.tcSession = (TCSession) this.application.getSession();
this.subtitle = "Process List"; this.subtitle = "工序列表";
int count = 0; int count = 0;
this.title = title; this.title = title;
this.jLabels = (JLabel[]) args[count++]; this.jLabels = (JLabel[]) args[count++];
@ -62,13 +62,13 @@ public class ClassificationProcessesDialog extends JFrame implements Runnable {
} else if (targetComponent instanceof TCComponentItemRevision) { } else if (targetComponent instanceof TCComponentItemRevision) {
tempComponentRev = (TCComponentItemRevision) targetComponent; tempComponentRev = (TCComponentItemRevision) targetComponent;
} else { } else {
throw new CustomException("Please Select The Correct Version !"); throw new CustomException("请选择正确的版本!");
} }
if (tempComponentRev.getStringProperty("object_type").equals("VF5gyRevision")) { if (tempComponentRev.getStringProperty("object_type").equals("VF5gyRevision")) {
initUI(); initUI();
} else { } else {
JOptionPane.showMessageDialog(null, "Incorrect version!", "Error", JOptionPane.WARNING_MESSAGE); JOptionPane.showMessageDialog(null, "请选择工艺对象!", "Error", JOptionPane.WARNING_MESSAGE);
} }
} catch (Exception e) { } catch (Exception e) {
// TODO: handle exception // TODO: handle exception
@ -85,7 +85,7 @@ public class ClassificationProcessesDialog extends JFrame implements Runnable {
} else if (targetComponent instanceof TCComponentItemRevision) { } else if (targetComponent instanceof TCComponentItemRevision) {
tempComponentRev = (TCComponentItemRevision) targetComponent; tempComponentRev = (TCComponentItemRevision) targetComponent;
} else { } else {
throw new CustomException("Please Select The Correct Version !"); throw new CustomException("请选择正确的版本!");
} }
if (tempComponentRev != null && revType != null && revType.length > 0) { if (tempComponentRev != null && revType != null && revType.length > 0) {
@ -104,17 +104,17 @@ public class ClassificationProcessesDialog extends JFrame implements Runnable {
} }
public void initializationButton() { public void initializationButton() {
searchButton = new JButton(ConstantPool.EN_BUTTON_SEARCH); searchButton = new JButton(ConstantPool.CH_BUTTON_SEARCH);
searchButton.setPreferredSize(new Dimension(80, 23)); searchButton.setPreferredSize(new Dimension(80, 23));
searchButton.addActionListener(e -> { searchButton.addActionListener(e -> {
searchList(); searchList();
}); });
okButton = new JButton(ConstantPool.EN_BUTTON_CONFIRM); okButton = new JButton(ConstantPool.CH_BUTTON_CONFIRM);
okButton.addActionListener(e -> { okButton.addActionListener(e -> {
this.dispose(); this.dispose();
doTask(); doTask();
}); });
cancelButton = new JButton(ConstantPool.EN_BUTTON_CANCEL); cancelButton = new JButton(ConstantPool.CH_BUTTON_CANCEL);
cancelButton.addActionListener(e -> { cancelButton.addActionListener(e -> {
this.dispose(); this.dispose();
}); });

@ -35,13 +35,13 @@ public class ClassificationProcessesHandler extends AbstractHandler {
AbstractAIFApplication application = AIFUtility.getCurrentApplication(); AbstractAIFApplication application = AIFUtility.getCurrentApplication();
JLabel[] labels = new JLabel[]{new JLabel("ID"), new JLabel("Name")}; JLabel[] labels = new JLabel[]{new JLabel("ID"), new JLabel("工序名称")};
JComponent[] components = {new JTextField(14), new JTextField(14)}; JComponent[] components = {new JTextField(14), new JTextField(14)};
@SuppressWarnings("unused") @SuppressWarnings("unused")
String[] chColumnNames = new String[]{ String[] chColumnNames = new String[]{
"ID", "名称","工序类型", "准备时间", "准备时间单位", "ID", "名称","工序类型","工作中心", "准备时间",
"工作中心编码","机器时间","机器时间单位", "人工时间", "人工时间单位", "准备时间单位","机器时间","机器时间单位", "人工时间", "人工时间单位",
"附加费用","附加费用单位","" "附加费用","附加费用单位",""
}; };
String[] enColumnNames = new String[]{ String[] enColumnNames = new String[]{
@ -62,7 +62,7 @@ public class ClassificationProcessesHandler extends AbstractHandler {
e.printStackTrace(); e.printStackTrace();
} }
ClassificationProcessesDialog dialog = new ClassificationProcessesDialog( ClassificationProcessesDialog dialog = new ClassificationProcessesDialog(
application,"Operation Library",labels,components,enColumnNames,data); application,"分类库调用工序",labels,components,chColumnNames,data);
new Thread(dialog).start(); new Thread(dialog).start();
return null; return null;

@ -38,7 +38,7 @@ public class ClassificationProcessesOperation extends AbstractAIFOperation {
if(targetBomLine!=null) { if(targetBomLine!=null) {
copyItem(targetBomLine,tableData); copyItem(targetBomLine,tableData);
}else { }else {
MessageBox.post("Fail Get TargetBomLine !", "Error", MessageBox.ERROR); MessageBox.post("获取目标BOM失败!", "Error", MessageBox.ERROR);
} }
} }
@ -46,12 +46,12 @@ public class ClassificationProcessesOperation extends AbstractAIFOperation {
TCComponentBOMWindowType winType = (TCComponentBOMWindowType) tcSession.getTypeComponent("BOMWindow"); TCComponentBOMWindowType winType = (TCComponentBOMWindowType) tcSession.getTypeComponent("BOMWindow");
TCComponentBOMWindow view = winType.create(null); TCComponentBOMWindow view = winType.create(null);
String[] formProp = new String[] { // String[] formProp = new String[] {
"vf5zbsj","vf5zbsjdw","vf5jqsj","vf5jqsjdw","vf5rgsj","vf5rgsjdw","vf5fjfy","vf5fjfydw" // "vf5zbsj","vf5zbsjdw","vf5jqsj","vf5jqsjdw","vf5rgsj","vf5rgsjdw","vf5fjfy","vf5fjfydw"
}; // };
String[] bomProp = new String[] { // String[] bomProp = new String[] {
"VF5zbsj","VF5zbsjdw","VF5jqsj","VF5jqsjdw","VF5rgsj","VF5rgsjdw","VF5fjfy","VF5fjfydw" // "VF5zbsj","VF5zbsjdw","VF5jqsj","VF5jqsjdw","VF5rgsj","VF5rgsjdw","VF5fjfy","VF5fjfydw"
}; // };
view.lock(); view.lock();
boolean flag = false; boolean flag = false;
for (int i = 0; i < data.length; i++) { for (int i = 0; i < data.length; i++) {
@ -67,19 +67,19 @@ public class ClassificationProcessesOperation extends AbstractAIFOperation {
TCComponentBOMLine newBomLine = targetBomLine.add(newItem,newItem.getLatestItemRevision(),null,false,""); TCComponentBOMLine newBomLine = targetBomLine.add(newItem,newItem.getLatestItemRevision(),null,false,"");
TCComponent gxRevForm = gxItemRev.getRelatedComponent("IMAN_master_form_rev"); // TCComponent gxRevForm = gxItemRev.getRelatedComponent("IMAN_master_form_rev");
for (int j = 0; j < bomProp.length; j++) { // for (int j = 0; j < bomProp.length; j++) {
String prop = gxRevForm.getStringProperty(formProp[j]); // String prop = gxRevForm.getStringProperty(formProp[j]);
System.out.println(bomProp[j] + " : " + prop); // System.out.println(bomProp[j] + " : " + prop);
newBomLine.setProperty(bomProp[j], prop); // newBomLine.setProperty(bomProp[j], prop);
} // }
flag =true; flag =true;
} }
} }
if(flag) { if(flag) {
MessageBox.post("Add Successfully !", "Info", MessageBox.INFORMATION); MessageBox.post("添加成功!", "Info", MessageBox.INFORMATION);
}else { }else {
MessageBox.post("Add Failed !", "Rrror", MessageBox.ERROR); MessageBox.post("添加失败!", "Rrror", MessageBox.ERROR);
} }
view.save(); view.save();
view.unlock(); view.unlock();
@ -95,7 +95,7 @@ public class ClassificationProcessesOperation extends AbstractAIFOperation {
}else if(targetComponent instanceof TCComponentItemRevision) { }else if(targetComponent instanceof TCComponentItemRevision) {
tempComponentRev = (TCComponentItemRevision) targetComponent; tempComponentRev = (TCComponentItemRevision) targetComponent;
}else { }else {
throw new CustomException("Please Select The Correct Version !"); throw new CustomException("请选择正确的版本!");
} }
if (tempComponentRev != null && revType != null && revType.length > 0) { if (tempComponentRev != null && revType != null && revType.length > 0) {

Loading…
Cancel
Save