@@ -101,8 +193,10 @@ else
@if (isEditing == false)
{
-
+
+
+
}
else
{
diff --git a/MP.SPEC/Components/ListDossiers.razor.cs b/MP.SPEC/Components/ListDossiers.razor.cs
index 127d76b4..bd70cbc7 100644
--- a/MP.SPEC/Components/ListDossiers.razor.cs
+++ b/MP.SPEC/Components/ListDossiers.razor.cs
@@ -171,8 +171,47 @@ namespace MP.SPEC.Components
}
+ protected async Task newDossier(Dossiers selRec)
+ {
+ var alert = await JSRuntime.InvokeAsync("confirm", "Confermi di voler salvare TUTTE le modifiche? queste saranno parte del dossier inviato all'impianto");
+
+ if (alert)
+ {
+
+ await Task.Delay(1);
+ if (currRecordClone != null)
+ {
+ // serializzo valore x flux log...
+ DossierFluxLogDTO updatedResult = new DossierFluxLogDTO() { ODL = listaFlux };
+ string newVal = JsonConvert.SerializeObject(updatedResult);
+ currRecordClone.DataType = selRec.DataType;
+ currRecordClone.DtRif = DateTime.Now;
+ currRecordClone.IdxMacchina = selRec.DataType;
+ currRecordClone.CodArticolo = selRec.CodArticolo;
+ currRecordClone.IdxODL = selRec.IdxODL;
+ currRecordClone.Valore = newVal;
+ // METODO PER UPDATE FLUX
+ await MDService.DossiersInsert(currRecordClone);
+ currRecordClone = null;
+ isEditing = false;
+ await Task.Delay(1);
+ StateHasChanged();
+ }
+ return;
+ }
+ else
+ {
+ currFluxLogDto = null;
+ await Task.Delay(1);
+ await JSRuntime.InvokeAsync("location.reload");
+
+ }
+
+ }
+
protected override async Task OnInitializedAsync()
{
+ ListGruppiFase = await MDService.ElencoGruppiFase();
ListStati = await MDService.AnagStatiComm();
await reloadData(true);
}
@@ -193,6 +232,23 @@ namespace MP.SPEC.Components
listaFlux = MDService.getFluxLog(selRec.Valore);
await toggleTableFlux();
}
+ protected async Task cloneRecord(Dossiers selRec)
+ {
+ // creo record duplicato...
+ Dossiers newRec = new Dossiers()
+ {
+ IdxDossier = selRec.IdxDossier,
+ DataType = selRec.DataType,
+ DtRif = selRec.DtRif,
+ IdxMacchina = selRec.IdxMacchina,
+ CodArticolo = selRec.CodArticolo,
+ IdxODL = selRec.IdxODL,
+ Valore = selRec.Valore,
+ };
+ currRecordClone = selRec;
+ await Task.Delay(1);
+ }
+ private List? ListGruppiFase;
protected async Task UpdateData()
{
@@ -220,6 +276,7 @@ namespace MP.SPEC.Components
private int _totalCount = 0;
private Dossiers? currRecord = null;
+ private Dossiers? currRecordClone = null;
private FluxLogDTO? currRecordFlux;
private List? ListRecords;
diff --git a/MP.SPEC/MP.SPEC.csproj b/MP.SPEC/MP.SPEC.csproj
index 4eed2b81..4ef75a36 100644
--- a/MP.SPEC/MP.SPEC.csproj
+++ b/MP.SPEC/MP.SPEC.csproj
@@ -5,7 +5,7 @@
enable
enable
MP.SPEC
- 6.16.2211.311
+ 6.16.2211.317
diff --git a/MP.SPEC/Resources/ChangeLog.html b/MP.SPEC/Resources/ChangeLog.html
index 0fb5f0b8..28accc8f 100644
--- a/MP.SPEC/Resources/ChangeLog.html
+++ b/MP.SPEC/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
Modulo MAPOSPEC
- Versione: 6.16.2211.311
+ Versione: 6.16.2211.317
Note di rilascio:
-
diff --git a/MP.SPEC/Resources/VersNum.txt b/MP.SPEC/Resources/VersNum.txt
index 22639881..bb9c4c74 100644
--- a/MP.SPEC/Resources/VersNum.txt
+++ b/MP.SPEC/Resources/VersNum.txt
@@ -1 +1 @@
-6.16.2211.311
+6.16.2211.317
diff --git a/MP.SPEC/Resources/manifest.xml b/MP.SPEC/Resources/manifest.xml
index 33dd5804..6b590bc7 100644
--- a/MP.SPEC/Resources/manifest.xml
+++ b/MP.SPEC/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 6.16.2211.311
+ 6.16.2211.317
https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/MP.SPEC.zip
https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/ChangeLog.html
false
|