AgentManager/MainFrm.h

220 lines
6.1 KiB
C
Raw Normal View History

2025-01-22 15:45:17 +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_TJVipInt.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_CORPC _T("<22><>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD>")
#define FUNC_USER 3
#define FUNC_SPC _T("<22><>ֵҵ<D6B5><D2B5>")
#define FUNC_SP 4
#define FUNC_FILTC _T("<22><><EFBFBD>˶<EFBFBD><CBB6><EFBFBD>")
#define FUNC_FILT 5
#define FUNC_CHECKUPC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_CHECKUP 6
#define FUNC_TABC _T("<22>ʵ<EFBFBD><CAB5><EFBFBD>ѯ")
#define FUNC_TAB 7
#define FUNC_HZBC _T("<22><><EFBFBD>ܱ<EFBFBD>")
#define FUNC_HZB 8
#define FUNC_LISTC _T("<22><EFBFBD><E5B5A5>ѯ")
#define FUNC_LIST 9
#define FUNC_BACKC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_BACK 10
#define FUNC_OTHERC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_OTHER 11
#define FUNC_TSCMDC _T("ָ<><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_TSCMD 12
#define FUNC_AGENTC _T("<22><><EFBFBD><EFBFBD><EFBFBD>̹<EFBFBD><CCB9><EFBFBD>")
#define FUNC_AGENT 13
#define FUNC_KHCARDC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_KHCARD 14
#define FUNC_CJCARDC _T("<22><>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_CJCARD 15
#define FUNC_SWTSQC _T("<22><><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>")
#define FUNC_SWTSQ 16
#define FUNC_BBSC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ")
#define FUNC_BBS 17
#define FUNC_PAYC _T("<22><>ҵ<EFBFBD><D2B5>ֵ<EFBFBD><D6B5>¼")
#define FUNC_PAY 18
#define FUNC_JCBC _T("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_JCB 19
#define FUNC_USERC _T("<22>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_USER2 20
#define FUNC_BBSUC _T("<22>û<EFBFBD><C3BB><EFBFBD>Ϣ")
#define FUNC_BBSU 21
#define FUNC_MYPAYC _T("<22>ҵij<D2B5>ֵ<EFBFBD><D6B5>¼")
#define FUNC_MYPAY 22
#define FUNC_CORP_N 23
#define FUNC_CORP_NC _T("<22><><EFBFBD><EFBFBD><EFBFBD>ͻ<EFBFBD>")
#define FUNC_CORP_1 24
#define FUNC_CORP_1C _T("1<><31><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7><EFBFBD><EFBFBD>")
#define FUNC_CORP_2 25
#define FUNC_CORP_2C _T("2<><32><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7><EFBFBD><EFBFBD>")
#define FUNC_CORP_C 26
#define FUNC_CORP_CC _T("<22><><EFBFBD><EFBFBD>ʧ<EFBFBD>ͻ<EFBFBD>")
#define FUNC_CORP_H 27
#define FUNC_CORP_HC _T("<22><>Ҫ<EFBFBD>طÿͻ<C3BF>\r\nһ<6E><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_YWMSG 28
#define FUNC_YWMSGC _T("ҵ<><D2B5><EFBFBD><EFBFBD>Ϣ")
#define FUNC_CORP_H2 29
#define FUNC_CORP_H2C _T("<22><>Ҫ<EFBFBD>طÿͻ<C3BF>\r\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
#define FUNC_CORP_A 30
#define FUNC_CORP_AC _T("<22><><EFBFBD>пͻ<D0BF>")
#define FUNC_GZMSGC _T("ҵ<><D2B5><EFBFBD><EFBFBD>Ϣ")
#define FUNC_GZMSG 31
#define FUNC_CORP_QXT 32
#define FUNC_CORP_QXTC _T("<22><><EFBFBD><EFBFBD>ͨ<EFBFBD>ͻ<EFBFBD>")
#define FUNC_CORP_MAS 33
#define FUNC_CORP_MASC _T("MAS<41>ͻ<EFBFBD>")
#define FUNC_CORP_HNEW 34
#define FUNC_CORP_HNEWC _T("<22><>Ҫ<EFBFBD>طÿͻ<C3BF>\r\n<>¿ͻ<C2BF><CDBB>״λط<CEBB>")
#define FUNC_CORP_HNEW2 35
#define FUNC_CORP_HNEW2C _T("<22><>Ҫ<EFBFBD>طÿͻ<C3BF>\r\n<>¿ͻ<C2BF><CDBB><EFBFBD><EFBFBD>λط<CEBB>")
#define FUNC_CORP_HNEED 36
#define FUNC_CORP_HNEEDC _T("<22><>Ҫ<EFBFBD>طÿͻ<C3BF>\r\n<>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD>Ŀͻ<C4BF>")
#define FUNC_FPQUERY 37
#define FUNC_FPQUERYC _T("δ<><CEB4>Ʊ<EFBFBD><C6B1>ѯ")
#define FUNC_SFQUERY 38
#define FUNC_SFQUERYC _T("<22><><EFBFBD>ݼ<EFBFBD><DDBC>Ͳ<EFBFBD>ѯ")
#define FUNC_ALLQUERY_REPORT 39
#define FUNC_ALLQUERY_REPORTC _T("<22>ۺϲ<DBBA>ѯ-<2D><><EFBFBD><EFBFBD>")
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>
long m_lType; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
BOOL m_bYJ; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>YJȨ<4A><C8A8>
CString m_strAgentName;
CString m_strSName;
BOOL m_bTest;
BOOL m_bSOS;
//CButton m_B_CJ;
BOOL m_bInit;
//CString m_strTEXT;
//CString m_strHTML;
//long m_lGDText;
float m_fUsed; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,ʵʱ<CAB5><CAB1><EFBFBD>µ<EFBFBD>
long m_lMmsUsed;
long m_lAddCorpCount;
long m_lAddedCorp;
DWORD m_dwLastCMTime; //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><E1BDBB><EFBFBD><EFBFBD>ǩ<EFBFBD><C7A9>ʱ<EFBFBD><CAB1>
DLG_TJVipInt * m_pTJVipInt;
protected:
long m_lCurFunc;
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 GDText();
void GetGGMsg();
void SetStatMsg( const TCHAR * pMsg );
BOOL ProcessSocket(Socket_Head *pHead);
BOOL GetUserPurview( ULONG ulPurview ,BOOL bShowWarning=true);
BOOL SendFrame( 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 OnBackData();
afx_msg void OnUpdateBackData(CCmdUI* pCmdUI);
afx_msg void OnReboot();
afx_msg void OnUpdateReboot(CCmdUI* pCmdUI);
afx_msg void OnSmshelp();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnTGg();
afx_msg void OnTjvipint();
//}}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 );
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_)