|
|
|
|
@ -640,7 +640,6 @@ void MsgHandler::Print1_3(const std::map<std::string, std::string>& msg)
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┬");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24,m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
@ -666,320 +665,388 @@ void MsgHandler::Print1_3(const std::map<std::string, std::string>& msg)
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┬");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24,m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
//=========毛重======================
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("毛重");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
|
|
|
|
|
it = msg.find("GrossWeight");
|
|
|
|
|
if(it != msg.end())
|
|
|
|
|
//=========磅单类型======================
|
|
|
|
|
it = msg.find("TicketType");
|
|
|
|
|
if (it->second == "1")
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
//=========毛重======================
|
|
|
|
|
|
|
|
|
|
m_newObj[384] = ("│");
|
|
|
|
|
m_newObj[404] = ("吨");
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("一次称重");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
it = msg.find("GrossWeight");
|
|
|
|
|
if (it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
m_newObj[384] = ("│");
|
|
|
|
|
m_newObj[404] = ("吨");
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┼");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24,m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
//=========毛重操作员======================
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┴");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24, m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("操作员");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
//=========毛重操作员======================
|
|
|
|
|
|
|
|
|
|
it = msg.find("GrossOperater");
|
|
|
|
|
if(it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("操作员");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
|
|
|
|
|
m_newObj[384] = ("│");
|
|
|
|
|
m_newObj[404] = ("吨");
|
|
|
|
|
it = msg.find("GrossOperater");
|
|
|
|
|
if (it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24, m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┼");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24,m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
//=========毛重时间======================
|
|
|
|
|
|
|
|
|
|
//=========毛重时间======================
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("称重时间");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("毛重时间");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
it = msg.find("GrossTime");
|
|
|
|
|
if (it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
it = msg.find("GrossTime");
|
|
|
|
|
if(it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24, m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
m_newObj[384] = ("│");
|
|
|
|
|
m_newObj[404] = ("吨");
|
|
|
|
|
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┼");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24,m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
//=========皮重======================
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("皮重");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
|
|
|
|
|
it = msg.find("TareWeight");
|
|
|
|
|
if(it != msg.end())
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
m_newObj[384] = ("│");
|
|
|
|
|
m_newObj[404] = ("吨");
|
|
|
|
|
//=========毛重======================
|
|
|
|
|
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("毛重");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
|
|
|
|
|
it = msg.find("GrossWeight");
|
|
|
|
|
if (it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┼");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24,m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
m_newObj[384] = ("│");
|
|
|
|
|
m_newObj[404] = ("吨");
|
|
|
|
|
|
|
|
|
|
//=========皮重操作员======================
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("操作员");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┴");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24, m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
it = msg.find("TareOperater");
|
|
|
|
|
if(it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
//=========毛重操作员======================
|
|
|
|
|
|
|
|
|
|
m_newObj[384] = ("│");
|
|
|
|
|
m_newObj[404] = ("吨");
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("操作员");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
it = msg.find("GrossOperater");
|
|
|
|
|
if (it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┼");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24,m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24, m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
//=========皮重时间======================
|
|
|
|
|
//=========毛重时间======================
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("皮重时间");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("毛重时间");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
|
|
|
|
|
it = msg.find("TareTime");
|
|
|
|
|
if(it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
it = msg.find("GrossTime");
|
|
|
|
|
if (it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
m_newObj[384] = ("│");
|
|
|
|
|
m_newObj[404] = ("吨");
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┬");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24, m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
//=========皮重======================
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("皮重");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
|
|
|
|
|
it = msg.find("TareWeight");
|
|
|
|
|
if (it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
m_newObj[384] = ("│");
|
|
|
|
|
m_newObj[404] = ("吨");
|
|
|
|
|
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┼");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24,m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┴");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24, m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
//=========净重======================
|
|
|
|
|
//=========皮重操作员======================
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("净重");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("操作员");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
|
|
|
|
|
it = msg.find("SuttleWeight");
|
|
|
|
|
if(it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
it = msg.find("TareOperater");
|
|
|
|
|
if (it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
m_newObj[384] = ("│");
|
|
|
|
|
m_newObj[404] = ("吨");
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24, m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
//=========皮重时间======================
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┴");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24,m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("皮重时间");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
|
|
|
|
|
//=========扣矸======================
|
|
|
|
|
it = msg.find("TareTime");
|
|
|
|
|
if (it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("扣矸");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┬");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24, m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
//=========净重======================
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("净重");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
|
|
|
|
|
it = msg.find("SuttleWeight");
|
|
|
|
|
if (it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
it = msg.find("duduction1");
|
|
|
|
|
if(it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
m_newObj[384] = ("│");
|
|
|
|
|
m_newObj[404] = ("吨");
|
|
|
|
|
|
|
|
|
|
m_newObj[384] = ("│");
|
|
|
|
|
m_newObj[404] = ("吨");
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┼");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24, m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
//=========扣矸======================
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┴");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24,m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("扣矸");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
|
|
|
|
|
//=========扣水======================
|
|
|
|
|
it = msg.find("duduction1");
|
|
|
|
|
if (it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("扣水");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
m_newObj[384] = ("│");
|
|
|
|
|
m_newObj[404] = ("吨");
|
|
|
|
|
|
|
|
|
|
it = msg.find("duduction2");
|
|
|
|
|
if(it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
m_newObj[384] = ("│");
|
|
|
|
|
m_newObj[404] = ("吨");
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┼");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24, m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
//=========扣水======================
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("扣水");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┴");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24,m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
it = msg.find("duduction2");
|
|
|
|
|
if (it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//=========扣杂======================
|
|
|
|
|
m_newObj[384] = ("│");
|
|
|
|
|
m_newObj[404] = ("吨");
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("扣杂");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
it = msg.find("duduction3");
|
|
|
|
|
if(it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┼");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24, m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
m_newObj[384] = ("│");
|
|
|
|
|
m_newObj[404] = ("吨");
|
|
|
|
|
//=========扣杂======================
|
|
|
|
|
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("扣杂");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
|
|
|
|
|
it = msg.find("duduction3");
|
|
|
|
|
if (it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┴");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24,m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
m_newObj[384] = ("│");
|
|
|
|
|
m_newObj[404] = ("吨");
|
|
|
|
|
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┴");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24, m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), {0x0A});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//====磅称名称=====================
|
|
|
|
|
|
|
|
|
|
@ -1001,7 +1068,6 @@ void MsgHandler::Print1_3(const std::map<std::string, std::string>& msg)
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┬");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24,m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
@ -1027,7 +1093,6 @@ void MsgHandler::Print1_3(const std::map<std::string, std::string>& msg)
|
|
|
|
|
m_newObj[1] = ("├");
|
|
|
|
|
|
|
|
|
|
m_newObj[6] = ("┼");
|
|
|
|
|
m_newObj[17] = ("┬");
|
|
|
|
|
m_newObj[23] = ("┤");
|
|
|
|
|
blTemp = BuildLine(24,m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
@ -1038,8 +1103,13 @@ void MsgHandler::Print1_3(const std::map<std::string, std::string>& msg)
|
|
|
|
|
|
|
|
|
|
m_newObj.clear();
|
|
|
|
|
m_newObj[1] = ("│");
|
|
|
|
|
m_newObj[26] = ("备注");
|
|
|
|
|
m_newObj[26] = ("提示");
|
|
|
|
|
m_newObj[120] = ("│");
|
|
|
|
|
it = msg.find("Warning");
|
|
|
|
|
if(it != msg.end())
|
|
|
|
|
{
|
|
|
|
|
m_newObj[145] = it->second;
|
|
|
|
|
}
|
|
|
|
|
m_newObj[528] = ("│");
|
|
|
|
|
blTemp = BuildStringLine(m_newObj);
|
|
|
|
|
m_PrintData.insert(m_PrintData.end(), blTemp.begin(), blTemp.end());
|
|
|
|
|
|