📄 dbnotify.h
字号:
#ifndef DBNOTIFY_H_HEADER_INCLUDED_C287FB6A
#define DBNOTIFY_H_HEADER_INCLUDED_C287FB6A
#include "DBOpersBase.h"
class NotifyContent;
class SysTime;
//##ModelId=3D572E300216
//##Documentation
//## 对通知单表操作的类
class DBNotify : public DBOpersBase
{
protected:
virtual CHAR* GetTableName ();
virtual UWORD GetFieldCnt();
private:
//static member to record the number.
static SHORT m_iNewNum;
static SHORT m_iTotalNum;
public:
/* //##ModelId=3D65E3E701AC
//##Documentation
//## 打开通知单表
Err OpenTable(
//##Documentation
//## 打开数据表的方式:EMDB_RDONLY 只读方式 EMDB_RDWR 读写方式
WORD openmode = EMDB_RDONLY);
//##ModelId=3D65E3F40042
//##Documentation
//## 创建通知单表
Err CreateTable();
*/
enum
{
IS_NEW = 0,
RECV_TIME = 1,
CONTENT = 2,
SEND_TIME = 3,
FIELD_COUNT = 4,
RECV_TIME_LEN = 20,
MAX_REC_COUNT = 30,
};
SHORT GetRecCnt();
//overland DelRec, only for count the number of recorder.
Err DelRec(
//##Documentation
//## 记录ID号
SHORT iRecID);
virtual BOOLEAN IsFull();
//##ModelId=3D65E40100AF
//##Documentation
//## 增加一条通知单记录
SHORT AddNotifyRec(NotifyContent *pNotifyContent, SysTime *SendTime);
//##ModelId=3D698D5101E3
//##Documentation
//## 获得通知单表中未读记录条数
SHORT GetNewCnt();
//##ModelId=3D65E45300FD
//##Documentation
//## 设置成员变量m_iRecID指定的记录是否已读标记
Err SetIsNewFlag(SHORT iRecID, BOOLEAN isNew);
//##ModelId=3D65E4550132
//##Documentation
//## 获取成员变量m_iRecID指定的记录是否已读标记
Err GetIsNewFlag(SHORT iRecID, BOOLEAN *isNew);
//##ModelId=3D65E4720397
//##Documentation
//## 获取由m_iRecID指定记录的接收时间
Err GetRecvTime(SHORT iRecID, CHAR* pszTime);
Err GetContent(SHORT iRecID, NotifyContent *pNotifyContent);
};
#endif /* DBNOTIFY_H_HEADER_INCLUDED_C287FB6A */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -