终端一体化运控平台
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

49 lines
1.6 KiB

  1. using BPA.Helper;
  2. using BPASmartClient.Model;
  3. using System.Collections.ObjectModel;
  4. using System.Threading;
  5. namespace BPASmartClient.DosingSystem
  6. {
  7. /// <summary>
  8. /// 配方模块
  9. /// </summary>
  10. public class RecipeModel : NotifyBase
  11. {
  12. [Newtonsoft.Json.JsonIgnore]
  13. public bool IsEnable { get { return _mIsEnable; } set { _mIsEnable = value; OnPropertyChanged(); } }
  14. private bool _mIsEnable = true;
  15. /// <summary>
  16. /// 序号
  17. /// </summary>
  18. public int SerialNum { get { return _mSerialNum; } set { _mSerialNum = value; OnPropertyChanged(); } }
  19. private int _mSerialNum;
  20. /// <summary>
  21. /// 配方名称
  22. /// </summary>
  23. public string RecipeName { get { return _mRecipeName; } set { _mRecipeName = value; OnPropertyChanged(); } }
  24. private string _mRecipeName;
  25. /// <summary>
  26. /// 配方编码
  27. /// </summary>
  28. public string RecipCode { get { return _mRecipCode; } set { _mRecipCode = value; OnPropertyChanged(); } }
  29. private string _mRecipCode;
  30. [Newtonsoft.Json.JsonIgnore]
  31. public AutoResetEvent Are { get; set; } = new AutoResetEvent(false);
  32. [Newtonsoft.Json.JsonIgnore]
  33. public string RecipStatus { get { return _mRecipStatus; } set { _mRecipStatus = value; OnPropertyChanged(); } }
  34. private string _mRecipStatus;
  35. /// <summary>
  36. /// 原料集合
  37. /// </summary>
  38. public ObservableCollection<RawMaterialModel> RawMaterials { get; set; } = new ObservableCollection<RawMaterialModel>();
  39. }
  40. }