账单记录器迁移。

This commit is contained in:
2026-02-27 12:29:27 +08:00
commit 21b9cc0590
54 changed files with 4195 additions and 0 deletions

41
repayment.h Normal file
View File

@@ -0,0 +1,41 @@
#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