payitems.h

来自「医院管理信息系统是在Visual C++数据库编程中,访问操作数据库的完美源码实」· C头文件 代码 · 共 53 行

H
53
字号
// PayItems.h: interface for the CPayItems class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_PAYITEMS_H__775120E6_0E98_4EF1_9199_AAB6518BD2FF__INCLUDED_)
#define AFX_PAYITEMS_H__775120E6_0E98_4EF1_9199_AAB6518BD2FF__INCLUDED_

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

class CPayItems  
{
private:
	int PayId;
	int RegId;
	int ItemId;
	double PNum;
	float Price;
	int PType;

public:
	CPayItems();
	virtual ~CPayItems();

	void SetPayId(int iPId);
	int GetPayId();
	void SetRegId(int iRId);
	int GetRegId();
	void SetItemId(int iItemId);
	int GetItemId();
	void SetPNum(double dPNum);
	double GetPNum();
	void SetPrice(float fPrc);
	float GetPrice();
	void SetPType(int iPType);
	int GetPType();
public:
	// 插入新的收费项目信息
	void sql_Insert();
	// 更改收费项目信息
	void sql_Update(CString cPId);
	// 删除收费项目信息
	void sql_Delete(CString cPId);
	// 根据登记编号删除此编号下的所有记录
	void sql_DeleteRecords(CString cRId);
	// 根据登记编号返回此编号应收费用总和
	double GetSum(CString cRegId);

};

#endif // !defined(AFX_PAYITEMS_H__775120E6_0E98_4EF1_9199_AAB6518BD2FF__INCLUDED_)

⌨️ 快捷键说明

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