-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinventorymanagementwindow.h
36 lines (29 loc) · 1.08 KB
/
inventorymanagementwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef INVENTORYMANAGEMENTWINDOW_H
#define INVENTORYMANAGEMENTWINDOW_H
#include <QDialog>
namespace Ui {
class InventoryManagementWindow;
}
class InventoryManagementWindow : public QDialog
{
Q_OBJECT
public:
explicit InventoryManagementWindow(QWidget *parent = nullptr);
~InventoryManagementWindow();
private slots:
void on_pushButton_newProduct_save_clicked();
void on_pushButton_newProduct_cancel_clicked();
void on_tabWidget_currentChanged(int index);
void on_tableWidget_inventoryManagement_itemSelectionChanged();
void on_pushButton_inventoryManagement_save_clicked();
void on_pushButton_inventoryManagement_remove_clicked();
void on_pushButton_inventoryManagement_search_clicked();
private:
Ui::InventoryManagementWindow *ui;
int ProductExists(int id);
void UpdateInventoryManagementTableWidget();
void ClearNewProductTabFields();
bool CheckValidProduct(float purchasePrice, float salePrice, int quantity, QString description, QString supplier);
void ClearInventoryManagementTabFields();
};
#endif // INVENTORYMANAGEMENTWINDOW_H