You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.8 KiB

/**
* @brief
* = = = = = = = = = = = = = = =
* 全思美特
* 操作人 XXXXX
* 开始时间 2021-03-10 10:00:00
* 结束时间 2021-03-10 10:00:00
* 总耗时 01:59
* 目标LOG 6
* 实际LOG 6
* = = = = = = = = = = = = = = =
*
*/
auto dio = m_deviceIoControlService;
auto ds = GET_SERVICE(DeviceStateService);
auto& cx = m_context;
int32_t disinfectant_usage = cx.beforeDisinfectantVolume_g - cx.afterDisinfectantVolume_g;
if (disinfectant_usage < 0) disinfectant_usage = 0;
// m_context.m_endtp_str = getTime();
int totaltime = zsystem_clock().elapsedTimeS(cx.disinfection_start_tp) / 60;
dio->printerPrintf(fmt::format("= = = = = = = = = = = = = = = \n"));
dio->printerPrintf(fmt::format(" 全思美特\n"));
dio->printerPrintf(fmt::format("操作人 {}\n", ds->getLoginUid()));
dio->printerPrintf(fmt::format("开始时间 {}\n", format_zsystem_tp(cx.disinfection_start_tp)));
dio->printerPrintf(fmt::format("结束时间 {}\n", format_zsystem_tp(cx.disinfection_complete_tp)));
dio->printerPrintf(fmt::format("总耗时 {}:{}\n", totaltime / 60, totaltime % 60));
dio->printerPrintf(fmt::format("消毒液使用 {}g\n", disinfectant_usage));
dio->printerPrintf(fmt::format("目标LOG {}\n", (int)m_context.m_targetLoglevel));
dio->printerPrintf(fmt::format("实际LOG {}\n", (int)m_context.m_nowLoglevel));
dio->printerPrintf(fmt::format("= = = = = = = = = = = = = = = \n"));
for (size_t i = 0; i < count; i++)
{
/* code */
}
dio->printerPrintf(fmt::format("\n"));
dio->printerPrintf(fmt::format("\n"));
dio->printerPrintf(fmt::format("\n"));