|
|
|
@ -46,6 +46,10 @@ class SHOPSHARED_EXPORT Voucher : public QObject
|
|
|
|
|
Q_ENUMS(VoucherStatus)
|
|
|
|
|
Q_ENUMS(EetStatus)
|
|
|
|
|
Q_PROPERTY(VoucherStatus status READ status WRITE setStatus)
|
|
|
|
|
Q_PROPERTY(QString createdBy READ createdBy WRITE setCreatedBy)
|
|
|
|
|
Q_PROPERTY(QString updatedBy READ updatedBy WRITE setUpdatedBy)
|
|
|
|
|
Q_PROPERTY(QDateTime created READ created WRITE setCreated)
|
|
|
|
|
Q_PROPERTY(QDateTime updated READ updated WRITE setUpdated)
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit Voucher(QObject *parent = 0);
|
|
|
|
@ -155,6 +159,18 @@ public:
|
|
|
|
|
SeasonPtr season() const;
|
|
|
|
|
void setSeason(const SeasonPtr &season);
|
|
|
|
|
|
|
|
|
|
QString createdBy() const;
|
|
|
|
|
void setCreatedBy(const QString &createdBy);
|
|
|
|
|
|
|
|
|
|
QString updatedBy() const;
|
|
|
|
|
void setUpdatedBy(const QString &updatedBy);
|
|
|
|
|
|
|
|
|
|
QDateTime created() const;
|
|
|
|
|
void setCreated(const QDateTime &created);
|
|
|
|
|
|
|
|
|
|
QDateTime updated() const;
|
|
|
|
|
void setUpdated(const QDateTime &updated);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
friend class odb::access;
|
|
|
|
|
#pragma db id auto
|
|
|
|
@ -186,6 +202,10 @@ private:
|
|
|
|
|
QOdbList<QSharedPointer<VoucherItem> > m_items;
|
|
|
|
|
VoucherStatus m_status;
|
|
|
|
|
SeasonPtr m_season;
|
|
|
|
|
QString m_createdBy;
|
|
|
|
|
QString m_updatedBy;
|
|
|
|
|
QDateTime m_created;
|
|
|
|
|
QDateTime m_updated;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
typedef QSharedPointer<Voucher> VoucherPtr;
|
|
|
|
|