240717班级,工业化控制系统,煤矿相关行业,昆仑系统
congmu
2024-11-01 be7ec1960708164fb0fe36996c6e6bfa41afe207
common
1个文件已修改
82 ■■■■■ 已修改文件
common.h 82 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
common.h
@@ -25,8 +25,8 @@
    //设备管理
    AD_Req,//添加设备请求
    AD_Res,//添加设备响应
    DD_Req,//停止设备请求
    DD_Res,//停止设备请求
    CD_Req,//关闭设备请求
    CD_Res,//关闭设备请求
    PD_Req,//暂停设备请求
    PD_Res,//暂停设备请求
@@ -273,15 +273,22 @@
{
    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;
@@ -290,17 +297,17 @@
};
//停止设备
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];
@@ -308,15 +315,18 @@
    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);
    }
};
@@ -338,11 +348,15 @@
    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;
@@ -635,26 +649,26 @@
// 系统运行状态表相关信息
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];  // 安全参数
};
// 历史查询响应结构体
// 安全状态表相关信息