使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 4905e2e7537d507f218e8e9595485e09d9f3a2b4
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
#pragma once
 
#include "OIBase.h"
 
class CSTKExtWebCMgr;
class CSTKExtWebCAsynMgr;
 
// ²Ù×÷·½·¨¶¨Òå
// µÇ¼½çÃæ²Ù×÷£¬1 ¡« 99
#define    METHOD_LOGINUI_SET                ( 1 )        // ÉèÖõǼ½çÃæ
#define    METHOD_LOGINUI_GET                ( 2 )        // µÃµ½µÇ¼½çÃæ
 
// ²åÒ³²Ù×÷ £¬11 ¡« 19
#define    METHOD_VIEW_GETLIST                ( 11 )        // µÃµ½²åÒ³Áбí
#define    METHOD_VIEW_CREATE                ( 12 )        // ´´½¨²åÒ³
#define    METHOD_VIEW_UPDATE                ( 13 )        // ¸üвåÒ³
#define    METHOD_VIEW_GETINFO                ( 14 )        // µÃµ½²åÒ³ÐÅÏ¢
#define    METHOD_VIEW_DELETE                ( 15 )        // É¾³ý²åÒ³
#define    METHOD_VIEW_GETUNITPACK            ( 16 )        // µÃµ½µ¥Î»µÄ²åÒ³°ü
 
// ÏûÏ¢²ßÂÔ²Ù×÷£¬21 ¡« 39
#define    METHOD_MSGTACTICS_GETLIST            ( 21 )        // µÃµ½ÏûÏ¢²ßÂÔÁбí
#define    METHOD_MSGTACTICS_CREATE            ( 22 )        // ´´½¨ÏûÏ¢²ßÂÔ
#define    METHOD_MSGTACTICS_UPDATE            ( 23 )        // ¸üÐÂÏûÏ¢²ßÂÔ
#define    METHOD_MSGTACTICS_DELETE            ( 24 )        // É¾³ýÏûÏ¢²ßÂÔ
// ---------------------------
#define    METHOD_MSGTACTICS_SETEM                ( 31 )        // ÉèÖòßÂÔÊÜÏÞÃûµ¥
#define    METHOD_MSGTACTICS_GETEM                ( 32 )        // µÃµ½²ßÂÔÊÜÏÞÃûµ¥
#define    METHOD_MSGTACTICS_ADDEM                ( 33 )        // Ôö¼Ó²ßÂÔÊÜÏÞÈËÔ±
#define    METHOD_MSGTACTICS_REMOVEEM            ( 34 )        // ÒƳý²ßÂÔÊÜÏÞÈËÔ±
// ----------------------------
#define    METHOD_MSGTACTICS_GETPROHIBITLIST    ( 35 )        // µÃµ½µ±Ç°Óû§µÄÊÜÏÞÈËÔ±Áбí
 
// »¶Ó­½çÃæ²Ù×÷£¬41 ¡« 49
#define    METHOD_WELCOME_SETINFO                ( 41 )        // ÉèÖû¶Ó­½çÃæ
#define    METHOD_WELCOME_GETINFO                ( 42 )        // µÃµ½»¶Ó­½çÃæÐÅÏ¢
// ---------------------------
#define    METHOD_WELCOME_GETAPPLYURL            ( 43 )        // µÃµ½»¶Ó­½çÃæÓ¦ÓÃURL  -- ÓÃÓÚʹÓã¬Ö»·µ»ØÓÐЧµÄÄÚÈÝ
 
// À©Õ¹Ó¦ÓòÙ×÷£¬51 ¡« 69
#define    METHOD_EXTAPPGROUP_GETLIST            ( 51 )        // µÃµ½Ó¦ÓÃ×éÁбí
#define    METHOD_EXTAPPGROUP_ADD                ( 52 )        // Ôö¼ÓÓ¦ÓÃ×é
#define    METHOD_EXTAPPGROUP_UPDATE            ( 53 )        // ¸üÐÂÓ¦ÓÃ×é
#define    METHOD_EXTAPPGROUP_DELETE            ( 54 )        // É¾³ýÓ¦ÓÃ×é
// ---------------------------
#define    METHOD_EXTAPPDEF_GETLIST            ( 55 )        // µÃµ½·Ö×éϵÄÓ¦Óö¨ÒåÁбí
#define    METHOD_EXTAPPDEF_CREATE                ( 56 )        // ´´½¨Ó¦Óö¨Òå
#define    METHOD_EXTAPPDEF_UPDATE                ( 57 )        // ¸üÐÂÓ¦Óö¨Òå
#define    METHOD_EXTAPPDEF_DELETE                ( 58 )        // É¾³ýÓ¦Óö¨Òå
#define    METHOD_EXTAPPDEF_MOVE                ( 59 )        // Òƶ¯Ó¦Óö¨ÒåÖÁзÖ×é
// ---------------------------
#define    METHOD_EXTAPPDEF_SETACE                ( 60 )        // ÉèÖÃÓ¦Óö¨ÒåȨÏÞ
#define    METHOD_EXTAPPDEF_GETACE                ( 61 )        // µÃµ½Ó¦Óö¨ÒåȨÏÞ
#define    METHOD_EXTAPPDEF_GETUSABLELIST        ( 62 )        // µÃµ½Óû§×ÔÉí¿ÉÒÔʹÓõÄÓ¦Óö¨Ò壬°´·Ö×é
 
// STK Ïà¹Ø²Ù×÷£¬71 ¡« 79
#define    METHOD_STK_GETUNREADMSGLIST            ( 71 )        // µÃµ½Óû§Î´¶ÁÏûÏ¢Áбí
 
 
// CTransItem command target
 
class AFX_EXT_CLASS CTransItem : public COIBase
{
public:
    CTransItem();
    virtual ~CTransItem();
 
// Attributers
public:
    UINT            m_nTrID;                // Trans ID
    CString            m_strMethod;            // ²Ù×÷·½·¨£¬ÓÃÓÚ·µ»Ø¸øµ÷Ó÷½
    UINT            m_nMethod;                // ²Ù×÷·½·¨£¬ÓÃÓÚÅжÏÊÇÄĸö²Ù×÷
    CSTKExtWebCMgr    *m_pmgrSTKExtWebC;
    HWND            m_hOwnerWnd;            // ÏûÏ¢½ÓÊÕ´°¿Ú¾ä±ú
 
    CString            m_strAppType;
 
    // Ïß³Ì
    HANDLE            m_hThread;
    unsigned int    m_dwThreadID;
 
    // µ÷ÓõIJÎÊý
    CStringArray    m_asParam;
 
    // ¹ÜÀíÀà
    CSTKExtWebCAsynMgr    *m_pAsynMgr;
 
// Operations
public:
    CString        GetErrInfo();
    void        CallMethod();
 
protected:
    //=================================================================================
    // µÇ¼½çÃæ²Ù×÷
    int            LoginUI_Set( CString &strResult );
    int            LoginUI_Get( CString &strResult );
 
    //=================================================================================
    // ²åÒ³²Ù×÷
    int            View_GetList( CString &strResult );
    int            View_Create( CString &strResult );
    int            View_Update( CString &strResult );
    int            View_GetInfo( CString &strResult );
    int            View_Delete( CString &strResult );
    int            View_GetUnitPack( CString &strResult );
 
    //=================================================================================
    // ÏûÏ¢²ßÂÔ²Ù×÷
    int            MsgTactics_GetList( CString &strResult );
    int            MsgTactics_Create( CString &strResult );
    int            MsgTactics_Update( CString &strResult );
    int            MsgTactics_Delete( CString &strResult );
    int            MsgTactics_SetEm( CString &strResult );
    int            MsgTactics_GetEm( CString &strResult );
    int            MsgTactics_AddEm( CString &strResult );
    int            MsgTactics_RemoveEm( CString &strResult );
    int            MsgTactics_GetProhibitList( CString &strResult );
 
    //=================================================================================
    // ÏûÏ¢²ßÂÔ²Ù×÷
    int            Welcome_SetInfo( CString &strResult );
    int            Welcome_GetInfo( CString &strResult );
    int            Welcome_GetApplyURL( CString &strResult );
 
    //=================================================================================
    // À©Õ¹Ó¦ÓòÙ×÷
    int            ExtAppGroup_GetList( CString &strResult );
    int            ExtAppGroup_Add( CString &strResult );
    int            ExtAppGroup_Update( CString &strResult );
    int            ExtAppGroup_Delete( CString &strResult );
    int            ExtAppDef_GetList( CString &strResult );
    int            ExtAppDef_Create( CString &strResult );
    int            ExtAppDef_Update( CString &strResult );
    int            ExtAppDef_Delete( CString &strResult );
    int            ExtAppDef_Move( CString &strResult );
    int            ExtAppDef_SetAce( CString &strResult );
    int            ExtAppDef_GetAce( CString &strResult );
    int            ExtAppDef_GetUsableList( CString &strResult );
 
    //=================================================================================
    // STK²Ù×÷
    int            STK_GetUnreadMsgList( CString &strResult );
 
};
 
typedef map<UINT, COIBasePtr<CTransItem> >        CTransMap;