#pragma once
|
#include "stdafx.h"
|
#include "MBTransMgr.h"
|
#include "MBSvrDiff.h"
|
#include "MBOnlineEdDBMgr.h"
|
/************************************************************************/
|
/* ÉÏ´«¶ÓÁÐ */
|
/************************************************************************/
|
class AFX_EXT_CLASS CMBUploadAsyncTask
|
{
|
public:
|
CMBUploadAsyncTask(void);
|
~CMBUploadAsyncTask(void);
|
private:
|
HWND m_hWnd;
|
CString m_strServerIP; // ·þÎñµØÖ·
|
int m_nPort; // ¶Ë¿Ú
|
CString m_strUserLogin; // µÇ¼Õßid
|
CString m_strUserName; // Óû§Ãû
|
CString m_strUserSession; // Óû§session
|
CMBTransMgr *m_pTransMgr; // ´«Êä¹ÜÀíÆ÷
|
CMBOnlineEdDBMgr *m_pOnlineEdDBMgr; // ÔÚÏß±à¼DB¹ÜÀíÆ÷
|
public:
|
//void Sethwnd( HWND hWnd );
|
void SetServerInfo( CString strServerIP,int nPort,CString strUserLogin,
|
CString strUserName,CString strUserSession ); // ÉèÖ÷þÎñÐÅÏ¢
|
void SetTransMgr( CMBTransMgr *pTransMgr ); // ÉèÖô«Êä¹ÜÀíÆ÷
|
void SetOnlineEdDBMgr( CMBOnlineEdDBMgr *pOnlineEdDBMgr ); // ÉèÖÃÔÚÔÚÏß±à¼DB¹ÜÀíÆ÷
|
public:
|
void CreateDocTask(CMBUploadFileInfo *pUploadFileInfo); // ´´½¨ÎĵµÈÎÎñ
|
void EditDocTask(CMBUploadFileInfo *pUploadFileInfo); // ±à¼ÎĵµÈÎÎñ
|
void CreateCatalogTask( CMBUploadFileInfo *pUploadFileInfo ); // ´´½¨Ä¿Â¼ÈÎÎñ
|
public:
|
void GetDocList2( CMBSvrDiff *pSvrDiff );
|
private:
|
bool InitNetDiskSvr( CMBNetDiskWebCMgr &threadNetDiskWebCMgr ); // ³õʼ»¯ÍøÅÌ·þÎñ
|
|
bool DMSCreateCatalog(CMBNetDiskWebCMgr &threadNetDiskWebCMgr,CMBUploadFileInfo *pUploadFileInfo,CString &strErrInfo); // ´´½¨Í¨ÓÃĿ¼
|
bool DMSCreateDoc(CMBNetDiskWebCMgr &threadNetDiskWebCMgr,CMBUploadFileInfo *pUploadFileInfo,CString &strErrInfo); // ´´½¨Í¨ÓÃÎĵµ
|
|
bool NDCreateCatalog(CMBNetDiskWebCMgr &threadNetDiskWebCMgr,CMBUploadFileInfo *pUploadFileInfo,CString &strErrInfo); // ´´½¨¸öÈËĿ¼
|
bool NDCreateDoc(CMBNetDiskWebCMgr &threadNetDiskWebCMgr,CMBUploadFileInfo *pUploadFileInfo,CString &strErrInfo); // ´´½¨¸öÈËÎĵµ
|
|
bool DMSGetDocList2(CMBNetDiskWebCMgr &threadNetDiskWebCMgr,CMBSvrDiff *pSvrDiff,CString &strErrInfo); // µÃµ½ÎĵµÁбí
|
bool NDGetDocList2(CMBNetDiskWebCMgr &threadNetDiskWebCMgr,CMBSvrDiff *pSvrDiff,CString &strErrInfo); // µÃµ½ÎĵµÁбí
|
public:
|
bool NotifyUICreateDocEvent( CString strUploadID,CString strCabinetID,CString strCatalogPath,
|
CString strCatalogID,CString strServerPath,CString strFileSvr,CString strFileID,__int64 nFileSize,CString strDocName,CString strFileName,CString strDocID,
|
CString strAttachIDList,bool bIsPreArchive,CString strFileTime,CString strMD5,CString strFileType,int nCabinetType ); // ´´½¨ÎĵµµÄʼþ
|
|
bool NotifyUIUpVerEvent( CString strUploadID,CString strCabinetID,CString strCatalogPath,
|
CString strCatalogID,CString strServerPath,CString strFileSvr,CString strFileID,__int64 nFileSize,CString strDocName,CString strFileName,CString strDocID,
|
CString strAttachIDList,bool bIsPreArchive,CString strFileTime,CString strMD5,CString strFileType,int nCabinetType,CString strOldDocID ); // Ìæ»»ÎĵµµÄʼþ
|
|
bool NotifyUICoverDocEvent( CString strUploadID,CString strCabinetID,CString strCatalogPath,
|
CString strCatalogID,CString strServerPath,CString strFileSvr,CString strFileID,__int64 nFileSize,CString strDocName,CString strFileName,CString strDocID,
|
CString strAttachIDList,bool bIsPreArchive,CString strFileTime,CString strMD5,CString strFileType,int nCabinetType); // Ìæ»»ÎĵµµÄʼþ
|
|
bool NotifyUICreateCatalogEvent( CString strUploadID,CString strCabinetID,CString strCatalogID,CString strSvrPath,CString strCatalogPath,int nCabinetType ); // ´´½¨Ä¿Â¼µÄʼþ
|
public:// ´´½¨Ð°汾
|
bool DMSCreateDoc( CMBNetDiskWebCMgr &threadNetDiskWebCMgr,CMBUploadFileInfo *pUploadFileInfo,CString strDocID,CString strDocName,CString strCatalogID,CString strCatalogPath,CString &strErrInfo,bool bEvent = true );
|
bool NDCreateDoc( CMBNetDiskWebCMgr &threadNetDiskWebCMgr,CMBUploadFileInfo *pUploadFileInfo,CString strDocID,CString strDocName,CString strCatalogID,CString strCatalogPath,CString &strErrInfo,bool bEvent = true );
|
public:// Ìæ»»Ä¿±êÖеÄÎļþ
|
bool DMSUpVerDoc(CMBNetDiskWebCMgr &threadNetDiskWebCMgr,CMBUploadFileInfo *pUploadFileInfo,
|
CString strDocID,CString strDocName,CString strCatalogID,CString strCatalogPath,CString strVID,
|
CString strStatus,CString &strRetDocID,CString &strErrInfo,bool bEvent = true);
|
public:// ¸²¸Ç
|
bool DMSCoverDoc(CMBNetDiskWebCMgr &threadNetDiskWebCMgr,CMBUploadFileInfo *pUploadFileInfo,CString strDocID,CString strDocName,CString strCatalogID,CString strCatalogPath,CString &strErrInfo,bool bEvent = true);
|
bool NDCoverDoc(CMBNetDiskWebCMgr &threadNetDiskWebCMgr,CMBUploadFileInfo *pUploadFileInfo,CString strDocID,CString strDocName,CString strCatalogID,CString strCatalogPath,CString &strErrInfo,bool bEvent = true);
|
public:
|
bool DMSGetDocInfo( CMBNetDiskWebCMgr &threadNetDiskWebCMgr,CString strDocID,CString &strVID,CString &strStatus,CString &strErrInfo );
|
bool NDGetDocInfo( CMBNetDiskWebCMgr &threadNetDiskWebCMgr,CString strDocID,CString &strVID,CString &strStatus,CString &strErrInfo );
|
bool ParseDocInfo( CString &strDocInfo,CString &strVID,CString &strStatus );
|
//private:
|
// void GetCoverMode( CString strTip,int &nCoverMode );
|
};
|