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

58 řádky
1.8 KiB

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