RequestAgvCallback.cs 870 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace ProjectManagementSystem.Common.Models
  7. {
  8. public class RequestAgvCallback
  9. {
  10. public string reqCode { get; set; } = Guid.NewGuid().ToString();
  11. public string taskCode { get; set; }
  12. public string currentPositionCode { get; set; }
  13. public string method { get; set; }
  14. public string robotCode { get; set; }
  15. public string reqTime { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
  16. public string data { get; set; } = "5205";
  17. public RequestAgvCallback()
  18. {
  19. var code = Function.AppSetting.TryGetValue<string>("FactoryCode");
  20. if (!string.IsNullOrWhiteSpace(code))
  21. {
  22. data = code;
  23. }
  24. }
  25. }
  26. }