195 lines
6.0 KiB
C++
195 lines
6.0 KiB
C++
#if !defined(AFX_K_AGENT_H__33C544E5_CFE6_4876_B23E_D4391D0B3651__INCLUDED_)
|
|
#define AFX_K_AGENT_H__33C544E5_CFE6_4876_B23E_D4391D0B3651__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// K_Agent.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CK_Agent dialog
|
|
|
|
#include "..\public\reportctrl\ReportCtrl.h"
|
|
#include "DLG_Corp_File.h"
|
|
#include "DLG_Corp_Analyse.h"
|
|
#include "DLG_Corp_Transfer.h"
|
|
|
|
|
|
class CMainFrame;
|
|
class CProcessSocket;
|
|
class DLG_Corp_LXR;
|
|
class DLG_Corp_FP;
|
|
class DLG_Corp_SF;
|
|
|
|
#define MENU_AGENT_ADD WM_USER + 350
|
|
#define MENU_AGENT_MODIFY WM_USER + 351
|
|
#define MENU_AGENT_DEL WM_USER + 352
|
|
#define MENU_AGENT_JF WM_USER + 353
|
|
#define MENU_AGENT_REFRESH WM_USER + 354
|
|
#define MENU_AGENT_BZ_MAN WM_USER + 355
|
|
#define MENU_AGENT_BZ_YWY WM_USER + 356
|
|
#define MENU_AGENT_HS WM_USER+357
|
|
#define MENU_AGENT_PAYTOUSER WM_USER+358
|
|
#define MENU_AGENT_FILE WM_USER+359
|
|
#define MENU_AGENT_LXR WM_USER + 360
|
|
#define MENU_AGENT_MMSPAY WM_USER + 361 //彩信充值
|
|
#define MENU_AGENT_FP WM_USER + 362
|
|
#define MENU_AGENT_SF WM_USER + 363
|
|
#define MENU_AGENT_ANALYSE WM_USER + 364
|
|
#define MENU_AGENT_QUERYBAKAGENT WM_USER + 365
|
|
|
|
#define MENU_AGENT_OPER_OPEN WM_USER + 390
|
|
#define MENU_AGENT_OPER_CLOSE WM_USER + 391
|
|
#define MENU_AGENT_OPER_YWY WM_USER + 392
|
|
#define MENU_AGENT_OPER_ADDCOUNT WM_USER + 393
|
|
#define MENU_AGENT_OPER_HTSEND WM_USER + 394
|
|
#define MENU_AGENT_OPER_HTRECV WM_USER + 395
|
|
#define MENU_AGENT_OPER WM_USER + 396
|
|
#define MENU_AGENT_OPER_REGTIME WM_USER + 397
|
|
#define MENU_AGENT_OPER_PRICEONE WM_USER + 398
|
|
#define MENU_AGENT_OPER_TCPER WM_USER + 399
|
|
#define MENU_AGENT_OPER_MMSPRICEONE WM_USER + 340
|
|
#define MENU_AGENT_OPER_CLOSECLI WM_USER + 341
|
|
#define MENU_AGENT_OPER_AGENTNAME WM_USER + 342
|
|
#define MENU_AGENT_OPER_RESETPASSWD WM_USER + 343
|
|
|
|
|
|
//账务辅助单
|
|
#define MENU_AGENT_ASSIST_EXTENSION WM_USER+550 //企业延期
|
|
#define MENU_AGENT_ASSIST_SMSTRANSFER WM_USER+551 //短信互转
|
|
#define MENU_AGENT_ASSIST_MMSTRANSFER WM_USER+552 //短信互转
|
|
#define MENU_AGENT_ASSIST_SMSMMSTRANSFER WM_USER+553 //短彩互转
|
|
#define MENU_AGENT_ASSIST_EXPIRYRECYCLING WM_USER+554 //过期回收
|
|
|
|
|
|
|
|
typedef CTypedPtrList<CPtrList, ANS_Agent_SeeData*> CAgent;
|
|
typedef CTypedPtrList<CPtrList, ANS_YWY_NameData*> CYWYName;
|
|
class CK_Agent : public CDialog
|
|
{
|
|
public:
|
|
CYWYName m_YWY;
|
|
CMainFrame * m_pMainFrame;
|
|
|
|
protected:
|
|
CProcessSocket * m_pSocket;
|
|
CImageList m_Image;
|
|
|
|
CAgent m_Agent;
|
|
|
|
BOOL m_bRefresh;
|
|
BOOL m_bInit; //是否已初始化
|
|
BOOL m_bModify;
|
|
|
|
long m_lQueryType2; //查询类型
|
|
|
|
DLG_Corp_File *m_pDlgFile; //用于文件管理
|
|
DLG_Corp_LXR *m_pLXRDlg; //用于顺丰下单
|
|
DLG_Corp_FP *m_pFPDlg; //用于顺丰下单
|
|
DLG_Corp_SF *m_pSFDlg; //用于顺丰下单
|
|
DLG_Corp_Analyse *m_pAnalyseDlg; //用于统计分析
|
|
DLG_Corp_Transfer* m_pTransferDlg; //用于转移短信量
|
|
// Construction
|
|
public:
|
|
void On_User_Assist_Transfer(long lSProduct, long lTProduct);
|
|
void On_User_Oper_TCPer();
|
|
CString GetName_YWY(long lYWYID);
|
|
void ReShowUser();
|
|
void Close_YWY();
|
|
void Close_Agent();
|
|
BOOL FindLoginName(const TCHAR *pLoginName, POSITION exPos);
|
|
long GetCurrentSelected();
|
|
void ShowRMenu();
|
|
BOOL FindAgentame(const TCHAR *pAgentName, POSITION exPos);
|
|
void SetLockItem(long lItem, BOOL bLock);
|
|
BOOL isLockItem(long lItem, BOOL bShowWarning=true);
|
|
BOOL ProcessSocket(Socket_Head *pHead);
|
|
BOOL ProcessSocket(Socket_Head_Add *pHead,BYTE* pFrame);
|
|
BOOL ReShow(BOOL bRefresh=false);
|
|
BOOL ReHide();
|
|
void Close();
|
|
BOOL RefreshInfo();
|
|
CK_Agent(CWnd* pParent = NULL); // standard constructor
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CK_Agent)
|
|
enum { IDD = IDD_AGENT };
|
|
CEdit m_E_YWYID;
|
|
CComboBox m_L_YWY;
|
|
CEdit m_E_AgentID;
|
|
CButton m_S_S1;
|
|
CReportCtrl m_wndList;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CK_Agent)
|
|
public:
|
|
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CK_Agent)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
|
afx_msg void OnDblclkAgentList(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnRclickAgentList(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnKeydownAgentList(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnAgentQuery();
|
|
afx_msg void OnAgentQuery2();
|
|
afx_msg void OnSelchangeAgentYwy();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
afx_msg void On_Agent_Add();
|
|
afx_msg void On_Agent_Modify();
|
|
afx_msg void On_Agent_Del();
|
|
afx_msg void On_Agent_Pay();
|
|
afx_msg void On_Agent_MmsPay();
|
|
afx_msg void On_Agent_Refresh();
|
|
afx_msg void On_Agent_BZ_Man();
|
|
afx_msg void On_Agent_BZ_YWY();
|
|
afx_msg void On_Agent_HS();
|
|
afx_msg void On_Agent_PayToUser();
|
|
afx_msg void On_Agent_File();
|
|
afx_msg void On_Agent_LXR();
|
|
afx_msg void On_Agent_FP();
|
|
afx_msg void On_Agent_SF();
|
|
|
|
afx_msg void On_User_Oper_Open();
|
|
afx_msg void On_User_Oper_Close();
|
|
afx_msg void On_User_Oper_YWY();
|
|
afx_msg void On_User_Oper_AddCount();
|
|
afx_msg void On_User_Oper();
|
|
afx_msg void On_User_Oper_HTSend();
|
|
afx_msg void On_User_Oper_HTRecv();
|
|
afx_msg void On_User_Oper_RegTime();
|
|
afx_msg void On_User_Oper_PriceOne();
|
|
afx_msg void On_User_Oper_MmsPriceOne();
|
|
afx_msg void On_User_Oper_CloseCLI();
|
|
afx_msg void On_Agent_Analyse();
|
|
afx_msg void On_Agent_QueryBackAgent();
|
|
afx_msg void On_User_Oper_AgentName();
|
|
afx_msg void On_User_Oper_ResetPasswd();
|
|
|
|
afx_msg void On_User_Assist_Extension();
|
|
afx_msg void On_User_Assist_SmsTransfer();
|
|
afx_msg void On_User_Assist_MmsTransfer();
|
|
afx_msg void On_User_Assist_SmsMmsTransfer();
|
|
afx_msg void On_User_Assist_ExpiryRecycling();
|
|
|
|
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_K_AGENT_H__33C544E5_CFE6_4876_B23E_D4391D0B3651__INCLUDED_)
|