【ProjectWise】aaApi_SelectSetDataBuffer获取到工作集后,怎样获取工作集文档的ProjectId和DocumentId

aaApi_SelectSetDataBuffer获取到工作集后,怎样获取工作集文档的ProjectId和DocumentId

使用LONG lpctstrDocId = aaApi_DmsDataBufferGetNumericProperty(buffer, DOC_PROP_ID, lCount);

获取到的文档ID是工作集本身的工作集ID (setId)

HAADMSBUFFER buffer = aaApi_SelectSetDataBuffer(docSetId);

alCount = aaApi_DmsDataBufferGetCount(buffer);

lCount = alCount;

if (lCount > 0)
{

while (lCount--)
{

//这里获取到的lpctstrDocId 等于上面的docSetId
LONG lpctstrDocId = aaApi_DmsDataBufferGetNumericProperty(buffer, DOC_PROP_ID, lCount);
CString lpctstrDocName = aaApi_DmsDataBufferGetStringProperty(buffer, DOC_PROP_NAME, lCount);

CString cMsg;

cMsg.Format(_T("文件集【%s】的文件【%s】文件ID:%ld 进度: %ld / %ld"), m_lDocSetName, lpctstrDocName, lpctstrDocId, alCount - lCount, alCount);
MessageBox(GetForegroundWindow(), message, TITLE_INFO, MB_OK | MB_ICONINFORMATION);

}

}