完成查询功能的“使用学/工号查询”和“查询卡的所有记录”功能;还未完成卡内记录查询
This commit is contained in:
13
mainwindow.h
13
mainwindow.h
@@ -11,6 +11,9 @@
|
||||
#include <QDateTime>
|
||||
#include <QRandomGenerator>
|
||||
|
||||
#include <vector>
|
||||
#include <set>
|
||||
|
||||
#include <readerAPI.h>
|
||||
#include <databaseAPI.h>
|
||||
#include <deviceAPI.h>
|
||||
@@ -32,6 +35,7 @@ public:
|
||||
void updateStatusBarComNumber();
|
||||
bool allReady();
|
||||
bool softwareReady();
|
||||
bool databaseReady();
|
||||
bool bindUserWithCard(int userId, QString cardId, QString &info);
|
||||
bool getNewUserInfo(QString &username, QString &password, QString &info);
|
||||
bool createUser(int userId, QString &info);
|
||||
@@ -41,6 +45,9 @@ public:
|
||||
bool topUpCard(QString cardId, double topUpValue, double &originalBalance, double &finalBalance, QString &recordId, QString &info);
|
||||
QString getRecordId(QDateTime currentTime, int userId, int recordType);
|
||||
bool deductCard(QString cardId, double deductValue, double &originalBalance, double &finalBalance, QString &recordId, QString &info);
|
||||
void displayInTableWidget(std::vector<QStringList> transactionRecordList);
|
||||
QStringList transactionRecord2QStringList(QDateTime time, int type, double value, double balance, QString device, QString id);
|
||||
void queryPageInitContent();
|
||||
|
||||
private slots:
|
||||
void on_settingAction_triggered();
|
||||
@@ -49,6 +56,7 @@ private slots:
|
||||
void on_reportLossAction_triggered();
|
||||
void on_depositAction_triggered();
|
||||
void on_ConsumptionAction_triggered();
|
||||
void on_QueryAction_triggered();
|
||||
|
||||
void on_connectReaderButton_clicked();
|
||||
void on_confirmQuitButton_clicked();
|
||||
@@ -61,6 +69,9 @@ private slots:
|
||||
void on_depositByUserIdButton_clicked();
|
||||
void on_consumeInventoryButton_clicked();
|
||||
void on_consumeButton_clicked();
|
||||
void on_queryInventoryButton_clicked();
|
||||
void on_userRecordQueryButton_clicked();
|
||||
void on_userIdRecordQueryButton_clicked();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
@@ -80,5 +91,7 @@ private:
|
||||
bool newCardUserIdFilled; ///< 开卡时:初始时学/工号填写框被清空,该变量为false;当用户填写后该变量为true
|
||||
bool reportLossUserIdFilled; ///< 挂失时:初始时学/工号填写框被清空,该变量为false;当用户填写后该变量为true
|
||||
bool depositUserIdFilled; ///< 充值时:初始时学/工号填写框被清空,该变量为false;当用户填写后该变量为true
|
||||
bool queryUserIdFilled; ///< 查询时:初始时学/工号填写框被清空,该变量为false;当用户填写后该变量为true
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
||||
|
||||
Reference in New Issue
Block a user