📄 myprinterdlg.h
字号:
// MyPrinterDlg.h : header file
//
#include "Childfram.h"
#include "resource.h"
#include "MyAddDel.h"
//{{AFX_INCLUDES()
#include "datagrid.h"
//}}AFX_INCLUDES
#if !defined(AFX_MYPRINTERDLG_H__7AD7D9AC_E55B_4044_BF6A_7DF0701B91B2__INCLUDED_)
#define AFX_MYPRINTERDLG_H__7AD7D9AC_E55B_4044_BF6A_7DF0701B91B2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CMyPrinterDlgAutoProxy;
/////////////////////////////////////////////////////////////////////////////
// CMyPrinterDlg dialog
class CMyPrinterDlg : public CDialog
{
DECLARE_DYNAMIC(CMyPrinterDlg);
friend class CMyPrinterDlgAutoProxy;
public:
CChildFrame *m_pChildFrame;//xianyun
_RecordsetPtr p_MyRst;
_RecordsetPtr p_MyRstTemp;
_ConnectionPtr p_MyCon;
_bstr_t bstr_Con;//连接字符串
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;//仓库
// Construction
public:
void InitHospital();
void InitDataGrid();
int TrimDBPath(CString &str);
int FindDB(CString &str);
int PrepareDB(CString str);
CMyPrinterDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CMyPrinterDlg();
// Dialog Data
//{{AFX_DATA(CMyPrinterDlg)
enum { IDD = IDD_MYPRINTER_DIALOG };
CEdit m_Edit_Hospital;
CComboBox m_Combo_WareHouse;
CComboBox m_Combo_NO_;
CDateTimeCtrl m_DateTime;
CComboBox m_Combo_Hospital;
CStatic m_Static_Text;
CDataGrid m_DataGrid_Main;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyPrinterDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CMyPrinterDlgAutoProxy* m_pAutoProxy;
HICON m_hIcon;
BOOL CanExit();
// Generated message map functions
//{{AFX_MSG(CMyPrinterDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnClose();
virtual void OnOK();
virtual void OnCancel();
afx_msg void OnMenuAbout();
afx_msg void OnMenuExit();
afx_msg void OnMenuNew();
afx_msg void OnButtonRefresh();
afx_msg void OnButtonSure();
afx_msg void OnButtonDel();
afx_msg void OnMenuCancel();
afx_msg void OnSelchangeComboHospital();
afx_msg void OnCloseupDatetimepicker(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnMenuDel();
afx_msg void OnMenuAdd();
afx_msg void OnMenuSetup();
afx_msg void OnMenuAddName();
afx_msg void OnMenuAddPlant();
afx_msg void OnMenuAddUnit();
afx_msg void OnMenuHistory();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYPRINTERDLG_H__7AD7D9AC_E55B_4044_BF6A_7DF0701B91B2__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -