diff --git a/customer.h b/customer.h index ea9f291..ad60c12 100644 --- a/customer.h +++ b/customer.h @@ -1,7 +1,12 @@ #ifndef CUSTOMER_H #define CUSTOMER_H +#include "login.h" #include +#include +#include +#include +#include namespace Ui { class customer; @@ -14,9 +19,44 @@ class customer : public QMainWindow public: explicit customer(QWidget *parent = nullptr); ~customer(); + void addrow(QString name,QString gender,int age,QString bornplace); + void findall(); + void flush_data(QVector>&userinfo); + bool find_byname(QString name); +private slots: + + + void on_checking_out1_clicked(); + + + void on_Reservation1_clicked(); + + + + void on_commandLinkButton_clicked(); + + void on_toolButton_2_clicked(); + + void on_checkBox_clicked(bool checked); + + void on_checkBox_2_clicked(bool checked); + + void on_checkBox_3_clicked(bool checked); + + void on_radioButton_clicked(bool checked); + + void on_radioButton_2_clicked(bool checked); + + void on_tableWidget_itemClicked(QTableWidgetItem *item); + + void on_search_clicked(); private: Ui::customer *ui; + QLabel *labelone; + login *lg; + QSqlDatabase db; + QVector>userinfo; }; #endif // CUSTOMER_H diff --git a/customer.ui b/customer.ui index 8aa8121..f1b32fd 100644 --- a/customer.ui +++ b/customer.ui @@ -6,8 +6,8 @@ 0 0 - 800 - 600 + 1920 + 1080 @@ -17,12 +17,293 @@ - 0 - 0 + 20 + -50 1920 1080 + + + + 1620 + 400 + 40 + 40 + + + + + + + + + + 1620 + 310 + 40 + 40 + + + + 退 + + + + + + 1600 + 230 + 80 + 40 + + + + + 20 + + + + 操作 + + + Qt::AlignCenter + + + + + + 10 + 70 + 281 + 151 + + + + + 70 + + + + color: rgb(85, 255, 255); + + + 宜客酒店 + + + Qt::AlignCenter + + + + + + 1280 + 100 + 160 + 60 + + + + + 20 + + + + 显示全部 + + + + + + 1580 + 100 + 160 + 60 + + + + + + + 1470 + 100 + 81 + 41 + + + + + 20 + + + + 房间号: + + + Qt::AlignCenter + + + + + + 20 + 980 + 201 + 81 + + + + + 30 + + + + 返回 + + + + 40 + 40 + + + + + + + 150 + 300 + 1400 + 600 + + + + + + + 1570 + 600 + 131 + 221 + + + + + + + + + 行表头 + + + true + + + + + + + 列表头 + + + true + + + + + + + 交替背景色 + + + true + + + + + + + + + + + 1760 + 100 + 100 + 60 + + + + + 20 + + + + 搜索 + + + + + + 1350 + 190 + 211 + 101 + + + + + + + + 15 + + + + 当前选中的行: + + + Qt::AlignCenter + + + + + + + true + + + + + + + + + 1570 + 440 + 151 + 151 + + + + + + + 选择单格 + + + true + + + + + + + 选择行 + + + + + @@ -30,8 +311,8 @@ 0 0 - 800 - 17 + 1920 + 18