DeviceInfo.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 _mesStationUrl;
  31. /// <summary>
  32. /// MES 过站 URL
  33. /// </summary>
  34. public string MesStationUrl { get => _mesStationUrl; set => SetProperty(ref _mesStationUrl, value); }
  35. private string _mesSubmitUrl;
  36. /// <summary>
  37. /// MES 提交 URL
  38. /// </summary>
  39. public string MesSubmitUrl { get => _mesSubmitUrl; set => SetProperty(ref _mesSubmitUrl, value); }
  40. public DeviceInfo()
  41. {
  42. Line = string.Empty;
  43. Station = string.Empty;
  44. FixtureId = string.Empty;
  45. EnableMES = false;
  46. MesStationUrl = string.Empty;
  47. MesSubmitUrl = string.Empty;
  48. }
  49. }
  50. }