终端一体化运控平台
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

RecipeModel.cs 1.5 KiB

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