终端一体化运控平台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

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