MarkEntity.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. using System.Windows.Controls;
  9. namespace ivf_tl_Entity.Entity.Mark
  10. {
  11. public class MarkEntity : ObservableObject
  12. {
  13. public long id { get; set; }
  14. private int _child;
  15. public int child { get => _child; set => SetProperty(ref _child, value); }
  16. private int _defaultValue;
  17. public int defaultValue { get => _defaultValue; set => SetProperty(ref _defaultValue, value); }
  18. private string _markKey;
  19. public string markKey { get => _markKey; set => SetProperty(ref _markKey, value); }
  20. private int _maxTime;
  21. public int maxTime { get => _maxTime; set => SetProperty(ref _maxTime, value); }
  22. private string _minTimeString;
  23. public string minTimeString { get => _minTimeString; set => SetProperty(ref _minTimeString, value); }
  24. private long _model;
  25. public long model { get => _model; set => SetProperty(ref _model, value); }
  26. private string _name;
  27. public string name { get => _name; set => SetProperty(ref _name, value); }
  28. private int _orderNum;
  29. public int orderNum { get => _orderNum; set => SetProperty(ref _orderNum, value); }
  30. private long _parentId;
  31. public long parentId { get => _parentId; set => SetProperty(ref _parentId, value); }
  32. private int _state;
  33. public int state { get => _state; set => SetProperty(ref _state, value); }
  34. private int _unit;
  35. public int unit { get => _unit; set => SetProperty(ref _unit, value); }
  36. private int _visable;
  37. public int visable { get => _visable; set => SetProperty(ref _visable, value); }
  38. private decimal _weight;
  39. public decimal weight { get => _weight; set => SetProperty(ref _weight, value); }
  40. private int _keyNode;
  41. public int keyNode { get => _keyNode; set => SetProperty(ref _keyNode, value); }
  42. private int _level;
  43. public int level { get => _level; set => SetProperty(ref _level, value); }
  44. public int pictureLayer { get; set; }
  45. private ObservableCollection<MarkEntity> _children = new ObservableCollection<MarkEntity>();
  46. public ObservableCollection<MarkEntity> children { get => _children; set => SetProperty(ref _children, value); }
  47. public Grid ChildrenGrid { get; set; }
  48. public Grid ParentGrid { get; set; }
  49. public Image FoldImage { get; set; }
  50. public MarkEntity CurrentValue { get; set; }
  51. public MarkEntity ParentMark { get; set; }
  52. public bool IsExpanded { get; set; } = false;
  53. }
  54. }