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

📄 medicine.h

📁 该程序医院信息管理系统
💻 H
字号:
// Medicine.h: interface for the CMedicine class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MEDICINE_H__4C9246F4_9024_4224_8DBC_3594B1D4CA83__INCLUDED_)
#define AFX_MEDICINE_H__4C9246F4_9024_4224_8DBC_3594B1D4CA83__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CMedicine  
{
private:
	int MedId;
	CString MedName;
	int TypeId;      // 类别编号
	int UnitId;      // 单位编号
	float BuyPrice;  // 进货价格,用来计算利润
	float SalePrice; // 销售价格
	float Total;	 // 总数
	int Flag;     // 药品类别,0-中药;1-西药public:
public:
	CMedicine();
	virtual ~CMedicine();

	void SetMedId(int iMId);
	int GetMedId();
	void SetMedName(CString cName);
	CString GetMedName();
	void SetTypeId(int iTId);
	int GetTypeId();
	void SetUnitId(int iUId);
	int GetUnitId();
	void SetBuyPrice(float fBPrc);
	float GetBuyPrice();
	void SetSalePrice(float fSPrc);
	float GetSalePrice();
	void SetTotal(float fTotal);
	float GetTotal();
	void SetFlag(int iFlag);
	int GetFlag();
public:
	// 插入新的药物信息
	void sql_Insert();
	// 更改药物信息
	void sql_Update(CString cId);
	// 删除药物信息
	void sql_Delete(CString cId);
	int HaveName(CString cName);
};

#endif // !defined(AFX_MEDICINE_H__4C9246F4_9024_4224_8DBC_3594B1D4CA83__INCLUDED_)

⌨️ 快捷键说明

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