?? cc_data_struct0615.h
字號:
#pragma once
#ifndef __CC_PRIVE_DATA
#define __CC_PRIVE_DATA
#define CC_PSW_LEN 9 //the length of the user password;
#define CC_OWNER_NAME_LEN 21 //the length of the owner name;
#define CC_BORN_DATE_LEN 9 //the length of the user's born date;
#define CC_IDENTI_NUM_LEN 21 //the length of the user's certificate number;
#define CC_CELLPHONE_LEN 21 //the length of the user's cellular telephone;
#define CC_POSTCODE_LEN 7 //the length of the user's postcode;
#define CC_ZONENUM_LEN 6 //the length of the user's zonecode;
#define CC_ADDR_LEN 61 //the length of the user's address;
#define CC_HOMEPHONE_LEN 21 //the length of the user's home phone;
#define CC_CCSERIAL_NUM_LEN 15 //the length of the user's CC Code;
#define CC_KEEP_CODE_LEN 10 //the length of the blank segment;
#define CC_DEVIE_NAME_LEN 21 //the length of the device name;
#define CC_DEVICE_NUM_LEN 21 //the length of the device number;
#define CC_SCENE_NAME_LEN 21 //the length of the scene name;
#define CC_SCENE_DESCRIP_LEN 61 //the length of the scene description;
#define CC_TIP_CONTEN_LEN 31 //the length of the bell's clue content
#define CC_SET_NAME_LEN 21 //the length of the bell installer's name
#define CC_CARD_NUM_LEN 16 //the length of the roomcard's number
#define CC_MEMB_NAME_LEN 21 //the length of the member's name
#define CC_ROOM_NAME_LEN 21 //the length of the room's name
#define CC_ROOM_DESCRIP_LEN 61 //the length of the room's description
#define CC_RING_NAME_LEN 21 //the length of the ring's name
#define CC_RING_PATH_LEN 61 //the length of the ring's path
#define CC_DOOR_MAGCODE_LEN 21 //the length of the door magnetism
#define CC_FRIEND_NAME_LEN 21 //the length of the friend's name
#define CC_NUM_LEN 16 //the length of the friend's number
#define CC_TITLE_LEN 21 //the length of the memo's title
#define CC_TIPCONTENT_LEN 101//the length of the memo's tip content
#define CC_SM_PHONE_LEN 81 //the length of the phone which receive short message
#define CC_MAIL_NOTIFY_LEN 81 //the length of the E_mail notify
#define CC_PHONE_NUM_LEN 81 //the length of the number of the phone which receive alarm
#define CC_EMAIL_LEN 81 //the length of the E_mail which is used to alarm
#define CC_ALARM_TIP_LEN 81 //the length of the alarm's tip content
#define CC_NAME_LEN 21 //the length of the PuMei and common user's name
#define CC_OFFICEPHONE_LEN 21 //the length of the PuMei and common user's office phone
#define CC_MAIL_LEN 31 //the length of the PuMei and common user's E_mail
#define CC_ADDRESS_LEN 61 //the length of the PuMei and common user's address
#define CC_REMARK_LEN 81 //the length of the PuMei and common user's remark
#define CC_ALARM_NODE_LEN 81 //the length of the number of the alarm node
#define CC_SPAYER_LEN 21 //the length of the the storer's or payer's name
#define CC_SPAY_NAME_LEN 30 //the length of the store or pay reason
#define CC_TEL_PHONE_LEN 21 //the length of the phone number from another
#define PHONEBOOKGROUP_NAME_LEN 21
#define PHONEBOOK_NAME_LEN 21
#define PHONEBOOK_NUMBER_LEN 21
#define CC_PHOTO_PATH_LEN 61;
#define CC_BOROUGH_ID_LEN 5
#define CC_PROVINCE_ID_LEN 5
#define CC_BOROUGH_NAME_LEN 31
#define CC_PROVINCE_NAME_LEN 31
#define CC_ROOM_TYPE_NAME_LEN 21
#define CC_VOICE_TITLE_LEN 21
#define CC_VOICE_USER_NAME_LEN 21
#define CC_VOICE_CONTEXT_LEN 61
#define CC_ALARM_NODE_NUM 10
#define CC_ALARM_ROOM_NODE_LEN 206
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** user.if the infomation of the user 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 user_info_struct
{
int nCCID; //中控ID int 4 由中控編號后4個字節生成
char szLittleName[CC_OWNER_NAME_LEN]; //用戶呢稱 char 20+1
char szUserPsw[CC_PSW_LEN]; //用戶密碼 char 8+1 數字,字符(不分大小寫)
char szAdminPsw[CC_PSW_LEN]; //超級管理員密碼 char 8+1 數字,字符(不分大小寫)
char szPhonePsw[CC_PSW_LEN]; //電話密碼 char 8+1 數字,字符(不分大小寫)
char szOwnName[CC_OWNER_NAME_LEN]; //戶主姓名 char 20+1
char cSex; //性別 char 1
char szBornDate[CC_BORN_DATE_LEN]; //出生年月 char 8+1 YYYYMMDD
char cIdentiType; //證件類型 char 1 1_身份證, 2_軍官證
char szIdentiNum[CC_IDENTI_NUM_LEN]; //證件號碼 char 20+1
char szCellPhone[CC_CELLPHONE_LEN]; //手機號碼 char 21 聯系手機號碼
char szPostCode[CC_POSTCODE_LEN]; //郵編 char 6+1
char szZoneNum[CC_ZONENUM_LEN]; //區號 char 5+1
char szAddress[CC_ADDR_LEN]; //地址 char 60+1
char szHomePhone[CC_HOMEPHONE_LEN]; //住宅電話 char 20+1
char szCcSerialNum[CC_CCSERIAL_NUM_LEN];//中控編號 char 14+1
int nCircletId; //小區ID int 4 0-表示沒有選擇小區
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** user.if the infomation of the user 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 pc_user_info_struct
{
int nID; //用戶ID int 4 由服務器生成
char szUserPsw[CC_PSW_LEN]; //用戶密碼 char 8+1 數字,字符(不分大小寫)
char szOwnName[CC_OWNER_NAME_LEN]; //戶主姓名 char 20+1
char szLittleName[CC_OWNER_NAME_LEN]; //用戶呢稱 char 20+1
char cSex; //性別 char 1
char szBornDate[CC_BORN_DATE_LEN]; //出生年月 char 8+1 YYYYMMDD
char cIdentiType; //證件類型 char 1 1_身份證, 2_軍官證
char szIdentiNum[CC_IDENTI_NUM_LEN]; //證件號碼 char 20+1
char szCellPhone[CC_CELLPHONE_LEN]; //手機號碼 char 21 聯系手機號碼
char szMail[CC_MAIL_LEN]; //郵件 Char 31
char szPostCode[CC_POSTCODE_LEN]; //郵編 char 6+1
char szZoneNum[CC_ZONENUM_LEN]; //區號 char 5+1
char szAddress[CC_ADDR_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 ****/
/**** borough.if the infomation of the borough 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 borough_info_struct
{
char szBoroughNum[CC_ZONENUM_LEN]; //區號 char 5+1 只能是數字
int nProvinceID; //省ID Int 4+1
char szBoroughName[CC_BOROUGH_NAME_LEN]; //區名字 Char 30+1 區號代表的名字
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** province.if the infomation of the province 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 province_info_struct
{
int nProvinceID; //省ID Int 4+1
char szProvinceName[CC_PROVINCE_NAME_LEN]; //省名稱 Char 30+1 全國的所有省的名稱
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** device.if the infomation of the device 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 device_info_struct
{
int nDeviceId; //設備ID int 4 設備的標識ID
char szDevieName[CC_DEVIE_NAME_LEN]; //設備名稱 char 20+1
char szDevieSerialNum[CC_DEVICE_NUM_LEN]; //設備編號 char 10+1 廠家的設備編號
int nRoomId; //房間ID int 4 設備所屬房間ID
short nSystemAddr; //系統地址 short 2 設備系統地址
short nDeviceAddr; //設備地址 short 2 節點的地址 0-表示虛設備
short nDeviceType; //設備類型 short 2 1-紅外設備 2-用戶設備 。。。其他待定義
short nDeviceStatus; //設備當前狀態 short 2 設備當前狀態值,值范圍根據設備類型而異,請參閱<設備規范說明>
char cDeviceIsOnline; //設備在線狀態 char 1 0-離線 1-在線
char cDeviceIsEnable; //設備停用/啟用狀態 char 1 0-啟用 1-停用
int nBindDeviceId; //實設備ID int 4 綁定的實設備ID
int nObjOpearation; //操作源 int 4 0:中控 1:遙控器 2:設備面板 3:電話 4:web遠控
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** sence.if the infomation of the sence 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 sence_info_struct
{
int nSceneId; //場景ID int 4 場景的標識ID
char szSceneName[CC_SCENE_NAME_LEN]; //場景名稱 char 20 用戶可自定義的名稱
int nRoomId; //房間ID int 4 場景所屬的房間ID
char cSceneProperty; //場景屬性 char 1 0-關 1-開
char cSceneType; //場景類型 char 1 0-起夜 1-睡眠 2-離家 3-歸家 4-會客 5-自定 6-家庭影院
char szSceneDescrip[CC_SCENE_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 ****/
/**** sence_device.if the infomation of the ****/
/**** sence_device 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 sence_device_info_struct
{
int nSceneId; //場景ID int 4 場景的標識ID
int nDeviceId; //設備ID int 4 設備的標識ID
char cSysStatus; //系統狀態 char 1 定義見設備表->設備系統狀態
short nDevieValue; //設備值 short 2 定義見設備表->設備狀態
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** timer.if the infomation of the timer 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 timer_info_struct
{
int nTimerId; //定時器ID int 4 定時器的標識ID
char cTimerType; //類型 char 1 1-一次性 2-每日 3-每周 4-每月 5-每年
int nDate; /*時間 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*/
char cBusiType; //業務類型 char 1 1-鬧鐘 2-日程 3-備忘錄
int nBusiId; //業務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 ****/
/**** clock.if the infomation of the clock 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 clock_info_struct
{
int nId; //鬧鐘ID int 4 鬧鐘的標識ID
char szTipContent[CC_TIP_CONTEN_LEN]; //提示內容 char 30+1
char szSetName[CC_SET_NAME_LEN]; //設置人 char 20+1 用卡用戶名讓用戶選擇
int nRingId; //鈴聲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 ****/
/**** ring.if the infomation of the ring 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 ****/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -