TStation.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using MeterVision.model;
  2. using MeterVision.Util;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace MeterVision.db
  9. {
  10. //站点表实体对象
  11. public class TStation
  12. {
  13. public string Id { get; set; }
  14. public string StationId { get; set; }
  15. public string StationName { get; set; }
  16. public string DeviceSn { get; set; }
  17. public string StandId { get; set; }
  18. public int MeterType { get; set; }
  19. public double BrightVal { get; set; }
  20. public int FlowRate { get; set; }
  21. public string DialRegion { get; set; }
  22. public int NumCount { get; set; }
  23. public int IndCount { get; set; }
  24. public string FeatureRegion { get; set; }
  25. public double LastUnit { get; set; }
  26. public double LastValue { get; set; }
  27. public string LastTime { get; set; }
  28. public string CreateTime { get; set; }
  29. // 无参构造函数,初始化属性为空值
  30. public TStation()
  31. {
  32. StationId = string.Empty;
  33. StationName = string.Empty;
  34. DeviceSn = string.Empty;
  35. MeterType = 0;
  36. BrightVal = 1.2;
  37. FlowRate = 0;
  38. DialRegion = string.Empty;
  39. NumCount = 0;
  40. IndCount = 0;
  41. FeatureRegion = string.Empty;
  42. LastUnit = 0.0;
  43. LastValue = 0.0;
  44. LastTime = string.Empty;
  45. CreateTime = string.Empty;
  46. StandId = string.Empty;
  47. }
  48. public TStation(StationItem item)
  49. {
  50. ObjectHelper.CopyMatchingFields(item, this);
  51. }
  52. }
  53. }