TStation.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 NumRegion { get; set; }
  25. public string HtRegion { get; set; }
  26. public double LastNumUnit { get; set; }
  27. public double LastIndUnit { get; set; }
  28. public double LastValue { get; set; }
  29. public string LastTime { get; set; }
  30. public string CreateTime { get; set; }
  31. // 无参构造函数,初始化属性为空值
  32. public TStation()
  33. {
  34. StationId = string.Empty;
  35. StationName = string.Empty;
  36. DeviceSn = string.Empty;
  37. MeterType = 0;
  38. BrightVal = 1.2;
  39. FlowRate = 0;
  40. DialRegion = string.Empty;
  41. NumCount = 0;
  42. IndCount = 0;
  43. NumRegion = string.Empty;
  44. HtRegion = string.Empty;
  45. LastNumUnit = 0.0;
  46. LastIndUnit = 0.0;
  47. LastValue = 0.0;
  48. LastTime = string.Empty;
  49. CreateTime = string.Empty;
  50. StandId = string.Empty;
  51. }
  52. public TStation(StationItem item)
  53. {
  54. ObjectHelper.CopyMatchingFields(item, this);
  55. }
  56. }
  57. }