终端一体化运控平台
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ů.
 
 
 

54 řádky
1.5 KiB

  1. using Microsoft.Toolkit.Mvvm.ComponentModel;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Collections.ObjectModel;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace BPASmart.Model
  9. {
  10. public class Recipes : ObservableObject
  11. {
  12. /// <summary>
  13. /// 配方ID
  14. /// </summary>
  15. public string ID { get { return _id; } set { _id = value; OnPropertyChanged(); } }
  16. private string _id;
  17. /// <summary>
  18. /// 配方名称
  19. /// </summary>
  20. public string Name { get { return _name; } set { _name = value; OnPropertyChanged(); } }
  21. public string _name;
  22. /// <summary>
  23. /// 配方状态
  24. /// </summary>
  25. public RecipeStates RecipeState { get { return _recipeState; } set { _recipeState = value; OnPropertyChanged(); } }
  26. public RecipeStates _recipeState;
  27. /// <summary>
  28. /// 配方单数
  29. /// </summary>
  30. public int RecipeCount { get { return _recipeCount; } set { _recipeCount = value; OnPropertyChanged(); } }
  31. private int _recipeCount;
  32. /// <summary>
  33. /// 配方原料集合
  34. /// </summary>
  35. public ObservableCollection<RecipeMaterials> recipeMaterials { get; set; }
  36. public ObservableCollection<TechnologyProcessModel> TechnologyProcessModels { get; set; } = new ObservableCollection<TechnologyProcessModel>();
  37. }
  38. public enum RecipeStates
  39. {
  40. 等待制作 = 0,
  41. 制作中 = 1,
  42. 制作完成 = 2
  43. }
  44. }