|
|
#pragma once
|
|
|
|
|
|
#include "ZxDataObjectStrUser.h"
|
|
|
|
|
|
// ZxDataPvtInfo:存储PVT相关的基础信息,可以绑定JobID也可以不绑定
|
|
|
class M_PROJECTMANAGER_EXPORT ZxDataPvtInfo
|
|
|
: public ZxDataObjectStrUser
|
|
|
{
|
|
|
ZX_DECLARE_DYNAMIC
|
|
|
|
|
|
public:
|
|
|
|
|
|
ZxDataPvtInfo();
|
|
|
ZxDataPvtInfo(const ZxDataPvtInfo &other);
|
|
|
virtual ~ZxDataPvtInfo();
|
|
|
|
|
|
ZxDataPvtInfo &operator = (const ZxDataPvtInfo &other);
|
|
|
bool operator == (const ZxDataPvtInfo &other) const;
|
|
|
bool operator != (const ZxDataPvtInfo &other) const;
|
|
|
|
|
|
public:
|
|
|
|
|
|
virtual bool createChildren();
|
|
|
|
|
|
// 接口
|
|
|
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& s);
|
|
|
QString getJobID() const;
|
|
|
|
|
|
// 过程数据
|
|
|
void setMainOption(const QByteArray& ba);
|
|
|
QByteArray getMainOption() const;
|
|
|
void setSubOptionO(const QByteArray& ba);
|
|
|
QByteArray getSubOptionO() const;
|
|
|
void setSubOptionG(const QByteArray& ba);
|
|
|
QByteArray getSubOptionG() const;
|
|
|
void setSubOptionW(const QByteArray& ba);
|
|
|
QByteArray getSubOptionW() const;
|
|
|
|
|
|
protected:
|
|
|
|
|
|
QString m_sJobID; //作业编码
|
|
|
QByteArray m_baMainOption; //主选项信息
|
|
|
QByteArray m_baSubOptionO; //油子选项信息
|
|
|
QByteArray m_baSubOptionG; //气子选项信息
|
|
|
QByteArray m_baSubOptionW; //水子选项信息
|
|
|
};
|