mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Transaction deleteTrainee
This commit is contained in:
@@ -356,11 +356,6 @@ void FIMtasksWidget::on_btnUpdateTasks_clicked()
|
||||
connectorToServer->sendQueryTasksXML("fim");
|
||||
}
|
||||
|
||||
void FIMtasksWidget::on_btnAssignTaskToTrainee_clicked()
|
||||
{
|
||||
slot_AssignTaskFIMtoTrainee();
|
||||
}
|
||||
|
||||
void FIMtasksWidget::slot_AssignTaskFIMtoTrainee()
|
||||
{
|
||||
QTreeWidgetItem *current = treeWidget->currentItem();
|
||||
@@ -379,6 +374,18 @@ void FIMtasksWidget::slot_AssignTaskFIMtoTrainee()
|
||||
TaskAmmFim taskNew;
|
||||
taskNew.title = task->title;
|
||||
|
||||
//Назначенные неисправности
|
||||
for (int i = 0; i < current->childCount(); i++)
|
||||
{
|
||||
QTreeWidgetItem* itemMalfunction = current->child(i);
|
||||
|
||||
if(itemMalfunction->checkState(0) == Qt::Checked)
|
||||
{
|
||||
Malfunction malfunction = task->malfunctionList.at(i);
|
||||
taskNew.malfunctionList.append(malfunction);
|
||||
}
|
||||
}
|
||||
|
||||
connectorToServer->sendQueryToDB(TypeQueryToDB::TYPE_QUERY_ASSIGN_TASK_FIM_TO_TRAINEE, trainee_id, &taskNew);
|
||||
|
||||
updateTaskItem(current);
|
||||
|
||||
Reference in New Issue
Block a user