added web service
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user