TStation.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. //标注次数(来自v_station的查询)
  30. public int MarkCount { 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. FeatureRegion = string.Empty;
  44. LastUnit = 0.0;
  45. LastValue = 0.0;
  46. LastTime = string.Empty;
  47. CreateTime = string.Empty;
  48. StandId = string.Empty;
  49. }
  50. public TStation(StationItem item)
  51. {
  52. ObjectHelper.CopyMatchingFields(item, this);
  53. }
  54. }
  55. }