LevelTableEntity.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace CollaborativePlatformMain.DFEntity.MessageSubUtil
  8. {
  9. /// <summary>
  10. ///
  11. /// <para>文件名(File Name): LevelTableEntity.cs</para>
  12. ///
  13. /// <para>描述(Description): 标高表创建实体类</para>
  14. ///
  15. /// <para>数据表(Tables): nothing</para>
  16. ///
  17. /// <para>作者(Author): Ou Rui Song</para>
  18. ///
  19. /// <para>日期(Create Date): 2024年1月16日08:50:18</para>
  20. ///
  21. /// 修改记录(Revision History):
  22. /// R1:
  23. /// 修改作者:
  24. /// 修改日期:
  25. /// 修改理由:
  26. ///
  27. /// </summary>
  28. public class LevelTableEntity : INotifyPropertyChanged
  29. {
  30. public LevelTableEntity()
  31. {
  32. }
  33. /// <summary>
  34. /// 结构标高
  35. /// </summary>
  36. /// <param name="levelNmae">层号</param>
  37. /// <param name="structuralElevation">结构标高</param>
  38. /// <param name="floorHeight">层高</param>
  39. public LevelTableEntity(string juID, string levelNmae, double structuralElevation, double floorHeight)
  40. {
  41. LevelNmae = levelNmae;
  42. StructuralElevation = structuralElevation;
  43. FloorHeight = floorHeight;
  44. JuID = juID;
  45. }
  46. /// <summary>
  47. /// 唯一id
  48. /// </summary>
  49. public string JuID { get; set; }
  50. /// <summary>
  51. /// 层号
  52. /// </summary>
  53. public string levelNmae { get; set; }
  54. public string LevelNmae
  55. {
  56. get { return levelNmae; }
  57. set
  58. {
  59. if (value != levelNmae)
  60. {
  61. levelNmae = value;
  62. NotifyPropertyChanged("LevelNmae");
  63. }
  64. }
  65. }
  66. /// <summary>
  67. /// 结构标高
  68. /// </summary>
  69. public double structuralElevation { get; set; }
  70. public double StructuralElevation
  71. {
  72. get { return structuralElevation; }
  73. set
  74. {
  75. if (value != structuralElevation)
  76. {
  77. structuralElevation = value;
  78. NotifyPropertyChanged("StructuralElevation");
  79. }
  80. }
  81. }
  82. //层高
  83. public double floorHeight { get; set; }
  84. public double FloorHeight
  85. {
  86. get { return floorHeight; }
  87. set
  88. {
  89. if (value != floorHeight)
  90. {
  91. floorHeight = value;
  92. NotifyPropertyChanged("FloorHeight");
  93. }
  94. }
  95. }
  96. public event PropertyChangedEventHandler PropertyChanged;
  97. private void NotifyPropertyChanged(string propertyName = "")
  98. {
  99. PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
  100. }
  101. }
  102. }