📄 dbworkrep.h
字号:
#ifndef DBWORKREP_H_HEADER_INCLUDED_C287E619
#define DBWORKREP_H_HEADER_INCLUDED_C287E619
#include "DBOpersBase.h"
class WorkRepRecContent;
class WorkRepContent;
#define DBWORKREP_FIELD_COUNT 3
#define DBWORKREP_COUNT 30
//##ModelId=3D55D2EF02A5
//##Documentation
//## 工作报告表操作类
class DBWorkRep : public DBOpersBase
{
public:
enum { EDIT_TIME_LEN = 20, };
//##ModelId=3D65F2BF0098
//##Documentation
//## 打开派工单表
//##ModelId=3D65F2C4029E
//##Documentation
//## 创建消障单表
//Err CreateTable();
//##ModelId=3D65F2C702A2
//##Documentation
//## 增加一条工作报告记录
SHORT AddWorkRepRec(WorkRepContent *pContent);
Err ModifyContent(SHORT iRecID, WorkRepContent *pContent);
//##ModelId=3D65F2CE032E
//##Documentation
//## 获取由成员变量m_iRecID指定的记录内容
Err GetContent(SHORT iRecID,
WorkRepContent *pRecContent);
//##ModelId=3D6990B50051
//##Documentation
//## 获取由m_iRecID指定记录的接收时间
Err GetEditTime(SHORT iRecID,
//##Documentation
//## 存放返回值,失败时为NULL
CHAR* pszTime);
//##ModelId=3D6990BE01A8
//##Documentation
//## 获取获取当前记录所在箱标记
Err GetIsDraftFlg(SHORT iRecID,
BOOLEAN* isDraft);
Err SetIsDraftFlg(SHORT iRecID, BOOLEAN isDraft);
//##ModelId=3D6990000083
//##Documentation
//## 获取记录条数,当前为草稿箱或是发件箱由成员变量m_bIsDraft 指定
SHORT GetSendRecCnt(
//##Documentation
//## 存放返回值
);
SHORT GetDraftRecCnt(
//##Documentation
//## 存放返回值
);
//获取最近一条发件箱中ID号
SHORT GetFirstSendRec ();
//##ModelId=3D6990010188
//##Documentation
//## 是否已满最大条数限制,是草稿箱或是发件箱由成员变量m_bIsDraft 指定
BOOLEAN IsFull();
//构造函数
DBWorkRep (BOOLEAN bIsDraft);
//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);
//获取当前DB的状态,在Draft Or Send
BOOLEAN GetIsDBDraftFlag ();
//##ModelId=3D6F11750355
//##Documentation
//## 设置当前表操作为草稿箱还是发件箱
void SetIsDBDraftFlag(
//##Documentation
//## True:草稿箱 False: 发件箱
BOOLEAN isDraft);
//##ModelId=3D6F0E5A003B
//##Documentation
//## 指示当前为草稿箱还是发件箱
BOOLEAN m_bIsDraft;
DBWorkRep ();
//static member to record the number.
static SHORT m_iDraftNum;
static SHORT m_iSendNum;
/*
static SHORT ChangeDraftNum (SHORT num);
static SHORT ChangeSendNum (SHORT num);
*/
};
#endif /* DBWORKREP_H_HEADER_INCLUDED_C287E619 */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -