|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- 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
- {
- /// <summary>
- /// 配方ID
- /// </summary>
- public string ID { get { return _id; } set { _id = value; OnPropertyChanged(); } }
- private string _id;
-
- /// <summary>
- /// 配方名称
- /// </summary>
- public string Name { get { return _name; } set { _name = value; OnPropertyChanged(); } }
- public string _name;
-
- /// <summary>
- /// 配方状态
- /// </summary>
- public RecipeStates RecipeState { get { return _recipeState; } set { _recipeState = value; OnPropertyChanged(); } }
- public RecipeStates _recipeState;
-
- /// <summary>
- /// 配方单数
- /// </summary>
- public int RecipeCount { get { return _recipeCount; } set { _recipeCount = value; OnPropertyChanged(); } }
- private int _recipeCount;
- /// <summary>
- /// 配方原料集合
- /// </summary>
- public ObservableCollection<RecipeMaterials> recipeMaterials { get; set; }
-
- public ObservableCollection<TechnologyProcessModel> TechnologyProcessModels { get; set; } = new ObservableCollection<TechnologyProcessModel>();
-
-
- }
-
- public enum RecipeStates
- {
- 等待制作 = 0,
- 制作中 = 1,
- 制作完成 = 2
- }
- }
-
|