📄 detailquote.h
字号:
// DetailQuote.h: interface for the CDetailQuote class.
//
// 1 DId int 明细编号
// 2 TId int 装机编号 Allow Null = False
// 3 FittingId int 配件序号 Allow Null = False
// 4 Num int 数量 Allow Null = False 默认值:1
// 5 SubTotal float 小计 Allow Null = True
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_DETAILQUOTE_H__EB874C2C_96A5_488A_B130_D5206F1598D7__INCLUDED_)
#define AFX_DETAILQUOTE_H__EB874C2C_96A5_488A_B130_D5206F1598D7__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CDetailQuote
{
// 定义变量
public:
long DId; // 明细编号
long TId; // 装机编号
long FittingId; // 配件序号
long Num; // 数量
double SubTotal; // 小计
// 定义方法
public:
CDetailQuote();
virtual ~CDetailQuote();
// 数据库操作
int HaveFitting(CString paraTId,CString paraFId); // 判断是否存在此配件信息
int GetNum(CString paraTId); // 从DetailQuote表中得到配件总数
double GetTotal(CString paraTId); // 从DetailQuote表中得到总价
void GetInfo(CString paraDId); // 读取明细数据;
void SqlInsert(); // 插入操作
void SqlUpdate(CString paraDId); // 修改操作
void SqlDelete(CString paraDId); // 删除操作
void SqlDelAll(CString paraTId); // 根据装机编号删除其全部明细
};
#endif // !defined(AFX_DETAILQUOTE_H__EB874C2C_96A5_488A_B130_D5206F1598D7__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -