终端一体化运控平台
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

56 wiersze
1.8 KiB

  1. using BPASmartClient.MorkTM;
  2. using Microsoft.Toolkit.Mvvm.ComponentModel;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Collections.ObjectModel;
  6. using System.Text;
  7. namespace Model
  8. {
  9. public class LocalTeaWithMilkConfig: ObservableObject
  10. {
  11. /// <summary>
  12. /// 奶茶名称
  13. /// </summary>
  14. public string GoodNames { get { return _goodNames; } set { _goodNames = value; OnPropertyChanged(); } }
  15. private string _goodNames;
  16. /// <summary>
  17. /// 奶茶配方
  18. /// </summary>
  19. public ObservableCollection<MaterialRecipe> materialRecipes = new ObservableCollection<MaterialRecipe>();
  20. }
  21. public class MaterialRecipe:ObservableObject
  22. {
  23. /// <summary>
  24. /// 物料ID
  25. /// </summary>
  26. public int MaterialID { get { return _materialID; } set { _materialID = value; OnPropertyChanged(); } }
  27. private int _materialID =1;
  28. /// <summary>
  29. /// 物料位置
  30. /// </summary>
  31. public string Material { get { return _material; } set { _material = value; OnPropertyChanged(); } }
  32. private string _material ;
  33. /// <summary>
  34. /// 物料的出料量
  35. /// </summary>
  36. public int MaterialWeight { get { return _materialWeight; } set { _materialWeight = value; OnPropertyChanged(); } }
  37. private int _materialWeight = 10;
  38. }
  39. public class MaterailNameAndPosion: ObservableObject
  40. {
  41. public string MaterialPosion { get { return _materaiPosion; } set { _materaiPosion = value; OnPropertyChanged(); } }
  42. private string _materaiPosion;
  43. public string MaterialName { get { return _materailName; } set { _materailName = value; OnPropertyChanged(); } }
  44. private string _materailName;
  45. }
  46. }