#pragma once
|
#include "stdafx.h"
|
#include "MBDocTreeView.h"
|
#include "MBMoveToTreeViewAdapter.h"
|
|
/************************************************************************/
|
/* ÒÆ¶¯µ½ µ¯´° */
|
/************************************************************************/
|
class AFX_EXT_CLASS CMBMoveToWnd
|
: public SHostDialog
|
{
|
public:
|
CMBMoveToWnd(void);
|
~CMBMoveToWnd(void);
|
private:
|
CMBServerMgr *m_pSvrMgr;
|
CMBNetDiskWebCMgr *m_pNDWebCMgr; // ÍøÅ̹ÜÀíÆ÷
|
|
CMBCabinetMgr *m_pCabinetMgr; // Îĵµ¹ñ¹ÜÀíÆ÷
|
CMBCabinetInfo *m_pCurCabinetInfo; // µ±Ç°Îĵµ¹ñÐÅÏ¢
|
CString m_strCurCabinetID;
|
private:
|
SComboBox *m_pCBMoveToCabinet; // Îĵµ¹ñ¿Ø¼þ
|
|
CMBDocTreeView *m_pTreeDoc; // ÎĵµÊ÷
|
CMBMoveToTreeViewAdapter *m_pTreeAdapter;
|
private:
|
CStringArray m_arDeepID;
|
protected:
|
//souiÏûÏ¢
|
EVENT_MAP_BEGIN()
|
EVENT_NAME_HANDLER(_T("tree_doc_moveto"),EVT_TV_SELCHANGED,OnDocTvSelchangedEvent)
|
EVENT_NAME_COMMAND(L"btn_ok", OnBtnOK)
|
EVENT_MAP_END()
|
|
protected:
|
// netdiskÏà¹Ø
|
LRESULT OnNetDiskResponse(UINT uMsg,WPARAM wParam,LPARAM lParam,BOOL & bHandled);
|
LRESULT OnNetDiskError(UINT uMsg,WPARAM wParam,LPARAM lParam,BOOL & bHandled);
|
//HostWndÕæÊµ´°¿ÚÏûÏ¢´¦Àí
|
BEGIN_MSG_MAP_EX(CMBMoveToWnd)
|
// netdiskÏà¹Ø
|
MESSAGE_HANDLER(WM_NETDISK_RESPONSE,OnNetDiskResponse)
|
MESSAGE_HANDLER(WM_NETDISK_ERROR,OnNetDiskError)
|
MSG_WM_CREATE(OnCreate)
|
MSG_WM_INITDIALOG(OnInitDialog)
|
CHAIN_MSG_MAP(SHostDialog)
|
REFLECT_NOTIFICATIONS_EX()
|
END_MSG_MAP()
|
public:
|
void SetSvrMgr( CMBServerMgr *pSvrMgr );
|
public:
|
void SetCurCabinetInfo( CMBCabinetInfo *pCurCabinetInfo ); // ÉèÖõ±Ç°Îĵµ¹ñ
|
private:
|
void InitNDWeb( CMBNetDiskWebCMgr *pNDWebCMgr );
|
protected:
|
BOOL OnInitDialog(HWND wndFocus, LPARAM lInitParam);
|
void OnDocTvSelchangedEvent(EventArgs *pEvt);
|
bool OnEventLBSelChanged(EventArgs *e);
|
private:
|
void InitCabinetMgr( CMBCabinetMgr *pCabinetMgr );
|
void TreeInsertCabinet( CMBCabinetInfo *pCabinetInfo );
|
void LoadCatalogLstToTree( SOUI::HTREEITEM &hItem,CMBBaseObj *pBaseObj );
|
private:
|
bool ResponseNDGetDocList(REQLOADSERVER_ITEM &reqLoadServerItem,CString &strXml,CString &strErrInfo);
|
public:
|
void InsertComBoxCabinet( CMBBaseCabinetObj *pCabinetObj );
|
protected:
|
void OnBtnOK();
|
public:
|
void GetDeepID( CStringArray &arDeepID );
|
};
|