直接上代码:
1 public void collectAllBomLine(TCComponentBOMLine topBomLine) throws TCException{ 2 String objectName = topBomLine.getProperty("bl_indented_title"); 3 String level = topBomLine.getProperty("bl_level_starting_0"); 4 5 BomLineBean bomLineBean = new BomLineBean(objectName, level); 6 BomLineList.add(bomLineBean); 7 8 if(topBomLine.hasChildren()){ 9 AIFComponentContext[] childrens = topBomLine.getChildren(); 10 for (AIFComponentContext aifComponentContext : childrens) { 11 TCComponentBOMLine bomLine = (TCComponentBOMLine) aifComponentContext.getComponent(); 12 collectAllBomLine(bomLine); 13 } 14 } 15 16 }
完毕
原文地址:https://www.cnblogs.com/zhoulian/p/9429264.html
时间: 2024-10-13 13:02:42