Подкорректировал репорт xml

This commit is contained in:
2025-06-02 16:56:07 +03:00
parent 457a9c202e
commit bd2adde230
2 changed files with 19 additions and 7 deletions

View File

@@ -731,9 +731,15 @@ void RecognizeSystem::xmlParserQueryToDB(PacketType packetType, QByteArray array
FIMReportItem reportItem;
reportItem.id = reportItemNode.toElement().attribute("item_id").toInt();
reportItem.text = reportItemNode.toElement().attribute("text");
reportItem.procedure.title = reportItemNode.toElement().attribute("title");
reportItem.procedure.dmCode = reportItemNode.toElement().attribute("dmCode");
reportItem.procedure.result = reportItemNode.toElement().attribute("result");
if(reportItemNode.childNodes().count())
{
QDomNode procedureIDNode = reportItemNode.childNodes().at(0);
reportItem.procedure.doc = procedureIDNode.toElement().attribute("doc");
reportItem.procedure.title = procedureIDNode.toElement().attribute("title");
reportItem.procedure.dmCode = procedureIDNode.toElement().attribute("dmCode");
reportItem.procedure.result = procedureIDNode.toElement().attribute("result");
}
report.itemList.append(reportItem);
}