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

📄 newdlg.h

📁 RFID 的实用例子,登陆使用了标准动态库类
💻 H
字号:
// NewDlg.h : header file
//

#if !defined(AFX_NEWDLG_H__A635756F_8055_4727_B060_023486D48FDB__INCLUDED_)
#define AFX_NEWDLG_H__A635756F_8055_4727_B060_023486D48FDB__INCLUDED_

#include "ClassUsed.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "..\Common\BtnST.h"

/////////////////////////////////////////////////////////////////////////////
// CNewDlg dialog

class CNewDlg : public CDialog
{
// Construction
public:
	CString GetProductTypeCode(CString strProductTypeName);
	CNewDlg(CWnd* pParent = NULL);	// standard constructor
	CNewDlg(bool bRightNew,bool bRightDel,bool bRightEdit,bool bRightRequery,CString strOperatorCode,CString strOperatorName,CWnd* pParent = NULL);



// Dialog Data
	//{{AFX_DATA(CNewDlg)
	enum { IDD = IDD_NEW_DIALOG };
	CButtonST	m_btnCancel;
	CButtonST	m_btnWriteCar;
	CButtonST	m_btnSelectCustomer;
	CComboBox	m_CbxMType;
	CComboBox	m_CbxMName;
	CComboBox	m_CbxMClass;
	CString	m_strProductType;
	CTime	m_timeRepairEnd;
	CString	m_strProductCode;
	CString	m_strProductName;
	CString	m_strSaleTime;
	CString	m_strPlanRepairDate;
	CString	m_strMemo;
	CString	m_Descriptions;
	CString	m_strMClass;
	CString	m_strMName;
	CString	m_strMType;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CNewDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnOK();
	afx_msg void OnButtonWrCard();
	afx_msg void OnKillfocusEditProductcode();
	afx_msg void OnButtonSelectcustomer();
	afx_msg void OnKillfocusComboMclass();
	afx_msg void OnKillfocusComboMname();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void ClearInput();
	void UpdateCbxMType(CComboBox &CbxMType, CString strMName, CString strMClass);
	void UpdateCbxMName(CComboBox &CbxMName, CComboBox &CbxMType, CString strMClass);
	void InitMClass();
	CString GetPlanRepairDate();
	CCustomerInfo m_CustomerInfo;
	void GetCustomerInfo(CString strCustomerName);
	CProductInfo m_ProductInfo;
	void GetProductInfo(CString strProductCode);
	bool WriteToCard();
	CString m_strProductTypeCode;
	CString m_strOperatorCode;
	CString m_strOperatorName;
	CString m_strCustomer;
	bool m_RightEdit;
	bool m_RightDel;
	bool m_RightNew;
	bool m_RightRequery;
	void InitComBoxCustomer();
	void InitComBoxProductType();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_NEWDLG_H__A635756F_8055_4727_B060_023486D48FDB__INCLUDED_)

⌨️ 快捷键说明

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