📄 loglooklarmdlg.cpp
字号:
// LogLookLarmDlg.cpp : implementation file
//
#include "stdafx.h"
#include "LogLookLarmDlg.h"
#include "KMAIDisplayAlarmDlg.h"
#include "KXMLManager.h"
#include "../KylinSystem/KMessageBinder.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// LogLookLarmDlg dialog
LogLookLarmDlg::LogLookLarmDlg(CWnd* pParent /*=NULL*/)
: CDialog(LogLookLarmDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(LogLookLarmDlg)
m_finish = _T("");
m_managing = _T("");
m_norev = _T("");
//}}AFX_DATA_INIT
UserInfo.AddRef();
}
void LogLookLarmDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(LogLookLarmDlg)
DDX_Text(pDX, IDC_STATICFINISH, m_finish);
DDX_Text(pDX, IDC_STATICMANAGEING, m_managing);
DDX_Text(pDX, IDC_STATICNORECEIVE, m_norev);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(LogLookLarmDlg, CDialog)
//{{AFX_MSG_MAP(LogLookLarmDlg)
ON_BN_CLICKED(IDMANAGEING, OnManageing)
ON_BN_CLICKED(IDNORECEIVE, OnNoreceive)
ON_BN_CLICKED(IDFINISH, OnFinish)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// LogLookLarmDlg message handlers
void LogLookLarmDlg::OnManageing()
{
// TODO: Add your control notification handler code here
KMAIDisplayAlarmDlg* ManagingAlarm=new KMAIDisplayAlarmDlg();
ManagingAlarm->DlgType="NEWALARM";
ManagingAlarm->Create(IDD_DIALOGMAIDISPLAYALARM,NULL);
ManagingAlarm->ShowWindow(SW_SHOW);
}
void LogLookLarmDlg::OnNoreceive()
{
KMAIDisplayAlarmDlg* ManagingAlarm=new KMAIDisplayAlarmDlg();
ManagingAlarm->DlgType="NOCEIVEALAM";
ManagingAlarm->Create(IDD_DIALOGMAIDISPLAYALARM,NULL);
ManagingAlarm->ShowWindow(SW_SHOW);
}
void LogLookLarmDlg::OnFinish()
{
// TODO: Add your control notification handler code here
KMAIDisplayAlarmDlg* ManagingAlarm=new KMAIDisplayAlarmDlg();
ManagingAlarm->DlgType="OLDALAMR";
ManagingAlarm->Create(IDD_DIALOGMAIDISPLAYALARM,NULL);
ManagingAlarm->ShowWindow(SW_SHOW);
}
void LogLookLarmDlg::OnCancel()
{
// TODO: Add extra cleanup here
CDialog::OnCancel();
}
BOOL LogLookLarmDlg::OnInitDialog()
{
CDialog::OnInitDialog();
//初始化三个标签框的数值
KXMLManager* xml = KXMLManager::Instance();
m_managing.Format(_T("处理中的报警信息(%d条)"), xml->NowAlarmList.size());
m_finish.Format(_T("已处理的报警信息(%d条)"), xml->OldAlarmList.size());
m_norev.Format(_T("未处理的报警信息(%d条)"), xml->NoCeiveAlarmList.size());
UpdateData(false);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void LogLookLarmDlg::SetNoreceiveNum(int INvalue)
{
this->NoreceiveNum=INvalue;
}
void LogLookLarmDlg::SetUserName(CString stValue)
{
UserName=stValue;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -