Misc
This commit is contained in:
parent
4d755549af
commit
cbf3a3c7f5
@ -280,7 +280,7 @@ namespace ManagerService.Controllers
|
|||||||
if (appConfigurationLinkDTO == null)
|
if (appConfigurationLinkDTO == null)
|
||||||
throw new ArgumentNullException("appConfigurationLink param is null");
|
throw new ArgumentNullException("appConfigurationLink param is null");
|
||||||
|
|
||||||
AppConfigurationLink appConfigurationLink = _myInfoMateDbContext.AppConfigurationLinks.FirstOrDefault(acl => acl.Id == appConfigurationLinkDTO.id);
|
AppConfigurationLink appConfigurationLink = _myInfoMateDbContext.AppConfigurationLinks.Include(acl => acl.Configuration).Include(acl => acl.Device).FirstOrDefault(acl => acl.Id == appConfigurationLinkDTO.id);
|
||||||
|
|
||||||
if (appConfigurationLink == null)
|
if (appConfigurationLink == null)
|
||||||
throw new KeyNotFoundException("appConfigurationLink does not exist");
|
throw new KeyNotFoundException("appConfigurationLink does not exist");
|
||||||
|
|||||||
@ -34,10 +34,12 @@ namespace ManagerService.DTOs
|
|||||||
|
|
||||||
public LayoutMainPageType layoutMainPage { get; set; } // Specific Kiosk
|
public LayoutMainPageType layoutMainPage { get; set; } // Specific Kiosk
|
||||||
|
|
||||||
public string LoaderImageUrl { get; set; } // Specific Kiosk
|
public string loaderImageId { get; set; } // Specific Kiosk
|
||||||
|
|
||||||
public string PrimaryColor { get; set; } // Specific Kiosk
|
public string loaderImageUrl { get; set; } // Specific Kiosk
|
||||||
|
|
||||||
public string SecondaryColor { get; set; } // Specific Kiosk
|
public string primaryColor { get; set; } // Specific Kiosk
|
||||||
|
|
||||||
|
public string secondaryColor { get; set; } // Specific Kiosk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -71,6 +71,10 @@ namespace ManagerService.Data
|
|||||||
order = Order,
|
order = Order,
|
||||||
isActive = IsActive,
|
isActive = IsActive,
|
||||||
weightMasonryGrid = WeightMasonryGrid,
|
weightMasonryGrid = WeightMasonryGrid,
|
||||||
|
primaryColor = PrimaryColor,
|
||||||
|
secondaryColor = SecondaryColor,
|
||||||
|
loaderImageId = LoaderImageId,
|
||||||
|
loaderImageUrl = LoaderImageUrl,
|
||||||
isDate = IsDate,
|
isDate = IsDate,
|
||||||
isHour = IsHour,
|
isHour = IsHour,
|
||||||
roundedValue = RoundedValue,
|
roundedValue = RoundedValue,
|
||||||
@ -88,6 +92,10 @@ namespace ManagerService.Data
|
|||||||
Order = appConfigurationLinkDTO.order;
|
Order = appConfigurationLinkDTO.order;
|
||||||
IsActive = appConfigurationLinkDTO.isActive;
|
IsActive = appConfigurationLinkDTO.isActive;
|
||||||
WeightMasonryGrid = appConfigurationLinkDTO?.weightMasonryGrid;
|
WeightMasonryGrid = appConfigurationLinkDTO?.weightMasonryGrid;
|
||||||
|
PrimaryColor = appConfigurationLinkDTO.primaryColor;
|
||||||
|
SecondaryColor = appConfigurationLinkDTO.secondaryColor;
|
||||||
|
LoaderImageId = appConfigurationLinkDTO.loaderImageId;
|
||||||
|
LoaderImageUrl = appConfigurationLinkDTO.loaderImageUrl;
|
||||||
IsDate = appConfigurationLinkDTO.isDate;
|
IsDate = appConfigurationLinkDTO.isDate;
|
||||||
IsHour = appConfigurationLinkDTO.isHour;
|
IsHour = appConfigurationLinkDTO.isHour;
|
||||||
RoundedValue = appConfigurationLinkDTO.roundedValue;
|
RoundedValue = appConfigurationLinkDTO.roundedValue;
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
using ManagerService.DTOs;
|
using ManagerService.DTOs;
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace ManagerService.Data
|
namespace ManagerService.Data
|
||||||
{
|
{
|
||||||
@ -37,6 +38,7 @@ namespace ManagerService.Data
|
|||||||
//[BsonElement("ConfigurationId")]
|
//[BsonElement("ConfigurationId")]
|
||||||
//[BsonRequired]
|
//[BsonRequired]
|
||||||
[Required]
|
[Required]
|
||||||
|
[ForeignKey("ConfigurationId")]
|
||||||
public string ConfigurationId { get; set; }
|
public string ConfigurationId { get; set; }
|
||||||
|
|
||||||
//[BsonElement("Connected")]
|
//[BsonElement("Connected")]
|
||||||
@ -79,7 +81,7 @@ namespace ManagerService.Data
|
|||||||
ipAddressWLAN = IpAddressWLAN,
|
ipAddressWLAN = IpAddressWLAN,
|
||||||
ipAddressETH = IpAddressETH,
|
ipAddressETH = IpAddressETH,
|
||||||
connected = Connected,
|
connected = Connected,
|
||||||
configuration = Configuration.Label,
|
configuration = Configuration?.Label,
|
||||||
configurationId = ConfigurationId,
|
configurationId = ConfigurationId,
|
||||||
dateUpdate = DateUpdate,
|
dateUpdate = DateUpdate,
|
||||||
dateCreation = DateCreation,
|
dateCreation = DateCreation,
|
||||||
|
|||||||
1231
ManagerService/Migrations/20250814194130_Updatedmisc0.Designer.cs
generated
Normal file
1231
ManagerService/Migrations/20250814194130_Updatedmisc0.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
28
ManagerService/Migrations/20250814194130_Updatedmisc0.cs
Normal file
28
ManagerService/Migrations/20250814194130_Updatedmisc0.cs
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace ManagerService.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class Updatedmisc0 : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.RenameColumn(
|
||||||
|
name: "isActive",
|
||||||
|
table: "Sections",
|
||||||
|
newName: "IsActive");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.RenameColumn(
|
||||||
|
name: "IsActive",
|
||||||
|
table: "Sections",
|
||||||
|
newName: "isActive");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -348,6 +348,9 @@ namespace ManagerService.Migrations
|
|||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("text");
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<bool>("IsActive")
|
||||||
|
.HasColumnType("boolean");
|
||||||
|
|
||||||
b.Property<bool>("IsBeacon")
|
b.Property<bool>("IsBeacon")
|
||||||
.HasColumnType("boolean");
|
.HasColumnType("boolean");
|
||||||
|
|
||||||
@ -383,9 +386,6 @@ namespace ManagerService.Migrations
|
|||||||
b.Property<int>("Type")
|
b.Property<int>("Type")
|
||||||
.HasColumnType("integer");
|
.HasColumnType("integer");
|
||||||
|
|
||||||
b.Property<bool>("isActive")
|
|
||||||
.HasColumnType("boolean");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.HasIndex("SectionMenuId");
|
b.HasIndex("SectionMenuId");
|
||||||
|
|||||||
@ -188,7 +188,7 @@ namespace ManagerService
|
|||||||
app.UseCors(
|
app.UseCors(
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
options => options
|
options => options
|
||||||
.SetIsOriginAllowed(origin => string.IsNullOrEmpty(origin) || origin == "http://localhost:55628")
|
.SetIsOriginAllowed(origin => string.IsNullOrEmpty(origin) || origin == "http://localhost:52172")
|
||||||
.AllowAnyMethod()
|
.AllowAnyMethod()
|
||||||
.AllowAnyHeader()
|
.AllowAnyHeader()
|
||||||
.AllowCredentials()
|
.AllowCredentials()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user