CmmBaseProtocolCEntity.cs 2.9 KB

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