|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "ZxDataObjectBin.h"
|
|
|
|
|
#include "nmData_global.h"
|
|
|
|
|
|
|
|
|
|
// AnalInfo
|
|
|
|
|
class NM_DATA_EXPORT nmDataAnalRun
|
|
|
|
|
: public ZxDataObjectBin
|
|
|
|
|
{
|
|
|
|
|
ZX_DECLARE_DYNAMIC
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
nmDataAnalRun();
|
|
|
|
|
nmDataAnalRun(const nmDataAnalRun &other);
|
|
|
|
|
virtual ~nmDataAnalRun();
|
|
|
|
|
|
|
|
|
|
nmDataAnalRun &operator = (const nmDataAnalRun &other);
|
|
|
|
|
bool operator == (const nmDataAnalRun &other) const;
|
|
|
|
|
bool operator != (const nmDataAnalRun &other) const;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
// 接口
|
|
|
|
|
virtual ZxDataObject* clone();
|
|
|
|
|
virtual QString type() const;
|
|
|
|
|
virtual QString getTableName();
|
|
|
|
|
|
|
|
|
|
// 加载保存
|
|
|
|
|
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 setAnalID(const QString& sAnalID);
|
|
|
|
|
// QString getAnalID() const;
|
|
|
|
|
|
|
|
|
|
void setDataBasic(const QByteArray& v);
|
|
|
|
|
QByteArray getDataBasic() const;
|
|
|
|
|
|
|
|
|
|
void setDataPvt(const QByteArray& v);
|
|
|
|
|
QByteArray getDataPvt() const;
|
|
|
|
|
|
|
|
|
|
void setDataKrog(const QByteArray& v);
|
|
|
|
|
QByteArray getDataKrog() const;
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
// QString m_sAnalID; //作用编码
|
|
|
|
|
|
|
|
|
|
// 分别对应对话框中的数据
|
|
|
|
|
QByteArray m_baDataBasic;
|
|
|
|
|
QByteArray m_baDataPvt;
|
|
|
|
|
QByteArray m_baDataKrog;
|
|
|
|
|
|
|
|
|
|
//m_baExt1 //已经启用
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|