📄 ustomerinfosetdlg.h
字号:
#if !defined(AFX_USTOMERINFOSETDLG_H__4AF7A83A_6B24_4902_8C54_28B06C08D7A7__INCLUDED_)
#define AFX_USTOMERINFOSETDLG_H__4AF7A83A_6B24_4902_8C54_28B06C08D7A7__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ustomerInfoSetDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CustomerInfoSetDlg dialog
#include "BtnST.h"
#include "3DBar.h"
class CustomerInfoSetDlg : public CDialog
{
// Construction
public:
CustomerInfoSetDlg(CWnd* pParent = NULL); // standard constructor
void InitialComTract();
void InitialComAddTract();
void InitialComAddType();
void GetCustomerInfo();
void SetCustomerInfo();
void SetCtrlBkColor();
void ClearCustomer();
void ClearCtrlData();
int GetTypeID(CString sType);
int GetTractID(CString sTract);
_RecordsetPtr m_pADOSet;
// Dialog Data
//{{AFX_DATA(CustomerInfoSetDlg)
enum { IDD = IDD_DIALOG_CUSTOMER_INFO_SET };
CButtonST m_ok;
CButtonST m_cancel;
CButtonST m_up;
CButtonST m_search;
CButtonST m_save;
CButtonST m_modify;
CButtonST m_down;
CButtonST m_add;
CComboBox m_type;
CComboBox m_addtract;
CComboBox m_tract;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CustomerInfoSetDlg)
public:
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
BOOL bIsAdd;
BOOL bIsModify;
int ID;
protected:
C3DBar bar;//画边框
struct CustomerInfo
{
CString Tract;
CString Name;
CString Short;
CString Address;
CString Phone;
CString IP;
// CString sNO;
// CString Gateway;
CString MAC;
COleDateTime Jointime;
COleDateTime Felltime;
CString Type;
CString Remark;
int ID;
};
CustomerInfo m_CustomerInfo;
// Generated message map functions
//{{AFX_MSG(CustomerInfoSetDlg)
afx_msg void OnPaint();
virtual BOOL OnInitDialog();
afx_msg void OnButtonSearchInfo();
afx_msg void OnClose();
afx_msg void OnButtonAddCustomerInfo();
afx_msg void OnButtonModifyCusotmerInfo();
afx_msg void OnButtonSaveCustomerInfo();
afx_msg void OnDeleteCustomerinfo();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_USTOMERINFOSETDLG_H__4AF7A83A_6B24_4902_8C54_28B06C08D7A7__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -