AgvMember.cs 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using System.Windows.Controls;
  7. namespace AGV_WPF.Models
  8. {
  9. public class AgvMember
  10. {
  11. public string txtAGVNum { get; set; }
  12. public string txtWL { get; set; }
  13. public string txtTrafficNum { get; set; }
  14. public string txtTrafficNumList { get; set; }
  15. public string txtTrafficState { get; set; }
  16. public string txtStatus { get; set; }
  17. public string txtWorkLine { get; set; }
  18. public string txtLineNum { get; set; }
  19. public string txtMarkNum { get; set; }
  20. public string txtMarkFunction { get; set; }
  21. public string txtSpeed { get; set; }
  22. public string txtDockNum { get; set; }
  23. public string txtAgvAlias { get; set; }//AGV别名
  24. public string txtVoltage { get; set; }
  25. public string txtCurrent { get; set; }
  26. public string txtTemperature { get; set; }
  27. public string txtLoadingStatus { get; set; }
  28. public Label AgvLabel;
  29. public Image AgvImage;
  30. public string txtTrafficAgv { get; set; }
  31. public string txtTrafficAgvList { get; set; }
  32. public string txtOffLineCount { get; set; }//掉线计数
  33. public string txtIsMainAgv { get; set; }
  34. public AgvMember()
  35. {
  36. txtAGVNum = "AGV?";
  37. txtAgvAlias = "AGV?";
  38. txtWL = "失败";
  39. txtTrafficNum = "0";
  40. txtTrafficNumList = "0";
  41. txtTrafficState = "初始化...";
  42. txtTrafficAgv = "无";
  43. txtTrafficAgvList = "无";
  44. txtStatus = "初始化...";
  45. txtWorkLine = "0";
  46. txtLineNum = "0";
  47. txtMarkNum = "0";
  48. txtMarkFunction = "初始化...";
  49. txtSpeed = "初始化...";
  50. txtDockNum = "0";
  51. txtOffLineCount = "0";
  52. txtVoltage = "0";
  53. txtCurrent = "0";
  54. txtTemperature = "0";
  55. txtLoadingStatus = "空车";
  56. txtIsMainAgv = "无效";
  57. }
  58. public string txtAgvAliasValue
  59. {
  60. get { return txtAgvAlias; }
  61. set
  62. {
  63. if (value != this.txtAgvAlias)
  64. {
  65. txtAgvAlias = value;
  66. }
  67. }
  68. }
  69. public string txtTrafficAgvValue
  70. {
  71. get { return txtTrafficAgv; }
  72. set
  73. {
  74. if (value != this.txtTrafficAgv)
  75. {
  76. txtTrafficAgv = value;
  77. }
  78. }
  79. }
  80. public string txtTrafficAgvListValue
  81. {
  82. get { return txtTrafficAgvList; }
  83. set
  84. {
  85. if (value != this.txtTrafficAgvList)
  86. {
  87. txtTrafficAgvList = value;
  88. }
  89. }
  90. }
  91. public string txtOffLineCountValue
  92. {
  93. get { return txtOffLineCount; }
  94. set
  95. {
  96. if (value != this.txtOffLineCount)
  97. {
  98. txtOffLineCount = value;
  99. }
  100. }
  101. }
  102. public string txtAGVNumValue
  103. {
  104. get { return this.txtAGVNum; }
  105. set
  106. {
  107. if (value != this.txtAGVNum)
  108. {
  109. this.txtAGVNum = value;
  110. }
  111. }
  112. }
  113. public string txtWLValue
  114. {
  115. get { return this.txtWL; }
  116. set
  117. {
  118. if (value != this.txtWL)
  119. {
  120. this.txtWL = value;
  121. }
  122. }
  123. }
  124. public string txtTrafficNumValue
  125. {
  126. get { return this.txtTrafficNum; }
  127. set
  128. {
  129. if (value != this.txtTrafficNum)
  130. {
  131. this.txtTrafficNum = value;
  132. }
  133. }
  134. }
  135. public string txtTrafficNumListValue
  136. {
  137. get { return this.txtTrafficNumList; }
  138. set
  139. {
  140. if (value != this.txtTrafficNumList)
  141. {
  142. this.txtTrafficNumList = value;
  143. }
  144. }
  145. }
  146. public string txtTrafficStateValue
  147. {
  148. get { return this.txtTrafficState; }
  149. set
  150. {
  151. if (value != this.txtTrafficState)
  152. {
  153. this.txtTrafficState = value;
  154. }
  155. }
  156. }
  157. public string txtStatusValue
  158. {
  159. get { return this.txtStatus; }
  160. set
  161. {
  162. if (value != this.txtStatus)
  163. {
  164. this.txtStatus = value;
  165. }
  166. }
  167. }
  168. public string txtWorkLineValue
  169. {
  170. get { return this.txtWorkLine; }
  171. set
  172. {
  173. if (value != this.txtWorkLine)
  174. {
  175. this.txtWorkLine = value;
  176. }
  177. }
  178. }
  179. public string txtLineNumValue
  180. {
  181. get { return this.txtLineNum; }
  182. set
  183. {
  184. if (value != this.txtLineNum)
  185. {
  186. this.txtLineNum = value;
  187. }
  188. }
  189. }
  190. public string txtMarkNumValue
  191. {
  192. get { return this.txtMarkNum; }
  193. set
  194. {
  195. if (value != this.txtMarkNum)
  196. {
  197. this.txtMarkNum = value;
  198. }
  199. }
  200. }
  201. public string txtMarkFunctionValue
  202. {
  203. get { return this.txtMarkFunction; }
  204. set
  205. {
  206. if (value != this.txtMarkFunction)
  207. {
  208. this.txtMarkFunction = value;
  209. }
  210. }
  211. }
  212. public string txtSpeedValue
  213. {
  214. get { return this.txtSpeed; }
  215. set
  216. {
  217. if (value != this.txtSpeed)
  218. {
  219. this.txtSpeed = value;
  220. }
  221. }
  222. }
  223. public string txtDockNumValue
  224. {
  225. get { return this.txtDockNum; }
  226. set
  227. {
  228. if (value != this.txtDockNum)
  229. {
  230. this.txtDockNum = value;
  231. }
  232. }
  233. }
  234. public string txtVoltageValue
  235. {
  236. get { return this.txtVoltage; }
  237. set
  238. {
  239. if (value != this.txtVoltage)
  240. {
  241. this.txtVoltage = value;
  242. }
  243. }
  244. }
  245. public string txtCurrentValue
  246. {
  247. get { return this.txtCurrent; }
  248. set
  249. {
  250. if (value != this.txtCurrent)
  251. {
  252. this.txtCurrent = value;
  253. }
  254. }
  255. }
  256. public string txtTemperatureValue
  257. {
  258. get { return this.txtTemperature; }
  259. set
  260. {
  261. if (value != this.txtTemperature)
  262. {
  263. this.txtTemperature = value;
  264. }
  265. }
  266. }
  267. public string txtLoadingStatusValue
  268. {
  269. get { return this.txtLoadingStatus; }
  270. set
  271. {
  272. if (value != this.txtLoadingStatus)
  273. {
  274. this.txtLoadingStatus = value;
  275. }
  276. }
  277. }
  278. public string txtIsMainAgvValue
  279. {
  280. get { return this.txtIsMainAgv; }
  281. set
  282. {
  283. if (value != this.txtIsMainAgv)
  284. {
  285. this.txtIsMainAgv = value;
  286. }
  287. }
  288. }
  289. /// <summary>
  290. /// Dispose resources
  291. /// </summary>
  292. public void Dispose()
  293. {
  294. // This object will be cleaned up by the Dispose method.
  295. GC.SuppressFinalize(this);
  296. }
  297. }
  298. }