终端一体化运控平台
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

57 řádky
1.8 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.DosingHKProject.Model.RawMaterial;
  9. using BPASmartClient.Model;
  10. using Microsoft.Toolkit.Mvvm.ComponentModel;
  11. namespace BPASmartClient.DosingHKProject.Model
  12. {
  13. /// <summary>
  14. /// 配方模块
  15. /// </summary>
  16. public class RecipeModel : ObservableObject
  17. {
  18. [Newtonsoft.Json.JsonIgnore]
  19. public bool IsEnable { get { return _mIsEnable; } set { _mIsEnable = value; OnPropertyChanged(); } }
  20. private bool _mIsEnable = true;
  21. /// <summary>
  22. /// 序号
  23. /// </summary>
  24. public int SerialNum { get { return _mSerialNum; } set { _mSerialNum = value; OnPropertyChanged(); } }
  25. private int _mSerialNum;
  26. /// <summary>
  27. /// 配方名称
  28. /// </summary>
  29. public string RecipeName { get { return _mRecipeName; } set { _mRecipeName = value; OnPropertyChanged(); } }
  30. private string _mRecipeName;
  31. /// <summary>
  32. /// 配方编码
  33. /// </summary>
  34. public string RecipCode { get { return _mRecipCode; } set { _mRecipCode = value; OnPropertyChanged(); } }
  35. private string _mRecipCode;
  36. [Newtonsoft.Json.JsonIgnore]
  37. public AutoResetEvent Are { get; set; } = new AutoResetEvent(false);
  38. /// <summary>
  39. /// 托盘编号
  40. /// </summary>
  41. public int TrayCode { get { return _mTrayCode; } set { _mTrayCode = value; OnPropertyChanged(); } }
  42. private int _mTrayCode;
  43. /// <summary>
  44. /// 原料集合
  45. /// </summary>
  46. public ObservableCollection<RawMaterialModel> RawMaterials { get; set; } = new ObservableCollection<RawMaterialModel>();
  47. }
  48. }