42 lines
788 B
C++
42 lines
788 B
C++
#ifndef REPAYMENT_H
|
|
#define REPAYMENT_H
|
|
|
|
#include "SqlOpr.h"
|
|
#include <QDialog>
|
|
#include <QTableWidget>
|
|
|
|
namespace Ui {
|
|
class Repayment;
|
|
}
|
|
|
|
class Repayment : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Repayment(QWidget* parent, std::unique_ptr<RepaySqlOpr>& repaySqlOpr);
|
|
~Repayment();
|
|
|
|
public:
|
|
int exec() override;
|
|
void SetInformation(const QString& info);
|
|
void SetRecord(const AccountRecord& record);
|
|
|
|
private:
|
|
void ShowData();
|
|
void Init();
|
|
void ShowContextMenu(const QPoint& pos);
|
|
void Save();
|
|
void BasicAnasys(const RepayRecordList& rList);
|
|
|
|
private:
|
|
bool over_{};
|
|
QString info_;
|
|
Ui::Repayment* ui;
|
|
AccountRecord record_;
|
|
QTableWidget* tw_{};
|
|
std::unique_ptr<RepaySqlOpr>& repaySqlOpr_;
|
|
};
|
|
|
|
#endif // REPAYMENT_H
|