Implemented camp wizard and service methods for camp calculation.
This commit is contained in:
@@ -23,6 +23,7 @@ class CampData : public QObject
|
||||
Q_PROPERTY(QDecDouble totalPrice READ totalPrice WRITE setTotalPrice)
|
||||
Q_PROPERTY(QDecDouble sale READ sale WRITE setSale)
|
||||
Q_PROPERTY(bool fixedSale READ fixedSale WRITE setFixedSale)
|
||||
Q_PROPERTY(QDecDouble totalSale READ totalSale WRITE setTotalSale)
|
||||
|
||||
public:
|
||||
explicit CampData(QObject *parent = 0);
|
||||
@@ -70,6 +71,12 @@ public:
|
||||
QString numSer() const;
|
||||
void setNumSer(const QString &numSer);
|
||||
|
||||
QDecDouble totalSale() const;
|
||||
void setTotalSale(QDecDouble totalSale);
|
||||
|
||||
QDecDouble fullPrice() const;
|
||||
void setFullPrice(QDecDouble fullPrice);
|
||||
|
||||
private:
|
||||
friend class odb::access;
|
||||
#pragma db id auto
|
||||
@@ -84,8 +91,10 @@ private:
|
||||
QOdbList<ServiceItemPtr> m_services;
|
||||
#pragma db value_not_null inverse(m_campData)
|
||||
QOdbList<AddressItemPtr> m_people;
|
||||
int m_fullPrice;
|
||||
int m_totalPrice;
|
||||
int m_sale;
|
||||
int m_totalSale;
|
||||
bool m_fixedSale;
|
||||
SeasonPtr m_season;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user