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/ZxDataPersons.h

69 lines
1.5 KiB
C++

#pragma once
#include "ZxDataObjectEx.h"
// 人员
class M_PROJECTMANAGER_EXPORT ZxDataPersons
: public ZxDataObjectEx
{
ZX_DECLARE_DYNAMIC
public:
ZxDataPersons();
ZxDataPersons(const ZxDataPersons &other);
virtual ~ZxDataPersons();
ZxDataPersons &operator = (const ZxDataPersons &other);
bool operator == (const ZxDataPersons &other) const;
bool operator != (const ZxDataPersons &other) const;
public:
// 接口
virtual ZxDataObject* clone();
virtual QString type() const;
// 加载保存
virtual bool parseData(VecVariant vec); //解析
virtual bool sumUpData(VecVariant& vec);
virtual QStringList getKeyValues(); //筛选时获得主键的值。
// 序列化
virtual void onSerialize(ZxSerializer* ser);
virtual void onDeserialize(ZxSerializer* ser);
// Icon
virtual QIcon getIcon(bool expanded) const;
public:
void setDepart(const QString& sDepart);
QString getDepart() const;
// 对象编码
virtual void setCode(const QString &sCode);
virtual void setName(const QString &sName);
void setPosition(const QString& sPosition);
QString getPosition() const;
void setMobile(const QString& sMobile);
QString getMobile() const;
void setEmail(const QString& sEmail);
QString getEmail() const;
protected:
QString m_sDepart; //部门
// QString m_sName; //名字
QString m_sPosition; //位置
QString m_sMobile; //手机号
QString m_sEmail; //电子邮件
};