|
@ -170,6 +170,7 @@ void DisinfectionLogsService::initialize() { |
|
|
REG_EXTFN(deleteReport, void(string), logName); |
|
|
REG_EXTFN(deleteReport, void(string), logName); |
|
|
REG_EXTFN(deleteReports, void(vector<string>), logNames); |
|
|
REG_EXTFN(deleteReports, void(vector<string>), logNames); |
|
|
REG_EXTFN(exportRecord, void(vector<string>), logNames); |
|
|
REG_EXTFN(exportRecord, void(vector<string>), logNames); |
|
|
|
|
|
REG_EXTFN_VOID(exportAllRecord, void()); |
|
|
REG_EXTFN(printRecord, void(string), logName); |
|
|
REG_EXTFN(printRecord, void(string), logName); |
|
|
REG_EXTFN(createFakeData, void(bool), printInPrinter); |
|
|
REG_EXTFN(createFakeData, void(bool), printInPrinter); |
|
|
|
|
|
|
|
@ -614,6 +615,14 @@ void DisinfectionLogsService::deleteReports(shared_ptr<MsgProcessContext> cxt, v |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void DisinfectionLogsService::exportAllRecord(shared_ptr<MsgProcessContext> cxt) { |
|
|
|
|
|
vector<string> logNames; |
|
|
|
|
|
for (auto& var : m_recordFiles) { |
|
|
|
|
|
logNames.push_back(var); |
|
|
|
|
|
} |
|
|
|
|
|
exportDisinfectionData(logNames); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void DisinfectionLogsService::exportRecord(shared_ptr<MsgProcessContext> cxt, vector<string> logNames) { |
|
|
void DisinfectionLogsService::exportRecord(shared_ptr<MsgProcessContext> cxt, vector<string> logNames) { |
|
|
vector<string> files; |
|
|
vector<string> files; |
|
|
for (auto& key : logNames) { |
|
|
for (auto& key : logNames) { |
|
|