UIFUtils 1210 /** * ¸ù¾ÝIDÏÂÔØÎļþ¶ÔÏóÐÅÏ¢ * @param docOid documentOID * @return * @throws VCIError * @throws VCIException */ public BusinessObject[] getDocumentFileData(String docOid) throws VCIError { Map conditions = new HashMap(); conditions.put("documentoid", docOid); QueryTemplate qt2 = new QueryTemplate(); qt2.setId("btmQuery"); qt2.setBtmType(FILE_TYPE); qt2.setType("btm"); List clauseList = new ArrayList(); clauseList.add("*"); qt2.setClauseList(clauseList); Condition cond = plm.oq.objectQuery.common.Tool.getCondition(conditions); qt2.setCondition(cond); BusinessObject[] bos = QTClient.getService().findBTMObjects(qt2.getId(), plm.oq.objectQuery.common.Tool.qtTOXMl(qt2).asXML()); return bos; } /** * ͨ¹ýid×÷Ϊfrom¶Ë²éѯËùÓÐ×ÓµÄloºÍbo¡£ * * @param foid * BO¶ÔÏóµÄoid¡£ * @param loName * LO¶ÔÏóµÄÀàÐÍ¡£ * @param btmName * BO¶ÔÏóµÄÀàÐÍ * @return * @throws VCIError */ public BOAndLO[] searchChildrenLoAndBoOfLastRV(String foid, String loName, String btmName) throws VCIError { QueryTemplate qt = new QueryTemplate(); List clauseList = new ArrayList(); clauseList.add("*"); qt.setClauseList(clauseList); qt.setLinkType(loName); qt.setVersion(Version.lastRevLastVer); qt.setBtmType(btmName); qt.setId("d"); qt.setType("link"); qt.setDirection("positive"); qt.setLevel(10); Map map = new HashMap(); map.put("f_oid", foid); Condition condition = Tool.getCondition(map); qt.setCondition(condition); BOAndLO[] boAndLOS = QTClient.getService().getBOAndLOS(qt.getId(), Tool.qtTOXMl(qt).asXML(), ""); return boAndLOS; }