📄 cc_data_struct0615.h
字号:
/*************************************************************/
/*************************************************************/
struct ring_info_struct
{
int nRingId; //铃声ID int 4 铃声的标识ID
char szRingName[CC_RING_NAME_LEN]; //名称 char 20+1
char szRingPath[CC_RING_PATH_LEN]; //铃声路径 char 60+1
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** schedule.if the infomation of the schedule ****/
/**** is added,it the cell of the struct that is ****/
/**** szKeepCode will be used as the added ****/
/**** infomation. ****/
/**** this struct won't be saved in the database ****/
/*************************************************************/
/*************************************************************/
struct schedule_info_struct
{
int nScheduleId; //日程ID int 4 日程的标识
int nSceDevId; //场景/设备ID int 4 场景或设备的标识ID
char cType; //类型 char 1 1-为设备时间点 2-为设备时间段 3-为场景
int nBeginTimerId; //起始定时器ID int 4 定时器->ID
char method; //操作方法 char 1 1:开操作(设备值起作用)2:关操作3:停用操作4:启用操作
short nDevStatus; //设备值 Short 2 同设备->当前状态
int nLastTimerId; //结束定时器ID int 4 定时器->ID
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** room.if the infomation of the room is ****/
/**** added,it the cell of the struct that is ****/
/**** szKeepCode will be used as the added ****/
/**** infomation. ****/
/**** this struct won't be saved in the database ****/
/*************************************************************/
/*************************************************************/
struct room_info_struct
{
int nRoomId; //房间ID int 4 房间的标识ID
char szRoomName[CC_ROOM_NAME_LEN]; //房间名称 char 20+1 用户可自定义的名称.,默认是根据房间类型来命名
int nRoomType; //房间类型ID int 4
char szRoomDescrip[CC_ROOM_DESCRIP_LEN]; //描述 char 60+1 对房间的详细描述
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** room_type.if the infomation of the room_type ****/
/**** is added,it the cell of the struct that is ****/
/**** szKeepCode will be used as the added ****/
/**** infomation. ****/
/**** this struct won't be saved in the database ****/
/*************************************************************/
/*************************************************************/
struct room_type_info_struct
{
int nRoomTypeId; //房间类型ID Int 4 房间类型的标识ID
char szTypeName[CC_ROOM_TYPE_NAME_LEN]; //类型名 Char 20+1 0:主卧 1:次卧 2:客厅 3:阳台 4.厨房 5.书房 6.走廊 7.其他
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** part_safty.if the infomation of ****/
/**** the part_safty is added,it the cell of the ****/
/**** struct that is szKeepCode will be used as ****/
/**** the added infomation. ****/
/**** this struct won't be saved in the database ****/
/*************************************************************/
/*************************************************************/
struct part_safty_info_struct
{
int nPartSaftyId; //ID Int 4 设防的索引ID
int nRoomId; //房间ID Int 4 见房间->房间ID
char cLookType; //类型 Byte 1 1-一次性2-每日3-每周4-每月5-每年
int nStartTime; //起始时间 UINT 4 根据类型决定类型―>时间定义1―>日期时间,time_t类型
//2―>一天内的累计分钟,范围0-24×60-1
//3―>一周内的累计分钟,范围0-7×24×60-1,周日为0,
//4―>一月内的累计分钟,范围0-31×24×60-1
//5―>一年内的累计分钟,范围0-365×24×60-1
int nEndTime; //结束时间 UINT 4 同上,但要晚于上面的时间
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** card.if the infomation of the card ****/
/**** is added,it the cell of the struct that ****/
/**** is szKeepCode will be used as the added ****/
/**** infomation. ****/
/**** this struct won't be saved in the database ****/
/*************************************************************/
/*************************************************************/
struct card_info_struct
{
int nCardId; //卡ID int 4 卡的标识ID
char szCardNum[CC_CARD_NUM_LEN]; //卡号 char 15+1 卡的编号
char szMembName[CC_MEMB_NAME_LEN]; //成员名 char 20+1 使用此卡的成员名
int nTime; //登记时间 int 4 最近设置时间
char cType; //卡类型 char 1 0-永久有效 1-时间有效 2-无效
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** card_invalide.if the infomation of ****/
/**** the card_invalide is added,it the cell of the ****/
/**** struct that is szKeepCode will be used as ****/
/**** the added infomation. ****/
/**** this struct won't be saved in the database ****/
/*************************************************************/
/*************************************************************/
struct card_invalide_info_struct
{
int nId; //ID int 4 标识ID
int nCardId; //卡ID int 4 用户卡的ID
char cLoopType; //循环类型 char 1 1-一次性 2-每日 3-每周 4-每月 5-每年
int nBeginTime; /*起始时间 int 4 根据类型决定
类型―>时间定义
1―>日期时间,time_t类型
2―>一天内的累计分钟,范围0-24×60-1
3―>一周内的累计分钟,范围0-7×24×60-1,周日为0,
4―>一月内的累计分钟,范围0-31×24×60-1
5―>一年内的累计分钟,范围0-365×24×60-1*/
int nLastTime; //结束时间 int 4 同上
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** door_bind.if the infomation of the door_bind****/
/**** is added,it the cell of the struct that ****/
/**** is szKeepCode will be used as the added ****/
/**** infomation. ****/
/**** this struct won't be saved in the database ****/
/*************************************************************/
/*************************************************************/
struct door_bind_info_struct
{
int nId; //ID int 4
int nDoorForbid; //门禁ID int 4 门禁设备ID
int nDoorMagID; //门磁ID int 4 门磁设备ID
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** door.if the infomation of the door ****/
/**** is added,it the cell of the struct that ****/
/**** is szKeepCode will be used as the added ****/
/**** infomation. ****/
/**** this struct won't be saved in the database ****/
/*************************************************************/
/*************************************************************/
struct door_info_struct
{
int nDoorMagId; //ID int 4
char nDoorMagCode[CC_DOOR_MAGCODE_LEN]; //门磁码
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** outin.if the infomation of the outin ****/
/**** is added,it the cell of the struct that ****/
/**** is szKeepCode will be used as the added ****/
/**** infomation. ****/
/**** this struct won't be saved in the database ****/
/*************************************************************/
/*************************************************************/
struct outin_record_info_struct
{
int nRecordId; //记录ID int 门的标识ID
int nCardId; //卡ID int 4
char szMembName[CC_MEMB_NAME_LEN]; //成员名 car 20+1 此卡的成员名,可保存历史记录
int nTime; //时间 int 4 进出时间
int nDeviceId; //设备ID int 4 门禁的ID
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** voice.if the infomation of the voice ****/
/**** is added,it the cell of the struct that ****/
/**** is szKeepCode will be used as the added ****/
/**** infomation. ****/
/**** this struct won't be saved in the database ****/
/*************************************************************/
/*************************************************************/
struct voice_record_info_struct
{
int nVoiceId; //留言ID Int 4 留言的标识ID
char szVoiceTitle[CC_VOICE_TITLE_LEN]; //标题 Char 20 留言的标题
int nUserId; //留言用户ID Int 4 用户ID(用户标号12前8位产生
char szUserName[CC_VOICE_USER_NAME_LEN]; //留言用户 Char 20 留言用户名称,
char szVoiceContext[CC_VOICE_CONTEXT_LEN]; //留言内容 Char 60 留言文件名称
char cReadFlag; //阅读标志 Byte 1 0-未阅读1-已阅读
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** memory_text.if the infomation of the memory_text ****/
/**** is added,it the cell of the struct that ****/
/**** is szKeepCode will be used as the added ****/
/**** infomation. ****/
/**** this struct won't be saved in the database ****/
/*************************************************************/
/*************************************************************/
struct memory_text_info_struct
{
int nMemoId; //备忘录ID int 4
char szTitle[CC_TITLE_LEN]; //标题 char 20+1
char szTipContent[CC_TIPCONTENT_LEN]; //提示内容 char 100+1
int nRecordTime; //记录时间 int Time_t 类型
char cNotifyType; /*通知类型 char 1 0:-中控提示,(即响铃)
1:中控不提示
2:-有短信
3:-无短信
4:-有邮件
5:-无邮件
*/
char szSMPhone[CC_SM_PHONE_LEN]; //短信手机 char 80+1 多个手机号以','隔开,空表示没有
char szMailNotify[CC_MAIL_NOTIFY_LEN]; //邮件通知 char 80+1 多个邮件地址以','隔开,空表示没有
int nTimer; //定时器ID int 4 触发的定时器
int nRingId; //铃声ID int 4 响铃提示的铃声
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** alarm_set.if the infomation of the alarm_set ****/
/**** is added,it the cell of the struct that ****/
/**** is szKeepCode will be used as the added ****/
/**** infomation. ****/
/**** this struct won't be saved in the database ****/
/*************************************************************/
/*************************************************************/
struct alarm_set_info_struct
{
int nId; /* 类型ID int 4 现在只能由系统定制,用户不能增加、删除
1-火警
2-有毒气体
3-匪警
4-紧急报警(用户通过中控发出的报警)*/
char cAlarmType; /* 发送报警类型char 1 0-无
1-手机短信报警
2-电话报警
3-邮件报警
4-手机和电话
5-手机和邮件
6-电话和邮件
7-所有*/
char szCellPhone[CC_PHONE_NUM_LEN]; // 手机号码 char 80+1 接收短信的手机号码
char szPhoneNum[CC_PHONE_NUM_LEN]; // 电话号码 char 80+1 接收电话报警的电话号码
char szEMail[CC_EMAIL_LEN]; // 邮箱 char 80+1 接收邮件报警的邮件地址
char szTipConten[CC_ALARM_TIP_LEN]; // 提示内容 char 80+1 用户自定义的报警提示内容
int nAlarmId; // 报警录音ID int 4 电话报警用
char szKeepCode[CC_KEEP_CODE_LEN]; // 保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -