forked from ddrilling/AsbCloudServer
90a0aa9e5b
EnshureTimezonesIsSet() sets default timezone if can't find correct one. Edit WellDto to fix exception by constr: FK_t_well_t_well_type_id_well_type. Make IdWellType optional.
28 lines
891 B
C#
28 lines
891 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AsbCloudApp.Data
|
|
{
|
|
public class WellDto : WellInfoDto, IMapPoint, IId
|
|
{
|
|
public int Id { get; set; }
|
|
public double? Latitude { get; set; }
|
|
public double? Longitude { get; set; }
|
|
public SimpleTimezoneDto Timezone { get; set; }
|
|
public string WellType { get; set; }
|
|
public int? IdWellType { get; set; }
|
|
public int? IdCluster { get; set; }
|
|
|
|
/// <summary>
|
|
/// 0 - неизвестно,
|
|
/// 1 - в работе,
|
|
/// 2 - завершена
|
|
/// </summary>
|
|
public int IdState { get; set; }
|
|
public DateTime LastTelemetryDate { get; set; }
|
|
public int? IdTelemetry { get; set; }
|
|
public TelemetryBaseDto Telemetry { get; set; }
|
|
public IEnumerable<CompanyDto> Companies { get; set; }
|
|
}
|
|
}
|