终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

97 lines
3.3 KiB

  1. using Microsoft.Toolkit.Mvvm.ComponentModel;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace BPASmartClient.Model
  8. {
  9. /// <summary>
  10. /// 原料模块
  11. /// </summary>
  12. public class RawMaterialModel : ObservableObject
  13. {
  14. /// <summary>
  15. /// 原料名称
  16. /// </summary>
  17. public string RawMaterialName { get { return _mRawMaterialName; } set { _mRawMaterialName = value; OnPropertyChanged(); } }
  18. private string _mRawMaterialName;
  19. /// <summary>
  20. /// 原料设备IP
  21. /// </summary>
  22. public string DeviceIp { get; set; }
  23. /// <summary>
  24. /// 原料重量设置
  25. /// </summary>
  26. public uint RawMaterialWeight { get { return _mRawMaterialWeight; } set { _mRawMaterialWeight = value; OnPropertyChanged(); } }
  27. private uint _mRawMaterialWeight;
  28. /// <summary>
  29. /// 原料来源
  30. /// 0:本地
  31. /// 1:设备
  32. /// </summary>
  33. public ushort RawMaterialSource { get { return _mRawMaterialSource; } set { _mRawMaterialSource = value; OnPropertyChanged(); } }
  34. private ushort _mRawMaterialSource;
  35. /// <summary>
  36. /// 原料类型 MW18
  37. /// 1:液体
  38. /// 2:膏体
  39. /// 3:粉体
  40. /// </summary>
  41. [Newtonsoft.Json.JsonIgnore]
  42. public ushort RawMaterialType { get { return _mRawMaterialType; } set { _mRawMaterialType = value; OnPropertyChanged(); } }
  43. private ushort _mRawMaterialType;
  44. /// <summary>
  45. /// 料仓重量反馈 MD40
  46. /// </summary>
  47. [Newtonsoft.Json.JsonIgnore]
  48. public float WeightFeedback { get { return _mWeightFeedback; } set { _mWeightFeedback = value; OnPropertyChanged(); } }
  49. private float _mWeightFeedback;
  50. /// <summary>
  51. /// 上限反馈
  52. /// </summary>
  53. [Newtonsoft.Json.JsonIgnore]
  54. public bool UpLimtFeedback { get { return _mUpLimtFeedback; } set { _mUpLimtFeedback = value; OnPropertyChanged(); } }
  55. private bool _mUpLimtFeedback;
  56. /// <summary>
  57. /// 下限反馈
  58. /// </summary>
  59. [Newtonsoft.Json.JsonIgnore]
  60. public bool DownLimtFeedback { get { return _mDownLimtFeedback; } set { _mDownLimtFeedback = value; OnPropertyChanged(); } }
  61. private bool _mDownLimtFeedback;
  62. /// <summary>
  63. /// 下料重量反馈 MD52
  64. /// </summary>
  65. [Newtonsoft.Json.JsonIgnore]
  66. public float UpLimtWeightFeedback { get { return _mUpLimtWeightFeedback; } set { _mUpLimtWeightFeedback = value; OnPropertyChanged(); } }
  67. private float _mUpLimtWeightFeedback;
  68. /// <summary>
  69. /// 原料ID
  70. /// </summary>
  71. public string RawMaterialId { get { return _mRawMaterialId; } set { _mRawMaterialId = value; OnPropertyChanged(); } }
  72. private string _mRawMaterialId;
  73. /// <summary>
  74. /// 原料设备执行状态
  75. /// 1:等待配料
  76. /// 2:下料中
  77. /// 3:下料完成
  78. /// </summary>
  79. [Newtonsoft.Json.JsonIgnore]
  80. public ushort RecipeStatus { get { return _mRecipeStatus; } set { _mRecipeStatus = value; OnPropertyChanged(); } }
  81. private ushort _mRecipeStatus = 1;
  82. }
  83. }