Creado apartir del commit b888de6c92056de294456f581a56e25e734d4ab7 de develop

This commit is contained in:
jrojas
2026-06-26 09:52:35 +02:00
commit 319fd3dfb0
746 changed files with 106610 additions and 0 deletions
@@ -0,0 +1,104 @@
namespace adas_core.Domain.Models.DTO.Display;
public class ColorConfigDto
{
public LevelColors? Level { get; set; }
public TextColors? Text { get; set; }
public ArrowColors? Arrow { get; set; }
public IndicatorColors? Indicator { get; set; }
public GraphColors? Graph { get; set; }
public StatusBoxNumberColors? BoxNumber { get; set; }
public TherapyColors? Therapy { get; set; }
public TestColors? Test { get; set; }
public ProcedureColors? Procedure { get; set; }
public class AppearanceSettings
{
public string? TextColor { get; set; }
public string? BackgroundColor { get; set; }
public string? Icon { get; set; }
public string? IconDefault { get; set; }
public double? IconInvertColor { get; set; }
}
public class StatusBoxNumberColors
{
public AppearanceSettings? Reserved { get; set; }
public AppearanceSettings? InUse { get; set; }
public AppearanceSettings? Available { get; set; }
public AppearanceSettings? Locked { get; set; }
public AppearanceSettings? Transferable { get; set; }
public AppearanceSettings? Exitus { get; set; }
public AppearanceSettings? Altable { get; set; }
}
public class TherapyColors
{
public AppearanceSettings? Default { get; set; }
public AppearanceSettings? Initialized { get; set; }
public AppearanceSettings? Finished { get; set; }
public AppearanceSettings? InProgress { get; set; }
}
public class TestColors
{
public AppearanceSettings? Default { get; set; }
public AppearanceSettings? Initialized { get; set; }
public AppearanceSettings? Finished { get; set; }
public AppearanceSettings? Expired { get; set; }
}
public class ProcedureColors
{
public AppearanceSettings? Default { get; set; }
public AppearanceSettings? Initialized { get; set; }
public AppearanceSettings? Finished { get; set; }
public AppearanceSettings? Expired { get; set; }
}
public class LevelColors
{
public string? Level1 { get; set; }
public string? Level2 { get; set; }
public string? Level3 { get; set; }
public string? Level4 { get; set; }
public string? Level5 { get; set; }
}
public class TextColors
{
public string? Normal { get; set; }
public string? Warning { get; set; }
public string? Alert { get; set; }
public string? Improve { get; set; }
public string? Expired { get; set; }
}
public class ArrowColors
{
public string? Normal { get; set; }
public string? Warning { get; set; }
public string? Alert { get; set; }
public string? Improve { get; set; }
}
public class IndicatorColors
{
public string? Empty { get; set; }
public string? Warning { get; set; }
public string? Normal { get; set; }
public string? Alert { get; set; }
public string? Background { get; set; }
public string? EmptyBackground { get; set; }
}
public class GraphColors
{
public string? Normal { get; set; }
public string? Warning { get; set; }
public string? Alert { get; set; }
}
}
@@ -0,0 +1,23 @@
using adas_core.Domain.Enums;
using adas_core.Domain.Models.MongoModels;
using MongoDB.Bson;
namespace adas_core.Domain.Models.DTO.Display;
public class CreateDisplayConfigDto
{
public DisplayConfigEnums.DisplayType Type { get; set; } =
DisplayConfigEnums.DisplayType
.Unknown; // Lista de unidades a las que se puede subscriber el cliente par recibir las actualizaciones de la seccion
public string? Hospital { get; set; }
public string? DisplayConfigIdTemplate { get; set; }
}
public class CreateDisplayConfigCardDto
{
public CardConfig? CardConfig { get; set; }
public CardDetailsConfig? DetailConfig { get; set; }
public ChartConfig? ChartConfig { get; set; }
public ObjectId? DisplayConfigId { get; set; }
}
@@ -0,0 +1,29 @@
using adas_core.Domain.Enums;
using adas_core.Domain.Models.GroupedObservations;
using adas_core.Domain.Models.MongoModels;
using MongoDB.Bson;
namespace adas_core.Domain.Models.DTO.Display;
public class DisplayConfigDto
{
public ObjectId Id { get; set; }
public DisplayConfigEnums.DisplayType Type { get; set; } = DisplayConfigEnums.DisplayType.Unknown;
public CardConfig? CardConfig { get; set; }
public ObjectId? CardConfigId { get; set; }
public ObjectId? DetailConfigId { get; set; }
public HomeConfig? HomeConfig { get; set; }
public HeaderConfig? HeaderConfig { get; set; }
public CardDetailsConfig? DetailConfig { get; set; }
public List<ObjectId>? DisplaySectionIdList { get; set; }
public string? Hospital { get; set; }
public List<Field>? FieldList { get; set; }
public List<GroupedField>? GroupedFieldList { get; set; }
#region NotMapped
public List<MinimalDisplaySection>? DisplaySectionList { get; set; }
#endregion
}
@@ -0,0 +1,7 @@
namespace adas_core.Domain.Models.DTO.Display;
public class DisplayConfigLocationDto
{
public string? DisplayName { get; set; }
public string? UnitName { get; set; }
}
@@ -0,0 +1,11 @@
using adas_core.Domain.Enums;
using MongoDB.Bson;
namespace adas_core.Domain.Models.DTO.Display;
public class DisplayConfigSummary
{
public ObjectId Id { get; set; }
public string? Name { get; set; }
public DisplayConfigEnums.DisplayType Type { get; set; }
}
@@ -0,0 +1,12 @@
using adas_core.Domain.Enums;
using MongoDB.Bson;
namespace adas_core.Domain.Models.DTO.Display;
public class DisplayMinimalDto(MongoModels.Display display)
{
public ObjectId Id { get; set; } = display.Id;
public string Name { get; set; } = display.Name;
public DisplayConfigEnums.DisplayType Type { get; set; } = display.Type;
}
@@ -0,0 +1,10 @@
using adas_core.Domain.Models.MongoModels;
namespace adas_core.Domain.Models.DTO.Display;
public class DisplayNurseDto : DisplayConfigDto
{
public List<BannerItem>? HomeBanner { get; set; }
public ColorConfig? ColorConfig { get; set; }
public FormConfig? FormConfig { get; set; }
}
@@ -0,0 +1,9 @@
using adas_core.Domain.Models.AppSettings;
namespace adas_core.Domain.Models.DTO.Display;
public class DisplayWithPermissionsDto
{
public DisplayPermissionTypes? Permissions { get; set; }
public MongoModels.Display? Display { get; set; }
}
@@ -0,0 +1,9 @@
using adas_core.Domain.Models.MongoModels;
namespace adas_core.Domain.Models.DTO.Display;
public class MinimalDisplayListDto
{
public List<MinimalDisplaySection> DisplayNurse { get; set; } = [];
public List<MinimalDisplaySection> SmartDisplay { get; set; } = [];
}
@@ -0,0 +1,22 @@
using adas_core.Domain.Models.GroupedObservations;
using adas_core.Domain.Models.MongoModels;
namespace adas_core.Domain.Models.DTO.Display;
public class SmartDisplayDto : DisplayConfigDto
{
public bool? HasCameras { get; set; }
public bool? HasSound { get; set; }
public bool? IsRotationEnabled { get; set; }
public bool? CanChangeCameraMode { get; set; }
public bool? CamerasAreActive { get; set; }
public string? CameraStreamType { get; set; }
public List<Sensor>? SensorList { get; set; }
public string? ObservationForIndicator { get; set; }
public List<Field>? AlarmFieldList { get; set; }
public List<GroupedField>? RequestGroupedFieldList { get; set; }
public bool? Pumps { get; set; }
public List<ChartConfig>? ChartConfig { get; set; }
public GraphLayout? GraphLayout { get; set; }
public List<CardRotatingLayout>? CardRotatingLayout { get; set; }
}
@@ -0,0 +1,6 @@
namespace adas_core.Domain.Models.DTO.Display;
public class UpdateDisplayConfigNameDto
{
public string DisplayName { get; set; } = string.Empty;
}