You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
720 B
47 lines
720 B
#ifndef ORDEROOM_H
|
|
#define ORDEROOM_H
|
|
|
|
#include <QWidget>
|
|
#include <QLabel>
|
|
#include <QSqlDatabase>
|
|
#include <QSqlQuery>
|
|
#include <QSqlError>
|
|
#include <QDate>
|
|
#include <QMessageBox>
|
|
#include <QDebug>
|
|
|
|
namespace Ui {
|
|
class orderoom;
|
|
}
|
|
|
|
class orderoom : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit orderoom(QWidget *parent = nullptr);
|
|
~orderoom();
|
|
void setroomNum(int roomNum);
|
|
void setDB(QSqlDatabase db);
|
|
|
|
private slots:
|
|
|
|
|
|
void on_btn_search_clicked();
|
|
void on_btn_order_clicked();
|
|
|
|
void on_btn_registers_clicked();
|
|
|
|
private:
|
|
Ui::orderoom *ui;
|
|
QLabel *bg;
|
|
int roomNum;
|
|
QSqlDatabase db;
|
|
bool findcustomer;
|
|
|
|
signals:
|
|
void ordersuccess();
|
|
};
|
|
|
|
#endif // ORDEROOM_H
|