2024-05-22 15:58:54 +08:00
|
|
|
|
#pragma once
|
2024-03-19 17:45:12 +08:00
|
|
|
|
#include <string>
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
class MachineTypeCfg {
|
|
|
|
|
public:
|
|
|
|
|
enum MachineTypeId {
|
2024-05-22 15:58:54 +08:00
|
|
|
|
HBD_1000 = 0,
|
2024-03-19 17:45:12 +08:00
|
|
|
|
HBD_1500,
|
|
|
|
|
HBD_1200_OLD,
|
|
|
|
|
HBD_1200,
|
|
|
|
|
HBD_E1000
|
|
|
|
|
};
|
|
|
|
|
MachineTypeCfg() {}
|
|
|
|
|
~MachineTypeCfg() {}
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
int m_Id;
|
|
|
|
|
string m_Code;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
static const string TABLE_NAME;
|
|
|
|
|
static const string FIELD_ID;
|
|
|
|
|
static const string FIELD_CODE;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class PurifierTypeCfg {
|
|
|
|
|
public:
|
|
|
|
|
enum PulifierTypeId {
|
|
|
|
|
HBD_PURIFIER_1 = 0,
|
|
|
|
|
XT,
|
|
|
|
|
HBD_PURIFIER_2,
|
|
|
|
|
HBD_PURIFIER_3,
|
|
|
|
|
XT_S,
|
2024-05-22 15:58:54 +08:00
|
|
|
|
M1
|
2024-03-19 17:45:12 +08:00
|
|
|
|
};
|
|
|
|
|
PurifierTypeCfg() {}
|
|
|
|
|
~PurifierTypeCfg() {}
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
int m_Id;
|
|
|
|
|
string m_Code;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
static const string TABLE_NAME;
|
|
|
|
|
static const string FIELD_ID;
|
|
|
|
|
static const string FIELD_CODE;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
enum UserType {
|
|
|
|
|
USER = 0,
|
|
|
|
|
USER_ADMIN,
|
|
|
|
|
ADMIN,
|
|
|
|
|
SUPER
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class SystemBaseCfg {
|
|
|
|
|
public:
|
2024-05-22 15:58:54 +08:00
|
|
|
|
SystemBaseCfg() {}
|
|
|
|
|
~SystemBaseCfg() {}
|
2024-03-19 17:45:12 +08:00
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
map<int, MachineTypeCfg*> m_MachineTypeMap;
|
|
|
|
|
map<int, PurifierTypeCfg*> m_PurifierTypeMap;
|
|
|
|
|
};
|