Device.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace UAS_PLCDataReader.Entity
  6. {
  7. public class Device
  8. {
  9. /// <summary>
  10. /// 设备名称
  11. /// </summary>
  12. private string decode;
  13. /// <summary>
  14. /// 设备名称
  15. /// </summary>
  16. private string dename;
  17. /// <summary>
  18. /// 运行状态
  19. /// </summary>
  20. private string runStatus;
  21. /// <summary>
  22. /// 发送数据字节
  23. /// </summary>
  24. private int sendDataSize;
  25. /// <summary>
  26. /// 接收数据字节
  27. /// </summary>
  28. private int receiveDataSize;
  29. /// <summary>
  30. /// 发送数据次数
  31. /// </summary>
  32. private int sendCount;
  33. /// <summary>
  34. /// 温度
  35. /// </summary>
  36. private float temperature;
  37. /// <summary>
  38. /// 投产数
  39. /// </summary>
  40. private int inQTY;
  41. /// <summary>
  42. /// 合格数
  43. /// </summary>
  44. private int okQTY;
  45. /// <summary>
  46. /// 启动时间
  47. /// </summary>
  48. private DateTime startTime;
  49. /// <summary>
  50. /// 返回参数
  51. /// </summary>
  52. private Dictionary<string, string> itemData;
  53. /// <summary>
  54. /// 工单号
  55. /// </summary>
  56. private string makeCode;
  57. /// <summary>
  58. /// 指令编号
  59. /// </summary>
  60. private string dccode;
  61. public string Decode
  62. {
  63. get
  64. {
  65. return decode;
  66. }
  67. set
  68. {
  69. decode = value;
  70. }
  71. }
  72. public string Dename
  73. {
  74. get
  75. {
  76. return dename;
  77. }
  78. set
  79. {
  80. dename = value;
  81. }
  82. }
  83. public string RunStatus
  84. {
  85. get
  86. {
  87. return runStatus;
  88. }
  89. set
  90. {
  91. runStatus = value;
  92. }
  93. }
  94. public int SendDataSize
  95. {
  96. get
  97. {
  98. return sendDataSize;
  99. }
  100. set
  101. {
  102. sendDataSize = value;
  103. }
  104. }
  105. public int ReceiveDataSize
  106. {
  107. get
  108. {
  109. return receiveDataSize;
  110. }
  111. set
  112. {
  113. receiveDataSize = value;
  114. }
  115. }
  116. public int SendCount
  117. {
  118. get
  119. {
  120. return sendCount;
  121. }
  122. set
  123. {
  124. sendCount = value;
  125. }
  126. }
  127. public Dictionary<string, string> ItemData
  128. {
  129. get
  130. {
  131. return itemData;
  132. }
  133. set
  134. {
  135. itemData = value;
  136. }
  137. }
  138. public DateTime StartTime
  139. {
  140. get
  141. {
  142. return startTime;
  143. }
  144. set
  145. {
  146. startTime = value;
  147. }
  148. }
  149. public float Temperature
  150. {
  151. get
  152. {
  153. return temperature;
  154. }
  155. set
  156. {
  157. temperature = value;
  158. }
  159. }
  160. public int InQTY
  161. {
  162. get
  163. {
  164. return inQTY;
  165. }
  166. set
  167. {
  168. inQTY = value;
  169. }
  170. }
  171. public int OkQTY
  172. {
  173. get
  174. {
  175. return okQTY;
  176. }
  177. set
  178. {
  179. okQTY = value;
  180. }
  181. }
  182. public string MakeCode
  183. {
  184. get
  185. {
  186. return makeCode;
  187. }
  188. set
  189. {
  190. makeCode = value;
  191. }
  192. }
  193. public string Dccode
  194. {
  195. get
  196. {
  197. return dccode;
  198. }
  199. set
  200. {
  201. dccode = value;
  202. }
  203. }
  204. }
  205. }