⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userchangei.h

📁 实时监控
💻 H
字号:
// UserChangeI.h : header file
//
//{{AFX_INCLUDES()
#include "msflexgrid.h"
//}}AFX_INCLUDES

#ifndef __USERCHANGEI_H__
#define __USERCHANGEI_H__
#include "CreateUsers.h"
#include "RightLogin.h"
/////////////////////////////////////////////////////////////////////////////
// CUserChangeI dialog
#define NTM_CHANNEL_MAP_UPDATE WM_USER + 33822
class Machine_Channel_Setting
{
public:
	char	name[20];
	char    scene_name[17];
	char	dvrname[20];
	char    ip[20];
	int	    port;
    int     channel;
	int     window;
	BOOL    connect;
	int		nettype;
	char    logindvrname[20];
	char    logindvrpass[20];
};

class Remote_Station_setting
{
public:
	ULONG	stid;
	char	name[20];
	char	dvrname[20];
	char    ip[20];
	int	    port;
	char    logindvrname[20];
	char    logindvrpass[20];
};

class Scene_set_up
{
public:
	char    name[20];
	char    scene_name[17];
	char    scene_property[50];
	
};

class Alarm_Server_Setting
{
public:
	char	name[20];
	char    id[20];
	int	    port;
};

class Alarm_Server_Linking
{
public:
	char	name[20];
	char    id[20];
	char	dvrname[20];
	char	alarmid[20];
	int	    channel;
	char	m_alarmname[20];
	char	m_alarmtype[20];
	int		output;

};

class CUserChangeI : public CPropertyPage
{
	DECLARE_DYNCREATE(CUserChangeI)

// Construction
public:
	CUserChangeI();
	~CUserChangeI();
	void OnSave();

	FILE *m_file;
	User_Information m_user[120];
	int m_file_length;

// Dialog Data
	//{{AFX_DATA(CUserChangeI)
	enum { IDD = IDD_PROPPAGE4 };
	CTransButton	m_update;
	CTransButton	m_cancel;
	CString	m_name;
	CString	m_npass;
	CString	m_configpass;
	CString	m_bpass;
	CString m_description;
	CString m_address;
	CString m_email;
	CString m_telphone;
	CLabel	m_lable8;
	CLabel	m_lable7;
	CLabel	m_lable6;
	CLabel	m_lable5;
	CLabel	m_lable4;
	CLabel	m_lable3;
	CLabel	m_lable2;
	CLabel	m_lable1;
	CTransGroup	m_grp2;
	CTransGroup m_grp1;
	CBrush m_brush;
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CUserChangeI)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CUserChangeI)
	virtual BOOL OnInitDialog();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnUpdate();
	afx_msg void OnCancel();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};


/////////////////////////////////////////////////////////////////////////////
// CLoginSet dialog

class CLoginSet : public CPropertyPage
{
	DECLARE_DYNCREATE(CLoginSet)

// Construction
public:
	CLoginSet();
	~CLoginSet();
	void dbgrid();
	bool cyclecontrol(int m_data);
	Remote_Station_setting m_station[120];
	Machine_Channel_Setting m_machine[300];

// Dialog Data
	//{{AFX_DATA(CLoginSet)
	enum { IDD = IDD_PROPPAGE5 };
	CTransButton	m_del;
	CTransButton	m_add;
	CTransButton m_saveset;
	CTransButton m_loadset;
	CMSFlexGrid	m_dbgrid;
	CBrush m_brush;
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CLoginSet)
	public:
	virtual BOOL OnInitDialog();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CLoginSet)
	afx_msg void Onadd();
	afx_msg void Ondel();
	afx_msg void Onsaveset();
	afx_msg void Onloadset() ;
	afx_msg void OnDblClickMsflexgrid1();
	afx_msg void OnClickMsflexgrid1();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};


/////////////////////////////////////////////////////////////////////////////
// CChannelMap dialog

class CChannelMap : public CPropertyPage
{
	DECLARE_DYNCREATE(CChannelMap)

// Construction
public:
	CChannelMap();
	~CChannelMap();
	void dbgrid(CString m_scene);
	
	void Openfile();
    void savefile();
	void update();
	void delfile(CString m_str1,CString m_str2,CString m_str3,CString m_str4);
	void addfile(CString m_chl);
	bool check_if();
	bool check_add();
	bool legal_name_add(CString m_scene_name, CString m_dvrname);
	
    int m_file_length;
	int m_file_length1;
	int m_scene_length;
	Machine_Channel_Setting m_machine[300];
	Remote_Station_setting m_station[120];
	Scene_set_up m_scene[120];

	static CChannelMap * m_channelmap;

	void UpdateMapchannel(WPARAM w, LPARAM l);

// Dialog Data
	//{{AFX_DATA(CChannelMap)
	enum { IDD = IDD_PROPPAGE6 };
	CTransButton	m_update;
	CTransButton	m_del;
	CTransButton	m_add;
	CMSFlexGrid	m_dbgrid;
	CLabel	m_lable7;
	CLabel	m_lable6;
	CLabel	m_lable5;
	CLabel	m_lable4;
	CLabel	m_lable3;
	CLabel	m_lable2;
	CLabel	m_lable1;
	CTransGroup m_grp1;
	CBrush m_brush;

	CComboBox m_setup_namectl;
	CComboBox m_dvrnamectl;
	CComboBox m_channelctl;
	CComboBox m_windowctl;
	CComboBox m_connectctl;
	CComboBox m_nettypectl;

	CString m_ip;
	CString m_loginuser;
	CString m_loginpass;
	int m_port;
	CString m_setup_name;
	CString m_dvrname;
	CString m_channel;
	CString m_window;
	CString m_connect;
	CString m_nettype;

	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CChannelMap)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CChannelMap)
	afx_msg void OnSetfocussetup();
	afx_msg void OnSelchangesetup();
	afx_msg void OnSetfocusdvrname();
	afx_msg void OnSelchangedvrname();
	afx_msg void OnSetfocuschannel();
	afx_msg void OnSetfocuswindow();
	afx_msg void Onadd();
	afx_msg void Ondel();
	afx_msg void Onupdate();
	afx_msg void OnClickMsflexgrid1();
	virtual BOOL OnInitDialog();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

class CSetUp : public CPropertyPage
{
	DECLARE_DYNCREATE(CSetUp)

// Construction
public:
	CSetUp();
	~CSetUp();
	void dbgrid();
	void openfile();
	void savefile();
	void update();
	bool checksetupname(CString m_str);
	void savemachine();
	void openmachine();
	Machine_Channel_Setting m_machine[300];
	Scene_set_up m_scene_setup[120];

	virtual BOOL OnSetActive();

// Dialog Data
	//{{AFX_DATA(CSetUp)
	enum { IDD = IDD_PROPPAGE7 };
	CTransButton	m_update;
	CTransButton	m_del;
	CTransButton	m_add;
	CMSFlexGrid	m_dbgrid;
	CBrush m_brush;
	CLabel	m_lable2;
	CLabel	m_lable1;
	CTransGroup m_grp1;
	CString m_setup_name;
	CString m_setup_property;
	int m_file_length;
	int m_file_length1;
		// NOTE - ClassWizard will add data members here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CSetUp)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CSetUp)
	afx_msg void Onadd();
	afx_msg void Onupdate();
	afx_msg void Ondel();
	afx_msg void OnChangescene();
	afx_msg void OnClickMsflexgrid1();
	virtual BOOL OnInitDialog();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	DECLARE_EVENTSINK_MAP()
		// NOTE: the ClassWizard will add member functions here
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

class CAlarmServerSet : public CPropertyPage
{
	DECLARE_DYNCREATE(CAlarmServerSet)

// Construction
public:
	CAlarmServerSet();
	~CAlarmServerSet();
	void dbgrid();
	void openfile();
	void savefile();
	bool check_samevalue(CString m_idvalue);

	Alarm_Server_Setting m_aserver[120];

	virtual BOOL OnSetActive();

// Dialog Data
	//{{AFX_DATA(CAlarmServerSet)
	enum { IDD = IDD_PROPPAGE12 };
	CTransButton	m_update;
	CTransButton	m_del;
	CTransButton	m_add;
	CMSFlexGrid		m_dbgrid;

	CBrush			m_brush;
	int m_file_length;
	int m_file_length1;

	int				m_bh;
	CString			m_id;
	int				m_port;

	CLabel			m_lable1;
	CLabel			m_lable2;
	CLabel			m_lable3;
	CLabel			m_lable4;

	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CAlarmServerSet)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CAlarmServerSet)
	afx_msg void Onadd();
	afx_msg void Onupdate();
	afx_msg void Ondel();
	afx_msg void OnChangescene();
	afx_msg void OnClickMsflexgrid1();
	virtual BOOL OnInitDialog();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	DECLARE_EVENTSINK_MAP()
		// NOTE: the ClassWizard will add member functions here
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

class CAlarmServerLink : public CPropertyPage
{
	DECLARE_DYNCREATE(CAlarmServerLink)

// Construction
public:
	CAlarmServerLink();
	~CAlarmServerLink();
	void dbgrid();
	void openfile();
	void savefile();

	bool check_para();

	Alarm_Server_Linking m_link[300];

	virtual BOOL OnSetActive();

	int find_alarmserver(CString m_gid, CString m_sid);

// Dialog Data
	//{{AFX_DATA(CAlarmServerLink)
	enum { IDD = IDD_PROPPAGE13 };

	CTransButton	m_del;
	CTransButton	m_add;
	CTransButton	m_update;
	CMSFlexGrid		m_dbgrid;

	CBrush			m_brush;
	int				m_file_length;
	int				m_file_length1;

	CString			m_dvrname;
	CString			m_stid;
	CString			m_sigid;
	int				m_channel;

	CLabel			m_lable1;
	CLabel			m_lable2;
	CLabel			m_lable3;
	CLabel			m_lable4;
	CLabel			m_lable5;
	CLabel			m_lable6;

	CTransGroup		m_group;
	CComboBox		m_dvrnamectl;
	CComboBox		m_channelctl;
	CString			m_alarmname;
	CString			m_alarmtype;

	BOOL			m_alarmout1;
	BOOL			m_alarmout2;
	BOOL			m_alarmout3;
	BOOL			m_alarmout4;
	CTransCK		m_alarmout1ctl;
	CTransCK		m_alarmout2ctl;
	CTransCK		m_alarmout3ctl;
	CTransCK		m_alarmout4ctl;

	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CAlarmServerLink)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CAlarmServerLink)

	afx_msg void Onadd();
	afx_msg void Onupdate();
	afx_msg void Ondel();
	afx_msg void OnSetfocusname();
	afx_msg void OnSelchangename();
	afx_msg void OnClickMsflexgrid1();
	virtual BOOL OnInitDialog();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	DECLARE_EVENTSINK_MAP()
		// NOTE: the ClassWizard will add member functions here
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

class CParatSet : public CPropertyPage
{
	DECLARE_DYNCREATE(CParatSet)

// Construction
public:
	CParatSet();
	~CParatSet();

// Dialog Data
	//{{AFX_DATA(CParatSet)
	enum { IDD = IDD_PROPPAGE14 };

	CBrush			m_brush;

	CTransCK	m_openptzctl;
	CTransCK	m_openlightctl;
	CTransCK	m_openchanctl;
	CTransCK	m_closeptzctl;
	CTransCK	m_closelightctl;
	CTransCK	m_closechanctl;
	CTransButton	m_set;

	int		m_time;
	BOOL	m_closechan;
	BOOL	m_closelight;
	BOOL	m_closeptz;
	BOOL	m_openchan;
	BOOL	m_openlight;
	BOOL	m_openptz;

	CLabel	m_static;
	CLabel	m_staticsec;

	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CParatSet)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CParatSet)
	virtual BOOL OnInitDialog();
	afx_msg void OnSetpara();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);

		// NOTE: the ClassWizard will add member functions here
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

#endif // __USERCHANGEI_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -