Standard__PcActivelyReadPumpConfigurationInfoResponse.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. using Edge.Core.Parser.BinaryParser.Attributes;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. namespace FuRen_Sinopec_IcCardReader
  7. {
  8. /// <summary>
  9. /// 加油机上送加油机信息命令
  10. /// 功能:加油机上送加油机信息
  11. /// </summary>
  12. public class Standard__PcActivelyReadPumpConfigurationInfoResponse : KaJiLianDongV11MessageTemplateBase
  13. {
  14. /// <summary>
  15. /// 前对齐,后补空格
  16. /// </summary>
  17. [Format(12, EncodingType.ASCII, 1)]
  18. public string M_INFO_厂家信息 { get; set; }
  19. /// <summary>
  20. /// 石化编码规范中地区编码的头两个数字
  21. /// </summary>
  22. [Format(1, EncodingType.BCD, 2)]
  23. [Range(0, 99, "")]
  24. public byte Prov_省代号 { get; set; }
  25. /// <summary>
  26. /// 石化编码规范中地区编码的中间两个数字
  27. /// </summary>
  28. [Range(0, 99, "")]
  29. [Format(1, EncodingType.BCD, 3)]
  30. public byte City_地市代码 { get; set; }
  31. /// <summary>
  32. /// 同石化编码
  33. /// </summary>
  34. [Format(4, EncodingType.BcdString, 4)]
  35. public string Superior_上级单位代号 { get; set; }
  36. /// <summary>
  37. /// 同石化编码
  38. /// </summary>
  39. [Format(4, EncodingType.BcdString, 5)]
  40. public string S_ID_加油站ID { get; set; }
  41. [Format(7, EncodingType.BcdString, 6)]
  42. public string TIME_Raw { get; private set; }
  43. public DateTime GetPcTime()
  44. {
  45. var dd = this.TIME_Raw.ToString();
  46. var dt = Convert.ToDateTime(dd);
  47. return dt;
  48. }
  49. //public void SetPcTime(DateTime dateTime)
  50. //{
  51. // var str = dateTime.ToString("yyyyMMddHHmmss");
  52. // this.TIME_Raw = long.Parse(str);
  53. //}
  54. /// <summary>
  55. ///
  56. /// </summary>
  57. [Format(1, EncodingType.BIN, 7)]
  58. public byte GUN_N_油枪数 { get; set; }
  59. [EnumerableFormat("GUN_N_油枪数", 8, EncodingType = EncodingType.BIN)]
  60. public List<byte> MZN_单个油枪 { get; set; }
  61. /// <summary>
  62. /// 基础黑名单版本号
  63. /// </summary>
  64. [Format(2, EncodingType.BIN, 9)]
  65. public int BL_VER { get; set; }
  66. /// <summary>
  67. /// 新增黑名单版本
  68. /// </summary>
  69. [Format(1, EncodingType.BIN, 10)]
  70. public byte ADD_BL_VER { get; set; }
  71. /// <summary>
  72. /// 新删黑名单版本
  73. /// </summary>
  74. [Format(1, EncodingType.BIN, 11)]
  75. public byte DEL_BL_VER { get; set; }
  76. /// <summary>
  77. /// 白名单版本号
  78. /// </summary>
  79. [Format(1, EncodingType.BIN, 12)]
  80. public byte WH_VER { get; set; }
  81. /// <summary>
  82. /// 油品油价版本
  83. /// </summary>
  84. [Format(1, EncodingType.BIN, 13)]
  85. public byte PRC_VER { get; set; }
  86. /// <summary>
  87. /// 油站通用信息版本
  88. /// </summary>
  89. [Format(1, EncodingType.BIN, 14)]
  90. public byte Sta_VER { get; set; }
  91. [EnumerableFormat("%cascade", 15, EncodingType = EncodingType.BIN)]
  92. public List<byte> M_DATA_厂家自定义数据 { get; set; }
  93. }
  94. }