query.h

来自「CT工作站具有打印报告、病历管理、图像处理专家词库等功能」· C头文件 代码 · 共 97 行

H
97
字号
//{{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 + =
减小字号Ctrl + -
显示快捷键?