mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-27 19:45:43 +03:00
Статусы задач обновляются автоматически в ГУИ
This commit is contained in:
@@ -23,6 +23,10 @@ void ProcessingSystem::initialize(ServerLMSWidget *server,
|
||||
this->updateController = updateController;
|
||||
|
||||
connect(this,&ProcessingSystem::sigListsInstructorsTraineesChanged,commonClientHandler, &CommonClientHandler::slot_ListsInstructorsTraineesChanged,Qt::AutoConnection);
|
||||
|
||||
connect(this,&ProcessingSystem::sigStatusTasksAMMofTraineeChanged,commonClientHandler, &CommonClientHandler::slot_StatusTasksAMMofTraineeChanged,Qt::AutoConnection);
|
||||
connect(this,&ProcessingSystem::sigStatusTasksFIMofTraineeChanged,commonClientHandler, &CommonClientHandler::slot_StatusTasksFIMofTraineeChanged,Qt::AutoConnection);
|
||||
|
||||
connect(this,&ProcessingSystem::sigUpdateListClients,server, &ServerLMSWidget::slotUpdateListClients,Qt::AutoConnection);
|
||||
connect(this,&ProcessingSystem::sigSetData,updateController,&UpdateController::setDataInfo,Qt::AutoConnection);
|
||||
connect(this,&ProcessingSystem::signal_msgToClientReady,commonClientHandler, &CommonClientHandler::slot_msgToClientFromGUI);
|
||||
@@ -333,17 +337,7 @@ void ProcessingSystem::processingClientQueryToDB(ClientHandler *client, ClientQu
|
||||
{
|
||||
if(int id_trainee = providerDBLMS->editTaskAMM(*(TaskAmmFim*)data))
|
||||
{
|
||||
//Отправка списка задач AMM клиенту GUI
|
||||
//sendListTasksAMMofTraineetoClient(client, id_trainee);
|
||||
//Извещаем об изменениях в авторизации
|
||||
//emit sigListTasksAMMofTraineetoClientChanged();
|
||||
//TODO
|
||||
|
||||
//Отправка списка задач AMM клиенту Юнити
|
||||
if(ClientHandler* clientUnity = getUnityClientById(id_trainee))
|
||||
{//Есть такой
|
||||
sendListTasksAMMofTraineetoClient(clientUnity, id_trainee);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -351,17 +345,7 @@ void ProcessingSystem::processingClientQueryToDB(ClientHandler *client, ClientQu
|
||||
{
|
||||
if(int id_trainee = providerDBLMS->editTaskFIM(*(TaskAmmFim*)data))
|
||||
{
|
||||
//Отправка списка задач FIM клиенту GUI
|
||||
//sendListTasksFIMofTraineetoClient(client, id_trainee);
|
||||
//Извещаем об изменениях в авторизации
|
||||
//emit sigListTasksFIMofTraineetoClientChanged();
|
||||
//TODO
|
||||
|
||||
//Отправка списка задач FIM клиенту Юнити
|
||||
if(ClientHandler* clientUnity = getUnityClientById(id_trainee))
|
||||
{//Есть такой
|
||||
sendListTasksFIMofTraineetoClient(clientUnity, id_trainee);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user