257 lines
7.8 KiB
C++
257 lines
7.8 KiB
C++
// 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("登录信息")
|
|
#define FUNC_INFO 1
|
|
#define FUNC_MANAGERC _T("操作员管理")
|
|
#define FUNC_MANAGER 2
|
|
#define FUNC_YWYC _T("业务员管理")
|
|
#define FUNC_YWY 3
|
|
#ifdef SMSMANAGER_KF
|
|
#define FUNC_CORPC _T("企业查询")
|
|
#else
|
|
#ifdef SMSCENTER_NX
|
|
#define FUNC_CORPC _T("企业用户管理")
|
|
#else
|
|
#define FUNC_CORPC _T("企业管理")
|
|
#endif
|
|
#endif
|
|
#define FUNC_USER 4
|
|
#define FUNC_SPC _T("增值业务")
|
|
#define FUNC_SP 5
|
|
#define FUNC_FILTC _T("过滤短语")
|
|
#define FUNC_FILT 6
|
|
#define FUNC_CHECKUPC _T("短信审查")
|
|
#define FUNC_CHECKUP 7
|
|
#define FUNC_TABC _T("帐单查询")
|
|
#define FUNC_TAB 8
|
|
#define FUNC_HZBC _T("汇总表")
|
|
#define FUNC_HZB 9
|
|
#define FUNC_LISTC _T("短信清单")
|
|
#define FUNC_LIST 10
|
|
#define FUNC_BACKC _T("黑名单")
|
|
#define FUNC_BACK 11
|
|
#define FUNC_WHITEC _T("白名单")
|
|
#define FUNC_WHITE 12
|
|
#define FUNC_OTHERC _T("其它设置")
|
|
#define FUNC_OTHER 13
|
|
#define FUNC_TSCMDC _T("指令设置")
|
|
#define FUNC_TSCMD 14
|
|
#define FUNC_AGENTC _T("代理商管理")
|
|
#define FUNC_AGENT 15
|
|
#define FUNC_KHCARDC _T("开户卡管理")
|
|
#define FUNC_KHCARD 16
|
|
#define FUNC_CJCARDC _T("充值卡管理")
|
|
#define FUNC_CJCARD 17
|
|
#define FUNC_SWTSQC _T("功能开通申请")
|
|
#define FUNC_SWTSQ 18
|
|
#define FUNC_BBSC _T("意见/建议")
|
|
#define FUNC_BBS 19
|
|
#define FUNC_PAYC _T("短信充值记录")
|
|
#define FUNC_PAY 20
|
|
#define FUNC_JCBC _T("结存表")
|
|
#define FUNC_JCB 21
|
|
#define FUNC_AGENTPAYC _T("代理短信充值记录")
|
|
#define FUNC_AGENTPAY 22
|
|
#define FUNC_TDBILLC _T("运营商帐单")
|
|
#define FUNC_TDBILL 23
|
|
#define FUNC_BBSAC _T("代理商消息")
|
|
#define FUNC_BBSA 24
|
|
#define FUNC_CMC _T("签名审核")
|
|
#define FUNC_CM 25
|
|
#define FUNC_BBSSC _T("系统消息")
|
|
#define FUNC_BBSS 26
|
|
#define FUNC_CORPSMSBC _T("卡类开通申请")
|
|
#define FUNC_CORPSMSB 27
|
|
#define FUNC_SENDLISTC _T("清单发送")
|
|
#define FUNC_SENDLIST 28
|
|
#define FUNC_FUNCPAYC _T("功能开通记录")
|
|
#define FUNC_FUNCPAY 29
|
|
#define FUNC_DZC _T("对帐查询")
|
|
#define FUNC_DZ 30
|
|
#define FUNC_MSGLISTC _T("内容查询")
|
|
#define FUNC_MSGLIST 31
|
|
#define FUNC_DBBC _T("发送量对比")
|
|
#define FUNC_DBB 32
|
|
#define FUNC_HTC _T("合同管理")
|
|
#define FUNC_HT 33
|
|
#define FUNC_AGENTCJC _T("代理酬金")
|
|
#define FUNC_AGENTCJ 34
|
|
#define FUNC_KFC _T("客服管理")
|
|
#define FUNC_KF 35
|
|
#define FUNC_YWMSGC _T("业务信息")
|
|
#define FUNC_YWMSG 36
|
|
#define FUNC_CMCCCJC _T("运营商酬金")
|
|
#define FUNC_CMCCCJ 37
|
|
#define FUNC_GROUPC _T("部门管理")
|
|
#define FUNC_GROUP 38
|
|
#define FUNC_GZMSGC _T("工资结算")
|
|
#define FUNC_GZMSG 39
|
|
#define FUNC_PAYTOUSERC _T("付款管理")
|
|
#define FUNC_PAYTOUSER 40
|
|
#define FUNC_MONPAYC _T("月结帐单")
|
|
#define FUNC_MONPAY 41
|
|
#define FUNC_YYSPAYC _T("酬金帐单")
|
|
#define FUNC_YYSPAY 42
|
|
#define FUNC_PARTNERC _T("合作伙伴管理")
|
|
#define FUNC_PARTNER 43
|
|
#define FUNC_COMMENDC _T("推荐用户")
|
|
#define FUNC_COMMEND 44
|
|
#define FUNC_FAXNUMC _T("传真号码管理")
|
|
#define FUNC_FAXNUM 45
|
|
#define FUNC_MMSPAYC _T("彩信充值记录")
|
|
#define FUNC_MMSPAY 46
|
|
#define FUNC_CHECKUPMMSC _T("彩信审查")
|
|
#define FUNC_CHECKUPMMS 47
|
|
#define FUNC_LISTMMSC _T("彩信清单")
|
|
#define FUNC_LISTMMS 48
|
|
#define FUNC_TDSETC _T("通道设置")
|
|
#define FUNC_TDSET 49
|
|
#define FUNC_TRANSCODESETC _T("交易码设置")
|
|
#define FUNC_TRANSCODESET 50
|
|
#define FUNC_NOSENDTIMESETC _T("禁发时段设置")
|
|
#define FUNC_NOSENDTIMESET 51
|
|
#define FUNC_SMSTASKC _T("短信任务审查")
|
|
#define FUNC_SMSTASK 52
|
|
#define FUNC_MMSTASKC _T("彩信任务审查")
|
|
#define FUNC_MMSTASK 53
|
|
#define FUNC_TEMPLATEC _T("短信模板审查")
|
|
#define FUNC_TEMPLATE 59
|
|
#define FUNC_DATATJERRC _T("校验错误信息")
|
|
#define FUNC_DATATJERR 54
|
|
#define FUNC_AGENTMMSPAYC _T("代理彩信充值记录")
|
|
#define FUNC_AGENTMMSPAY 55
|
|
#define FUNC_SFQUERYC _T("快递寄送查询")
|
|
#define FUNC_SFQUERY 56
|
|
#define FUNC_TDSET2C _T("通道绑定")
|
|
#define FUNC_TDSET2 57
|
|
#define FUNC_FPQUERYC _T("发票状态查询")
|
|
#define FUNC_FPQUERY 58
|
|
#define FUNC_SIGNNAMEC _T("短信签名审查")
|
|
#define FUNC_SIGNNAME 60
|
|
#define FUNC_ALLQUERY_CLIENTC _T("综合查询-客户")
|
|
#define FUNC_ALLQUERY_CLIENT 61
|
|
#define FUNC_ALLQUERY_REPORTC _T("综合查询-报表")
|
|
#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; //用户权限
|
|
BOOL m_bSOS;
|
|
|
|
protected:
|
|
long m_lCurFunc;
|
|
|
|
DLG_GZMsg_JL *m_pDlgJL; //用于激励分析
|
|
|
|
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 void OnQueryJL_InportMMDCount();
|
|
//}}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); //任务栏图标处理过程
|
|
|
|
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_)
|