#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;
|