使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 0408576e9da10015ffa9da0079b8c985113ce4b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#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();  // ¸´Î»²éѯ½çÃæ
};