Add fully-functional administration panel for administrators and dispatchers

This commit is contained in:
E. Kozlovskaya 2021-01-05 16:01:34 +07:00
parent bf599549ea
commit ff6901e3a9
22 changed files with 1257 additions and 42 deletions

View file

@ -42,8 +42,17 @@ void LoginWindow::doLogin() {
return;
}
QMessageBox::information(this, "Info", "Success");
// TODO: Open valid window
QWidget *w;
if (user->getUserType() == UserType::WORKER) {
QMessageBox::information(this, "Ok", "Ok");
return;
}
else {
w = new AdministrationPanel();
((AdministrationPanel*)w)->setUser(user);
}
w->show();
close();
}
void LoginWindow::validateForm() {