|
|
@ -10,6 +10,7 @@ import com.teamcenter.rac.aif.AbstractAIFApplication;
|
|
|
|
import com.teamcenter.rac.aif.kernel.InterfaceAIFComponent;
|
|
|
|
import com.teamcenter.rac.aif.kernel.InterfaceAIFComponent;
|
|
|
|
import com.teamcenter.rac.aifrcp.AIFUtility;
|
|
|
|
import com.teamcenter.rac.aifrcp.AIFUtility;
|
|
|
|
import com.teamcenter.rac.kernel.TCComponent;
|
|
|
|
import com.teamcenter.rac.kernel.TCComponent;
|
|
|
|
|
|
|
|
import com.teamcenter.rac.kernel.TCComponentBOMLine;
|
|
|
|
import com.teamcenter.rac.kernel.TCComponentItemRevision;
|
|
|
|
import com.teamcenter.rac.kernel.TCComponentItemRevision;
|
|
|
|
import com.teamcenter.rac.kernel.TCComponentSchedule;
|
|
|
|
import com.teamcenter.rac.kernel.TCComponentSchedule;
|
|
|
|
import com.teamcenter.rac.kernel.TCComponentScheduleTask;
|
|
|
|
import com.teamcenter.rac.kernel.TCComponentScheduleTask;
|
|
|
@ -62,6 +63,19 @@ public class MpartHandler extends AbstractHandler{
|
|
|
|
// TODO Auto-generated catch block
|
|
|
|
// TODO Auto-generated catch block
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}else if(component instanceof TCComponentBOMLine) {
|
|
|
|
|
|
|
|
TCComponentBOMLine bomLine = (TCComponentBOMLine)component;
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
TCComponentItemRevision itemRevision = bomLine.getItemRevision();
|
|
|
|
|
|
|
|
String type = itemRevision.getType();
|
|
|
|
|
|
|
|
System.out.println("type2================"+type);
|
|
|
|
|
|
|
|
if(types[0].contains(type)) {
|
|
|
|
|
|
|
|
arrayList.add((TCComponentItemRevision)itemRevision);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} catch (TCException e) {
|
|
|
|
|
|
|
|
// TODO Auto-generated catch block
|
|
|
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|