#pragma once
|
#include "stdafx.h"
|
#include "ThreadObject.h"
|
#include "MBNetDiskWebCMgr.h"
|
|
|
class CMBVaultDbMgr;
|
/************************************************************************/
|
/* ÓÃÓÚ½«ÎļþÐÅϢдÈë´ÅÅÌ */
|
/************************************************************************/
|
class CMBThreadSyncDb :
|
protected CThreadObject
|
{
|
public:
|
CMBThreadSyncDb(void);
|
~CMBThreadSyncDb(void);
|
private:
|
BOOL m_bStop; // Í£Ö¹±êʶ
|
CMBNetDiskWebCMgr *m_pNDWebCMgr;
|
HWND m_hWnd;
|
CMBVaultDbMgr *m_pVaultDbMgr;
|
public:
|
virtual UINT Run();
|
public:
|
void StartThread(); // ¿ªÊ¼Ïß³Ì
|
void OverThread(); // ½áÊøÏß³Ì
|
public:
|
void SetParam( HWND hWnd,CMBVaultDbMgr *pVaultDbMgr,CMBNetDiskWebCMgr *pNDWebCMgr ); // ÉèÖòÎÊý
|
public:
|
void SendEventErr(CString strErrInfo); // ·¢ËÍ ´íÎóÐÅÏ¢
|
void SendEventDld( CString strXml,CString strVaultID ); // ·¢ËÍ ÏÂÔØ
|
void SendEventSyncDbMsgFinish( CString strMsg ); // ·¢ËÍ Í¬²½Êý¾Ý ÏûÏ¢
|
private: // Vault
|
bool GetVaultFromSvr( CMBVaultMgr *pVaultMgr,CString &strErrInfo ); // ´Ó·þÎñÖлñÈ¡VaultÊý¾Ý
|
bool SetVaultToDb(CMBVaultMgr *pVaultMgr,CString &strErrInfo);
|
private: // VaultCaloglog
|
bool GetVaultCatalogFromSvr( CMBVaultMgr *pVaultMgr,CString &strErrInfo );
|
bool GetVaultCatalogFromSvr( CMBVaultCatalogMgr *pVaultCatalogMgr,CString &strVaultID,CString &strParentID,CString &strErrInfo );
|
bool SetVaultCatalogToDb(CMBVaultCatalogMgr *pVaultCatalogMgr,CString &strErrInfo);
|
bool SetVaultCatalogToDb(CMBVaultMgr *pVaultMgr,CString &strErrInfo);
|
private: // TN_XXX
|
bool CreateTNXXX( CMBVaultMgr *pVaultMgr,CString &strErrInfo ); // ´´½¨±íTN_XXX
|
bool GetClsAttrsFromSvr(CMBVaultMgr *pVaultMgr,CString &strErrInfo );
|
bool SetTNXXXToDb( CMBVaultMgr *pVaultMgr,CString &strErrInfo );
|
bool SetTNXXXToDb( CString strVaultID,CString strTableName,CString strSessionID,int nCurPage,int nTotalPages,CString &strErrInfo ); // Ñ»·²éѯÊý¾Ý
|
bool SetTNXXXToDb(CMBTNXXXObjMgr *pObjMgr,CString strTableName,CString &strErrInfo );
|
public: // OI_VAULT_CATALOG_HLINK
|
bool SetCatalogHlinkToDb(CMBVaultMgr *pVaultMgr,CString &strErrInfo );
|
bool SetCatalogHlinkToDb(CString strVaultID,CMBVaultCatalogMgr *pVaultCatalogMgr,CString &strErrInfo );
|
bool SetCatalogHlinkToDb(CMBVaultCatalogHlinkMgr *pVaultCatalogHlinkMgr,CString &strErrInfo );
|
public: // GridStyle.json
|
bool SetGridStyleJson( CMBVaultMgr *pVaultMgr,CString &strErrInfo );
|
bool GetGridStyleName( CString strJson,CString &strStyleName,CString &strErrInfo ); // »ñÈ¡GridstyleÃû³Æ
|
};
|