终端一体化运控平台
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

50 Zeilen
1.5 KiB

  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 Microsoft.Toolkit.Mvvm.ComponentModel;
  10. namespace BPASmartClient.DosingSystem
  11. {
  12. /// <summary>
  13. /// 配方模块
  14. /// </summary>
  15. public class RecipeModel : ObservableObject
  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. }