Рассылка всем ГУИ

This commit is contained in:
2025-06-03 15:31:28 +03:00
parent a9acafe776
commit 6cd96dcc09

View File

@@ -262,8 +262,9 @@ void ProcessingSystem::processingClientQueryToDB(ClientHandler *client, ClientQu
{
if(int id_new = providerDBLMS->newTaskAMM(*(TaskAmmFim*)data, id))
{
//Отправка списка задач AMM клиенту GUI
sendListTasksAMMofTraineetoClient(client, id);
//Отправка списка задач AMM всем клиентам GUI
//sendListTasksAMMofTraineetoClient(client, id);
emit sigStatusTasksAMMofTraineeChanged(id);
//Отправка списка задач AMM клиенту Юнити
if(ClientHandler* clientUnity = getUnityClientById(id))
@@ -277,8 +278,9 @@ void ProcessingSystem::processingClientQueryToDB(ClientHandler *client, ClientQu
{
if(int id_new = providerDBLMS->newTaskFIM(*(TaskAmmFim*)data, id))
{
//Отправка списка задач FIM клиенту GUI
sendListTasksFIMofTraineetoClient(client, id);
//Отправка списка задач FIM всем клиентам GUI
//sendListTasksFIMofTraineetoClient(client, id);
emit sigStatusTasksFIMofTraineeChanged(id);
//Отправка списка задач FIM клиенту Юнити
if(ClientHandler* clientUnity = getUnityClientById(id))
@@ -306,8 +308,9 @@ void ProcessingSystem::processingClientQueryToDB(ClientHandler *client, ClientQu
{
if(int id_trainee = providerDBLMS->delTaskAMM(id))
{
//Отправка списка задач AMM клиенту GUI
sendListTasksAMMofTraineetoClient(client, id_trainee);
//Отправка списка задач AMM всем клиентам GUI
//sendListTasksAMMofTraineetoClient(client, id_trainee);
emit sigStatusTasksAMMofTraineeChanged(id_trainee);
//Отправка списка задач AMM клиенту Юнити
if(ClientHandler* clientUnity = getUnityClientById(id_trainee))
@@ -322,7 +325,8 @@ void ProcessingSystem::processingClientQueryToDB(ClientHandler *client, ClientQu
if(int id_trainee = providerDBLMS->delTaskFIM(id))
{
//Отправка списка задач FIM клиенту GUI
sendListTasksFIMofTraineetoClient(client, id_trainee);
//sendListTasksFIMofTraineetoClient(client, id_trainee);
emit sigStatusTasksFIMofTraineeChanged(id_trainee);
//Отправка списка задач FIM клиенту Юнити
if(ClientHandler* clientUnity = getUnityClientById(id_trainee))
@@ -346,7 +350,7 @@ void ProcessingSystem::processingClientQueryToDB(ClientHandler *client, ClientQu
case TypeQueryToDB::TYPE_QUERY_SET_REPORT_TASK_FIM_TO_TRAINEE:
{
TaskAmmFim* task = (TaskAmmFim*)data;
if(task->status == "completed")
if(task->status == /*"checkup"*/"completed")
if(int id_report = providerDBLMS->replaceReportFIM(*task))
{
@@ -359,8 +363,9 @@ void ProcessingSystem::processingClientQueryToDB(ClientHandler *client, ClientQu
QString* status = (QString*)data;
if(int id_trainee = providerDBLMS->changeStatusTaskFIM(id, *status))
{
//Отправка списка задач FIM клиенту GUI
sendListTasksFIMofTraineetoClient(client, id_trainee);
//Отправка списка задач FIM всем клиентам GUI
//sendListTasksFIMofTraineetoClient(client, id_trainee);
emit sigStatusTasksFIMofTraineeChanged(id_trainee);
//Отправка списка задач FIM клиенту Юнити
if(ClientHandler* clientUnity = getUnityClientById(id_trainee))