2020-09-19 23:18:10 +00:00
|
|
|
#pragma once
|
2019-08-03 15:24:44 +00:00
|
|
|
|
2019-08-04 14:00:50 +00:00
|
|
|
#include <QDebug>
|
2019-08-05 13:32:44 +00:00
|
|
|
#include <QMainWindow>
|
|
|
|
#include <QMessageBox>
|
2019-08-16 16:38:30 +00:00
|
|
|
#include <QtSql>
|
|
|
|
#include <QtWidgets>
|
2019-08-03 15:24:44 +00:00
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
2019-08-07 12:12:36 +00:00
|
|
|
#include "EditWindow.h"
|
2020-09-19 16:40:15 +00:00
|
|
|
#include "fullQuery.h"
|
2019-08-06 13:33:11 +00:00
|
|
|
#include "status.h"
|
2019-08-03 15:24:44 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
2019-08-05 13:55:29 +00:00
|
|
|
class EditWindow;
|
2019-08-03 15:24:44 +00:00
|
|
|
}
|
|
|
|
|
2020-09-20 20:03:35 +00:00
|
|
|
class EditWindow : public QDialog {
|
2019-08-03 15:24:44 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2019-08-05 21:52:33 +00:00
|
|
|
explicit EditWindow(int idSocio, QWidget *parent);
|
2019-08-05 13:55:29 +00:00
|
|
|
~EditWindow();
|
2019-08-03 15:24:44 +00:00
|
|
|
|
2019-08-03 16:18:29 +00:00
|
|
|
private slots:
|
2019-08-06 09:11:20 +00:00
|
|
|
void on_buttonSalva_clicked();
|
|
|
|
void on_buttonAnnulla_clicked();
|
2020-09-20 20:03:35 +00:00
|
|
|
void on_buttonRinnova_clicked();
|
2019-08-03 16:18:29 +00:00
|
|
|
|
2019-08-03 15:24:44 +00:00
|
|
|
private:
|
2019-08-07 14:05:48 +00:00
|
|
|
QSqlQuery query;
|
2019-08-16 16:38:30 +00:00
|
|
|
QSqlRelationalTableModel* model = nullptr;
|
2019-08-16 17:23:43 +00:00
|
|
|
QDataWidgetMapper* mapper = nullptr;
|
2019-08-07 14:05:48 +00:00
|
|
|
|
2019-08-05 13:55:29 +00:00
|
|
|
Ui::EditWindow *ui;
|
2019-08-03 15:24:44 +00:00
|
|
|
};
|