📄 dbprobsolv.h
字号:
#ifndef DBPROBSOLV_H_HEADER_INCLUDED_C2879F2E
#define DBPROBSOLV_H_HEADER_INCLUDED_C2879F2E
#include "DBOpersBase.h"
class ProbSolvContent;
#define DBPROBSOLV_FIELD_COUNT 3
#define DBPROBSOLV_COUNT 30
//##ModelId=3D55CFED006C
//##Documentation
//## 消障单表操作函数发送箱草稿箱共用
class DBProbSolv : public DBOpersBase
{
public:
SHORT GetFirstSendRec ();
DBProbSolv (BOOLEAN bIsDraft);
enum { EDIT_TIME_LEN = 20, };
//##ModelId=3D65F40C02DB
//##Documentation
//## 增加一条消障单记录
SHORT AddProbSolvRec(ProbSolvContent *pContent);
Err ModifyContent(SHORT iRecID, ProbSolvContent *pContent);
//##ModelId=3D65F41603D0
//##Documentation
//## 获取由成员变量m_iRecID指定的记录内容
Err GetContent(
SHORT iRecID,
//##Documentation
//## 存放返回值的记录对象指针
ProbSolvContent *pRecContent);
//##ModelId=3D698E2401AB
//##Documentation
//## 获取由参数iRecID指定的记录编辑时间
Err GetEditTime(
//##Documentation
//## 记录ID
SHORT iRecID,
//##Documentation
//## 存放返回值,失败时为NULL
CHAR* pszTime);
//##ModelId=3D65F44002F4
//##Documentation
//## 获取获取当前记录所在箱标记
Err GetIsDraftFlg(
SHORT iRecID,
//##Documentation
//## 返回值,是否为草稿箱中记录
BOOLEAN* isDraft);
Err SetIsDraftFlg(SHORT iRecID, BOOLEAN isDraft);
SHORT GetSendRecCnt();
SHORT GetDraftRecCnt();
//##ModelId=3D6D84E70042
//##Documentation
//## 是否已满最大条数限制,是草稿箱或是发件箱由成员变量m_bIsDraft 指定
BOOLEAN IsFull();
//overland DelRec, only for count the number of recorder.
Err DelRec(
//##Documentation
//## 记录ID号
SHORT iRecID);
protected:
//获取表名,重载基类方法
CHAR* GetTableName();
//获取Field的数目,重载基类方法
UWORD GetFieldCnt();
private:
//通过当前的数据库的信息条数,弹出不同的Dialog
BOOLEAN PopupDialog (BOOLEAN isDraft);
//##ModelId=3D6F11750355
//##Documentation
//## 设置当前表操作为草稿箱还是发件箱
void SetIsDBDraftFlag(
BOOLEAN isDraft
//##Documentation
//## True:草稿箱 False: 发件箱
);
//获取当前DB的状态,在Draft Or Send
BOOLEAN GetIsDBDraftFlag ();
//##ModelId=3D6EECDA012A
//##Documentation
//## 指示当前为草稿箱还是发件箱
BOOLEAN m_bIsDraft;
DBProbSolv ();
//static member to record the number.
static SHORT m_iDraftNum;
static SHORT m_iSendNum;
};
#endif /* DBPROBSOLV_H_HEADER_INCLUDED_C2879F2E */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -