|
|
@ -1,6 +1,7 @@
|
|
|
|
package com.chint.plm.createKjBom;
|
|
|
|
package com.chint.plm.createKjBom;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map;
|
|
|
@ -627,6 +628,8 @@ public class KjController {
|
|
|
|
//ÅúÁ¿¸´ÖÆ
|
|
|
|
//ÅúÁ¿¸´ÖÆ
|
|
|
|
private void cloneOrUpdate(TCSession session, TCComponentBOMLine parentLine,
|
|
|
|
private void cloneOrUpdate(TCSession session, TCComponentBOMLine parentLine,
|
|
|
|
List<TCComponentBOMLine> bomLines, List<TCComponentBOMLine> useLines) {
|
|
|
|
List<TCComponentBOMLine> bomLines, List<TCComponentBOMLine> useLines) {
|
|
|
|
|
|
|
|
System.out.println("cloneOrUpdate==>" + bomLines);
|
|
|
|
|
|
|
|
System.out.println("useLines==>" + useLines);
|
|
|
|
com.teamcenter.services.rac.structuremanagement.StructureService service =
|
|
|
|
com.teamcenter.services.rac.structuremanagement.StructureService service =
|
|
|
|
com.teamcenter.services.rac.structuremanagement.StructureService.getService(session);
|
|
|
|
com.teamcenter.services.rac.structuremanagement.StructureService.getService(session);
|
|
|
|
// idMapAdd.clear();
|
|
|
|
// idMapAdd.clear();
|
|
|
@ -656,6 +659,10 @@ public class KjController {
|
|
|
|
// for(int i = 0; i < bomLines.size(); i++) {
|
|
|
|
// for(int i = 0; i < bomLines.size(); i++) {
|
|
|
|
// TCComponentBOMLine subLine = bomLines.get(i);
|
|
|
|
// TCComponentBOMLine subLine = bomLines.get(i);
|
|
|
|
TCComponentItem item = subLine.getItem();
|
|
|
|
TCComponentItem item = subLine.getItem();
|
|
|
|
|
|
|
|
// String name = item.getProperty("object_name");
|
|
|
|
|
|
|
|
// if(name.equals("芎뒀보陋") || name.equals("芎懶보陋")) {//TODO
|
|
|
|
|
|
|
|
// continue;
|
|
|
|
|
|
|
|
// }
|
|
|
|
CloneStructureSaveAsIn dataMap = null;
|
|
|
|
CloneStructureSaveAsIn dataMap = null;
|
|
|
|
if(item.getType().equals("ZT2_Design3D")) {
|
|
|
|
if(item.getType().equals("ZT2_Design3D")) {
|
|
|
|
// subLine.replace
|
|
|
|
// subLine.replace
|
|
|
@ -687,8 +694,8 @@ public class KjController {
|
|
|
|
// cloneStructureExpandOrUpdate.serviceData;
|
|
|
|
// cloneStructureExpandOrUpdate.serviceData;
|
|
|
|
if (cloneStructure.serviceData.sizeOfPartialErrors() > 0) {
|
|
|
|
if (cloneStructure.serviceData.sizeOfPartialErrors() > 0) {
|
|
|
|
for (int i = 0; i < cloneStructure.serviceData.sizeOfPartialErrors(); i++) {
|
|
|
|
for (int i = 0; i < cloneStructure.serviceData.sizeOfPartialErrors(); i++) {
|
|
|
|
System.out.println("Save class Partial Error -- " + cloneStructure.serviceData
|
|
|
|
System.out.println(i + "Save class Partial Error -- " + Arrays.toString(cloneStructure.serviceData
|
|
|
|
.getPartialError(i).getMessages()[0]);
|
|
|
|
.getPartialError(i).getMessages()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|