Report upgrade WH

This commit is contained in:
2025-12-24 11:58:32 +03:00
parent 4dab164e27
commit bfe586ee2e
15 changed files with 584 additions and 329 deletions

View File

@@ -208,6 +208,21 @@ void ProcessParser::clientUnityTaskFIMreport(QXmlStreamReader &xmlReader, Client
report.itemList.append(reportItem);
}
else if(reportItemNode.nodeName() == "warehouseItems")
{
FIMReportWarehouseItem warehouseItem;
warehouseItem.id = 0;
warehouseItem.status = reportItemNode.toElement().attribute("status").toInt();
warehouseItem.goName = reportItemNode.toElement().attribute("goName");
warehouseItem.objName = reportItemNode.toElement().attribute("name");
warehouseItem.code = reportItemNode.toElement().attribute("code");
report.warehouseItemList.append(warehouseItem);
}
else if(reportItemNode.nodeName() == "mmel")
{
report.mmel = (reportItemNode.toElement().nodeValue() == "true" ? true : false);
}
}
task.report = report;
@@ -279,6 +294,8 @@ TaskAmmFim ProcessParser::xmlParserQueryToDB_ASSIGN_TASK_FIM_TO_TRAINEE(QByteArr
malfunction.num = malfunctionNode.toElement().attribute("num");
malfunction.dmCode = malfunctionNode.toElement().attribute("dmCode");
malfunction.description = malfunctionNode.toElement().attribute("description");
malfunction.goName = malfunctionNode.toElement().attribute("goName");
malfunction.objName = malfunctionNode.toElement().attribute("objName");
//Сигналы
for(int j = 0; j < malfunctionNode.childNodes().count(); j++)