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

📄 goods.h

📁 一个简易超市系统,有进货,销售.等功能 对学习有C++数据库操作有一定的帮助
💻 H
字号:
#if !defined(AFX_ASDF_H__FDEE66EF_EAE1_4901_ADD8_F6894ECB6B43__INCLUDED_)
#define AFX_ASDF_H__FDEE66EF_EAE1_4901_ADD8_F6894ECB6B43__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CGoods window

class CGoods : public CWnd
{
private:
	CString gName;
	float gPrice;
	CString gId;
	int gType;
	int gNum;
public:
	CGoods();
	virtual ~CGoods();
	
	void SetGoodsId(CString gGoodsId);
	CString GetGoodsId();
	CString GetGoodsName();
	void SetGoodsName(CString gGoodsName);
	float GetGoodsPrice();
	void SetGoodPrice(float gGoodsPrice);
	int GetGoodsType();
	void SetGoodsType(int gGoodsType);
	void SetGoodsNum(int i);
	int GetGoodsNum();

	void UpdateNum(int i,CString id);

	//数据库操作
	int HaveId(CString gGoodsId); //判断指定商品是否存在
	void sql_insert();  
	void sql_updatePrice(float gGoodsPrice);
	void sql_delete(CString gGoodsId);
	void sql_delall();
	//读取所有字段值
	void GetData(CString gGoodsId);
};


#endif // !defined(AFX_USERS_H__06F07DAE_7BF9_4E45_BBB9_378112992F74__INCLUDED_)

⌨️ 快捷键说明

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