diff --git a/META-INF/MANIFEST.MF b/META-INF/MANIFEST.MF index 1687bdc..0cbb123 100644 --- a/META-INF/MANIFEST.MF +++ b/META-INF/MANIFEST.MF @@ -8,7 +8,6 @@ Automatic-Module-Name: com.conor.ferrorTech.metal Bundle-RequiredExecutionEnvironment: JavaSE-1.8 Import-Package: com.teamcenter.rac.aif, com.teamcenter.rac.aif.kernel, - com.teamcenter.rac.aifrcp, com.teamcenter.rac.classification.common.table, com.teamcenter.rac.classification.icm, com.teamcenter.rac.kernel, @@ -23,7 +22,6 @@ Import-Package: com.teamcenter.rac.aif, org.eclipse.core.databinding Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime, - com.teamcenter.rac.aifrcp, com.teamcenter.rac.common, com.teamcenter.rac.ui.commands, com.teamcenter.rac.external, @@ -38,7 +36,8 @@ Require-Bundle: org.eclipse.ui, com.teamcenter.rac.classification.icm, com.teamcenter.rac.tcapps, 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: ., com.connor.ferrorTech.metal, com.connor.ferrorTech.metal.NPIproject.NPIprojectCreate, diff --git a/plugin.xml b/plugin.xml index 3c4b559..a12f7b2 100644 --- a/plugin.xml +++ b/plugin.xml @@ -25,13 +25,13 @@ - + - + - + @@ -41,9 +41,9 @@ - + - + @@ -97,7 +97,7 @@ - + @@ -193,7 +193,7 @@ - + @@ -208,7 +208,7 @@ - + @@ -228,7 +228,7 @@ - + @@ -284,7 +284,7 @@ - + diff --git a/src/com/connor/ferrorTech/metal/NPIproject/NPIprojectCreate/CreateNPIprojectAction.java b/src/com/connor/ferrorTech/metal/NPIproject/NPIprojectCreate/CreateNPIprojectAction.java index 9d8cb12..4b30ad9 100644 --- a/src/com/connor/ferrorTech/metal/NPIproject/NPIprojectCreate/CreateNPIprojectAction.java +++ b/src/com/connor/ferrorTech/metal/NPIproject/NPIprojectCreate/CreateNPIprojectAction.java @@ -1,28 +1,17 @@ package com.connor.ferrorTech.metal.NPIproject.NPIprojectCreate; 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.JLabel; import javax.swing.JTextField; import org.jdesktop.swingx.JXDatePicker; -import com.connor.ferrorTech.metal.util.SwingUtil; import com.teamcenter.rac.aif.AbstractAIFApplication; import com.teamcenter.rac.aif.common.actions.AbstractAIFAction; import com.teamcenter.rac.aif.kernel.InterfaceAIFComponent; -import com.teamcenter.rac.kernel.TCComponent; 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; public class CreateNPIprojectAction extends AbstractAIFAction { @@ -47,21 +36,21 @@ public class CreateNPIprojectAction extends AbstractAIFAction { if (selectComponent != null && selectComponent instanceof TCComponentFolder) { TCComponentFolder targetRev = (TCComponentFolder) selectComponent; System.out.println("ѡж汾Ϊ " + targetRev.getType()); - if (targetRev.getType().equals("Folder")) { + if (targetRev.getType().equals("Folder") || targetRev.getType().equals("Fnd0HomeFolder")) { flag = true; } else { - MessageBox.post("Please select the Folder", "Error", MessageBox.ERROR); + MessageBox.post("ѡļ", "Error", MessageBox.ERROR); return; } } else { - MessageBox.post("Please select Item Revision", "Error", MessageBox.ERROR); + MessageBox.post("ѡļ", "Error", MessageBox.ERROR); return; } if(flag) { 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[]{ @@ -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[][]{}; diff --git a/src/com/connor/ferrorTech/metal/NPIproject/NPIprojectCreate/CreateNPIprojectDialog.java b/src/com/connor/ferrorTech/metal/NPIproject/NPIprojectCreate/CreateNPIprojectDialog.java index d926da5..6bd231b 100644 --- a/src/com/connor/ferrorTech/metal/NPIproject/NPIprojectCreate/CreateNPIprojectDialog.java +++ b/src/com/connor/ferrorTech/metal/NPIproject/NPIprojectCreate/CreateNPIprojectDialog.java @@ -70,8 +70,8 @@ import com.teamcenter.rac.kernel.TCSession; import com.teamcenter.rac.util.MessageBox; public class CreateNPIprojectDialog extends JFrame implements Runnable { - private final String TABLE_TITLE = "Drawing Task Book Table"; - private final String JFRAME_TITLE = "Create NPI Project"; + private final String TABLE_TITLE = "ͼ"; + private final String JFRAME_TITLE = "NPI"; private final String PREFERENCE_EXCEL_GETUID = "VF5CTRWS"; private final String TARGET_REV_XJXXD_GX = "VF5xjxxdgx"; @@ -158,14 +158,14 @@ public class CreateNPIprojectDialog extends JFrame implements Runnable { * @throws TCException */ private void setPanelProperties() throws TCException { - okButton = new JButton(ConstantPool.EN_BUTTON_CONFIRM); - celButton = new JButton(ConstantPool.EN_BUTTON_CANCEL); - importButton = new JButton(ConstantPool.EN_BUTTON_IMPORT); - exportButton = new JButton(ConstantPool.EN_BUTTON_EXPORT); - addButton = new JButton(ConstantPool.EN_BUTTON_ADD); - deleteButton = new JButton(ConstantPool.EN_BUTTON_DELETE); - moveUpButton = new JButton(ConstantPool.EN_BUTTON_MOVE_UP); - moveDownButton = new JButton(ConstantPool.EN_BUTTON_MOVE_DOWN); + okButton = new JButton(ConstantPool.CH_BUTTON_CONFIRM); + celButton = new JButton(ConstantPool.CH_BUTTON_CANCEL); + importButton = new JButton(ConstantPool.CH_BUTTON_IMPORT); + exportButton = new JButton(ConstantPool.CH_BUTTON_EXPORT); + addButton = new JButton(ConstantPool.CH_BUTTON_ADD); + deleteButton = new JButton(ConstantPool.CH_BUTTON_DELETE); + moveUpButton = new JButton(ConstantPool.CH_BUTTON_MOVE_UP); + moveDownButton = new JButton(ConstantPool.CH_BUTTON_MOVE_DOWN); } private JScrollPane getTopPanel() { @@ -308,12 +308,12 @@ public class CreateNPIprojectDialog extends JFrame implements Runnable { buttonPanel.add(moveDownButton); 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("ص밴ť"); }); 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("صť"); }); @@ -354,7 +354,7 @@ public class CreateNPIprojectDialog extends JFrame implements Runnable { table.clearSelection(); } } else { - JOptionPane.showMessageDialog(table, ConstantPool.EN_MESSAGE_DELETE); + JOptionPane.showMessageDialog(table, ConstantPool.CH_MESSAGE_DELETE); } System.out.println("ɾаť"); }); @@ -376,7 +376,7 @@ public class CreateNPIprojectDialog extends JFrame implements Runnable { model.insertRow(selectedRow - 1, row); table.setRowSelectionInterval(selectedRow - 1, selectedRow - 1); } else { - JOptionPane.showMessageDialog(table, ConstantPool.EN_MESSAGE_MOVE_UP); + JOptionPane.showMessageDialog(table, ConstantPool.CH_MESSAGE_MOVE_UP); } System.out.println("ưť"); }); @@ -397,7 +397,7 @@ public class CreateNPIprojectDialog extends JFrame implements Runnable { model.insertRow(selectedRow + 1, row); table.setRowSelectionInterval(selectedRow + 1, selectedRow + 1); } else { - JOptionPane.showMessageDialog(table, ConstantPool.EN_MESSAGE_MOVE_DOWN); + JOptionPane.showMessageDialog(table, ConstantPool.CH_MESSAGE_MOVE_DOWN); } System.out.println("ưť"); @@ -417,7 +417,7 @@ public class CreateNPIprojectDialog extends JFrame implements Runnable { pathField.setBounds(110, 40, 150, 25); 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.addActionListener(e -> { @@ -443,22 +443,22 @@ public class CreateNPIprojectDialog extends JFrame implements Runnable { }); 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, 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, 90, 100, 25); localOkButton.addActionListener(e -> { String path = pathField.getText(); if (path.isEmpty()) { - JOptionPane.showMessageDialog(dialog, ConstantPool.EN_MESSAGE_IMPORT); + JOptionPane.showMessageDialog(dialog, ConstantPool.CH_MESSAGE_IMPORT); } else if (method.equals("import")) { System.out.println(labelName + ":" + path); // ļչǷΪ .xlsx .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 { System.out.println(labelName + ":" + path); importData(path); @@ -468,7 +468,7 @@ public class CreateNPIprojectDialog extends JFrame implements Runnable { // ļǷΪĿ¼ File file = new File(path); if (!file.isDirectory()) { - JOptionPane.showMessageDialog(dialog, ConstantPool.EN_MESSAGE_FILE_ERROR); + JOptionPane.showMessageDialog(dialog, ConstantPool.CH_MESSAGE_FILE_ERROR); } else { // ߼ System.out.println(labelName + ":" + path); diff --git a/src/com/connor/ferrorTech/metal/NPIproject/NPIprojectCreate/CreateNPIprojectOperation.java b/src/com/connor/ferrorTech/metal/NPIproject/NPIprojectCreate/CreateNPIprojectOperation.java index 78595f2..8179db8 100644 --- a/src/com/connor/ferrorTech/metal/NPIproject/NPIprojectCreate/CreateNPIprojectOperation.java +++ b/src/com/connor/ferrorTech/metal/NPIproject/NPIprojectCreate/CreateNPIprojectOperation.java @@ -72,7 +72,7 @@ public class CreateNPIprojectOperation extends AbstractAIFOperation { TCPreferenceService getFolderUID = tcSession.getPreferenceService(); String value = getFolderUID.getStringValue(PREFERENCES_FILE_FOLDER); 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); originFolder = (TCComponentFolder) tcSession.stringToComponent(value); @@ -97,7 +97,7 @@ public class CreateNPIprojectOperation extends AbstractAIFOperation { boolean existNpiFolder = isExistNpiFolder(targetFolder, formData.getProjectName()); if (!existNpiFolder) { - MessageBox.post("NPI Already Exists", "Error", MessageBox.ERROR); + MessageBox.post("NPIѴ", "Error", MessageBox.ERROR); return; } TCComponentFolder npiFolder = creatNpiChildFolder(targetFolder); diff --git a/src/com/connor/ferrorTech/metal/NPIproject/customerDrawingsCreate/CreateClientDrawingAction.java b/src/com/connor/ferrorTech/metal/NPIproject/customerDrawingsCreate/CreateClientDrawingAction.java index d03f20d..3f61448 100644 --- a/src/com/connor/ferrorTech/metal/NPIproject/customerDrawingsCreate/CreateClientDrawingAction.java +++ b/src/com/connor/ferrorTech/metal/NPIproject/customerDrawingsCreate/CreateClientDrawingAction.java @@ -78,7 +78,7 @@ public class CreateClientDrawingAction implements Runnable { e.printStackTrace(); } } 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; } catch (TCException e) { // TODO Auto-generated catch block - MessageBox.post("create Folder " + fileName[i] + " error!", "error", MessageBox.ERROR); + MessageBox.post("ļ" + fileName[i] + ",ϵԱ!", "Error", MessageBox.ERROR); e.printStackTrace(); } } return parentFolder; } 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); npiFolder.add("contents", project); } - MessageBox.post("Created Successfully !", "Info", MessageBox.INFORMATION); + MessageBox.post("ɹ !", "Info", MessageBox.INFORMATION); } else { - throw new CustomException("xjxxdRevForm or customerFolder is null"); + throw new CustomException("xjxxdRevFormcustomerFolderΪ"); } } 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 { - MessageBox.post(ConstantPool.EN_MESSAGE_Folder_TYPE_ERROR, "Error", MessageBox.ERROR); + MessageBox.post(ConstantPool.CH_MESSAGE_Folder_TYPE_ERROR, "Error", MessageBox.ERROR); } } else { - MessageBox.post(ConstantPool.EN_MESSAGE_Folder_ERROR, "Error", MessageBox.ERROR); + MessageBox.post(ConstantPool.CH_MESSAGE_Folder_ERROR, "Error", MessageBox.ERROR); } return null; } diff --git a/src/com/connor/ferrorTech/metal/NPIproject/customerDrawingsUpload/UploadClientDrawingDialog.java b/src/com/connor/ferrorTech/metal/NPIproject/customerDrawingsUpload/UploadClientDrawingDialog.java index 652ee7b..92a82c0 100644 --- a/src/com/connor/ferrorTech/metal/NPIproject/customerDrawingsUpload/UploadClientDrawingDialog.java +++ b/src/com/connor/ferrorTech/metal/NPIproject/customerDrawingsUpload/UploadClientDrawingDialog.java @@ -72,12 +72,12 @@ public class UploadClientDrawingDialog extends AbstractAIFDialog implements Runn } public void initializationComponent() { - selectUploadLabel = new JLabel(ConstantPool.EN_LABEL_UPLOAD_PATH); + selectUploadLabel = new JLabel(ConstantPool.CH_LABEL_UPLOAD_PATH); uploadInput = new JTextField(14); - importButton = new JButton(ConstantPool.EN_BUTTON_SELECT); - okButton = new JButton(ConstantPool.EN_BUTTON_CONFIRM); - celButton = new JButton(ConstantPool.EN_BUTTON_CANCEL); + importButton = new JButton(ConstantPool.CH_BUTTON_SELECT); + okButton = new JButton(ConstantPool.CH_BUTTON_CONFIRM); + celButton = new JButton(ConstantPool.CH_BUTTON_CANCEL); SwingUtilities.getWindowAncestor(importButton); } @@ -94,7 +94,7 @@ public class UploadClientDrawingDialog extends AbstractAIFDialog implements Runn targetRev = (TCComponentItemRevision) selectComponent; initUI(); } else { - MessageBox.post(ConstantPool.EN_MESSAGE_REV_ERROR, "error", MessageBox.ERROR); + MessageBox.post(ConstantPool.CH_MESSAGE_REV_ERROR, "error", MessageBox.ERROR); } } catch (Exception e) { // TODO: handle exception @@ -105,7 +105,7 @@ public class UploadClientDrawingDialog extends AbstractAIFDialog implements Runn public void initUI() { initializationComponent(); // һԶԻ - this.setTitle(ConstantPool.EN_TITLE_UPLOAD_PATH); + this.setTitle(ConstantPool.CH_TITLE_UPLOAD_PATH); this.setLayout(null); @@ -139,12 +139,12 @@ public class UploadClientDrawingDialog extends AbstractAIFDialog implements Runn okButton.addActionListener(e -> { String path = ((JTextField) uploadInput).getText(); if (path.isEmpty()) { - JOptionPane.showMessageDialog(this, ConstantPool.EN_MESSAGE_UPLOAD_ERROR); + JOptionPane.showMessageDialog(this, ConstantPool.CH_MESSAGE_UPLOAD_ERROR); } else { // ļǷΪĿ¼ File file = new File(path); if (!file.isDirectory()) { - JOptionPane.showMessageDialog(this, ConstantPool.EN_MESSAGE_FILE_ERROR); + JOptionPane.showMessageDialog(this, ConstantPool.CH_MESSAGE_FILE_ERROR); } else { // ð汾µݼ // getDrawingsDataSet(); @@ -400,23 +400,23 @@ public class UploadClientDrawingDialog extends AbstractAIFDialog implements Runn break; } case "sldprt":{ - tempData = pptxType.create(fileName, "", "SWPrt"); - tempData.setFiles(new String[] {filePath},new String[] {"powerpoint"}); + tempData = swprtType.create(fileName, "", "SWPrt"); + tempData.setFiles(new String[] {filePath},new String[] {"PrtFile"}); break; } case "slddrw":{ - tempData = pptxType.create(fileName, "", "SWDrw"); - tempData.setFiles(new String[] {filePath},new String[] {"PrtFile"}); + tempData = swdrwType.create(fileName, "", "SWDrw"); + tempData.setFiles(new String[] {filePath},new String[] {"DrwFile"}); break; } case "sldasm":{ - tempData = pptxType.create(fileName, "", "SWAsm"); - tempData.setFiles(new String[] {filePath},new String[] {"DrwFile"}); + tempData = swasmType.create(fileName, "", "SWAsm"); + tempData.setFiles(new String[] {filePath},new String[] {"AsmFile"}); break; } default :{ tempData = defaultType.create(fileName, "", "Zip"); - tempData.setFiles(new String[] {filePath},new String[] {"AsmFile"}); + tempData.setFiles(new String[] {filePath},new String[] {"ZIPFILE"}); break; } } diff --git a/src/com/connor/ferrorTech/metal/processManagement/classificationCraft/ClassificationCraftDialog.java b/src/com/connor/ferrorTech/metal/processManagement/classificationCraft/ClassificationCraftDialog.java index e88705a..c2fbaeb 100644 --- a/src/com/connor/ferrorTech/metal/processManagement/classificationCraft/ClassificationCraftDialog.java +++ b/src/com/connor/ferrorTech/metal/processManagement/classificationCraft/ClassificationCraftDialog.java @@ -53,7 +53,7 @@ public class ClassificationCraftDialog extends JFrame implements Runnable { if (itemType.equals("VF5ccpRevision") || itemType.equals("VF5bcpRevision")) { initUI(); } 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() { - searchButton = new JButton(ConstantPool.EN_BUTTON_SEARCH); + searchButton = new JButton(ConstantPool.CH_BUTTON_SEARCH); searchButton.setPreferredSize(new Dimension(87, 25)); searchButton.addActionListener(e -> { searchList(); }); - confirmButton = new JButton(ConstantPool.EN_BUTTON_CONFIRM); + confirmButton = new JButton(ConstantPool.CH_BUTTON_CONFIRM); confirmButton.setPreferredSize(new Dimension(87, 25)); // ȷťijΪ100x30 confirmButton.addActionListener(e -> { // ִȷرմڵ @@ -94,7 +94,7 @@ public class ClassificationCraftDialog extends JFrame implements Runnable { doTask(); }); - cancelButton = new JButton(ConstantPool.EN_BUTTON_CANCEL); + cancelButton = new JButton(ConstantPool.CH_BUTTON_CANCEL); cancelButton.setPreferredSize(new Dimension(87, 25)); // ȡťijΪ100x30 cancelButton.addActionListener(e -> { // ִȡرմڵ @@ -215,7 +215,7 @@ public class ClassificationCraftDialog extends JFrame implements Runnable { this.tcSession.queueExcludedOperation(classificationCraftOperation); } else { // ûѡκУԵʾϢ - JOptionPane.showMessageDialog(this, "Please select a row.", "No Selection", JOptionPane.WARNING_MESSAGE); + JOptionPane.showMessageDialog(this, "ѡһ.", "No Selection", JOptionPane.WARNING_MESSAGE); } } diff --git a/src/com/connor/ferrorTech/metal/processManagement/classificationCraft/ClassificationCraftHandler.java b/src/com/connor/ferrorTech/metal/processManagement/classificationCraft/ClassificationCraftHandler.java index 5437614..f1cb8eb 100644 --- a/src/com/connor/ferrorTech/metal/processManagement/classificationCraft/ClassificationCraftHandler.java +++ b/src/com/connor/ferrorTech/metal/processManagement/classificationCraft/ClassificationCraftHandler.java @@ -27,7 +27,7 @@ public class ClassificationCraftHandler extends AbstractHandler { 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)}; String[][] data = null; try { @@ -37,7 +37,7 @@ public class ClassificationCraftHandler extends AbstractHandler { 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(); return null; diff --git a/src/com/connor/ferrorTech/metal/processManagement/classificationCraft/ClassificationCraftOperation.java b/src/com/connor/ferrorTech/metal/processManagement/classificationCraft/ClassificationCraftOperation.java index 872b9d5..7728348 100644 --- a/src/com/connor/ferrorTech/metal/processManagement/classificationCraft/ClassificationCraftOperation.java +++ b/src/com/connor/ferrorTech/metal/processManagement/classificationCraft/ClassificationCraftOperation.java @@ -54,7 +54,7 @@ public class ClassificationCraftOperation extends AbstractAIFOperation { gyItemRev.add("IMAN_METarget", targetComponent); setReference(gyItemRev, uid); } 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) { targetFolder = (TCComponentFolder) TcUtil.getLastReferenced(targetFolder, "VF5xmwjj","Folder"); }else { - MessageBox.post("The current parent Folder is not referenced !", "error", MessageBox.ERROR); + MessageBox.post("ǰļδ!", "error", MessageBox.ERROR); } if (targetFolder != null) { @@ -91,12 +91,12 @@ public class ClassificationCraftOperation extends AbstractAIFOperation { TCComponentBOMWindow newView = winType.create(null); newView.lock(); - String[] formProp = new String[] { - "vf5zbsj","vf5zbsjdw","vf5jqsj","vf5jqsjdw","vf5rgsj","vf5rgsjdw","vf5fjfy","vf5fjfydw" - }; - String[] bomProp = new String[] { - "VF5zbsj","VF5zbsjdw","VF5jqsj","VF5jqsjdw","VF5rgsj","VF5rgsjdw","VF5fjfy","VF5fjfydw" - }; +// String[] formProp = new String[] { +// "vf5zbsj","vf5zbsjdw","vf5jqsj","vf5jqsjdw","vf5rgsj","vf5rgsjdw","vf5fjfy","vf5fjfydw" +// }; +// String[] bomProp = new String[] { +// "VF5zbsj","VF5zbsjdw","VF5jqsj","VF5jqsjdw","VF5rgsj","VF5rgsjdw","VF5fjfy","VF5fjfydw" +// }; // µĹն󶥲Bom TCComponentBOMLine newTopBomLine = newView.setWindowTopLine(gyItemRev.getItem(),gyItemRev, null, null); if (itemUid != null) { @@ -142,12 +142,12 @@ public class ClassificationCraftOperation extends AbstractAIFOperation { TCComponentBOMLine newBomLine = newTopBomLine.add(newGxItem,newGxItem.getLatestItemRevision(),null,false,""); - TCComponent oldGxRevForm = oldGxRev.getRelatedComponent("IMAN_master_form_rev"); - for (int j = 0; j < formProp.length; j++) { - String prop = oldGxRevForm.getStringProperty(formProp[j]); - System.out.println(bomProp[j] + " : "+prop); - newBomLine.setProperty(bomProp[j], prop); - } +// TCComponent oldGxRevForm = oldGxRev.getRelatedComponent("IMAN_master_form_rev"); +// for (int j = 0; j < formProp.length; j++) { +// String prop = oldGxRevForm.getStringProperty(formProp[j]); +// System.out.println(bomProp[j] + " : "+prop); +// newBomLine.setProperty(bomProp[j], prop); +// } } }else { @@ -157,9 +157,9 @@ public class ClassificationCraftOperation extends AbstractAIFOperation { newView.save(); newView.unlock(); newView.close(); - MessageBox.post("Created Successfully !", "Info", MessageBox.INFORMATION); + MessageBox.post("ɹ!", "Info", MessageBox.INFORMATION); } else { - MessageBox.post("Currently no process object selected !", "Info", MessageBox.INFORMATION); + MessageBox.post("ǰδѡκ̶!", "Info", MessageBox.INFORMATION); } } } diff --git a/src/com/connor/ferrorTech/metal/processManagement/classificationProcesses/ClassificationProcessesDialog.java b/src/com/connor/ferrorTech/metal/processManagement/classificationProcesses/ClassificationProcessesDialog.java index 3f1fc69..fb892d8 100644 --- a/src/com/connor/ferrorTech/metal/processManagement/classificationProcesses/ClassificationProcessesDialog.java +++ b/src/com/connor/ferrorTech/metal/processManagement/classificationProcesses/ClassificationProcessesDialog.java @@ -42,7 +42,7 @@ public class ClassificationProcessesDialog extends JFrame implements Runnable { this.application = application; this.tcSession = (TCSession) this.application.getSession(); - this.subtitle = "Process List"; + this.subtitle = "б"; int count = 0; this.title = title; this.jLabels = (JLabel[]) args[count++]; @@ -62,13 +62,13 @@ public class ClassificationProcessesDialog extends JFrame implements Runnable { } else if (targetComponent instanceof TCComponentItemRevision) { tempComponentRev = (TCComponentItemRevision) targetComponent; } else { - throw new CustomException("Please Select The Correct Version !"); + throw new CustomException("ѡȷİ汾!"); } if (tempComponentRev.getStringProperty("object_type").equals("VF5gyRevision")) { initUI(); } else { - JOptionPane.showMessageDialog(null, "Incorrect version!", "Error", JOptionPane.WARNING_MESSAGE); + JOptionPane.showMessageDialog(null, "ѡն!", "Error", JOptionPane.WARNING_MESSAGE); } } catch (Exception e) { // TODO: handle exception @@ -85,7 +85,7 @@ public class ClassificationProcessesDialog extends JFrame implements Runnable { } else if (targetComponent instanceof TCComponentItemRevision) { tempComponentRev = (TCComponentItemRevision) targetComponent; } else { - throw new CustomException("Please Select The Correct Version !"); + throw new CustomException("ѡȷİ汾!"); } if (tempComponentRev != null && revType != null && revType.length > 0) { @@ -104,17 +104,17 @@ public class ClassificationProcessesDialog extends JFrame implements Runnable { } public void initializationButton() { - searchButton = new JButton(ConstantPool.EN_BUTTON_SEARCH); + searchButton = new JButton(ConstantPool.CH_BUTTON_SEARCH); searchButton.setPreferredSize(new Dimension(80, 23)); searchButton.addActionListener(e -> { searchList(); }); - okButton = new JButton(ConstantPool.EN_BUTTON_CONFIRM); + okButton = new JButton(ConstantPool.CH_BUTTON_CONFIRM); okButton.addActionListener(e -> { this.dispose(); doTask(); }); - cancelButton = new JButton(ConstantPool.EN_BUTTON_CANCEL); + cancelButton = new JButton(ConstantPool.CH_BUTTON_CANCEL); cancelButton.addActionListener(e -> { this.dispose(); }); diff --git a/src/com/connor/ferrorTech/metal/processManagement/classificationProcesses/ClassificationProcessesHandler.java b/src/com/connor/ferrorTech/metal/processManagement/classificationProcesses/ClassificationProcessesHandler.java index 78ccc68..0d18d41 100644 --- a/src/com/connor/ferrorTech/metal/processManagement/classificationProcesses/ClassificationProcessesHandler.java +++ b/src/com/connor/ferrorTech/metal/processManagement/classificationProcesses/ClassificationProcessesHandler.java @@ -35,13 +35,13 @@ public class ClassificationProcessesHandler extends AbstractHandler { 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)}; @SuppressWarnings("unused") String[] chColumnNames = new String[]{ - "ID", "","", "׼ʱ", "׼ʱ䵥λ", - "ı","ʱ","ʱ䵥λ", "˹ʱ", "˹ʱ䵥λ", + "ID", "","","", "׼ʱ", + "׼ʱ䵥λ","ʱ","ʱ䵥λ", "˹ʱ", "˹ʱ䵥λ", "ӷ","ӷõλ","" }; String[] enColumnNames = new String[]{ @@ -62,7 +62,7 @@ public class ClassificationProcessesHandler extends AbstractHandler { e.printStackTrace(); } ClassificationProcessesDialog dialog = new ClassificationProcessesDialog( - application,"Operation Library",labels,components,enColumnNames,data); + application,"ù",labels,components,chColumnNames,data); new Thread(dialog).start(); return null; diff --git a/src/com/connor/ferrorTech/metal/processManagement/classificationProcesses/ClassificationProcessesOperation.java b/src/com/connor/ferrorTech/metal/processManagement/classificationProcesses/ClassificationProcessesOperation.java index 4489810..7d63e4b 100644 --- a/src/com/connor/ferrorTech/metal/processManagement/classificationProcesses/ClassificationProcessesOperation.java +++ b/src/com/connor/ferrorTech/metal/processManagement/classificationProcesses/ClassificationProcessesOperation.java @@ -38,7 +38,7 @@ public class ClassificationProcessesOperation extends AbstractAIFOperation { if(targetBomLine!=null) { copyItem(targetBomLine,tableData); }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"); TCComponentBOMWindow view = winType.create(null); - String[] formProp = new String[] { - "vf5zbsj","vf5zbsjdw","vf5jqsj","vf5jqsjdw","vf5rgsj","vf5rgsjdw","vf5fjfy","vf5fjfydw" - }; - String[] bomProp = new String[] { - "VF5zbsj","VF5zbsjdw","VF5jqsj","VF5jqsjdw","VF5rgsj","VF5rgsjdw","VF5fjfy","VF5fjfydw" - }; +// String[] formProp = new String[] { +// "vf5zbsj","vf5zbsjdw","vf5jqsj","vf5jqsjdw","vf5rgsj","vf5rgsjdw","vf5fjfy","vf5fjfydw" +// }; +// String[] bomProp = new String[] { +// "VF5zbsj","VF5zbsjdw","VF5jqsj","VF5jqsjdw","VF5rgsj","VF5rgsjdw","VF5fjfy","VF5fjfydw" +// }; view.lock(); boolean flag = false; 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,""); - TCComponent gxRevForm = gxItemRev.getRelatedComponent("IMAN_master_form_rev"); - for (int j = 0; j < bomProp.length; j++) { - String prop = gxRevForm.getStringProperty(formProp[j]); - System.out.println(bomProp[j] + " : " + prop); - newBomLine.setProperty(bomProp[j], prop); - } +// TCComponent gxRevForm = gxItemRev.getRelatedComponent("IMAN_master_form_rev"); +// for (int j = 0; j < bomProp.length; j++) { +// String prop = gxRevForm.getStringProperty(formProp[j]); +// System.out.println(bomProp[j] + " : " + prop); +// newBomLine.setProperty(bomProp[j], prop); +// } flag =true; } } if(flag) { - MessageBox.post("Add Successfully !", "Info", MessageBox.INFORMATION); + MessageBox.post("ӳɹ!", "Info", MessageBox.INFORMATION); }else { - MessageBox.post("Add Failed !", "Rrror", MessageBox.ERROR); + MessageBox.post("ʧ!", "Rrror", MessageBox.ERROR); } view.save(); view.unlock(); @@ -95,7 +95,7 @@ public class ClassificationProcessesOperation extends AbstractAIFOperation { }else if(targetComponent instanceof TCComponentItemRevision) { tempComponentRev = (TCComponentItemRevision) targetComponent; }else { - throw new CustomException("Please Select The Correct Version !"); + throw new CustomException("ѡȷİ汾!"); } if (tempComponentRev != null && revType != null && revType.length > 0) {