ReplenPersistentValue.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. using CyberX8_Core;
  2. using MECF.Framework.Common.CommonData;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace MECF.Framework.Common.Persistent.Reservoirs
  9. {
  10. public class ReplenPersistentValue : NotifiableItem
  11. {
  12. #region 内部变量
  13. /// <summary>
  14. /// ReplenName
  15. /// </summary>
  16. private string _replenName;
  17. /// <summary>
  18. /// Recipe
  19. /// </summary>
  20. //private string _replenRecipe;
  21. /// <summary>
  22. /// PumpFactor
  23. /// </summary>
  24. private double _replenPumpFactor;
  25. /// <summary>
  26. /// 当前已补液的体积
  27. /// </summary>
  28. private double _currentDosingVolume;
  29. /// <summary>
  30. /// 目标累计要补的体积
  31. /// </summary>
  32. private double _targetDosingVolume;
  33. /// <summary>
  34. /// 当前Bottle剩余液体体积
  35. /// </summary>
  36. private double _remainDosingVolume;
  37. /// <summary>
  38. /// 补液是否在Running
  39. /// </summary>
  40. private bool _isDosingRunning;
  41. /// <summary>
  42. /// AutoDosing开始时间
  43. /// </summary>
  44. private DateTime _autoDosingStartTime;
  45. /// <summary>
  46. /// AutoDosing开始电量
  47. /// </summary>
  48. private double _autoDosingStartAmpHour;
  49. /// <summary>
  50. /// 操作模式
  51. /// </summary>
  52. private string _operatingMode;
  53. #endregion
  54. #region 属性
  55. /// <summary>
  56. /// ReplenName
  57. /// </summary>
  58. public string ReplenName { get { return _replenName; } set { _replenName = value; InvokePropertyChanged(nameof(ReplenName)); } }
  59. /// <summary>
  60. /// Recipe
  61. /// </summary>
  62. //public string ReplenRecipe { get { return _replenRecipe; } set { _replenRecipe = value; InvokePropertyChanged(nameof(ReplenRecipe)); } }
  63. /// <summary>
  64. /// Recipe
  65. /// </summary>
  66. public double ReplenPumpFactor { get { return _replenPumpFactor; } set { _replenPumpFactor = value; InvokePropertyChanged(nameof(ReplenPumpFactor)); } }
  67. /// <summary>
  68. /// 当前已补液的体积
  69. /// </summary>
  70. public double CurrentDosingVolume { get { return _currentDosingVolume; } set { _currentDosingVolume = value; InvokePropertyChanged(nameof(CurrentDosingVolume)); } }
  71. /// <summary>
  72. /// 目标累计要补的体积
  73. /// </summary>
  74. public double TargetDosingVolume { get { return _targetDosingVolume; } set { _targetDosingVolume = value; InvokePropertyChanged(nameof(TargetDosingVolume)); } }
  75. /// <summary>
  76. /// 当前Bottle剩余液体体积
  77. /// </summary>
  78. public double RemainDosingVolume { get { return _remainDosingVolume; } set { _remainDosingVolume = value; InvokePropertyChanged(nameof(RemainDosingVolume)); } }
  79. /// <summary>
  80. /// 补液是否在Running
  81. /// </summary>
  82. public bool IsDosingRunning { get { return _isDosingRunning; } set { _isDosingRunning = value; InvokePropertyChanged(nameof(IsDosingRunning)); } }
  83. /// <summary>
  84. /// AutoDosing开始时间
  85. /// </summary>
  86. public DateTime AutoDosingStartTime { get { return _autoDosingStartTime; } set { _autoDosingStartTime = value; InvokePropertyChanged(nameof(AutoDosingStartTime)); } }
  87. /// <summary>
  88. /// AutoDosing开始总电量
  89. /// </summary>
  90. public double AutoDosingStartAmpHour { get { return _autoDosingStartAmpHour; } set { _autoDosingStartAmpHour = value; InvokePropertyChanged(nameof(AutoDosingStartAmpHour)); } }
  91. /// <summary>
  92. /// 操作模式
  93. /// </summary>
  94. public string OperatingMode { get { return _operatingMode; } set { _operatingMode = value; InvokePropertyChanged(nameof(OperatingMode)); } }
  95. #endregion
  96. }
  97. }