DeviceInfo.cs 1.7 KB

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