SKRequestAndResponse.cs 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Pms.WebHandle
  7. {
  8. public class SKClentOrder
  9. {
  10. public string agvid { get; set; } = "0";//
  11. public string taskid { get; set; } = "0";//
  12. public string source { get; set; } = "";//取货地址
  13. public string target { get; set; } = "";//卸货地址str
  14. //public int tasktype { get; set; } = 0;
  15. //public int prio { get; set; } = 1;
  16. //public string WhsId { get; set; } = "";
  17. //public string OrgId { get; set; } = "";
  18. }
  19. public class SKClentOrderResponse
  20. {
  21. public string code { get; set; } = "";//0:成功;其他:失败
  22. public string taskid { get; set; } = "";
  23. }
  24. public class ClentOrderCancel
  25. {
  26. public string agvid { get; set; } = "0";//
  27. public string taskid { get; set; } = "0";//
  28. }
  29. public class ClentOrderCancelResponse
  30. {
  31. public string code { get; set; } = "";//0:成功;其他:失败
  32. }
  33. public class ClentOrderRedirection
  34. {
  35. public string agvid { get; set; } = "0";//
  36. public string taskid { get; set; } = "0";//
  37. public string direction { get; set; } = "0";//变更的下料点
  38. }
  39. public class ClentOrderRedirectionResponse
  40. {
  41. public string code { get; set; } = "";//0:成功;其他:失败
  42. }
  43. public class AGVState
  44. {
  45. public int agvid { get; set; } = 0;//
  46. public int state { get; set; } = 0;
  47. public string fault { get; set; } = "";//故障
  48. public int power { get; set; } = 0;//
  49. public int x { get; set; } = 0;
  50. public int y { get; set; } = 0;//
  51. public int angle { get; set; } = 0;
  52. public string taskid { get; set; } = "0";//
  53. public string updatetime { get; set; } ="";//DateTime.MinValue
  54. }
  55. public class AGVStateResponse
  56. {
  57. public string code { get; set; } = "";//0:成功;其他:失败
  58. }
  59. public class TaskState
  60. {
  61. public string taskid { get; set; } = "0";//
  62. public int taskstate { get; set; } = 0;//0、未执行,1、下发到NDC,2、绑定AGV,3、前往取货点,4、取货完成,5、前往卸货点,6、卸货完成,7、任务完成,8、任务取消
  63. public int faultcode{ get; set; } = 0;//0、无异常,1、WCS请求取消任务,2、调度系统手动删除任务,3、NDC系统删除,4、未知原因
  64. public string agvid{ get; set; } = "";//errorLocation
  65. public string updatetime { get; set; } = "";//DateTime.MinValue
  66. }
  67. public class TaskStateResponse
  68. {
  69. public string code { get; set; } = "";//0:成功;其他:失败
  70. }
  71. //以下暂未用到
  72. public class TCLClientOrderCompleted
  73. {
  74. public string FacCode { get; set; } = "";
  75. public string ShopCode { get; set; } = "";
  76. public string PalletNo { get; set; } = "";
  77. //新增
  78. public string ContainerNo { get; set; } = "";
  79. public string TpNo { get; set; } = "";
  80. public string PickingNo { get; set; } = "";
  81. public string Type { get; set; } = "";
  82. }
  83. public class TCLClientOrderCompletedFeedBack
  84. {
  85. public string Message { get; set; } = "";
  86. public string State { get; set; } = "";
  87. }
  88. public class TCLClientDownPositionRequest
  89. {
  90. public string FacCode { get; set; } = "";
  91. public string ShopCode { get; set; } = "";
  92. public string PalletNo { get; set; } = "";
  93. }
  94. public class TCLClientDownPositionRequestFeedBack
  95. {
  96. public string Message { get; set; } = "";
  97. public string State { get; set; } = "";
  98. public DATA[] data;
  99. }
  100. public class TCLClentWMSOrder
  101. {
  102. public string FacCode { get; set; } = "";//
  103. public string ShopCode { get; set; } = "";//车间代码 floorID
  104. public string Type { get; set; } = "";//3
  105. public string PickingNo { get; set; } = "";//备货单
  106. public string ContainerNo { get; set; } = "";
  107. public string TpNo { get; set; } = "";//TP单
  108. public string PalletNo { get; set; } = "";
  109. public string OcNo { get; set; } = "";//批次号
  110. public string FromWhere { get; set; } = "";//源仓库
  111. public string FromArea { get; set; } = "";//源库区
  112. public string FromStorage { get; set; } = "";//源库位
  113. public string WhsCode { get; set; } = "";//目标仓库
  114. public string AreaCode { get; set; } = "";//目标库区
  115. public string StorageCode { get; set; } = "";//目标库位
  116. }
  117. public class TCLClentWMSOrderResponse
  118. {
  119. public int code { get; set; } = 202;//200:成功;202:失败
  120. public string message { get; set; } = "";
  121. }
  122. public class DATA
  123. {
  124. public string FacCode { get; set; } = "";
  125. public string ShopCode { get; set; } = "";
  126. public string PalletNo { get; set; } = "";
  127. public string WhsCode { get; set; } = "";
  128. public string AreaCode { get; set; } = "";
  129. public string StorageCode { get; set; } = "";
  130. }
  131. }