| | |
| | | //设备管理 |
| | | AD_Req,//添加设备请求 |
| | | AD_Res,//添加设备响应 |
| | | DD_Req,//停止设备请求 |
| | | DD_Res,//停止设备请求 |
| | | CD_Req,//关闭设备请求 |
| | | CD_Res,//关闭设备请求 |
| | | PD_Req,//暂停设备请求 |
| | | PD_Res,//暂停设备请求 |
| | | |
| | |
| | | { |
| | | char Device_Name[32]; |
| | | char Device_Status[32]; |
| | | char Start_Time[32]; |
| | | char Work_Time[32]; |
| | | char Manufacturer[100]; |
| | | char Devices_Type[32]; |
| | | double Longitude; |
| | | double Latitude; |
| | | }; |
| | | struct ADRes |
| | | { |
| | | Head head; |
| | | |
| | | char Device_Name[32]; |
| | | char Device_Status[32]; |
| | | char Start_Time[32]; |
| | | char Work_Time[32]; |
| | | char Manufacturer[100]; |
| | | char Devices_Type[32]; |
| | | double Longitude; |
| | | double Latitude; |
| | | ADPermission per; |
| | | ADRes() { |
| | | head.type = AD_Res; |
| | |
| | | |
| | | }; |
| | | |
| | | //停止设备 |
| | | struct DDReq |
| | | //关闭设备 |
| | | struct CDReq |
| | | { |
| | | Head head; |
| | | char Device_Name[32]; |
| | | DDReq() { |
| | | head.type = DD_Req; |
| | | head.len = sizeof(DDReq); |
| | | CDReq() { |
| | | head.type = CD_Req; |
| | | head.len = sizeof(CDReq); |
| | | } |
| | | }; |
| | | struct DDPermission |
| | | struct CDPermission |
| | | { |
| | | char Device_Name[32]; |
| | | char Device_Status[32]; |
| | |
| | | char Work_Time[32]; |
| | | char Manufacturer[100]; |
| | | char Devices_Type[32]; |
| | | double Longitude; |
| | | double Latitude; |
| | | }; |
| | | struct DDRes |
| | | struct CDRes |
| | | { |
| | | Head head; |
| | | |
| | | DDPermission per; |
| | | DDRes() { |
| | | head.type = DD_Res; |
| | | head.len = sizeof(DDRes); |
| | | char Device_Status[32]; |
| | | int status; |
| | | CDPermission per; |
| | | CDRes() { |
| | | head.type = CD_Res; |
| | | head.len = sizeof(CDRes); |
| | | } |
| | | }; |
| | | |
| | |
| | | char Work_Time[32]; |
| | | char Manufacturer[100]; |
| | | char Devices_Type[32]; |
| | | double Longitude; |
| | | double Latitude; |
| | | }; |
| | | struct PDRes |
| | | { |
| | | Head head; |
| | | |
| | | char Device_Status[32]; |
| | | char Work_Time[32]; |
| | | int status; |
| | | PDPermission per; |
| | | PDRes() { |
| | | head.type = PD_Res; |
| | |
| | | // 系统运行状态表相关信息 |
| | | struct Histroy_Info{ |
| | | int sysId; // 对应系统运行状态表的记录编号 |
| | | QString sysDataCollectionTime; // 数据采集时间 |
| | | QString sysDeviceType; // 设备类型 |
| | | QString sysDeviceId; // 设备编号 |
| | | QString sysDeviceStatus; // 设备状态 |
| | | QString sysSystemStatus; // 系统整体运行状态描述 |
| | | char sysDataCollectionTime[50]; // 数据采集时间 |
| | | char sysDeviceType[50]; // 设备类型 |
| | | char sysDeviceId[50]; // 设备编号 |
| | | char sysDeviceStatus[50]; // 设备状态 |
| | | char sysSystemStatus[50]; // 系统整体运行状态描述 |
| | | |
| | | int devId; // 对应设备详细信息表的记录编号 |
| | | QString devDeviceType; // 设备类型(与系统运行状态表中的设备类型对应,可用于关联) |
| | | QString devDeviceId; // 设备编号(与系统运行状态表中的设备编号对应,可用于关联) |
| | | QString devModel; // 设备型号 |
| | | QString runDeviceStatus; // 设备状态 |
| | | QString runFaultAlarmTime; // 故障报警时间 |
| | | QString runFaultDescription; // 故障详细描述 |
| | | char devDeviceType[50]; // 设备类型(与系统运行状态表中的设备类型对应,可用于关联) |
| | | char devDeviceId[50]; // 设备编号(与系统运行状态表中的设备编号对应,可用于关联) |
| | | char devModel[50]; // 设备型号 |
| | | char runDeviceStatus[50]; // 设备状态 |
| | | char runFaultAlarmTime[50]; // 故障报警时间 |
| | | char runFaultDescription[50]; // 故障详细描述 |
| | | |
| | | int safetyId; // 对应设备安全状态表的记录编号 |
| | | QString safetyDataCollectionTime; // 数据采集时间(可用于关联不同表在同一时间点的数据情况) |
| | | QString safetyDeviceType; // 设备类型(用于关联) |
| | | QString safetyDeviceId; // 设备编号(用于关联) |
| | | QString safetyStatus; // 设备安全状态 |
| | | QString safetyParameter; // 安全参数 |
| | | char safetyDataCollectionTime[50]; // 数据采集时间(可用于关联不同表在同一时间点的数据情况) |
| | | char safetyDeviceType[50]; // 设备类型(用于关联) |
| | | char safetyDeviceId[50]; // 设备编号(用于关联) |
| | | char safetyStatus[50]; // 设备安全状态 |
| | | char safetyParameter[50]; // 安全参数 |
| | | }; |
| | | // 历史查询响应结构体 |
| | | // 安全状态表相关信息 |