137 lines
4.3 KiB
C++
137 lines
4.3 KiB
C++
#if !defined(AFX_FSADDRESS_H__90446D52_74BF_4D47_87CC_77E7A0A6A34B__INCLUDED_)
|
||
#define AFX_FSADDRESS_H__90446D52_74BF_4D47_87CC_77E7A0A6A34B__INCLUDED_
|
||
|
||
#if _MSC_VER > 1000
|
||
#pragma once
|
||
#endif // _MSC_VER > 1000
|
||
// FSAddress.h : header file
|
||
//
|
||
|
||
/////////////////////////////////////////////////////////////////////////////
|
||
// CFSAddress dialog
|
||
#include "..\public\reportctrl\ReportCtrl.h"
|
||
#include "DLG_User_ModifyS.h" // Added by ClassView
|
||
#include "DLG_FindUser.h"
|
||
|
||
#define MENU_SADDRESS_ADD WM_USER+330 //添加管理员
|
||
#define MENU_SADDRESS_ADDGROUP WM_USER+331 //添加组
|
||
#define MENU_SADDRESS_MODIFY WM_USER+332 //修改
|
||
#define MENU_SADDRESS_DEL WM_USER+333 //删除
|
||
#define MENU_SADDRESS_FIND WM_USER+334 //删除
|
||
#define MENU_SADDRESS_FIND2 WM_USER+335 //删除
|
||
#define MENU_SADDRESS_ADDTOLIST WM_USER+336 //发送短信
|
||
#define MENU_SADDRESS_ADDTOLIST_FAX WM_USER+337 //发送短信
|
||
#define MENU_SADDRESS_ADDTOLIST_MMS WM_USER+338 //发送短信
|
||
#define MENU_SADDRESS_INPORT WM_USER+339 //删除
|
||
#define MENU_SADDRESS_EXPORT WM_USER+340 //发送短信
|
||
#define MENU_SADDRESS_REFRESH WM_USER+341 //删除
|
||
#define MENU_SADDRESS_LOG WM_USER+342 //删除
|
||
#define MENU_SADDRESS_LOG2 WM_USER+343 //删除
|
||
#define MENU_SADDRESS_BACK WM_USER+3442 //删除
|
||
#define MENU_SADDRESS_REBACK WM_USER+3443 //删除
|
||
|
||
|
||
|
||
#define MENU_SADDRESS_COPY WM_USER+345 //删除
|
||
#define MENU_SADDRESS_CUT WM_USER+346 //删除
|
||
#define MENU_SADDRESS_PASTE WM_USER+347 //删除
|
||
|
||
#define SADDRESS_COPYTYPE_COPY 0
|
||
#define SADDRESS_COPYTYPE_CUT 1
|
||
|
||
class CMainFrame;
|
||
class CProcessSocket;
|
||
class CFuncView;
|
||
class CFSAddress : public CDialog
|
||
{
|
||
public:
|
||
CMainFrame * m_pMainFrame;
|
||
CFuncView * m_pFuncView;
|
||
long m_lUserID;
|
||
TCHAR m_szGroupID[16];
|
||
TCHAR m_szLocal[128]; //当前用户组所处的位置
|
||
|
||
protected:
|
||
CProcessSocket * m_pSocket;
|
||
CImageList m_Image;
|
||
BOOL m_bRefresh; //是否已刷新过数据
|
||
CAdoRecordSet m_AdoRS;
|
||
BOOL m_bInit; //是否已初始化
|
||
BOOL m_bFind2; //属于查询出来的用户
|
||
|
||
//以下为了复制粘贴而定义的变量
|
||
long m_Copy_UserID; //复制源的组ID
|
||
TCHAR m_Copy_GroupID[32];
|
||
long m_Copy_Count; //复制源的记录数
|
||
long m_Copy_Type; //复制类型,copy或cut
|
||
CSAddress * m_Copy_Data; //复制源的数据
|
||
|
||
// Construction
|
||
public:
|
||
void ShowRMenu();
|
||
void GetLocal(TCHAR *pLocal, TCHAR *pGroupID);
|
||
long ShowUser(long lUserID,const TCHAR * pWhere=NULL,BOOL bGroupAll=false);
|
||
long GetCurrentSelected();
|
||
BOOL RefreshInfo();
|
||
BOOL ReShow(BOOL bRefresh=false);
|
||
BOOL ReHide();
|
||
CFSAddress(CWnd* pParent = NULL); // standard constructor
|
||
|
||
// Dialog Data
|
||
//{{AFX_DATA(CFSAddress)
|
||
enum { IDD = IDD_SADDRESS };
|
||
CReportCtrl m_wndList;
|
||
//}}AFX_DATA
|
||
|
||
|
||
// Overrides
|
||
// ClassWizard generated virtual function overrides
|
||
//{{AFX_VIRTUAL(CFSAddress)
|
||
protected:
|
||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||
//}}AFX_VIRTUAL
|
||
|
||
// Implementation
|
||
public:
|
||
CSAddress GetUserData(long lUserID);
|
||
BOOL AddUser(CSAddress user,BOOL bShow=true);
|
||
|
||
// Generated message map functions
|
||
//{{AFX_MSG(CFSAddress)
|
||
virtual void OnOK();
|
||
virtual void OnCancel();
|
||
virtual BOOL OnInitDialog();
|
||
afx_msg void OnSize(UINT nType, int cx, int cy);
|
||
afx_msg void OnTimer(UINT_PTR nIDEvent);
|
||
afx_msg void OnDblclkKaddressList(NMHDR* pNMHDR, LRESULT* pResult);
|
||
afx_msg void OnRclickKaddressList(NMHDR* pNMHDR, LRESULT* pResult);
|
||
afx_msg void OnKeydownKaddressList(NMHDR* pNMHDR, LRESULT* pResult);
|
||
afx_msg void OnDestroy();
|
||
//}}AFX_MSG
|
||
|
||
afx_msg LRESULT On_List_DropBegin( WPARAM wParam , LPARAM lParam );
|
||
afx_msg void On_User_Add();
|
||
afx_msg void On_User_AddGroup();
|
||
afx_msg void On_User_Modify();
|
||
afx_msg void On_User_Del();
|
||
afx_msg void On_User_Find();
|
||
afx_msg void On_User_AddToList();
|
||
afx_msg void On_User_Inport();
|
||
afx_msg void On_User_Export();
|
||
afx_msg void On_User_Refresh();
|
||
|
||
afx_msg void On_User_Copy();
|
||
afx_msg void On_User_Cut();
|
||
afx_msg void On_User_Paste();
|
||
|
||
afx_msg void On_User_Log();
|
||
afx_msg void On_User_Log2();
|
||
|
||
DECLARE_MESSAGE_MAP()
|
||
};
|
||
|
||
//{{AFX_INSERT_LOCATION}}
|
||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||
|
||
#endif // !defined(AFX_FSADDRESS_H__90446D52_74BF_4D47_87CC_77E7A0A6A34B__INCLUDED_)
|