mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
GUI добавлено выкл ПерсКарты при арх-и и удал-и об
This commit is contained in:
@@ -134,6 +134,20 @@ void PersonalCardTrainee::slot_NeedUpdateUI(bool treeInstructor, bool treeTraine
|
||||
{
|
||||
if(treeTrainee)
|
||||
{
|
||||
Trainee trainee = connectorToServer->getTrainee(id_trainee);
|
||||
if(!trainee.getID())
|
||||
{//Обучаемый удален
|
||||
SpecMsgBox::WarningClose(this, tr("The trainee was removed!"));
|
||||
this->parentWidget()->close();
|
||||
return;
|
||||
}
|
||||
else if(trainee.getArchived())
|
||||
{//Обучаемый заархивирован
|
||||
SpecMsgBox::WarningClose(this, tr("The trainee was archived!"));
|
||||
this->parentWidget()->close();
|
||||
return;
|
||||
}
|
||||
|
||||
loadInfo();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user