| | |
| | | { |
| | | double bwj = 0; |
| | | var mp_inlet1 = this._allMonitorPoints.Find(x => x.MonitorType == Model.eMonitorType.åå && x.Property == TProduct.Model.MonitorTypeProperty.è¿å£); |
| | | if (mp_inlet1 != null && mp_inlet1.PipeDia.HasValue) |
| | | { |
| | | SetCellValue(sheet_default, 5, "B", mp_inlet1.PipeDia.Value); |
| | | } |
| | | //if (mp_inlet1 != null && mp_inlet1.PipeDia.HasValue) |
| | | //{ |
| | | // SetCellValue(sheet_default, 5, "B", mp_inlet1.PipeDia.Value); |
| | | //} |
| | | |
| | | var mp_outlet1 = this._allMonitorPoints.Find(x => x.MonitorType == Model.eMonitorType.åå && x.Property == TProduct.Model.MonitorTypeProperty.åºå£); |
| | | if (mp_outlet1 != null && mp_outlet1.PipeDia.HasValue) |
| | | { |
| | | SetCellValue(sheet_default, 5, "E", mp_outlet1.PipeDia.Value); |
| | | } |
| | | if (mp_inlet1 != null && mp_inlet1.Elevation.HasValue) |
| | | bwj = bwj - mp_inlet1.Elevation.Value; |
| | | if (mp_inlet1 != null && mp_outlet1.Elevation.HasValue) |
| | | bwj = bwj + mp_outlet1.Elevation.Value; |
| | | //if (mp_outlet1 != null && mp_outlet1.PipeDia.HasValue) |
| | | //{ |
| | | // SetCellValue(sheet_default, 5, "E", mp_outlet1.PipeDia.Value); |
| | | //} |
| | | //if (mp_inlet1 != null && mp_inlet1.Elevation.HasValue) |
| | | // bwj = bwj - mp_inlet1.Elevation.Value; |
| | | //if (mp_inlet1 != null && mp_outlet1.Elevation.HasValue) |
| | | // bwj = bwj + mp_outlet1.Elevation.Value; |
| | | //è¿å£åå表è³è¿å£åå表è·ç¦» |
| | | SetCellValue(sheet_default, 5, "H", bwj); |
| | | } |