| | |
| | | */ |
| | | void initSystemECTable(); |
| | | |
| | | int addSystemEC(int nID, const std::string& sName, const std::string& sDataType, int nMinValue, int nMaxValue, int nDefaultVal, const std::string& sUnit, const std::string& sRemark, int nSystemID); |
| | | |
| | | std::vector<std::vector<std::string>> getSystemECByID(int nID); |
| | | |
| | | std::vector<std::vector<std::string>> getAllSystemEC(); |
| | | |
| | | int updateSystemEC(int nID, int nNewID, const std::string& sName, const std::string& sDataType, int nMinValue, int nMaxValue, int nDefaultVal, const std::string& sUnit, const std::string& sRemark, int nSystemID); |
| | | |
| | | int deleteSystemECByID(int nID); |
| | | |
| | | int deleteAllSystemEC(); |
| | | |
| | | /** |
| | | * 初始化 EqpEC 表 |
| | | */ |
| | | void initEqpECTable(); |
| | | |
| | | int addEqpEC(int nID, const std::string& sName, const std::string& sDataType, int nMinValue, int nMaxValue, int nDefaultValue, const std::string& sUnit, const std::string& sRemark, int nSeqNo, int nLength, int bCanUpdateByHost); |
| | | |
| | | std::vector<std::vector<std::string>> getEqpECByID(int nID); |
| | | |
| | | std::vector<std::vector<std::string>> getAllEqpEC(); |
| | | |
| | | int updateEqpEC(int nID, int nNewID, const std::string& sName, const std::string& sDataType, int nMinValue, int nMaxValue, int nDefaultValue, const std::string& sUnit, const std::string& sRemark, int nSeqNo, int nLength, int bCanUpdateByHost); |
| | | |
| | | int deleteEqpECByID(int nID); |
| | | |
| | | int deleteAllEqpEC(); |
| | | |
| | | /** |
| | | * 初始化 SystemEvent 表 |
| | | */ |
| | | void initSystemEventTable(); |
| | | |
| | | int addSystemEvent(int nCEID, const std::string& sName, const std::string& sRemark, int nSystemID); |
| | | |
| | | std::vector<std::vector<std::string>> getSystemEventByID(int nCEID); |
| | | |
| | | std::vector<std::vector<std::string>> getAllSystemEvents(); |
| | | |
| | | int updateSystemEvent(int nCEID, int nNewCEID, const std::string& sName, const std::string& sRemark, int nSystemID); |
| | | |
| | | int deleteSystemEventByID(int nCEID); |
| | | |
| | | int deleteAllSystemEvents(); |
| | | |
| | | /** |
| | | * 初始化 EqpEvent 表 |
| | | */ |
| | | void initEqpEventTable(); |
| | | |
| | | int addEqpEvent(const std::string& sName, const std::string& sRemark, int nBitNo); |
| | | |
| | | std::vector<std::vector<std::string>> getEqpEventByID(int nCEID); |
| | | |
| | | std::vector<std::vector<std::string>> getAllEqpEvents(); |
| | | |
| | | int updateEqpEvent(int nCEID, const std::string& sName, const std::string& sRemark, int nBitNo); |
| | | |
| | | int deleteEqpEventByID(int nCEID); |
| | | |
| | | int deleteAllEqpEvents(); |
| | | |
| | | /** |
| | | * 初始化 EventLink 表 |
| | | */ |