added web service

This commit is contained in:
2026-09-02 12:48:03 +03:00
parent 84b7eceb9f
commit 02c43072c4
60 changed files with 6148 additions and 22 deletions
+11
View File
@@ -3,6 +3,7 @@
#include "../model/specificationtablemodel.h"
#include "../model/perechentablemodel.h"
#include "../model/vedomosttablemodel.h"
#include "../model/simplelisttablemodel.h"
#include <QFile>
#include <QTextStream>
#include <QTextCodec>
@@ -54,6 +55,16 @@ bool CSVExporter::exportVedomost(const QString &filePath, VedomostTableModel *mo
return exportTableModel(filePath, model, true);
}
bool CSVExporter::exportSimpleList(const QString &filePath, SimpleListTableModel *model)
{
if (!model) {
m_lastError = "Модель таблицы не указана";
return false;
}
return exportTableModel(filePath, model, true);
}
bool CSVExporter::exportTableModel(const QString &filePath, QAbstractTableModel *model, bool includeHeaders)
{
if (!model) {