📄 structure.h
字号:
char IC_value10[MAX_ICVALUELEN]; char IC_value80[MAX_ICVALUELEN]; //9.12 char IC_bank[MAX_ICVALUELEN]; //9.12 u32 IC_num; char name[MAX_PEOPLENAMELEN]; char idtype[MAX_IDTYPELEN]; char idcard[MAX_IDCARDLEN]; char sex[MAX_SEXLEN]; time_t birth; char mcall[MAX_CALLLEN]; char hcall[MAX_CALLLEN]; char job[MAX_JOBLEN]; char address[MAX_ADDRESSLEN]; u32 stat; u32 mode; float money; //9.12 float limit; //9.12 u32 cred_flag; //add by zjj on 1225 }users[TEMPNUM_INMSG];};//No.42struct GetAlltempargs { struct Head head; /* 消息头 */ //char IC_value80[MAX_ICVALUELEN];/* 临时人员80cm IC卡帐号 */ //add by zdy 01/17 char IC_value10[MAX_ICVALUELEN];/* 临时人员10cm IC卡帐号 */ u32 ICvaluelen; /* 帐号长度 */};struct GetAlltempres { struct Head head; /* 消息头 */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */ u32 usernum; struct temp_card { char IC_value80[MAX_ICVALUELEN]; char IC_value10[MAX_ICVALUELEN]; //9.12 char IC_bank[MAX_ICVALUELEN]; //9.12 char name[MAX_USERNAMELEN]; char idtype[MAX_IDTYPELEN]; char idcard[MAX_IDCARDLEN]; u32 stat; float money; }users[USERNUM_INMSG];};//No.43struct SetTempStatargs { struct Head head; /* 消息头 */ u32 stat; /* 设置卡状态 */ char ICvalue80[MAX_ICVALUELEN]; /* 80cm 卡号码 */ char password[MAX_PASSWDLEN]; /* 业主消费密码 */ u32 passwordlen; /* 业主消费密码长度 */};struct SetTempStatres { struct Head head; /* 消息头 */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */};struct GetCardRateargs { struct Head head; /* 消息头 */ u32 flag; /* 业主卡还是物业卡标志、临时卡 */};struct GetCardRateres{ struct Head head; /* 消息头 */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */ u32 rate_num; /* 本次发送的费率数目 */ struct rate_struct { u32 IC_type; /* 业主卡还是物业卡标志、临时卡 */ u32 rate_type; /* 计费类型,小时,天,月 */ float rate; /* 费率 */ }rates[RATENUM_INMSG];};struct SetCardRateargs{ struct Head head; /* 消息头 */ u32 rate_num; /* 本次发送的费率数目 */ struct rate_set { u32 IC_type;/* 业主卡还是物业卡标志、临时卡 */ u32 rate_type; /* 计费类型,小时,天,月 */ float rate; /* 费率 */ }rates[RATENUM_INMSG];};struct SetCardRateres { struct Head head; /* 消息头 */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */};struct SumMthCostargs{ struct Head head; /* 消息头 */ char homeid[MAX_HOMEIDLEN]; /* 房屋编号 */ u32 homeidlen; /* 房屋编号长度,如果为0,表示查询 所有业主的费用 */};struct SumMthCostres { struct Head head; /* 消息头 */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */ u32 cost_num; /* 本次发送的消费条目数量 */ struct mth_cost { char homeid[MAX_HOMEIDLEN]; /* 业主房屋编号 */ u32 type; /* 费用类型 */ char procession[MAX_PROCESSLEN]; /* 费用说明*/ float cost; /* 费用金额 */ }home_cost[NUMCOST_INMSG];};struct ViewHtyCostargs{ struct Head head; /* 消息头 */ char homeid[MAX_HOMEIDLEN]; /* 房屋编号 */ u32 homeidlen; /* 房屋编号长度,不能为0 */ time_t starttime; /* 开始时间 */ time_t endtime; /* 结束时间 */};struct ViewHtyCostres { struct Head head; /* 消息头 */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */ u32 dtl_num; /* 本次发送的消费条目数量 */ struct time_cost { time_t time; /* 消费时间 */ u32 IC_num; /* IC卡编号 */ u32 type; /* 消费类型类型 */ float cost; /* 费用金额 */ char pos_no[MAX_POSNOLEN]; /* 消费机器编号 */ }dtl_cost[NUMDTLCOST_INMSG];};struct ViewHomeMnyargs{ struct Head head; /* 消息头 */ char homeid[MAX_HOMEIDLEN]; /* 房屋编号 */ u32 homeidlen; /* 房屋编号长度,不能为0 */ time_t starttime; /* 开始时间 */ time_t endtime; /* 结束时间 */};struct ViewHomeMnyres { struct Head head; /* 消息头 */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */ u32 mny_num; /* 本次发送的消费条目数量 */ struct time_mny { time_t time; /* 消费时间 */ float money; /* 费用金额 */ }dtl_mny[NUMDTLMNY_INMSG];};struct ViewCostMnyargs{ struct Head head; /* 消息头 */ char homeid[MAX_HOMEIDLEN]; /* 房屋编号 */ u32 homeidlen; /* 房屋编号长度,不能为0 */ time_t starttime; /* 开始时间 */ time_t endtime; /* 结束时间 */};struct ViewCostMnyres { struct Head head; /* 消息头 */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */ u32 cost_num; /* 本次发送的消费条目数量 */ struct dtl_mth { time_t month; /* 月份 */ u32 type; /* 类型 */ float money; /* 费用金额 */ }dtl_mths[NUMDTLMTH_INMSG];};struct StoreMoneyargs { struct Head head; /* 消息头 */ u32 flag; /* 表示根据业主编号还是IC卡帐号 */ char IC_value[MAX_ICVALUELEN]; /* IC帐号或者业主房屋编号 */ u32 ICvaluelen; /* 帐号长度或者房屋编号长度 */ float money; /* 充值金额 */};struct StoreMoneyres { struct Head head; /* 消息头 */ float money; /* 帐户余额 */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */};//No.36struct SetMonthMnyargs { struct Head head; /* 消息头 */ u32 flag; /* 表示根据业主编号还是IC卡帐号 */ char IC_value[MAX_ICVALUELEN]; /* 业主房屋编号 */ u32 ICvaluelen; /* IC帐号或者业主房屋编号*/ u32 type; /* 客户端输入费用类型 */ float money; /* 金额 */};struct SetMonthMnyres { struct Head head; /* 消息头 */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */};//No.37struct SetTailTypeargs { struct Head head; /* 消息头 */ u32 flag; /* 设置类型(增加、更新、删除) */ u32 type; /* 费用类型 */ char procession[MAX_PROLEN]; /* 费用声明 */};struct SetTailTyperes { struct Head head; /* 消息头 */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */};//No.38struct ViewTailTypeargs { struct Head head; /* 消息头 */ u32 type; /* 若为0表示查找所有类型 */};struct ViewTailTyperes { struct Head head; /* 消息头 */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */ u32 typenum; struct type_num { u32 type; char procession[MAX_PROLEN]; u32 flag; }types[TYPENUM_INMSG];};//No.39struct BgnRecvPatrolargs{ struct Head head; /* 消息头 */};struct BgnRecvPatrolres { struct Head head; /* 消息头 */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */};//No.40struct EndRecvPatrolargs{ struct Head head; /* 消息头 */};struct EndRecvPatrolres { struct Head head; /* 消息头 */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */};//No.41struct GetHtyPatrolargs { struct Head head; /* 消息头 */ char ICvalue10[MAX_ICVALUELEN]; /* 10cm IC卡帐号 */ u32 ICvalue10len; /* 10cm IC卡帐号长度 */ time_t start_time; /* 开始时间 */ time_t end_time; /* 结束时间 */};struct GetHtyPatrolres { struct Head head; /* 消息头 */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */ u32 patrolnum; struct patrol_num { time_t time; /* 刷卡时间 */ char posno[MAX_POSNOLEN];/* 刷卡的智能机编号 */ u32 pos_type; /*设备类型*/ //8.18添加 } patrols[PATROLNUM_INMSG];};//No. 44struct SetEqpTypeargs { struct Head head; /* 消息头 */ u32 flag; /* 设置类型(增加、更新、删除) */ u32 type; /* 设备类型 */ char procession[MAX_PROLEN]; /* 设备声明 */};struct SetEqpTyperes { struct Head head; /* 消息头 */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */};//No.45struct ViewEqpTypeargs { struct Head head; /* 消息头 */ u32 type; /* 若为0表示查找所有类型 */};struct ViewEqpTyperes { struct Head head; /* 消息头 */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */ u32 typenum; struct eqp_type { u32 type; char procession[MAX_PROLEN]; u32 flag; }types[TYPENUM_INMSG];};//No.46struct GetAllYeZhuargs { struct Head head; /* 消息头 */ char IC_value10[MAX_ICVALUELEN];/* 业主10cm IC卡帐号 */ u32 ICvaluelen; /* 帐号长度 */};struct GetAllYeZhures { struct Head head; /* 消息头 */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */ u32 yezhunum; struct yezhu { char ICvalue10[MAX_ICVALUELEN]; u32 ICnum; char ICvalue80[MAX_ICVALUELEN]; char ICbank[MAX_ICVALUELEN]; u32 ICstat; float IClimit; char homeid[MAX_HOMEIDLEN]; char name[MAX_USERNAMELEN]; char idtype[MAX_IDTYPELEN]; char idcard[MAX_IDCARDLEN]; char sex[MAX_SEXLEN]; time_t birth; char mcall[MAX_CALLLEN]; char wcall[MAX_CALLLEN]; char job[MAX_JOBLEN]; char address[MAX_ADDRESSLEN]; u32 peoplestat; }yezhus[YEZHUNUM_INMSG];};//No.50struct GetAllCardargs{ struct Head head; /* 消息头 */ char posno[MAX_POSNOLEN]; /* 楼的编号 */ u32 posnolen; /* 编号长度 */};struct GetAllCardres { struct Head head; /* 消息头 */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */ u32 cards; /* 本次发送的卡号数目 */ struct yezhu_card { char IC_value10[MAX_ICVALUELEN]; } card_num[YEZHUNUM_INMSG];};//No.51struct GetDCIPargs{ struct Head head; /* 消息头 */ char posno[MAX_POSNOLEN]; /* 楼的编号 */ u32 posnolen; /* 编号长度 */};struct GetDCIPres { struct Head head; /* 消息头 */ uint32 ip; /* 门口机IP */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */};//No.52struct GetHCIPargs{ struct Head head; /* 消息头 */ char homeid[MAX_HOMEIDLEN]; /* 房屋编号 */ u32 homeidlen; /* 房屋编号长度 */};struct GetHCIPres { struct Head head; /* 消息头 */ uint32 ip; /* 门口机IP */ u32 retval; /* 执行结果,IA_FAILED:失败 IA_SUCCESS:成功 */ u32 err_num; /* 错误类型 */};//No.53struct SendEmpPatrolargs{ struct Head head; /* 消息头 */ char IC_value10[MAX_ICVALUELEN]; char photo_path[MAX_PHOTOPATHLEN]; u32 type; /* 寻更,进入,离开 */ uint32 ip; /* 终端机ip地址 */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -