异常事件类
使用说明
本节功能是异常事情的上报和处理流程说明
--事件的常量定义
enum TNEventType
{
TN_EVENT_NO_DEFINE = 0,
TN_EVENT_EQPT_STOP = 1,
TN_EVENT_LESS_MATERIAL = 2,
TN_EVENT_TECH = 3
};
enum TNMsgType
{
TN_MSG_REG = 1,
TN_MSG_VERIFY = 2
};
enum TNFaultFlow
{
TN_FAULT_FLOW_GENERATE = 0,
TN_FAULT_FLOW_REPORT = 1,
TN_FAULT_FLOW_CONFIRM = 2,
TN_FAULT_FLOW_DISPOSE = 3,
TN_FAULT_FLOW_DISPOSE_END = 4,
TN_FAULT_FLOW_CLOSE = 5,
TN_FAULT_FLOW_CANCEL = 6,
TN_FAULT_FLOW_EDIT = 7
};
enum TNDestType
{
TN_DEST_SMS = 1,
TN_DEST_PHONE = 2,
TN_DEST_MAIL = 3,
TN_DEST_APP = 4,
TN_DEST_LED = 5,
TN_DEST_TERMINAL = 6,
TN_DEST_WECHART = 7,
TN_DEST_DESK = 8,
TN_DEST_TN_SERVER = 9,
TN_DEST_PLUG = 10
};
enum TNSendTimeLevel
{
TN_SEND_TIME_LEVEL_0 = 0,
TN_SEND_TIME_LEVEL_1 = 1,
TN_SEND_TIME_LEVEL_2 = 2,
TN_SEND_TIME_LEVEL_3 = 3
};
enum TNEqptState
{
TN_EQPT_STATE_STOP = 0,
TN_EQPT_STATE_WORK = 1,
TN_EQPT_STATE_MANU = 2,
TN_EQPT_STATE_IDLE = 3,
TN_EQPT_STATE_FAULT = 4,
TN_EQPT_STATE_DEBUG = 5,
TN_EQPT_STATE_UNKNOW = 9
};