MarkWeight.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. using CommunityToolkit.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 ivf_tl_Entity.Entity.Mark
  9. {
  10. public class MarkWeight : ObservableObject
  11. {
  12. public long id { get; set; }
  13. public long parentId { get; set; } = -1;
  14. private string _info;
  15. public string info { get => _info; set => SetProperty(ref _info, value); }
  16. private string _markKey;
  17. public string markKey { get => _markKey; set => SetProperty(ref _markKey, value); }
  18. private string _name;
  19. public string name { get => _name; set => SetProperty(ref _name, value); }
  20. private int _orderNum;
  21. public int orderNum { get => _orderNum; set => SetProperty(ref _orderNum, value); }
  22. private decimal _weight;
  23. public decimal weight { get => _weight; set => SetProperty(ref _weight, value); }
  24. private ObservableCollection<MarkWeight> _children = new ObservableCollection<MarkWeight>();
  25. public ObservableCollection<MarkWeight> children { get => _children; set => SetProperty(ref _children, value); }
  26. public bool IsExpanded { get; set; } = false;
  27. public System.Windows.Media.Brush RectangleFill { get; set; }
  28. private MarkWeight _ParentMarkWeight = null;
  29. public MarkWeight ParentMarkWeight
  30. {
  31. get { return _ParentMarkWeight; }
  32. set => SetProperty(ref _ParentMarkWeight, value);
  33. }
  34. }
  35. public class MarkWeightNoParent
  36. {
  37. public long id { get; set; }
  38. public string info { get; set; }
  39. public string markKey { get; set; }
  40. public string name { get; set; }
  41. public int orderNum { get; set; }
  42. public decimal weight { get; set; }
  43. }
  44. }