You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "ZxDataObjectBin.h"
|
|
|
|
|
|
|
|
|
|
// JobInfo
|
|
|
|
|
class M_PROJECTMANAGER_EXPORT ZxDataJobRun
|
|
|
|
|
: public ZxDataObjectBin
|
|
|
|
|
{
|
|
|
|
|
ZX_DECLARE_DYNAMIC
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
ZxDataJobRun();
|
|
|
|
|
ZxDataJobRun(const ZxDataJobRun &other);
|
|
|
|
|
virtual ~ZxDataJobRun();
|
|
|
|
|
|
|
|
|
|
ZxDataJobRun &operator = (const ZxDataJobRun &other);
|
|
|
|
|
bool operator == (const ZxDataJobRun &other) const;
|
|
|
|
|
bool operator != (const ZxDataJobRun &other) const;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
// 接口
|
|
|
|
|
virtual ZxDataObject* clone();
|
|
|
|
|
virtual QString type() const;
|
|
|
|
|
|
|
|
|
|
// 加载保存
|
|
|
|
|
virtual bool _parseData(VecVariant vec, int& n); //解析
|
|
|
|
|
virtual bool _sumUpData(VecVariant& vec);
|
|
|
|
|
|
|
|
|
|
// 序列化
|
|
|
|
|
virtual void onSerialize(ZxSerializer* ser);
|
|
|
|
|
virtual void onDeserialize(ZxSerializer* ser);
|
|
|
|
|
|
|
|
|
|
// Icon
|
|
|
|
|
virtual QIcon getIcon(bool expanded) const;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
// // 作业ID
|
|
|
|
|
// void setJobID(const QString& sJobID);
|
|
|
|
|
// QString getJobID() const;
|
|
|
|
|
|
|
|
|
|
void setDataBasic(const QByteArray& v);
|
|
|
|
|
QByteArray getDataBasic() const;
|
|
|
|
|
|
|
|
|
|
void setDataFluid(const QByteArray& v);
|
|
|
|
|
QByteArray getDataFluid() const;
|
|
|
|
|
|
|
|
|
|
void setDataGasConst(const QByteArray& v);
|
|
|
|
|
QByteArray getDataGasConst() const;
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
// QString m_sJobID; //作用编码
|
|
|
|
|
|
|
|
|
|
// 分别对应五个对话框中的数据
|
|
|
|
|
QByteArray m_byteDataBasic;
|
|
|
|
|
QByteArray m_byteDataFluid;
|
|
|
|
|
QByteArray m_byteDataGasConst;
|
|
|
|
|
|
|
|
|
|
//m_baExt1 //已经启用
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|