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

📄 newbilldlg.h

📁 从列表进行打印的源码,请大家下载参考对照,从中发表意见,加深修改.
💻 H
字号:
//{{AFX_INCLUDES()
#include "datagrid.h"
//}}AFX_INCLUDES
#if !defined(AFX_NEWBILLDLG_H__46E9136F_9328_4E0B_8DFA_576EA03DCAE6__INCLUDED_)
#define AFX_NEWBILLDLG_H__46E9136F_9328_4E0B_8DFA_576EA03DCAE6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// NewBillDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CNewBillDlg dialog

class CNewBillDlg : public CDialog
{
// Construction
public:
	void SetName();
	void InitDataGrid();
	void InitPlant(CString str_Plant);
	void InitName(CString str_Name);
	void LetEnable();
	void LetDisable();

	void InitHospital();
	int InitUnit();
	CNewBillDlg(CWnd* pParent = NULL);   // standard constructor
	_RecordsetPtr p_MyRstNewBill;
	_RecordsetPtr p_MyRstDBNewBill;

	_ConnectionPtr p_MyConNewBill;

	CString str_Name;//商品名称
	CString str_Plant;//生产厂家
	CString str_Unit;//单位-〉板,盒等
	CString str_Num;//数量
	CString str_Price;//金额单价
	CString str_TotalNum;//总金额
	CString str_SerialNum;//药品编号
	CString str_PiHao;//商品批号
	CString str_Year;//有效期
	CString str_Hospital;//医院名称
	CString str_DateTime;//开票日期
	CString str_NO_;//编号NO.=00000003956等
	CString str_WareHouse;//仓库

// Dialog Data
	//{{AFX_DATA(CNewBillDlg)
	enum { IDD = IDD_NEWBILL_DIALOG };
	CComboBox	m_Combo_SerialNum;
	CEdit	m_Edit_Note;
	CComboBox	m_Combo_WareHouse;
	CComboBox	m_Combo_NO_;
	CDateTimeCtrl	m_DateTimeCtrl_DateTime;
	CEdit	m_Edit_Year;
	CEdit	m_Edit_PiHao;
	CComboBox	m_Combo_Plant;
	CComboBox	m_Combo_Name;
	CEdit	m_Edit_Total;
	CComboBox	m_Combo_Price;
	CEdit	m_Edit_Num;
	CComboBox	m_Combo_Hospital;
	CComboBox	m_Combo_Unit;
	CEdit	m_Edit_Main;
	CDataGrid	m_DataGrid;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CNewBillDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeComboHospital();
	afx_msg void OnDatetimechangeDatetimepicker1(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnEditchangeComboHospital();
	afx_msg void OnButtonNew();
	afx_msg void OnEditchangeComboPrice();
	afx_msg void OnChangeEditNum();
	afx_msg void OnButtonName();
	afx_msg void OnEditchangeComboName();
	afx_msg void OnEditchangeComboPlant();
	afx_msg void OnSelchangeComboName();
	afx_msg void OnButtonPlant();
	afx_msg void OnButtonDel();
	virtual void OnOK();
	afx_msg void OnChangeEditYear();
	afx_msg void OnEditchangeComboSerialNum();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_NEWBILLDLG_H__46E9136F_9328_4E0B_8DFA_576EA03DCAE6__INCLUDED_)

⌨️ 快捷键说明

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