| | |
| | | |
| | | |
| | | |
| | | protected List<double> _reservoirSpaceFlowOutList = null;//ææ°´æµéæ¶é´åé
(䏿¹) |
| | | protected List<double> _perHourFlowOutList = null;//便°´æµéæ¶é´åé
(å¨) |
| | | //protected List<double?> _reservoirMinLimitHours = null; |
| | | //protected List<double?> _reservoirMaxLimitHours = null; |
| | | |
| | |
| | | // _areaæ°´åºé¢ç§¯ = listæ°´åºé¢ç§¯.First().Area; |
| | | //} |
| | | |
| | | |
| | | this._reservoirSpaceFlowOutList = anaRequest.SpaceFlowOut; |
| | | |
| | | this._perHourFlowOutList = anaRequest.PerHourFlowOut; |
| | | //this._reservoirMinLimitHours = anaRequest.ReservoirMinLimitHours; |
| | | //this._reservoirMaxLimitHours = anaRequest.ReservoirMaxLimitHours; |
| | | |
| | |
| | | /// </summary> |
| | | private void CalcReservoirTimeData() |
| | | { |
| | | if (this._reservoirSpaceFlowOutList == null || |
| | | this._reservoirSpaceFlowOutList.Count() == 0) |
| | | if (this._perHourFlowOutList == null || |
| | | this._perHourFlowOutList.Count() == 0) |
| | | return; |
| | | |
| | | |
| | |
| | | int inx_hour = 0; |
| | | double flowTotal = 0; |
| | | int i = 0; |
| | | double flow_space = _reservoirSpaceFlowOutList[0] / time_count; |
| | | double flow_space = _perHourFlowOutList[0] / time_count; |
| | | for (var time = _calStartTime; time < this._calEndTime; time = time.AddMinutes(this._calcSpaceMinute)) |
| | | { |
| | | if (time.Hour != last_hour) |
| | | { |
| | | last_hour = time.Hour; |
| | | inx_hour++; |
| | | if (inx_hour > _reservoirSpaceFlowOutList.Count) |
| | | if (inx_hour > _perHourFlowOutList.Count) |
| | | { |
| | | flow_space = 0; |
| | | } |
| | | else |
| | | { |
| | | flow_space = _reservoirSpaceFlowOutList[inx_hour] / time_count; |
| | | flow_space = _perHourFlowOutList[inx_hour] / time_count; |
| | | } |
| | | } |
| | | //if (time.Minute == 0) |
| | |
| | | //} |
| | | |
| | | flowTotal = flowTotal + flow_space; |
| | | _timeList[i+1].ReservoirDropFlowTotal = flowTotal * 10000; |
| | | _timeList[i+1].ReservoirDropFlowTotal = flowTotal ; |
| | | i++; |
| | | } |
| | | //if (_reservoirMinLimitHours != null && _reservoirMinLimitHours.Last() != null) |