fittinginfo.h

来自「VC做的一个电脑报价管理系统,有源码和说明文档.」· C头文件 代码 · 共 49 行

H
49
字号
// FittingInfo.h: interface for the CFittingInfo class.
//
// 1 FittingId int 配件序号 Identity = Yes Allow Null = False 主键
// 2 TypeId int 类型编号 Allow Null = False
// 3 MarkId int 品牌编号 Allow Null = False
// 4 Std varchar(200) 型号规格 Allow Null = False
// 5 Productor varchar(200) 厂商 Allow Null = False
// 6 UnitPrice float 单价 Allow Null = False
// 7 InPrice float 进价 Allow Null = False
// 8 Maintain varchar(50) 保修期 Allow Null = False
// 9 ProviderId int 供应商编号 Allow Null = True
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FITTINGINFO_H__0961CADA_36D3_4C00_B1E8_58537209D605__INCLUDED_)
#define AFX_FITTINGINFO_H__0961CADA_36D3_4C00_B1E8_58537209D605__INCLUDED_

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

class CFittingInfo  
{
// 定义变量
public:
	long FittingId;			// 配件序号
	long TypeId;			// 类型编号
	long MarkId;			// 品牌编号
	CString Std;			// 型号规格
	CString Productor;		// 厂商
	double UnitPrice;		// 单价
	double InPrice;			// 进价
	CString Maintain;		// 保修期
	long ProviderId;		// 供应商编号
// 定义方法
public:
	CFittingInfo();
	virtual ~CFittingInfo();
	int HaveRecFit(CString paraId);	// 判断在推荐表中是否存在某配件编号
	int HaveDetFit(CString paraId);	// 判断在详单表中是否存在某配件编号
	int HaveProvider(CString paraId);// 判断是否存在供应商编号
	int HaveTypeId(CString paraTId,int iFlag);// 判断是否存在类型(品牌)编号
	void GetInfo(CString paraId);	// 根据配件序号得到其他信息
	void SqlInsert();				// 插入操作
	void SqlUpdate(CString paraId);	// 修改操作
	void SqlDelete(CString paraId);	// 删除操作
};

#endif // !defined(AFX_FITTINGINFO_H__0961CADA_36D3_4C00_B1E8_58537209D605__INCLUDED_)

⌨️ 快捷键说明

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