45 lines
853 B
C++
45 lines
853 B
C++
#include "baseProperty.h"
|
|
#include "dataManager.h"
|
|
|
|
/****************************属性****************************/
|
|
|
|
BaseProperty::BaseProperty(QObject* parent)
|
|
: QObject(parent)
|
|
{
|
|
nType = 0; //设备类型
|
|
bInService = true;
|
|
nState = 1;
|
|
nStatus = 1;
|
|
|
|
_dataChanged = false;
|
|
_prepareDelete = false;
|
|
|
|
sGrid=QString("1"); //暂时修改,数据库字段不为空
|
|
sZone=QString("1");
|
|
sStation=QString("1");
|
|
}
|
|
|
|
BaseProperty::~BaseProperty()
|
|
{
|
|
|
|
}
|
|
|
|
/*************************属性变量*************************/
|
|
|
|
VariableProperty::VariableProperty(QObject* parent)
|
|
:BaseProperty(parent)
|
|
{
|
|
|
|
}
|
|
|
|
VariableProperty::~VariableProperty()
|
|
{
|
|
|
|
}
|
|
|
|
modelDataInfo VariableProperty::getPropertyValue() const
|
|
{
|
|
ModelDataMap mapData = DataManager::instance().modelData();
|
|
return mapData[sModelName];
|
|
}
|