1 Star 0 Fork 3

fengwenhao/ChargeManager

forked from luoboQAQ/ChargeManager 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
admindialog.h 1.53 KB
一键复制 编辑 原始数据 按行查看 历史
luoboQAQ 提交于 2021-06-05 15:17 . 🚀 V1.1更新
#ifndef ADMINDIALOG_H
#define ADMINDIALOG_H
#include "logindialog.h"
#include "userchangedialog.h"
#include <QCloseEvent>
#include <QDialog>
#include <QDebug>
#include <QStringList>
#include <QTimer>
#include <QMessageBox>
#include <QSqlError>
#include <QSqlQuery>
#include <QStandardItemModel>
namespace Ui
{
class AdminDialog;
}
class AdminDialog : public QDialog
{
Q_OBJECT
public:
explicit AdminDialog(QString user, QWidget *parent = nullptr);
~AdminDialog();
protected:
void closeEvent(QCloseEvent *event);
private slots:
void on_i_Btn_clicked();
void on_l_Btn_clicked();
void on_c_Btn_clicked();
void on_i_checkBox_stateChanged(int arg1);
void on_m_QueryBtn_clicked();
void on_m_addBtn_clicked();
void DialogClosed();
void onTimeOut(void);
private:
bool SetupName();
bool GetComputerNums();
bool GetQuery(QString &str, QSqlQuery &query);
bool GetUserName(QString user);
bool Q_vNum(QString user, QDate date);
bool Q_atime(QString user, QDate date);
bool Q_avgtime(QString user, QDate date);
bool Q_charge(QString user, QDate date);
bool Q_income(QString user, QDate date);
bool Q_loss(QString user, QDate date);
bool SetModel(QSqlQuery &query, QStringList &title);
int L_loss(QString cardid);
bool L_reloss(QString cardid);
bool L_fing(QString user);
private:
Ui::AdminDialog *ui;
bool isAllDate;
QStandardItemModel model;
QString admin_id;
UserChangeDialog *userdialog;
QTimer m_timer;
};
#endif // ADMINDIALOG_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/wenhaofeng/charge-manager.git
git@gitee.com:wenhaofeng/charge-manager.git
wenhaofeng
charge-manager
ChargeManager
master

搜索帮助