mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Report upgrade WH
This commit is contained in:
@@ -207,6 +207,8 @@ QByteArray DBAnswerParser::listTasksFIMofTrainee(bool result, QList<TaskAmmFim>
|
||||
malfunctionNode.toElement().setAttribute("dmCode", malfunction.dmCode);
|
||||
malfunctionNode.toElement().setAttribute("num", malfunction.num);
|
||||
malfunctionNode.toElement().setAttribute("description", malfunction.description);
|
||||
malfunctionNode.toElement().setAttribute("goName", malfunction.goName);
|
||||
malfunctionNode.toElement().setAttribute("objName", malfunction.objName);
|
||||
|
||||
for(MalfunctionSign sign : malfunction.malfunctionSigns)
|
||||
{//Сигналы
|
||||
|
||||
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user