#ifndef REPAYMENT_H #define REPAYMENT_H #include "SqlOpr.h" #include #include namespace Ui { class Repayment; } class Repayment : public QDialog { Q_OBJECT public: explicit Repayment(QWidget* parent, std::unique_ptr& 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_; }; #endif // REPAYMENT_H