Fix gestione profili
This commit is contained in:
@@ -155,6 +155,7 @@ namespace EgwCoreLib.Lux.Data.Services
|
||||
/// Elenco completo Config Profile
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Obsolete("Superato da gestione profili direttametne dal Calc")]
|
||||
public async Task<List<ProfileModel>> ConfProfileGetAllAsync()
|
||||
{
|
||||
string source = "DB";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Version>0.9.2510.2210</Version>
|
||||
<Version>0.9.2510.2211</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -22,6 +22,9 @@ namespace Lux.UI.Components.Compo
|
||||
|
||||
#region Protected Properties
|
||||
|
||||
[Inject]
|
||||
protected ConfigDataService CDService { get; set; } = null!;
|
||||
|
||||
[Inject]
|
||||
protected DataLayerServices DLService { get; set; } = null!;
|
||||
|
||||
@@ -73,7 +76,7 @@ namespace Lux.UI.Components.Compo
|
||||
// leggo dati di base
|
||||
var AllColors = await DLService.GenValGetFiltAsync("WoodCol");
|
||||
var AllConfGlass = await DLService.ConfGlassGetAllAsync();
|
||||
var AllConfProfile = await DLService.ConfProfileGetAllAsync();
|
||||
var AllConfProfile = CDService.ProfileList(EgwMultiEngineManager.Data.Constants.EXECENVIRONMENTS.WINDOW, "Default");
|
||||
var AllConfWood = await DLService.ConfWoodGetAllAsync();
|
||||
// conversione tipi
|
||||
ListColors = AllColors
|
||||
@@ -82,9 +85,7 @@ namespace Lux.UI.Components.Compo
|
||||
ListGlass = AllConfGlass
|
||||
.Select(x => x.Description)
|
||||
.ToList();
|
||||
ListProfiles = AllConfProfile
|
||||
.Select(x => x.Description)
|
||||
.ToList();
|
||||
ListProfiles = AllConfProfile;
|
||||
ListWood = AllConfWood
|
||||
.Select(x => x.Description)
|
||||
.ToList();
|
||||
|
||||
@@ -540,7 +540,7 @@ namespace Lux.UI.Components.Compo
|
||||
|
||||
private List<HardwareModel> AllConfHardware = new();
|
||||
|
||||
private List<ProfileModel> AllConfProfile = new();
|
||||
|
||||
|
||||
private List<WoodModel> AllConfWood = new();
|
||||
|
||||
@@ -892,21 +892,19 @@ namespace Lux.UI.Components.Compo
|
||||
// lettura config setup varie da DB/Cache Redis
|
||||
AllConfEnvir = await DLService.ConfEnvirParamGetAllAsync();
|
||||
AllConfGlass = await DLService.ConfGlassGetAllAsync();
|
||||
var rawProfiles = CDService.ProfileList(EgwMultiEngineManager.Data.Constants.EXECENVIRONMENTS.WINDOW, "Default");
|
||||
AvailProfileList = rawProfiles;
|
||||
var rawHw = CDService.HwModelList(EgwMultiEngineManager.Data.Constants.EXECENVIRONMENTS.WINDOW, "HW.AGB");
|
||||
// hw filtro solo validi...
|
||||
AllConfHardware = rawHw
|
||||
.Where(x => !x.FamilyName.Equals(x.Description, StringComparison.OrdinalIgnoreCase))
|
||||
.ToList();
|
||||
AllConfProfile = await DLService.ConfProfileGetAllAsync();
|
||||
AllConfWood = await DLService.ConfWoodGetAllAsync();
|
||||
AllColors = await DLService.GenValGetFiltAsync("WoodCol");
|
||||
// conversione tipi
|
||||
AvailGlassList = AllConfGlass
|
||||
.Select(x => x.Description)
|
||||
.ToList();
|
||||
AvailProfileList = AllConfProfile
|
||||
.Select(x => x.Description)
|
||||
.ToList();
|
||||
AvailFamilyHardwareList = AllConfHardware
|
||||
.DistinctBy(x => x.FamilyName)
|
||||
.OrderBy(x => x.FamilyName)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<UserSecretsId>aspnet-Lux.UI-a758c101-a2f4-4e38-977d-1c4887dbbd50</UserSecretsId>
|
||||
<Version>0.9.2510.2210</Version>
|
||||
<Version>0.9.2510.2211</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>LUX - Web Windows MES</i>
|
||||
<h4>Versione: 0.9.2510.2210</h4>
|
||||
<h4>Versione: 0.9.2510.2211</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
0.9.2510.2210
|
||||
0.9.2510.2211
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>0.9.2510.2210</version>
|
||||
<version>0.9.2510.2211</version>
|
||||
<url>http://nexus.steamware.net/repository/SWS/GPW/stable/GPW.UI.zip</url>
|
||||
<changelog>http://nexus.steamware.net/repository/SWS/GPW/stable/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user