- Aggiunto configuratore finestre per gli ordini in sola visualizzazione
- Aggiunta gestione traduzioni per configuratore finestre
This commit is contained in:
@@ -15,8 +15,8 @@
|
||||
<PackageVersion Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.23" />
|
||||
<PackageVersion Include="Microsoft.CodeAnalysis" Version="5.3.0" />
|
||||
<PackageVersion Include="Microsoft.Data.Sqlite" Version="10.0.5" />
|
||||
<PackageVersion Include="Egw.Lux.WebWindow.Base" Version="3.1.8.1211" />
|
||||
<PackageVersion Include="Egw.Lux.WebWindowComplex" Version="3.1.8.1211" />
|
||||
<PackageVersion Include="Egw.Lux.WebWindow.Base" Version="3.1.8.2016" />
|
||||
<PackageVersion Include="Egw.Lux.WebWindowComplex" Version="3.1.8.2016" />
|
||||
<PackageVersion Include="Egw.Window.Data" Version="2.8.1.2611" />
|
||||
<PackageVersion Include="EgwCoreLib.Razor" Version="1.5.2606.2416" />
|
||||
<PackageVersion Include="EgwCoreLib.Utils" Version="1.5.2606.2416" />
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Version>1.1.2608.1212</Version>
|
||||
<Version>1.1.2608.2016</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
{
|
||||
<WebWindowComplex.TableComp ListPayload="SetupList"
|
||||
LiveData="CurrData"
|
||||
Vocabulary="WindowDict"
|
||||
baseUser="true"
|
||||
EC_ReqTraduzione="DoTranslate"
|
||||
EC_ActionReq="DoAction"
|
||||
EC_DoUpdate="ExecRequest"
|
||||
EC_OnClose="CloseEditJwd">
|
||||
|
||||
@@ -86,6 +86,7 @@ namespace Lux.UI.Components.Compo.Order
|
||||
DLService.PipeHwOpt.EA_NewMessage -= PipeHwOpt_EA_NewMessage;
|
||||
DLService.PipeProfList.EA_NewMessage -= PipeProfList_EA_NewMessage;
|
||||
DLService.PipeShape.EA_NewMessage -= PipeShape_EA_NewMessage;
|
||||
UserMServ.EA_LangChanged -= UserMServ_EA_LangChanged;
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
@@ -112,6 +113,13 @@ namespace Lux.UI.Components.Compo.Order
|
||||
|
||||
#endregion Public Classes
|
||||
|
||||
#region Protected Properties
|
||||
|
||||
[Inject]
|
||||
protected IMessageService UserMServ { get; set; } = null!;
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
/// <summary>
|
||||
@@ -141,6 +149,7 @@ namespace Lux.UI.Components.Compo.Order
|
||||
DLService.PipeHwOpt.EA_NewMessage += PipeHwOpt_EA_NewMessage;
|
||||
DLService.PipeProfList.EA_NewMessage += PipeProfList_EA_NewMessage;
|
||||
DLService.PipeShape.EA_NewMessage += PipeShape_EA_NewMessage;
|
||||
UserMServ.EA_LangChanged += UserMServ_EA_LangChanged;
|
||||
}
|
||||
|
||||
protected override async Task OnParametersSetAsync()
|
||||
@@ -304,6 +313,11 @@ namespace Lux.UI.Components.Compo.Order
|
||||
private BootstrapModal.ModalMode mMode = BootstrapModal.ModalMode.ND;
|
||||
private Dictionary<bool, string> modalOpt = new Dictionary<bool, string>();
|
||||
|
||||
/// <summary>
|
||||
/// Dizionario traduzioni x componente WebWindowManager
|
||||
/// </summary>
|
||||
private Dictionary<string, string>? WindowDict = new();
|
||||
|
||||
#endregion Private Fields
|
||||
|
||||
#region Private Properties
|
||||
@@ -1958,6 +1972,45 @@ namespace Lux.UI.Components.Compo.Order
|
||||
return EC_Action.InvokeAsync("EditRow");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Traduzione delle voci richieste tramite dizionario
|
||||
/// </summary>
|
||||
/// <param name="args"></param>
|
||||
/// <returns></returns>
|
||||
private void DoTranslate(List<string> args)
|
||||
{
|
||||
if (args != null && args.Count > 0)
|
||||
{
|
||||
// aggiorno WindowDict con i lemmi richiesti
|
||||
Dictionary<string, string> tmpDict = new();
|
||||
foreach (var item in args)
|
||||
{
|
||||
tmpDict.Add(item, Traduci(item));
|
||||
}
|
||||
WindowDict = tmpDict;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Rieseguo traduzione
|
||||
/// </summary>
|
||||
private void UserMServ_EA_LangChanged()
|
||||
{
|
||||
// se ho già un dizionario tradotto...
|
||||
if (WindowDict != null && WindowDict.Count > 0)
|
||||
{
|
||||
var listTerm = WindowDict.Select(x => x.Key).ToList();
|
||||
string langCode = UserMServ.UserLang;
|
||||
// aggiorno WindowDict con i lemmi richiesti
|
||||
Dictionary<string, string> tmpDict = new();
|
||||
foreach (var item in listTerm)
|
||||
{
|
||||
tmpDict.Add(item, Traduci(item, langCode));
|
||||
}
|
||||
WindowDict = tmpDict;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<UserSecretsId>aspnet-Lux.UI-a758c101-a2f4-4e38-977d-1c4887dbbd50</UserSecretsId>
|
||||
<Version>1.1.2608.1212</Version>
|
||||
<Version>1.1.2608.2016</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>LUX - Web Windows MES</i>
|
||||
<h4>Versione: 1.1.2608.1212</h4>
|
||||
<h4>Versione: 1.1.2608.2016</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
1.1.2608.1212
|
||||
1.1.2608.2016
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>1.1.2608.1212</version>
|
||||
<version>1.1.2608.2016</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