Aggiunta metodo x copiare ODL in SEND + trad valori
This commit is contained in:
@@ -15,6 +15,6 @@ namespace MP.Data.DTO
|
||||
{
|
||||
public List<FluxLog> ODL { get; set; } = new List<FluxLog>();
|
||||
|
||||
public List<FluxLog> OdlClone { get; set; } = new List<FluxLog>();
|
||||
public List<FluxLog> SEND { get; set; } = new List<FluxLog>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ namespace MP.SPEC.Components
|
||||
{
|
||||
currRecord = selRec;
|
||||
await RecordSel.InvokeAsync(selRec);
|
||||
listaFlux = MDService.convertToFluxLog(selRec.Valore);
|
||||
listaFlux = MDService.getOrigToFluxLog(selRec.Valore);
|
||||
await toggleTableFlux();
|
||||
}
|
||||
|
||||
|
||||
@@ -274,7 +274,7 @@ namespace MP.SPEC.Data
|
||||
return await Task.FromResult(dbController.ConfigUpdate(updRec));
|
||||
}
|
||||
|
||||
public List<FluxLog> convertToFluxLog(string Valore)
|
||||
public List<FluxLog> getOrigToFluxLog(string Valore)
|
||||
{
|
||||
List<FluxLog> answ = new List<FluxLog>();
|
||||
DossierFluxLogDTO? result = JsonConvert.DeserializeObject<DossierFluxLogDTO>(Valore);
|
||||
@@ -283,7 +283,32 @@ namespace MP.SPEC.Data
|
||||
if (result.ODL != null)
|
||||
{
|
||||
answ = result
|
||||
.ODL
|
||||
.ODL
|
||||
.OrderBy(x => x.CodFlux)
|
||||
.ToList();
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
public List<FluxLog> getSendFluxLog(string Valore)
|
||||
{
|
||||
List<FluxLog> answ = new List<FluxLog>();
|
||||
DossierFluxLogDTO? result = JsonConvert.DeserializeObject<DossierFluxLogDTO>(Valore);
|
||||
if (result != null)
|
||||
{
|
||||
// se NON avessi SEND --> duplico da ODL...
|
||||
if (result.SEND == null)
|
||||
{
|
||||
result.SEND = new List<FluxLog>();
|
||||
foreach (var item in result.ODL)
|
||||
{
|
||||
result.SEND.Add(item);
|
||||
}
|
||||
}
|
||||
if (result.SEND != null)
|
||||
{
|
||||
answ = result
|
||||
.SEND
|
||||
.OrderBy(x => x.CodFlux)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>MP.SPEC</RootNamespace>
|
||||
<Version>6.16.2210.1116</Version>
|
||||
<Version>6.16.2210.1120</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MAPOSPEC </i>
|
||||
<h4>Versione: 6.16.2210.1116</h4>
|
||||
<h4>Versione: 6.16.2210.1120</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2210.1116
|
||||
6.16.2210.1120
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2210.1116</version>
|
||||
<version>6.16.2210.1120</version>
|
||||
<url>https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/MP.SPEC.zip</url>
|
||||
<changelog>https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user