CS2-87: Added well depth display to messages table.

This commit is contained in:
KharchenkoVV 2021-09-24 11:17:31 +05:00
parent 7aa83f8c2d
commit 53ef4425c9
2 changed files with 4 additions and 1 deletions

View File

@ -13,6 +13,8 @@ namespace AsbCloudApp.Data
public int CategoryId { get; set; }
public double WellDepth { get; set; }
public string User { get; set; }
public string Message { get; set; }

View File

@ -47,7 +47,7 @@ namespace AsbCloudInfrastructure.Services
return null;
var query = db.TelemetryMessages.Where(m => m.IdTelemetry == telemetryId)
.AsNoTracking();
.OrderBy(m => m.Date).AsNoTracking();
if ((categoryids?.Any() == true) || !string.IsNullOrEmpty(searchString))
{
@ -97,6 +97,7 @@ namespace AsbCloudInfrastructure.Services
{
Date = message.Date,
Id = message.Id,
WellDepth = message.WellDepth
};
if (message.IdTelemetryUser is not null)