mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Статусы задач обновляются автоматически в ГУИ
This commit is contained in:
@@ -55,6 +55,50 @@ void CommonClientHandler::slot_ListsInstructorsTraineesChanged()
|
||||
}
|
||||
}
|
||||
|
||||
void CommonClientHandler::slot_StatusTasksAMMofTraineeChanged(int trainee_id)
|
||||
{
|
||||
//Проходим все открытые сокеты
|
||||
foreach(int idSocket, clientsMap->keys())
|
||||
{
|
||||
ClientHandler *handler = clientsMap->value(idSocket);
|
||||
//Проверяем, есть ли клиенты TYPE_GUI
|
||||
if(handler->getClient()->getTypeClient() == TypeClientAutorization::TYPE_GUI)
|
||||
{//Отправляем этому клиенту задачи AMM для Обучаемого (с измененным статусом)
|
||||
ClientQueryToDB queryToDB;
|
||||
queryToDB.typeQuery = TypeQueryToDB::TYPE_QUERY_GET_TASKS_AMM_FOR_TRAINEE;
|
||||
processingSystem->processingClientQueryToDB(handler, queryToDB, trainee_id);
|
||||
}
|
||||
}
|
||||
|
||||
//Отправка списка задач AMM клиенту Юнити
|
||||
if(ClientHandler* clientUnity = processingSystem->getUnityClientById(trainee_id))
|
||||
{//Есть такой
|
||||
//processingSystem->sendListTasksAMMofTraineetoClient(clientUnity, trainee_id);
|
||||
}
|
||||
}
|
||||
|
||||
void CommonClientHandler::slot_StatusTasksFIMofTraineeChanged(int trainee_id)
|
||||
{
|
||||
//Проходим все открытые сокеты
|
||||
foreach(int idSocket, clientsMap->keys())
|
||||
{
|
||||
ClientHandler *handler = clientsMap->value(idSocket);
|
||||
//Проверяем, есть ли клиенты TYPE_GUI
|
||||
if(handler->getClient()->getTypeClient() == TypeClientAutorization::TYPE_GUI)
|
||||
{//Отправляем этому клиенту задачи FIM для Обучаемого (с измененным статусом)
|
||||
ClientQueryToDB queryToDB;
|
||||
queryToDB.typeQuery = TypeQueryToDB::TYPE_QUERY_GET_TASKS_FIM_FOR_TRAINEE;
|
||||
processingSystem->processingClientQueryToDB(handler, queryToDB, trainee_id);
|
||||
}
|
||||
}
|
||||
|
||||
//Отправка списка задач FIM клиенту Юнити
|
||||
if(ClientHandler* clientUnity = processingSystem->getUnityClientById(trainee_id))
|
||||
{//Есть такой
|
||||
//processingSystem->sendListTasksFIMofTraineetoClient(clientUnity, trainee_id);
|
||||
}
|
||||
}
|
||||
|
||||
void CommonClientHandler::slot_sendPacketToAllClients(PacketType packetType)
|
||||
{
|
||||
foreach(int idSocket, clientsMap->keys())
|
||||
|
||||
Reference in New Issue
Block a user