[ref]同步711
This commit is contained in:
parent
db4a437bd4
commit
e79ee6bbcd
@ -1,4 +1,4 @@
|
||||
#include "CConstCurves.h"
|
||||
#include "CConstCurves.h"
|
||||
#include "ui_CConstCurves.h"
|
||||
#include "pub_logger_api/logger.h"
|
||||
#include <QMessageBox>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#ifndef CCONSTCURVES_H
|
||||
#ifndef CCONSTCURVES_H
|
||||
#define CCONSTCURVES_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "CConstPluginWidget.h"
|
||||
#include "CConstPluginWidget.h"
|
||||
#include "CConstCurves.h"
|
||||
#include <QWidget>
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#ifndef CCONSTPLUGINWIDGET_H
|
||||
#ifndef CCONSTPLUGINWIDGET_H
|
||||
#define CCONSTPLUGINWIDGET_H
|
||||
|
||||
#include <QObject>
|
||||
@ -7,7 +7,7 @@
|
||||
class CConstPluginWidget : public QObject, public CPluginWidgetInterface
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "kbd.PluginWidgetInterface/1.0")
|
||||
Q_PLUGIN_METADATA(IID HMI_WidgetPlugin_IID)
|
||||
Q_INTERFACES(CPluginWidgetInterface)
|
||||
|
||||
public:
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "CCurveChartView.h"
|
||||
#include "CCurveChartView.h"
|
||||
#include <QLayout>
|
||||
|
||||
CCurveChartView::CCurveChartView(QWidget *parent)
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#ifndef CURVECHARTVIEW_H
|
||||
#ifndef CURVECHARTVIEW_H
|
||||
#define CURVECHARTVIEW_H
|
||||
|
||||
#include <QtCharts/QChartView>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "CDbInterface.h"
|
||||
#include "CDbInterface.h"
|
||||
|
||||
using namespace iot_dbms;
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#ifndef CDBDATAMANAGE_H
|
||||
#ifndef CDBDATAMANAGE_H
|
||||
#define CDBDATAMANAGE_H
|
||||
|
||||
#include <QMap>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "CMessageManage.h"
|
||||
#include "CMessageManage.h"
|
||||
#include "pub_logger_api/logger.h"
|
||||
#include <QDateTime>
|
||||
#include "CDbInterface.h"
|
||||
@ -34,14 +34,13 @@ bool CMessageManage::sendMessage(const SReadQueue& queueList, int nDstDomainId)
|
||||
iot_net::CMbMessage msg;
|
||||
msg.setMsgType(MT_OPT_COMMON_DOWN);
|
||||
msg.setSubject(E_PSCADA_APPID, CH_HMI_TO_OPT_OPTCMD_DOWN);
|
||||
COptCustCtrlRequest cOptCustCtrlRequest;
|
||||
SOptCustCtrlRequest sOptCustCtrlRequest;
|
||||
sOptCustCtrlRequest.stHead = createReqHead(nDstDomainId);
|
||||
sOptCustCtrlRequest.strKeyIdTag = QString("fes_const.%1.value").arg(queueList.tag_name).toStdString();
|
||||
sOptCustCtrlRequest.strRtuTag = queueList.rtu_tag.toStdString();
|
||||
sOptCustCtrlRequest.vecOptCustCtrlQueue = createCtrlQueue(queueList.dev_id);
|
||||
|
||||
std::string content = cOptCustCtrlRequest.generate(sOptCustCtrlRequest);
|
||||
std::string content = COptCustCtrlRequest::generate(sOptCustCtrlRequest);
|
||||
msg.setData(content);
|
||||
|
||||
if(!m_communicator->sendMsgToDomain(msg, nDstDomainId))
|
||||
@ -71,10 +70,9 @@ void CMessageManage::recvMessage()
|
||||
return;
|
||||
}
|
||||
|
||||
COptCustCtrlReply cOptCustCtrlReply;
|
||||
SOptCustCtrlReply sOptCustCtrlReply;
|
||||
std::string str((const char*)msg.getDataPtr(), msg.getDataSize());
|
||||
cOptCustCtrlReply.parse(str, sOptCustCtrlReply);
|
||||
COptCustCtrlReply::parse(str, sOptCustCtrlReply);
|
||||
|
||||
parseMsg(sOptCustCtrlReply);
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#ifndef CMESSAGEMANAGE_H
|
||||
#ifndef CMESSAGEMANAGE_H
|
||||
#define CMESSAGEMANAGE_H
|
||||
|
||||
#include "net/net_msg_bus_api/MsgBusApi.h"
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "CConstCurves.h"
|
||||
#include "CConstCurves.h"
|
||||
#include <QApplication>
|
||||
#include "pub_logger_api/logger.h"
|
||||
#include "dp_chg_data_api/CDpcdaForApp.h"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user