SrmWorld.cs 818 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Diagnostics;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using WCS.Core;
  9. namespace WCS.WorkEngineering.Worlds
  10. {
  11. /// <summary>
  12. /// 堆垛机
  13. /// </summary>
  14. [Description("堆垛机")]
  15. public class SRMWorld : WorldWithLog
  16. {
  17. public SRMWorld()
  18. {
  19. }
  20. protected override void AfterUpdate(List<WorkTimes> list)
  21. {
  22. base.AfterUpdate(list);
  23. var wt = new WorkTimes();
  24. wt.Key = "堆垛机保存文本日志";
  25. var sw = new Stopwatch();
  26. sw.Start();
  27. SaveFileLog();
  28. sw.Stop();
  29. wt.Total = sw.ElapsedMilliseconds;
  30. list.AddSafe(wt);
  31. }
  32. }
  33. }