MManufacturer.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /* ==============================================================================
  2. * 功能描述:MManufacturer
  3. * 创 建 者:Garrett
  4. * 创建日期:2018/4/27 10:22:28
  5. * ==============================================================================*/
  6. using Com.FirmLib.Entity;
  7. using Com.FirmLib.UI.BllCommon;
  8. using Newtonsoft.Json.Linq;
  9. using SAGA.DotNetUtils;
  10. using SAGA.DotNetUtils.Utilities;
  11. using System;
  12. using System.Collections.Generic;
  13. using System.ComponentModel;
  14. using System.Linq;
  15. using System.Text;
  16. using System.Threading.Tasks;
  17. namespace SAGA.MBI.Model
  18. {
  19. /// <summary>
  20. /// MManufacturer
  21. /// </summary>
  22. public class MManufacturer : CloudDataBase
  23. {
  24. #region CloudProperty
  25. private string m_Name;
  26. /// <summary>
  27. /// 生产厂家
  28. /// </summary>
  29. [Description("EquipName")]
  30. public string Name
  31. {
  32. get { return m_Name; }
  33. set
  34. {
  35. m_Name = value;
  36. if (!string.IsNullOrEmpty(value))
  37. {
  38. this.Pinyin = value.GetFirstPinyin().ToUpper();
  39. }
  40. NotifyPropertyChanged("Name");
  41. }
  42. }
  43. private string m_Brand;
  44. /// <summary>
  45. /// 品牌
  46. /// </summary>
  47. [Description("EquipBrand")]
  48. public string Brand
  49. {
  50. get { return m_Brand; }
  51. set
  52. {
  53. m_Brand = value;
  54. NotifyPropertyChanged("Brand");
  55. }
  56. }
  57. private string m_ModeNumber;
  58. /// <summary>
  59. /// 型号
  60. /// </summary>
  61. [Description("EquipModeNumber")]
  62. public string ModeNumber
  63. {
  64. get { return m_ModeNumber; }
  65. set
  66. {
  67. m_ModeNumber = value;
  68. RaisePropertyChanged(() => this.ModeNumber);
  69. }
  70. }
  71. private string m_BimID;
  72. [Description("BIMID")]
  73. public string BimID
  74. {
  75. get { return m_BimID; }
  76. set
  77. {
  78. m_BimID = value;
  79. NotifyPropertyChanged("BimID");
  80. }
  81. }
  82. #endregion Model
  83. #region 扩展数据
  84. public string Pinyin
  85. {
  86. get;private set;
  87. }
  88. #endregion
  89. #region id信息
  90. /// <summary>
  91. /// 厂商Id
  92. /// </summary>
  93. public string VenderId { get; set; } = "";
  94. /// <summary>
  95. /// 品牌Id
  96. /// </summary>
  97. public string BrandId { get; set; } = "";
  98. /// <summary>
  99. /// 产品Id
  100. /// </summary>
  101. public string ProductId { get; set; } = "";
  102. /// <summary>
  103. /// 类型Id
  104. /// </summary>
  105. public string ProductTypeId { get; set; } = "";
  106. /// <summary>
  107. /// 关联信息点
  108. /// </summary>
  109. public List<ParameterItem> Parameters { get; set; }
  110. /// <summary>
  111. /// 保养周期
  112. /// </summary>
  113. public string MaintainPeriod { get; set; } = "";
  114. /// <summary>
  115. /// 使用寿命
  116. /// </summary>
  117. public string ServiceLife { get; set; } = "";
  118. #endregion
  119. }
  120. }