终端一体化运控平台
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.
 
 
 

89 lines
3.0 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.DosingSystem.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. /// 原料类型 MW18
  30. /// 1:液体
  31. /// 2:膏体
  32. /// 3:粉体
  33. /// </summary>
  34. [Newtonsoft.Json.JsonIgnore]
  35. public ushort RawMaterialType { get { return _mRawMaterialType; } set { _mRawMaterialType = value; OnPropertyChanged(); } }
  36. private ushort _mRawMaterialType;
  37. /// <summary>
  38. /// 料仓重量反馈 MD40
  39. /// </summary>
  40. [Newtonsoft.Json.JsonIgnore]
  41. public float WeightFeedback { get { return _mWeightFeedback; } set { _mWeightFeedback = value; OnPropertyChanged(); } }
  42. private float _mWeightFeedback;
  43. /// <summary>
  44. /// 上限反馈
  45. /// </summary>
  46. [Newtonsoft.Json.JsonIgnore]
  47. public bool UpLimtFeedback { get { return _mUpLimtFeedback; } set { _mUpLimtFeedback = value; OnPropertyChanged(); } }
  48. private bool _mUpLimtFeedback;
  49. /// <summary>
  50. /// 下限反馈
  51. /// </summary>
  52. [Newtonsoft.Json.JsonIgnore]
  53. public bool DownLimtFeedback { get { return _mDownLimtFeedback; } set { _mDownLimtFeedback = value; OnPropertyChanged(); } }
  54. private bool _mDownLimtFeedback;
  55. /// <summary>
  56. /// 下料重量反馈 MD52
  57. /// </summary>
  58. [Newtonsoft.Json.JsonIgnore]
  59. public float UpLimtWeightFeedback { get { return _mUpLimtWeightFeedback; } set { _mUpLimtWeightFeedback = value; OnPropertyChanged(); } }
  60. private float _mUpLimtWeightFeedback;
  61. /// <summary>
  62. /// 原料ID
  63. /// </summary>
  64. public string RawMaterialId { get { return _mRawMaterialId; } set { _mRawMaterialId = value; OnPropertyChanged(); } }
  65. private string _mRawMaterialId;
  66. /// <summary>
  67. /// 原料设备执行状态
  68. /// 1:空闲状态
  69. /// 2:下料中
  70. /// 3:下料完成
  71. /// </summary>
  72. [Newtonsoft.Json.JsonIgnore]
  73. public ushort RecipeStatus { get { return _mRecipeStatus; } set { _mRecipeStatus = value; OnPropertyChanged(); } }
  74. private ushort _mRecipeStatus = 1;
  75. }
  76. }