DeviceInfo.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using Prism.Mvvm;
  2. using System;
  3. namespace TeamAAS_VP.Models
  4. {
  5. /// <summary>
  6. /// 设备信息配置,用于保存线别/站别/机台号以及 MES 相关配置。
  7. /// </summary>
  8. public class DeviceInfo : BindableBase
  9. {
  10. private string _line;
  11. /// <summary>
  12. /// 当前作业的线别
  13. /// </summary>
  14. public string Line { get => _line; set => SetProperty(ref _line, value); }
  15. private string _station;
  16. /// <summary>
  17. /// 当前作业的站别
  18. /// </summary>
  19. public string Station { get => _station; set => SetProperty(ref _station, value); }
  20. private string _fixtureId;
  21. /// <summary>
  22. /// 当前作业的机台编号
  23. /// </summary>
  24. public string FixtureId { get => _fixtureId; set => SetProperty(ref _fixtureId, value); }
  25. private bool _enableMes;
  26. /// <summary>
  27. /// 是否启用 MES 通信功能
  28. /// </summary>
  29. public bool EnableMES { get => _enableMes; set => SetProperty(ref _enableMes, value); }
  30. private string _mesUrl;
  31. /// <summary>
  32. /// URL
  33. /// </summary>
  34. public string MesUrl { get => _mesUrl; set => SetProperty(ref _mesUrl, value); }
  35. private string _f;
  36. public string F { get => _f; set => SetProperty(ref _f, value); }
  37. private string _comp;
  38. public string comp { get => _comp; set => SetProperty(ref _comp, value); }
  39. public DeviceInfo()
  40. {
  41. Line = string.Empty;
  42. Station = string.Empty;
  43. FixtureId = string.Empty;
  44. F = string.Empty;
  45. comp = string.Empty;
  46. MesUrl = string.Empty;
  47. EnableMES = false;
  48. }
  49. }
  50. }