11#include <QTableWidget>
32 void reset(
Date m_lastDate,
double m_value);
55 AccountRecord(
Date m_date,
string* m_id,
double m_amount,
double m_balance,
string m_desc);
98 void record(
Date m_date,
double m_amount,
string m_desc);
113 virtual void deposit(
Date m_date,
double m_amount,
string m_desc )=0;
142 void deposit(
Date m_date,
double m_amount,
string m_detail);
144 void withdraw(
Date m_date,
double m_amount,
string m_detail);
173 CreditAccount(
Date m_date,
string m_id,
double m_credit,
double m_rate,
double m_fee);
183 void deposit(
Date m_date,
double m_amount,
string m_detail);
185 void withdraw(
Date m_date,
double m_amount,
string m_detail);
multimap< Date, AccountRecord > recordMap
Definition: account.h:86
virtual void withdraw(Date m_date, double m_amount, string m_desc)=0
bool has_savings
Definition: account.h:88
static double getTotal()
Definition: account.cpp:181
string getID()
Definition: account.cpp:166
static double total
Definition: account.h:79
virtual ~Account()
Definition: account.cpp:145
double getBalance()
Definition: account.cpp:176
double balance
Definition: account.h:77
void query(Date begin_date, Date end_date)
Definition: account.cpp:186
bool has_credit
Definition: account.h:89
string * getIDPtr()
Definition: account.cpp:171
virtual double getRate()=0
string id
Definition: account.h:75
void record(Date m_date, double m_amount, string m_desc)
Definition: account.cpp:148
virtual void deposit(Date m_date, double m_amount, string m_desc)=0
virtual void settle(Date date)=0
void queryGUI(QDate query_date, multimap< Date, QString > &date_append_temp, multimap< double, QString > &balance_append_temp)
Definition: account.cpp:197
Account(Date m_date, string m_id)
Definition: account.cpp:130
virtual double getCurMonthBillAmount(Date m_date, string m_bill_kind, string *m_id)=0
virtual double getCredit()=0
void show()
Definition: account.cpp:91
string * id
Definition: account.h:45
string desc
Definition: account.h:51
QString getInfo()
Definition: account.cpp:107
string * getID()
Definition: account.cpp:102
double balance
Definition: account.h:49
AccountRecord()
Definition: account.cpp:86
double amount
Definition: account.h:47
Date date
Definition: account.h:43
double getAmount()
Definition: account.cpp:97
double sum
Definition: account.h:21
Accumulator()
Definition: account.cpp:44
double value
Definition: account.h:19
void reset(Date m_lastDate, double m_value)
Definition: account.cpp:68
Date lastDate
Definition: account.h:17
double getSum(Date m_date)
Definition: account.cpp:51
void change(Date m_lastDate, double m_value)
Definition: account.cpp:59
Definition: account.h:159
void show()
Definition: account.cpp:467
double credit
Definition: account.h:163
virtual double getCurMonthBillAmount(Date m_date, string m_bill_kind, string *m_id)
Definition: account.cpp:473
void settle(Date m_date)
Definition: account.cpp:436
double getAvailableCredit()
Definition: account.cpp:383
double getRate()
Definition: account.cpp:371
Date a_date
Definition: account.h:168
double rate
Definition: account.h:165
void deposit(Date m_date, double m_amount, string m_detail)
Definition: account.cpp:390
void withdraw(Date m_date, double m_amount, string m_detail)
Definition: account.cpp:404
double getCredit()
Definition: account.cpp:365
Accumulator acc
Definition: account.h:161
CreditAccount(Date m_date, string m_id, double m_credit, double m_rate, double m_fee)
Definition: account.cpp:352
double getFee()
Definition: account.cpp:377
double fee
Definition: account.h:167
Definition: account.h:130
void withdraw(Date m_date, double m_amount, string m_detail)
Definition: account.cpp:254
Accumulator acc
Definition: account.h:132
double rate
Definition: account.h:134
void deposit(Date m_date, double m_amount, string m_detail)
Definition: account.cpp:239
void show()
Definition: account.cpp:297
double getRate()
Definition: account.cpp:233
double getCredit()
Definition: account.cpp:302
SavingsAccount(Date m_date, string m_id, double m_rate)
Definition: account.cpp:223
void settle(Date m_date)
Definition: account.cpp:273
virtual double getCurMonthBillAmount(Date m_date, string m_bill_kind, string *m_id)
Definition: account.cpp:308
multimap< Date, QString > date_append_temp
Definition: mainwindow.cpp:31
multimap< double, QString > balance_append_temp
Definition: mainwindow.cpp:32