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

51 line
1.6 KiB

  1. using BPASmartClient.Model;
  2. using Microsoft.Toolkit.Mvvm.ComponentModel;
  3. using System.Collections.ObjectModel;
  4. using System.Threading;
  5. namespace BPASmartClient.FoodStationTest.Model
  6. {
  7. /// <summary>
  8. /// 配方模块
  9. /// </summary>
  10. public class RecipeModel : ObservableObject
  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. /// <summary>
  33. /// 托盘编号
  34. /// </summary>
  35. public int TrayCode { get { return _mTrayCode; } set { _mTrayCode = value; OnPropertyChanged(); } }
  36. private int _mTrayCode;
  37. /// <summary>
  38. /// 原料集合
  39. /// </summary>
  40. public ObservableCollection<RawMaterialModel> RawMaterials { get; set; } = new ObservableCollection<RawMaterialModel>();
  41. }
  42. }