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

📄 dataview.h

📁 一个模板打印的源程序。可用于医院诊断报告的打印。
💻 H
字号:
#if !defined(AFX_DATAVIEW_H__20AE0E6F_3C0F_4DAF_8BB5_ABA203ACBF5A__INCLUDED_)
#define AFX_DATAVIEW_H__20AE0E6F_3C0F_4DAF_8BB5_ABA203ACBF5A__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CDataView form view

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif

class CDataView : public CFormView
{
protected:
	
    
// Form Data
public:
	
	//{{AFX_DATA(CDataView)
	enum { IDD = IDD_DIALOG_DATA };
	CComboBox	m_CombTemp;
	CListCtrl	m_list;
	CString	m_name;
	//}}AFX_DATA

// Attributes
public:
   CDataView();           // protected constructor used by dynamic creation
   DECLARE_DYNCREATE(CDataView)
   BOOL Create(LPCTSTR, LPCTSTR, DWORD, const RECT&, CWnd*, UINT, CCreateContext*);
// Operations
public:
    CString m_template;                     //模板名称
	CString m_endscpId;                     //endscp Id 号
	CString m_imagePath;                    //图片路径
	CString m_patientName;                  //病人姓名
public:
	void outputToDat(CString sLabel,CString sOperationType);       // 输出数据到dat文件中
	bool FindFileInDir(CString,CString);    //查找文件是否存在
	CString GetImagePathById(CString);      //根据id号获取路径
	void fillList(CString sSql);            //填充列表框  
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDataView)
	public:
	virtual void OnInitialUpdate();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CDataView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CDataView)
	afx_msg void OnButtonAllrecord();
	afx_msg void OnButtonFindrecord();
	afx_msg void OnClickListDisplayrecord(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDblclkListDisplayrecord(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnButtonPrintrecord();
	afx_msg void OnButtonPrinthistory();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_DATAVIEW_H__20AE0E6F_3C0F_4DAF_8BB5_ABA203ACBF5A__INCLUDED_)

⌨️ 快捷键说明

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