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.
29 lines
641 B
C++
29 lines
641 B
C++
7 years ago
|
#include "shopoverview.h"
|
||
|
#include "ui_shopoverview.h"
|
||
|
#include "shop-odb.hxx"
|
||
|
#include "shopservice.h"
|
||
|
|
||
|
ShopOverview::ShopOverview(QWidget *parent) :
|
||
|
QFrame(parent),
|
||
|
ui(new Ui::ShopOverview)
|
||
|
{
|
||
|
ui->setupUi(this);
|
||
|
}
|
||
|
|
||
|
ShopOverview::~ShopOverview()
|
||
|
{
|
||
|
delete ui;
|
||
|
}
|
||
|
|
||
|
void ShopOverview::refresh()
|
||
|
{
|
||
|
ShopService srv;
|
||
|
|
||
|
VoucherSum unpaid = srv.unpaidSummary();
|
||
|
VoucherSum unsend = srv.unsendEET();
|
||
|
|
||
|
ui->labelUnapiedCount->setText(QString::number(unpaid.m_count));
|
||
|
ui->labelUnpaiedAmount->setText(QString::number(unpaid.totalPrice().toDouble()));
|
||
|
ui->labelUnsendEET->setText(QString::number(unsend.m_count));
|
||
|
}
|