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

📄 query.h

📁 CT工作站具有打印报告、病历管理、图像处理专家词库等功能
💻 H
字号:
//{{AFX_INCLUDES()
#include "RecImage.h"	// Added by ClassView
#include "msflexgrid.h"
//}}AFX_INCLUDES
#if !defined(AFX_QUERY_H__8EEC95A3_5CC1_11D4_9FD5_5254ABDD2B16__INCLUDED_)
#define AFX_QUERY_H__8EEC95A3_5CC1_11D4_9FD5_5254ABDD2B16__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Query.h : header file
//
#include "dr.h"
#include "sql.h"
#include "sqlext.h"

#include "recimage.h"

/////////////////////////////////////////////////////////////////////////////
// Query dialog

class Query : public CDialog
{
// Construction
public:
						Query(CWnd* pParent = NULL);   // standard constructor

	CString				m_device,m_id,m_hospid,m_bedid,m_class;
	CString				m_name,m_sex,m_checkstyle,m_checkpos,m_checkdate;
	INT					m_age;

	RecImage			*therec;
	INT					m_selpic;
	CDR					rs;
// Dialog Data
	//{{AFX_DATA(Query)
	enum { IDD = IDD_QUERY };
	CRichEditCtrl		m_rich;
	CMSFlexGrid			m_grd;
	CString				m_doctor;
	CString				m_illname;
	CString				m_result;
	//}}AFX_DATA


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

// Implementation
protected:
	BOOL				m_bResultIsEmpty;
	BOOL				m_bResultFromDatabase;
	BOOL				m_bSaveWhenQuery;
	BOOL				m_bSortInc;
	CString				m_sSQLOrder;
	CString				m_sSQLWhere;
	CHAR				m_currentid[20];
	PCONFIG_STRUCT		m_pCfg;

	BOOL				SimpleQuery(CWnd* pCallerWnd);
	BOOL				NormalQuery();
	BOOL				ShowCurrentRecordInfo();
	BOOL				DeleteDir(char *path);
	BOOL				RecordExist(CHAR *sID);
	afx_msg void		SetRecordID(WPARAM wParm, LPARAM lParm);
	afx_msg	void		SetSQLWhere(WPARAM wParam, LPARAM lParam);
	afx_msg void		SetSQLOrder(WPARAM wParam, LPARAM lParam);
	afx_msg void		QueryRun(WPARAM wParam, LPARAM lParam);
	afx_msg BOOL		RetrieveRecord(WPARAM wParam, LPARAM lParam);

	// Generated message map functions
	//{{AFX_MSG(Query)
	virtual BOOL		OnInitDialog();
	afx_msg void		OnButtonDeleterecord();
	virtual void		OnOK();
	virtual void		OnCancel();
	afx_msg void		OnClickMsflexgrid1();
	afx_msg void		OnButtonPrintReport();
	afx_msg void		OnButtonPrintReport2();
	afx_msg void		OnButtonDealWithImage();
	afx_msg void		OnButton14();
	afx_msg void		OnDblClickMsflexgrid1();
	afx_msg void		OnButtonSaveAsFile();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_QUERY_H__8EEC95A3_5CC1_11D4_9FD5_5254ABDD2B16__INCLUDED_)

⌨️ 快捷键说明

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