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:
@@ -153,6 +153,25 @@ QByteArray DBAnswerParser::listTasksFIMofTrainee(bool result, QList<TaskAmmFim>
|
||||
malfunctionNode.toElement().setAttribute("num", malfunction.num);
|
||||
malfunctionNode.toElement().setAttribute("description", malfunction.description);
|
||||
}
|
||||
|
||||
|
||||
{//FIMReport
|
||||
FIMReport report = task.report;
|
||||
QDomNode reportNode = commonDOM.createElement("report");
|
||||
taskNode.appendChild(reportNode);
|
||||
reportNode.toElement().setAttribute("report_id", report.id);
|
||||
|
||||
for(FIMReportItem reportItem : task.report.itemList)
|
||||
{//report_item
|
||||
QDomNode reportItemNode = commonDOM.createElement("reportItem");
|
||||
reportNode.appendChild(reportItemNode);
|
||||
reportItemNode.toElement().setAttribute("item_id", reportItem.id);
|
||||
reportItemNode.toElement().setAttribute("text", reportItem.text);
|
||||
reportItemNode.toElement().setAttribute("title", reportItem.procedure.title);
|
||||
reportItemNode.toElement().setAttribute("dmCode", reportItem.procedure.dmCode);
|
||||
reportItemNode.toElement().setAttribute("result", reportItem.procedure.result);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dataParser->saveDOMtoXML("ListTasksFIM.xml", &commonDOM);
|
||||
|
||||
Reference in New Issue
Block a user