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

RecipeMaterials.cs 1.8 KiB

2 anni fa
2 anni fa
2 anni fa
2 anni fa
2 anni fa
2 anni fa
2 anni fa
2 anni fa
2 anni fa
2 anni fa
2 anni fa
2 anni fa
2 anni fa
2 anni fa
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. }