📄 kalarmprotocol.h
字号:
// KAlarmProtocol.h: interface for the KAlarmProtocol class.
//
//////////////////////////////////////////////////////////////////////
#include "../KylinSystem/KMessage.h"
#if !defined(AFX_KALARMPROTOCOL_H__761D578F_9F1D_4398_BEBA_79FBB4824951__INCLUDED_)
#define AFX_KALARMPROTOCOL_H__761D578F_9F1D_4398_BEBA_79FBB4824951__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class DLLEXPORT KAlarmProtocol:public KMessage
{
private:
CString EventMonitorName; //测点编号
CString UseName; //报警要send的用户
CString EventID; //事件ID
CString AlarmStyle; //报警方式
CString AlarmName; //报警名称
CString AlarmMessage; //报警显示信息
CString AlarmId; //报警主键
CString EventLevel; //事件等级
CString EventBeginTime; //事件开始时间
CString EventType; //事件类型
CString EventMine; //矿井名称
CString EventDefineId; //事件定义编号,查询时用
CString EventFinishTime; //报警结束时间
CString MaxValue; //最大值
CString MinValue; //最小值
CString AverageValue; //平均值
CString EventBeginValue; //开始报警时的测点值
CString AttemperTel; //调度电话
CString AlarmingTime; //警报时间
CString AlarmIsSend;
CString state; //state=1:结束,state=0:未结束
CString Telephone;
CString DutyPerson;
CString MineId; //矿井ID
CString AlarmType; //报警类型(是否是客户未收到的报警)
CString AlarmSound; //报警声音
public:
void Clean();
static const KGuid TypeID();
static const CString TypeName();
KAlarmProtocol* Copy();
CString GetMineId();
void SetMineId(CString strValue);
KAlarmProtocol();
virtual ~KAlarmProtocol();
KAlarmProtocol& operator =(const KAlarmProtocol& rvalue);
static const KGuid _TypeID;
virtual const KGuid GetTypeID();
static const CString _TypeName;
virtual const CString GetTypeName();
virtual void Serialize(CArchive& ar);
CString GetUseName();
void SetUseName(CString strValue);
//从AlarmMsgTable表中取得
CString GetEventID();
void SetEventID(CString strValue);
CString GetAlarmStyle();
void SetAlarmStyle(CString strValue);
CString GetAlarmName();
void SetAlarmName(CString strValue);
CString GetAlarmMessage();
void SetAlarmMessage(CString strValue);
CString GetAlarmId();
void SetAlarmId(CString strValue);
//从事件表中取出信息
CString GetEventLevel();
void SetEventLevel(CString strValue);
CString GetEventBeginTime();
void SetEventBeginTime(CString strValue);
CString GetEventType();
void SetEventType(CString strValue);
CString GetEventMine();
void SetEventMine(CString strValue);
CString GetEventMonitorName();
void SetEventMonitorName(CString strValue);
CString GetEventDefineId();
void SetEventDefineId(CString strValue);
CString GetEventFinishTime();
void SetEventFinishTime(CString strValue);
CString GetMaxValue();
void SetMaxValue(CString strValue);
CString GetMinValue();
void SetMinValue(CString strValue);
CString GetAverageValue();
void SetAverageValue(CString strValue);
CString GetEventBeginValue();
void SetEventBeginValue(CString strValue);
CString GetAttemperTel();
void SetAttemperTel(CString strValue);
CString GetAlarmingTime();
void SetAlarmingTime(CString strValue);
CString GetAlarmIsSend();
void SetAlarmIsSend(CString strValue);
CString Getstate();
void Setstate(CString strValue);
CString GetTelephone();
void SetTelephone(CString strValue);
CString GetDutyPerson();
void SetDutyPerson(CString strValue);
CString GetAlarmType();
void SetAlarmType(CString strValue);
CString GetAlarmSound();
void SetAlarmSound(CString strValue);
};
#endif // !defined(AFX_KALARMPROTOCOL_H__761D578F_9F1D_4398_BEBA_79FBB4824951__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -