137 lines
3.2 KiB
C++
137 lines
3.2 KiB
C++
#if !defined(AFX_TABDLG_H__507EFD85_FCBF_46BF_98FD_1D688F2030EA__INCLUDED_)
|
|
#define AFX_TABDLG_H__507EFD85_FCBF_46BF_98FD_1D688F2030EA__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// TabDlg.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CTabDlg dialog
|
|
#include "..\public\reportctrl\ReportCtrl.h"
|
|
|
|
|
|
#define MENU_TAB_COPY WM_USER + 340
|
|
#define MENU_TAB_COPYEX WM_USER + 341
|
|
|
|
class CMainFrame;
|
|
class CProcessSocket;
|
|
typedef CTypedPtrList<CPtrList, ANS_Corp_NameData*> CCorpName;
|
|
typedef CTypedPtrList<CPtrList, ANS_Agent_NameData*> CAgentName;
|
|
class CTabDlg : public CDialog
|
|
{
|
|
protected:
|
|
CMainFrame * m_pMainFrame;
|
|
CProcessSocket * m_pSocket;
|
|
CImageList m_Image;
|
|
CCorpName m_Corp;
|
|
CAgentName m_Agent;
|
|
|
|
BOOL m_bRefresh;
|
|
BOOL m_bInit; //是否已初始化
|
|
|
|
long m_lQueryAgentID;
|
|
long m_bQueryAll;
|
|
long m_lAllSend;
|
|
long m_lAllRecv;
|
|
long m_lCurCorpID;
|
|
long m_lQueryCurCorpID;
|
|
|
|
//查询汇总内容
|
|
long lSmsCount;
|
|
long lSmsCountIndex;
|
|
long lSendCount;
|
|
long lSendCountIndex;
|
|
long lReportSucessCount;
|
|
long lReportSucessCountIndex;
|
|
long lReportFailCount;
|
|
long lReportFailCountIndex;
|
|
long lFailPerIndex;
|
|
|
|
long lMmsSmsCount;
|
|
long lMmsSmsCountIndex;
|
|
long lMmsSendCount;
|
|
long lMmsSendCountIndex;
|
|
long lMmsReportSucessCount;
|
|
long lMmsReportSucessCountIndex;
|
|
long lMmsReportFailCount;
|
|
long lMmsReportFailCountIndex;
|
|
long lMmsFailPerIndex;
|
|
|
|
long lOldIndex;
|
|
long lAddIndex;
|
|
long lUsedIndex;
|
|
long lMmsOldIndex;
|
|
long lMmsAddIndex;
|
|
long lMmsUsedIndex;
|
|
CString m_strCurName;
|
|
// Construction
|
|
public:
|
|
BOOL ProcessSocket(Socket_Head_Add *pHead, BYTE *pFrame);
|
|
void QueryNext();
|
|
void Close_Corp();
|
|
void Close_Agent();
|
|
void ShowRMenu();
|
|
void Close();
|
|
BOOL ProcessSocket(Socket_Head *pHead);
|
|
BOOL RefreshInfo();
|
|
BOOL ReHide();
|
|
BOOL ReShow(BOOL bRefresh=false);
|
|
CTabDlg(CWnd* pParent = NULL); // standard constructor
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CTabDlg)
|
|
enum { IDD = IDD_TAB };
|
|
CEdit m_E_AgentID;
|
|
CComboBox m_L_Agent;
|
|
CEdit m_E_CorpID;
|
|
CButton m_B_Old;
|
|
CComboBox m_L_Corp;
|
|
CButton m_S_S1;
|
|
CReportCtrl m_wndList;
|
|
int m_lCorp;
|
|
COleDateTime m_tBegin;
|
|
COleDateTime m_tEnd;
|
|
int m_lMobileType;
|
|
BOOL m_bOld;
|
|
int m_lAgent;
|
|
SYSTEMTIME m_tQueryBegin;
|
|
SYSTEMTIME m_tQueryEnd;
|
|
BOOL m_bQueryJCB;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CTabDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CTabDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
|
afx_msg void OnTabQuery();
|
|
afx_msg void OnTabOld();
|
|
afx_msg void OnTabQuery2();
|
|
afx_msg void OnRclickTabList(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnTabQuery3();
|
|
afx_msg void OnTabQuery4();
|
|
//}}AFX_MSG
|
|
afx_msg void On_User_Copy();
|
|
afx_msg void On_User_CopyEx();
|
|
DECLARE_MESSAGE_MAP()
|
|
public:
|
|
BOOL m_bJCB;
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_TABDLG_H__507EFD85_FCBF_46BF_98FD_1D688F2030EA__INCLUDED_)
|