终端一体化运控平台
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

49 righe
1.5 KiB

  1. using Microsoft.Toolkit.Mvvm.ComponentModel;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace BPASmart.Model.配方
  8. {
  9. public class RecipeMaterials:ObservableObject
  10. {
  11. /// <summary>
  12. /// 原料ID
  13. /// </summary>
  14. public string ID { get { return _id; } set { _id = value; OnPropertyChanged(); } }
  15. private string _id;
  16. /// <summary>
  17. /// 物料名称
  18. /// </summary>
  19. public string Name { get { return _name; } set { _name = value;OnPropertyChanged(); } }
  20. private string _name;
  21. /// <summary>
  22. /// 物料种类
  23. /// </summary>
  24. public MaterialType MaterialType { get { return _materialType; } set { _materialType = value; OnPropertyChanged(); } }
  25. private MaterialType _materialType;
  26. /// <summary>
  27. /// 物料重量
  28. /// </summary>
  29. public int MaterialWeight { get { return _materialWeight; } set { _materialWeight = value; OnPropertyChanged(); } }
  30. private int _materialWeight;
  31. /// <summary>
  32. /// 原料位置
  33. /// </summary>
  34. public string MaterialPosion { get { return _materialPosion; } set { _materialPosion = value;OnPropertyChanged(); } }
  35. private string _materialPosion;
  36. }
  37. public enum MaterialType
  38. {
  39. 无 = 0,
  40. 干料 = 1,
  41. 湿料 = 2,
  42. 粉体 = 3,
  43. 膏体 = 4
  44. }
  45. }