SmsManager/C_Commend.h
2025-01-14 10:46:18 +08:00

111 lines
3.0 KiB
C++

#if !defined(AFX_C_Commend_H__2CF79CF3_33E1_45BE_917B_83E05A172D73__INCLUDED_)
#define AFX_C_Commend_H__2CF79CF3_33E1_45BE_917B_83E05A172D73__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// C_Commend.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CC_Commend dialog
//#define MENU_COMMEND_ADD WM_USER+200 //添加管理员
#define MENU_COMMEND_SEE WM_USER+201 //查看
#define MENU_COMMEND_STATUS WM_USER+202 //删除
#define MENU_COMMEND_REMSG WM_USER+203 //删除
#define MENU_COMMEND_REFRESH WM_USER+204 //删除
#include "..\public\reportctrl\ReportCtrl.h"
#include "DLG_Process.h"
#include "TabDlg.h"
#include "DLG_C_Commend_Modify.h"
#include "DLG_C_COmmend_Status.h"
class CMainFrame;
class CProcessSocket;
typedef CTypedPtrList<CPtrList, ANS_GetCommendData*> CCommend;
class CC_Commend : public CDialog
{
public:
CMainFrame * m_pMainFrame;
CProcessSocket * m_pSocket;
CImageList m_Image;
CCommend m_Commend;
CYWYName m_YWY;
CCorpName m_Corp;
DLG_C_COmmend_Status * m_pCommend_Status;
BOOL m_bRefresh;
BOOL m_bInit; //是否已初始化
// Construction
public:
void ReShowUser();
void Close_Corp();
BOOL ProcessSocket(Socket_Head *pHead);
void Close_YWY();
void Close_Commend();
BOOL FindCommendName(const TCHAR *pName, POSITION exPos);
void ShowRMenu();
BOOL ProcessSocket(Socket_Head_Add *pHead,BYTE* pFrame);
BOOL isLockItem(long lItem, BOOL bShowWarning=true);
long GetCurrentSelected();
void SetLockItem(long lItem,BOOL bLock);
BOOL ReHide();
BOOL ReShow(BOOL bRefresh=false);
void Close();
BOOL RefreshInfo();
CC_Commend(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CC_Commend)
enum { IDD = IDD_C_COMMEND };
CComboBox m_L_Type;
CComboBox m_L_Corp;
CEdit m_E_CorpID;
CButton m_S_S1;
CReportCtrl m_wndList;
COleDateTime m_tBegin;
COleDateTime m_tEnd;
int m_lCorp;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CC_Commend)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CC_Commend)
virtual BOOL OnInitDialog();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnDblclkYwyList(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnRclickYwyList(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnKeydownYwyList(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnCommendQuery();
afx_msg void OnCommendQuery2();
afx_msg void OnSelchangeCommendType();
//}}AFX_MSG
//afx_msg void On_User_Add();
afx_msg void On_User_See();
afx_msg void On_User_Status();
afx_msg void On_User_ReMsg();
afx_msg void On_User_Refresh();
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_C_Commend_H__2CF79CF3_33E1_45BE_917B_83E05A172D73__INCLUDED_)