CmmBaseProtocolCEntity.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. using System.ComponentModel;
  2. using Core.Mes.Client.Comm.Attribute;
  3. namespace Core.StlMes.Client.LgResMgt.Mcms.entity
  4. {
  5. /// <summary>
  6. /// 数据库表CMM_BASE_PROTOCOL_C所对应的实体类(生成工具:代码生成工具3.0)
  7. /// 作者:朱少波 时间:2020-11-19
  8. /// </summary>
  9. public class CmmBaseProtocolCEntity
  10. {
  11. /// <summary>
  12. /// 磅房设备通信协议ID
  13. /// </summary>
  14. private string protocolId = "";
  15. /// <summary>
  16. /// 序号
  17. /// </summary>
  18. private decimal? protocolSeq = null;
  19. /// <summary>
  20. /// 1- 固定值 2-参数值 3- 数据域
  21. /// </summary>
  22. private string dataType = "";
  23. /// <summary>
  24. /// 长度
  25. /// </summary>
  26. private decimal? dataLen = null;
  27. /// <summary>
  28. /// 值类型 1-固定值 2-ascill 3-hex数值
  29. /// </summary>
  30. private string valueType = "";
  31. /// <summary>
  32. /// 值
  33. /// </summary>
  34. private string dataValue = "";
  35. /// <summary>
  36. /// 磅房设备通信协议ID
  37. /// </summary>
  38. [Description("磅房设备通信协议ID")]
  39. [Nullable(false)]
  40. [DataLength(50)]
  41. public string ProtocolId
  42. {
  43. get { return protocolId; }
  44. set { protocolId = value; }
  45. }
  46. /// <summary>
  47. /// 序号
  48. /// </summary>
  49. [Description("序号")]
  50. [Nullable(true)]
  51. [DataLength(22)]
  52. public decimal? ProtocolSeq
  53. {
  54. get { return protocolSeq; }
  55. set { protocolSeq = value; }
  56. }
  57. /// <summary>
  58. /// 1- 固定值 2-参数值 3- 数据域
  59. /// </summary>
  60. [Description("1- 固定值 2-参数值 3- 数据域")]
  61. [Nullable(true)]
  62. [DataLength(2)]
  63. public string DataType
  64. {
  65. get { return dataType; }
  66. set { dataType = value; }
  67. }
  68. /// <summary>
  69. /// 长度
  70. /// </summary>
  71. [Description("长度")]
  72. [Nullable(true)]
  73. [DataLength(2)]
  74. public decimal? DataLen
  75. {
  76. get { return dataLen; }
  77. set { dataLen = value; }
  78. }
  79. /// <summary>
  80. /// 值类型 1-固定值 2-ascill 3-hex数值
  81. /// </summary>
  82. [Description("值类型 1-固定值 2-ascill 3-hex数值")]
  83. [Nullable(true)]
  84. [DataLength(2)]
  85. public string ValueType
  86. {
  87. get { return valueType; }
  88. set { valueType = value; }
  89. }
  90. /// <summary>
  91. /// 值
  92. /// </summary>
  93. [Description("值")]
  94. [Nullable(true)]
  95. [DataLength(100)]
  96. public string DataValue
  97. {
  98. get { return dataValue; }
  99. set { dataValue = value; }
  100. }
  101. }
  102. }