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

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