using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using BPASmartClient.DosingHKProject.Model.RawMaterial; using BPASmartClient.Model; using Microsoft.Toolkit.Mvvm.ComponentModel; namespace BPASmartClient.DosingHKProject.Model { /// /// 配方模块 /// public class RecipeModel : ObservableObject { [Newtonsoft.Json.JsonIgnore] public bool IsEnable { get { return _mIsEnable; } set { _mIsEnable = value; OnPropertyChanged(); } } private bool _mIsEnable = true; /// /// 序号 /// public int SerialNum { get { return _mSerialNum; } set { _mSerialNum = value; OnPropertyChanged(); } } private int _mSerialNum; /// /// 配方名称 /// public string RecipeName { get { return _mRecipeName; } set { _mRecipeName = value; OnPropertyChanged(); } } private string _mRecipeName; /// /// 配方编码 /// public string RecipCode { get { return _mRecipCode; } set { _mRecipCode = value; OnPropertyChanged(); } } private string _mRecipCode; [Newtonsoft.Json.JsonIgnore] public AutoResetEvent Are { get; set; } = new AutoResetEvent(false); /// /// 托盘编号 /// public int TrayCode { get { return _mTrayCode; } set { _mTrayCode = value; OnPropertyChanged(); } } private int _mTrayCode; /// /// 原料集合 /// public ObservableCollection RawMaterials { get; set; } = new ObservableCollection(); } }