Aggiunta metodo x copiare ODL in SEND + trad valori

This commit is contained in:
Samuele Locatelli
2022-10-11 20:56:51 +02:00
parent 7f3a73ba0e
commit a4810826f8
7 changed files with 33 additions and 8 deletions
+1 -1
View File
@@ -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>();
}
}
+1 -1
View File
@@ -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();
}
+27 -2
View File
@@ -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();
}
+1 -1
View File
@@ -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 -1
View File
@@ -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
View File
@@ -1 +1 @@
6.16.2210.1116
6.16.2210.1120
+1 -1
View File
@@ -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>