protype.h

来自「这是一个库存管理系统」· C头文件 代码 · 共 41 行

H
41
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?