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

📄 saleview.h

📁 VC下通过DB-LIBRARYDE的API函数操作SQLSERVER数据库.
💻 H
字号:
//{{AFX_INCLUDES()
#include "msflexgrid.h"
//}}AFX_INCLUDES
#if !defined(AFX_SALEVIEW_H__385756F2_F4A7_4322_B8FF_100ADA29FF12__INCLUDED_)
#define AFX_SALEVIEW_H__385756F2_F4A7_4322_B8FF_100ADA29FF12__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CSaleView form view

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

class CSaleView : public CFormView
{
protected:
	CSaleView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CSaleView)
	//CImageList *ImageList;
	void Init();
	void DefineGrid();
	void SetEdtPos();
	void MoveEdt(MSG *pMsg);
	bool CheckGrid(CMSFlexGrid *pGrid);
	void SumCol(int col,int rows);
	void GetHospital();
	bool init;
	CDBSession GetDB();
	void ShowErr(char *str,int code);
// Form Data
public:
	//{{AFX_DATA(CSaleView)
	enum { IDD = IDD_SALEVIEW_FORM };
	CComboBox	m_SaleManComb;
	CComboBox	m_HospitalComb;
	CComboBox	m_PhysicComb;
	CComboBox	m_ProviderComb;
	double	m_price;
	double	m_rate;
	double	m_number;
	CMSFlexGrid	m_Grid;
	CString	m_edt;
	double	m_dt_rate;
	//}}AFX_DATA

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSaleView)
	public:
	virtual void OnInitialUpdate();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

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

	// Generated message map functions
	//{{AFX_MSG(CSaleView)
	afx_msg void OnSelchange();
	afx_msg void OnSelchangeProviderComb();
	afx_msg void OnAddBtn();
	afx_msg void OnCellClick();
	afx_msg void OnEnterCellMsflexgrid1();
	afx_msg void OnSelchangeHospitalComb();
	afx_msg void OnChangeEdt();
	afx_msg void OnScrollMsflexgrid1();
	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_SALEVIEW_H__385756F2_F4A7_4322_B8FF_100ADA29FF12__INCLUDED_)

⌨️ 快捷键说明

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