Skip to content
Snippets Groups Projects
Commit 6fd05479 authored by Jan Reher's avatar Jan Reher
Browse files

Implemented more comfortable way of entering barcodes (as short).

Disabled database connection for testing.
parent 685a9659
No related branches found
No related tags found
2 merge requests!4Many proven updates being brought into stable branch.,!3Commented in the lines in apdUnitCreator.cpp that do the actual database
Pipeline #1610 failed with stages
in 2 seconds
......@@ -121,11 +121,17 @@ void loadSerialsFromFileName(string m_fileName, bool m_debug) {
}
unitInfo newUnit;
uint barCode;
std::stringstream linestream(line);
linestream >> newUnit.redSerial >> newUnit.blueSerial >> newUnit.crystalSerial >> newUnit.barCode;
linestream >> newUnit.redSerial >> newUnit.blueSerial >> newUnit.crystalSerial >> barCode;
if (barCode <1000000 )
barCode += 1909000000;
newUnit.barCode = std::to_string(barCode);
std::cerr << "Found new unit with RS = " << newUnit.redSerial << ", BS = " << newUnit.blueSerial << ", CS = " << newUnit.crystalSerial << ", BC = " << newUnit.barCode << std::endl;
newUnits.push_back(newUnit);
//newUnits.push_back(newUnit);
if (m_debug) cout << "Found serial: " << line << endl;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment