using Microsoft.Toolkit.Mvvm.ComponentModel; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BPASmart.Model { public class Recipes : ObservableObject { /// /// 配方ID /// public string ID { get { return _id; } set { _id = value; OnPropertyChanged(); } } private string _id; /// /// 配方名称 /// public string Name { get { return _name; } set { _name = value; OnPropertyChanged(); } } public string _name; /// /// 配方状态 /// public RecipeStates RecipeState { get { return _recipeState; } set { _recipeState = value; OnPropertyChanged(); } } public RecipeStates _recipeState; /// /// 配方单数 /// public int RecipeCount { get { return _recipeCount; } set { _recipeCount = value; OnPropertyChanged(); } } private int _recipeCount; /// /// 配方原料集合 /// public ObservableCollection recipeMaterials { get; set; } public ObservableCollection TechnologyProcessModels { get; set; } = new ObservableCollection(); } public enum RecipeStates { 等待制作 = 0, 制作中 = 1, 制作完成 = 2 } }