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

📄 protype.h

📁 这是一个库存管理系统
💻 H
字号:
// ProType.h: interface for the CProType class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_PROTYPE_H__B7474F6B_B825_4B2D_BAF8_DBB01A98B1DA__INCLUDED_)
#define AFX_PROTYPE_H__B7474F6B_B825_4B2D_BAF8_DBB01A98B1DA__INCLUDED_

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

class CProType  
{
private:
	int TypeId;
	CString TypeName;
	int UpperId;
public:
	CProType();
	virtual ~CProType();

	//读取和设置成员变量
	int GetTypeId();
	void SetTypeId(int iTypeId);
	CString GetTypeName();
	void SetTypeName(CString cTypeName);
	int GetUpperId();
	void SetUpperId(int iUpperId);

	//数据库操作
	int HaveName(CString cTypeName); //判断指定的产品类别名称是否在数据库中
	int HaveSon(CString cTypeId);  //判断指定的产品类别是否包含子类
	void sql_insert();
	void sql_update(CString cTypeId);
	void sql_delete(CString cTypeId);
	//读取所有字段值
	void GetData(CString cTypeId);
};

#endif // !defined(AFX_PROTYPE_H__B7474F6B_B825_4B2D_BAF8_DBB01A98B1DA__INCLUDED_)

⌨️ 快捷键说明

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