MBSpace.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /* ==============================================================================
  2. * 功能描述:业务空间
  3. * 创 建 者:Garrett
  4. * 创建日期:2018/3/30 10:17:05
  5. * ==============================================================================*/
  6. using System;
  7. using System.Collections.Generic;
  8. using System.ComponentModel;
  9. using System.Linq;
  10. using System.Text;
  11. using System.Threading.Tasks;
  12. using Newtonsoft.Json.Linq;
  13. using SAGA.DotNetUtils;
  14. using SAGA.DotNetUtils.Logger;
  15. using SAGA.DotNetUtils.WPF;
  16. using SAGA.MBI.Common;
  17. using SAGA.MBI.JsonConvert;
  18. using SAGA.MBI.RequestData;
  19. using SAGA.MBI.WinView.ModeInfoMaintenance;
  20. using WPG.Data;
  21. using WPG.UserControls;
  22. namespace SAGA.MBI.Model
  23. {
  24. /// <summary>
  25. /// MSpace
  26. /// </summary>
  27. public class MBSpace : MRevitEquipBase
  28. {
  29. public MBSpace(string floorId, string bimMId)
  30. {
  31. FloorId = floorId;
  32. BimID = bimMId;
  33. }
  34. #region AttachProperty
  35. #endregion
  36. #region CloudProperty
  37. private string m_Name;
  38. [Description("RoomName")]
  39. public string Name
  40. {
  41. get { return m_Name; }
  42. set
  43. {
  44. m_Name = value;
  45. NotifyPropertyChanged("Name");
  46. }
  47. }
  48. private string m_LocalId;
  49. [Description("RoomLocalID")]
  50. public string LocalId
  51. {
  52. get { return m_LocalId; }
  53. set
  54. {
  55. m_LocalId = value;
  56. NotifyPropertyChanged("LocalId");
  57. }
  58. }
  59. private string m_LocalName;
  60. [Description("RoomLocalName")]
  61. public string LocalName
  62. {
  63. get { return m_LocalName; }
  64. set
  65. {
  66. m_LocalName = value;
  67. NotifyPropertyChanged("LocalName");
  68. }
  69. }
  70. #endregion CloudProperty
  71. #region Method
  72. public override string ToString()
  73. {
  74. string result = this.LocalName;
  75. if (result.IsNotNullEmpty())
  76. return result;
  77. result = this.Name;
  78. if (result.IsNotNullEmpty())
  79. return result;
  80. return "未知";
  81. }
  82. #endregion
  83. }
  84. }