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.
nmWATI/Include/mData/mProjectManager/DataModels/ZxDataJobInfo.h

72 lines
1.6 KiB
C++

#pragma once
#include "ZxDataObjectStrUser.h"
// JobInfo
class M_PROJECTMANAGER_EXPORT ZxDataJobInfo
: public ZxDataObjectStrUser
{
ZX_DECLARE_DYNAMIC
public:
ZxDataJobInfo();
ZxDataJobInfo(const ZxDataJobInfo &other);
virtual ~ZxDataJobInfo();
ZxDataJobInfo &operator = (const ZxDataJobInfo &other);
bool operator == (const ZxDataJobInfo &other) const;
bool operator != (const ZxDataJobInfo &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 setWellCode(const QString& sWellCode);
QString getWellCode() const;
// // 作业标题
// void setJobTitle(const QString& sJobTitle);
// QString getJobTitle() const;
// 作业类型
void setJobType(const QString& sJobType);
QString getJobType() const;
// 作业描述
void setJobDesc(const QString& sJobDesc);
QString getJobDesc() const;
protected:
// QString m_sJobID; //作用编码
QString m_sWellCode; //井编码
// QString m_sJobTitle; //作业标题
QString m_sJobType; //作业版本号
QString m_sJobDesc; //作业描述
};