@using System.Text @using UI_SequentMicrosystems.Constants @using UI_SequentMicrosystems.Models @using UI_SequentMicrosystems.Services @using UI_SequentMicrosystems.Components @inject PointsService _PointsService @inject RTD8TMService _RTD8TMService @if (_RTD8TMService.GetActualData() != null) {
Time | @foreach (byte stack in _RTD8TMService.GetActualData().Keys) { for (byte chanel = 0; chanel < 8; chanel++) { if (_RTD8TMService.GetChanelName(stack, chanel) != "----------") {@_RTD8TMService.GetChanelName(stack, chanel) @if (_RTD8TMService.GetValueType(stack, chanel) == RTD8TMSensorTypes.PT100) { @Celsius } else { @Ohm } | } } }
---|---|
@(new DateTime(time).ToString("HH:mm:ss")) | @foreach (byte stack in TableData[time].Keys) { for (byte chanel = 0; chanel < 8; chanel++) { if (_RTD8TMService.GetChanelName(stack, chanel) != "----------") {@(new RTD8TMChanelComponent().RecalculateValues(TableData[time][stack][chanel], _RTD8TMService.GetValueType(stack, chanel))) | } } }
30min Change | @foreach (byte stack in TableData[TableData.Keys.OrderDescending().First()].Keys) { for (byte chanel = 0; chanel < 8; chanel++) { if (_RTD8TMService.GetChanelName(stack, chanel) != "----------") {@Math.Round(new RTD8TMChanelComponent().RecalculateValues(TableData[LastDataTime][stack][chanel], _RTD8TMService.GetValueType(stack, chanel)) - new RTD8TMChanelComponent().RecalculateValues(TableData[AfterHalfHour][stack][chanel], _RTD8TMService.GetValueType(stack, chanel)), 2) | } } }