UIFUtils 1210
|
|
/**
|
* ¸ù¾ÝIDÏÂÔØÎļþ¶ÔÏóÐÅÏ¢
|
* @param docOid documentOID
|
* @return
|
* @throws VCIError
|
* @throws VCIException
|
*/
|
public BusinessObject[] getDocumentFileData(String docOid) throws VCIError {
|
Map<String, String> conditions = new HashMap<String, String>();
|
conditions.put("documentoid", docOid);
|
QueryTemplate qt2 = new QueryTemplate();
|
qt2.setId("btmQuery");
|
qt2.setBtmType(FILE_TYPE);
|
qt2.setType("btm");
|
List<String> clauseList = new ArrayList<String>();
|
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<String> clauseList = new ArrayList<String>();
|
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<String, String> map = new HashMap<String, String>();
|
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;
|
}
|