SmsManager/MainFrm.h

256 lines
7.8 KiB
C
Raw Normal View History

2025-01-14 10:46:18 +08:00
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__CEF82432_6DFB_42E8_8519_BE47B5A8A792__INCLUDED_)
#define AFX_MAINFRM_H__CEF82432_6DFB_42E8_8519_BE47B5A8A792__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "GfxoutBar\GfxSplitterWnd.h"
#include "GfxoutBar\GfxOutBarCtrl.h"
#include "ProcessSocket.h"
#include "DLG_GZMsg_JL.h"
#define FUNC_INFOC _T("<22><>¼<EFBFBD><C2BC>Ϣ")
#define FUNC_INFO 1
#define FUNC_MANAGERC _T("<22><><EFBFBD><EFBFBD>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD>")
#define FUNC_MANAGER 2
#define FUNC_YWYC _T("ҵ<><D2B5>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD>")
#define FUNC_YWY 3
#ifdef SMSMANAGER_KF
#define FUNC_CORPC _T("<22><>ҵ<EFBFBD><D2B5>ѯ")
#else
#ifdef SMSCENTER_NX
#define FUNC_CORPC _T("<22><>ҵ<EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD>")
#else
#define FUNC_CORPC _T("<22><>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD>")
#endif
#endif
#define FUNC_USER 4
#define FUNC_SPC _T("<22><>ֵҵ<D6B5><D2B5>")
#define FUNC_SP 5
#define FUNC_FILTC _T("<22><><EFBFBD>˶<EFBFBD><CBB6><EFBFBD>")
#define FUNC_FILT 6
#define FUNC_CHECKUPC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_CHECKUP 7
#define FUNC_TABC _T("<22>ʵ<EFBFBD><CAB5><EFBFBD>ѯ")
#define FUNC_TAB 8
#define FUNC_HZBC _T("<22><><EFBFBD>ܱ<EFBFBD>")
#define FUNC_HZB 9
#define FUNC_LISTC _T("<22><><EFBFBD><EFBFBD><EFBFBD>嵥")
#define FUNC_LIST 10
#define FUNC_BACKC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_BACK 11
#define FUNC_WHITEC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_WHITE 12
#define FUNC_OTHERC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_OTHER 13
#define FUNC_TSCMDC _T("ָ<><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_TSCMD 14
#define FUNC_AGENTC _T("<22><><EFBFBD><EFBFBD><EFBFBD>̹<EFBFBD><CCB9><EFBFBD>")
#define FUNC_AGENT 15
#define FUNC_KHCARDC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_KHCARD 16
#define FUNC_CJCARDC _T("<22><>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_CJCARD 17
#define FUNC_SWTSQC _T("<22><><EFBFBD>ܿ<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>")
#define FUNC_SWTSQ 18
#define FUNC_BBSC _T("<22><><EFBFBD><EFBFBD>/<EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_BBS 19
#define FUNC_PAYC _T("<22><><EFBFBD>ų<EFBFBD>ֵ<EFBFBD><D6B5>¼")
#define FUNC_PAY 20
#define FUNC_JCBC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_JCB 21
#define FUNC_AGENTPAYC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ų<EFBFBD>ֵ<EFBFBD><D6B5>¼")
#define FUNC_AGENTPAY 22
#define FUNC_TDBILLC _T("<22><>Ӫ<EFBFBD><D3AA><EFBFBD>ʵ<EFBFBD>")
#define FUNC_TDBILL 23
#define FUNC_BBSAC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ")
#define FUNC_BBSA 24
#define FUNC_CMC _T("ǩ<><C7A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_CM 25
#define FUNC_BBSSC _T("ϵͳ<CFB5><CDB3>Ϣ")
#define FUNC_BBSS 26
#define FUNC_CORPSMSBC _T("<22><><EFBFBD>࿪ͨ<E0BFAA><CDA8><EFBFBD><EFBFBD>")
#define FUNC_CORPSMSB 27
#define FUNC_SENDLISTC _T("<22><EFBFBD><E5B5A5><EFBFBD><EFBFBD>")
#define FUNC_SENDLIST 28
#define FUNC_FUNCPAYC _T("<22><><EFBFBD>ܿ<EFBFBD>ͨ<EFBFBD><CDA8>¼")
#define FUNC_FUNCPAY 29
#define FUNC_DZC _T("<22><><EFBFBD>ʲ<EFBFBD>ѯ")
#define FUNC_DZ 30
#define FUNC_MSGLISTC _T("<22><><EFBFBD>ݲ<EFBFBD>ѯ")
#define FUNC_MSGLIST 31
#define FUNC_DBBC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD>")
#define FUNC_DBB 32
#define FUNC_HTC _T("<22><>ͬ<EFBFBD><CDAC><EFBFBD><EFBFBD>")
#define FUNC_HT 33
#define FUNC_AGENTCJC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_AGENTCJ 34
#define FUNC_KFC _T("<22>ͷ<EFBFBD><CDB7><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_KF 35
#define FUNC_YWMSGC _T("ҵ<><D2B5><EFBFBD><EFBFBD>Ϣ")
#define FUNC_YWMSG 36
#define FUNC_CMCCCJC _T("<22><>Ӫ<EFBFBD>̳<EFBFBD><CCB3><EFBFBD>")
#define FUNC_CMCCCJ 37
#define FUNC_GROUPC _T("<22><><EFBFBD>Ź<EFBFBD><C5B9><EFBFBD>")
#define FUNC_GROUP 38
#define FUNC_GZMSGC _T("<22><><EFBFBD>ʽ<EFBFBD><CABD><EFBFBD>")
#define FUNC_GZMSG 39
#define FUNC_PAYTOUSERC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_PAYTOUSER 40
#define FUNC_MONPAYC _T("<22>½<EFBFBD><C2BD>ʵ<EFBFBD>")
#define FUNC_MONPAY 41
#define FUNC_YYSPAYC _T("<22><><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD>")
#define FUNC_YYSPAY 42
#define FUNC_PARTNERC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_PARTNER 43
#define FUNC_COMMENDC _T("<22>Ƽ<EFBFBD><C6BC>û<EFBFBD>")
#define FUNC_COMMEND 44
#define FUNC_FAXNUMC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_FAXNUM 45
#define FUNC_MMSPAYC _T("<22><><EFBFBD>ų<EFBFBD>ֵ<EFBFBD><D6B5>¼")
#define FUNC_MMSPAY 46
#define FUNC_CHECKUPMMSC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_CHECKUPMMS 47
#define FUNC_LISTMMSC _T("<22><><EFBFBD><EFBFBD><EFBFBD>嵥")
#define FUNC_LISTMMS 48
#define FUNC_TDSETC _T("ͨ<><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_TDSET 49
#define FUNC_TRANSCODESETC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_TRANSCODESET 50
#define FUNC_NOSENDTIMESETC _T("<22><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_NOSENDTIMESET 51
#define FUNC_SMSTASKC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_SMSTASK 52
#define FUNC_MMSTASKC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_MMSTASK 53
#define FUNC_TEMPLATEC _T("<22><><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_TEMPLATE 59
#define FUNC_DATATJERRC _T("У<><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ")
#define FUNC_DATATJERR 54
#define FUNC_AGENTMMSPAYC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ų<EFBFBD>ֵ<EFBFBD><D6B5>¼")
#define FUNC_AGENTMMSPAY 55
#define FUNC_SFQUERYC _T("<22><><EFBFBD>ݼ<EFBFBD><DDBC>Ͳ<EFBFBD>ѯ")
#define FUNC_SFQUERY 56
#define FUNC_TDSET2C _T("ͨ<><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_TDSET2 57
#define FUNC_FPQUERYC _T("<22><>Ʊ״̬<D7B4><CCAC>ѯ")
#define FUNC_FPQUERY 58
#define FUNC_SIGNNAMEC _T("<22><><EFBFBD><EFBFBD>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_SIGNNAME 60
#define FUNC_ALLQUERY_CLIENTC _T("<22>ۺϲ<DBBA>ѯ-<2D>ͻ<EFBFBD>")
#define FUNC_ALLQUERY_CLIENT 61
#define FUNC_ALLQUERY_REPORTC _T("<22>ۺϲ<DBBA>ѯ-<2D><><EFBFBD><EFBFBD>")
#define FUNC_ALLQUERY_REPORT 62
#define SHELL_ICON_MESS WM_USER+260
class CUserView;
class CInfoView;
class CMainFrame : public CFrameWnd
{
public:
long m_lUserID;
SM_Setup m_Setup;
CProcessSocket m_Socket;
CUserView * m_pUserView;
ULONG m_ulPurview; //<2F>û<EFBFBD>Ȩ<EFBFBD><C8A8>
BOOL m_bSOS;
protected:
long m_lCurFunc;
DLG_GZMsg_JL *m_pDlgJL; //<2F><><EFBFBD>ڼ<EFBFBD><DABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
//}}AFX_VIRTUAL
// Implementation
public:
void ShowCheckUpDlg();
void SetStatMsg( TCHAR * pMsg );
BOOL ProcessSocket(Socket_Head_Add *pHead,BYTE* pFrame);
BOOL ProcessSocket(Socket_Head *pHead);
BOOL GetUserPurview( ULONG ulPurview ,BOOL bShowWarning=true);
BOOL SendFrame( DWORD lFuncType , unsigned char * pFrame , unsigned long lFrameLen );
//BOOL SendFrameEx( DWORD lFuncType , unsigned char * pFrame , unsigned long lFrameLen );
BOOL ShowFuncDlg( long lIndex );
BOOL ChangeView( long lIndex );
void GetCurrentPath(TCHAR *pPath);
void CreateNullSetup();
void SaveSetup();
void ReadSetup();
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
CStatusBar m_wndStatusBar;
// CToolBar m_wndToolBar;
CGfxSplitterWnd m_wndSplitter;
CGfxOutBarCtrl m_wndBar;
CImageList m_imaLarge;
CImageList m_imaSmall;
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnModifyPasswd();
afx_msg void OnWarningSetup();
afx_msg void OnWxWorkSetup();
afx_msg void OnBackData();
afx_msg void OnUpdateBackData(CCmdUI* pCmdUI);
afx_msg void OnReboot();
afx_msg void OnUpdateReboot(CCmdUI* pCmdUI);
afx_msg void OnDog();
afx_msg void OnUpdateDog(CCmdUI* pCmdUI);
afx_msg void OnQzsmstd();
afx_msg void OnUpdateQzsmstd(CCmdUI* pCmdUI);
afx_msg void OnUpdateClismstd(CCmdUI* pCmdUI);
afx_msg void OnClismstd();
afx_msg void OnQueryJL();
//}}AFX_MSG
afx_msg long OnOutbarNotify(WPARAM wParam, LPARAM lParam);
afx_msg LONG ProcessSocket_Error( WPARAM wParam , LPARAM lParam );
afx_msg LONG ProcessSocket_Frame( WPARAM wParam , LPARAM lParam );
afx_msg LONG OnShellIconMess(WPARAM wParam, LPARAM lParam); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ<EFBFBD><EFBFBD><EAB4A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__CEF82432_6DFB_42E8_8519_BE47B5A8A792__INCLUDED_)