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

76 lines
1.8 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#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;
// 该函数是在本对象被Append至parent之后对本对象进行一些调整。
// 比如,压力数据在被 井 appendChild 之后,把压力数据的 井号 设置一下
virtual void adjustWithParent();
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; //作业描述
};