#pragma once #include "stdafx.h" #include "event\NotifyCenter.h" #include "VaultExeConnect.h" #include "MBFireListCtrl.h" #include "MBFireListAdapter.h" #include "MBFireCommomFtn.h" /************************************************************************/ /* µç×Ó²Ö¿â´°¿Ú */ /************************************************************************/ class AFX_EXT_CLASS CMBFireWnd { friend class CMBFireCommomFtn; public: CMBFireWnd(void); ~CMBFireWnd(void); private: // ×é¼þ SOUI::SWindow *m_pPageRoot; HWND m_hWnd; SHostWnd *m_pHostWnd; CMBServerMgr *m_pSvrMgr; CVaultExeConnect *m_pVaultExeConnect; CMBAreaAppInfo *m_pAreaAppInfo; private: CMBFireAppExtParam *m_pAppExtParam; // À©Õ¹²ÎÊý CMBGridStyleAttrMgr2 *m_pGridStyleAttrMgr; CMBTNXXXXXXMgr *m_pQueryTN6XMgr; CMBTNXXXObjMgr *m_pQueryObjMgr; private: CMBFireListCtrl *m_pFireLst; CMBFireListAdapter *m_pFireLstAdapter; private: CMBFireCommomFtn *m_pFireCommomFtn; public: // ¹Ø±Õʱ void OnClose(); // ÓÃÀ´·´×¢²á£¬×Ô¶¨Òåʼþ void OnBtnSearch(); // ËÑË÷ void OnBtnToSearch(); // תÏòËÑË÷ void OnBtnConsistencyCheck(); // ±¾µØÊý¾Ý/·þÎñÆ÷¶ËÒ»ÖÂÐÔ¼ì²é void OnBtnSync(); // Êý¾Ýͬ²½ void OnBtnReSync(); // ÖØÐÂͬ²½ void OnEventKeyDownSearch(EventArgs *pEvt); // »Ø³µ protected: //bool OnEventLCDbClick(EventArgs *e); //souiÏûÏ¢ EVENT_MAP_BEGIN() EVENT_CHECK_SENDER_ROOT(m_pPageRoot) EVENT_NAME_COMMAND(_T("btn_fire_search"),OnBtnSearch) EVENT_NAME_COMMAND(_T("lk_fire_tosearch"),OnBtnToSearch) EVENT_NAME_COMMAND(_T("btn_fire_consistency_check"),OnBtnConsistencyCheck) EVENT_NAME_COMMAND(_T("btn_fire_sync"),OnBtnSync) EVENT_NAME_COMMAND(_T("btn_fire_resync"),OnBtnReSync) EVENT_NAME_HANDLER(_T("ed_fire_searchvalue"),EventKeyDown::EventID,OnEventKeyDownSearch) // EVENT_NAME_HANDLER(_T("lc_fire_obj"),EventLCDbClick::EventID,OnEventLCDbClick) EVENT_MAP_BREAK() public: void OnInit(SWindow *pRoot); public: bool SearchKey(CString &strErrInfo); public: void SetSvrMgr( CMBServerMgr *pSvrMgr ); void SetVaultExeConnect(CVaultExeConnect *pVaultExeConnect); void SetAppInfo( CMBBaseAppObj *pAppObj ); public: void InitDbData(); // ³õʼ»¯Db void SyncData(); // ͬ²½Êý¾Ý void SetWrapper( bool bSync,bool bSearch,bool bResult,bool bEmpty ); void InitUI(); private: void FireSyncData(); // Èí¼þÉÕÖÆÍ¬²½ bool IsSyncData(bool &bIsSync,CString strVersion,CString &strErrInfo); // ÊÇ·ñÄÜͬ²½Êý¾Ý public: bool OnEventFireProgress(EventArgs *e); bool OnEventFireSyncFinish(EventArgs *e); public: // TN_XXX_XXX bool IsExsitDataInTNXXXXXX(CString &strErrInfo); public: bool LoadHeader(); bool LoadLst(CMBTNXXXObjMgr *pObjMgr,CString strFilter = _T(""),CString strFilterValue = _T("") ); bool LoadLstByPro(CMBTNXXXObjMgr *pObjMgr,CString strFilter = _T(""),CString strFilterValue = _T("") ); // Éú²úÉÕÖÆ bool LoadLstBySpare(CMBTNXXXObjMgr *pObjMgr,CString strFilter = _T(""),CString strFilterValue = _T("") ); // ±¸¼þÉÕÖÆ bool SetVersion( CString strVersion,CString &strErrInfo ); public: void AddFilterCtl(); CMBAutoRadio *AddFilterItem( SWindow *pFilter,CString strValue ); void RemoveFilterAllItem( SWindow *pFilter ); void FilterData(CString strValue); // ¹ýÂËÊý¾Ý public: bool OnEventFilterClick(EventArgs *pEvt); public: bool GetLuaDealKey( CString strContent,CString &strLuaContent,CString &strErrInfo ); public: bool IsProFireType(); // ÅжÏÉÕÖÆÀàÐÍ bool ResetQueryUI(); // ¸´Î»²éѯ½çÃæ };