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.

42 lines
1.8 KiB

1 year ago
  1. /**
  2. * @brief
  3. * = = = = = = = = = = = = = = =
  4. * 全思美特
  5. * 操作人 XXXXX
  6. * 开始时间 2021-03-10 10:00:00
  7. * 结束时间 2021-03-10 10:00:00
  8. * 总耗时 01:59
  9. * 目标LOG 6
  10. * 实际LOG 6
  11. * = = = = = = = = = = = = = = =
  12. *
  13. */
  14. auto dio = m_deviceIoControlService;
  15. auto ds = GET_SERVICE(DeviceStateService);
  16. auto& cx = m_context;
  17. int32_t disinfectant_usage = cx.beforeDisinfectantVolume_g - cx.afterDisinfectantVolume_g;
  18. if (disinfectant_usage < 0) disinfectant_usage = 0;
  19. // m_context.m_endtp_str = getTime();
  20. int totaltime = zsystem_clock().elapsedTimeS(cx.disinfection_start_tp) / 60;
  21. dio->printerPrintf(fmt::format("= = = = = = = = = = = = = = = \n"));
  22. dio->printerPrintf(fmt::format(" 全思美特\n"));
  23. dio->printerPrintf(fmt::format("操作人 {}\n", ds->getLoginUid()));
  24. dio->printerPrintf(fmt::format("开始时间 {}\n", format_zsystem_tp(cx.disinfection_start_tp)));
  25. dio->printerPrintf(fmt::format("结束时间 {}\n", format_zsystem_tp(cx.disinfection_complete_tp)));
  26. dio->printerPrintf(fmt::format("总耗时 {}:{}\n", totaltime / 60, totaltime % 60));
  27. dio->printerPrintf(fmt::format("消毒液使用 {}g\n", disinfectant_usage));
  28. dio->printerPrintf(fmt::format("目标LOG {}\n", (int)m_context.m_targetLoglevel));
  29. dio->printerPrintf(fmt::format("实际LOG {}\n", (int)m_context.m_nowLoglevel));
  30. dio->printerPrintf(fmt::format("= = = = = = = = = = = = = = = \n"));
  31. for (size_t i = 0; i < count; i++)
  32. {
  33. /* code */
  34. }
  35. dio->printerPrintf(fmt::format("\n"));
  36. dio->printerPrintf(fmt::format("\n"));
  37. dio->printerPrintf(fmt::format("\n"));