83 lines
2.0 KiB
C++
83 lines
2.0 KiB
C++
#if !defined(AFX_PASSWORDMNG_H__5B77F0CB_A581_479E_9002_769400CDA42F__INCLUDED_)
|
|
#define AFX_PASSWORDMNG_H__5B77F0CB_A581_479E_9002_769400CDA42F__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// PasswordMng.h : header file
|
|
//
|
|
#pragma warning(disable:4068)
|
|
#pragma warning(disable:4786)
|
|
|
|
#include "geomative.h"
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CPasswordMng dialog
|
|
enum EN_OPERAION_TYPE
|
|
{
|
|
enCreatePassword = 0,
|
|
enModifyPassword,
|
|
enDeletePassword
|
|
};
|
|
|
|
enum EN_MACHINE_TYPE
|
|
{
|
|
enGeomativeType = 1,
|
|
enGD10Type
|
|
};
|
|
|
|
|
|
|
|
class CPasswordMng : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
CPasswordMng(_ConnectionPtr& pConnection,CWnd* pParent = NULL); // standard constructor
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CPasswordMng)
|
|
enum { IDD = IDD_DIAL_PASSWORD_MNG };
|
|
CComboBox m_cmbMachineID;
|
|
CComboBox m_cmbOperType;
|
|
CComboBox m_cmbMachineType;
|
|
CString m_edConfirmPass;
|
|
CString m_edNewPass;
|
|
CString m_edOldPass;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CPasswordMng)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CPasswordMng)
|
|
afx_msg void OnSelchangeComboPassOperType();
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnSelchangeComboMachineType();
|
|
virtual void OnOK();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
protected:
|
|
_ConnectionPtr m_pConnection;
|
|
CString m_strDBGeoPassword;
|
|
CString m_strDBGD10Paswword;
|
|
std::map<CString,STDBPasswordInfo> m_mapPasswordMng;
|
|
|
|
protected:
|
|
bool OperatePassword(int nOperateType, STOperDBPassword stOperDB,CString strOldPassword = _T(""));
|
|
void ShowPasswordInfo(int nOperType);
|
|
bool VerifyPassword(CString strPass);
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_PASSWORDMNG_H__5B77F0CB_A581_479E_9002_769400CDA42F__INCLUDED_)
|