Пример #1
0
void CuDlgIpmDetailLockList::InitClassMembers (BOOL bUndefined, LPCTSTR lpszNA)
{
	if (bUndefined)
	{
		m_strSession = lpszNA;
		m_strStatus = lpszNA;
		m_strTransID = lpszNA;
		m_strTotal = lpszNA;
		m_strLogical = lpszNA;
		m_strMaxLogical = lpszNA;
		m_strRelatedLockListID = lpszNA;
		m_strCurrent = lpszNA;
		m_strWaitingResourceListID = lpszNA;
	}
	else
	{
		TCHAR tchszBuffer [34];

		m_strSession = FormatHexa64 (m_llStruct.locklistdatamin.locklist_session_id, tchszBuffer);
		m_strStatus = m_llStruct.locklistdatamin.locklist_status;
		m_strTransID = m_llStruct.locklistdatamin.locklist_transaction_id;
		m_strTotal.Format (_T("%ld"), m_llStruct.locklistdatamin.locklist_lock_count);
		m_strLogical.Format(_T("%ld"), m_llStruct.locklistdatamin.locklist_logical_count);
		m_strMaxLogical.Format(_T("%ld"), m_llStruct.locklistdatamin.locklist_max_locks);
		m_strRelatedLockListID = FormatHexaL (m_llStruct.locklist_related_llb_id_id, tchszBuffer);
		m_strCurrent.Format (_T("%ld"), m_llStruct.locklist_related_count);  
		m_strWaitingResourceListID = m_llStruct.WaitingResource;
	}
}
Пример #2
0
static void GetDisplayInfo (
	LPLOGPROCESSDATAMIN pData,
	CString& strID,
	CString& strPID, 
	CString& strType,
	CString& strOpenDB,
	CString& strWrite,
	CString& strForce,
	CString& strWait,
	CString& strBegin,
	CString& strEnd)
{
	TCHAR tchszBuffer[32];

	strID = FormatHexaL (pData->log_process_id, tchszBuffer);
	strPID = FormatHexaL (pData->process_pid,  tchszBuffer); 
	strType = pData->process_status;
	strOpenDB.Format(_T("%ld"), pData->process_count);
	strWrite.Format (_T("%ld"), pData->process_writes); 
	strForce.Format (_T("%ld"), pData->process_log_forces); 
	strWait.Format(_T("%ld"), pData->process_waits); 
	strBegin.Format (_T("%ld"), pData->process_tx_begins); 
	strEnd.Format(_T("%ld"), pData->process_tx_ends); 
}
Пример #3
0
static void GetDisplayInfo (
	LPLOCKLISTDATAMIN pData,
	CString& strID,
	CString& strSession,
	CString& strCount,
	CString& strLogical,
	CString& strMaxL,
	CString& strStatus)
{
	TCHAR tchszBuffer[32];

	strID = FormatHexaL (pData->locklist_id, tchszBuffer); 
	strSession = FormatHexa64 (pData->locklist_session_id, tchszBuffer);
	strCount.Format(_T("%d"), pData->locklist_lock_count);
	strLogical.Format(_T("%d"), pData->locklist_logical_count);
	strMaxL.Format(_T("%d"), pData->locklist_max_locks);
	strStatus = pData->locklist_status;
}