Update pagina composizione kit PODL
This commit is contained in:
@@ -42,7 +42,7 @@ namespace MP.SPEC.Components.ProdKit
|
||||
|
||||
// elimino TUTTO...
|
||||
DateTime dtLimit = DateTime.Now;//.AddHours(-1);
|
||||
var done = MDService.WipKitDeleteOlder(dtLimit);
|
||||
var done = await MDService.WipKitDeleteOlderAsync(dtLimit);
|
||||
await EC_ListCleared.InvokeAsync(false);
|
||||
}
|
||||
|
||||
@@ -51,18 +51,18 @@ namespace MP.SPEC.Components.ProdKit
|
||||
if (!await JSRuntime.InvokeAsync<bool>("confirm", "Eliminazione riga KIT: sei sicuro di voler procedere?"))
|
||||
return;
|
||||
|
||||
var done = MDService.WipKitDelete(rec2del);
|
||||
var done = await MDService.WipKitDeleteAsync(rec2del);
|
||||
await EC_ListUpdated.InvokeAsync(false);
|
||||
}
|
||||
|
||||
protected override void OnInitialized()
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
// calcolo codice temporaneo utente...da apertura KIT
|
||||
if (string.IsNullOrEmpty(KeyFilt))
|
||||
{
|
||||
// elimino dati + vecchi di 2h...
|
||||
DateTime dtLimit = DateTime.Now.AddHours(-2);
|
||||
var done = MDService.WipKitDeleteOlder(dtLimit);
|
||||
var done = await MDService.WipKitDeleteOlderAsync(dtLimit);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace MP.SPEC.Components.ProdKit
|
||||
Qta = selRec.NumPezzi,
|
||||
DataIns = DateTime.Now
|
||||
};
|
||||
bool fatto = MDService.WipKitUpsert(newRec);
|
||||
bool fatto = await MDService.WipKitUpsertAsync(newRec);
|
||||
// se non già impostato riporto impostazione filtro con macchina e gruppo ricevuto...
|
||||
ActFilt.IdxMacchina = selRec.IdxMacchina;
|
||||
ActFilt.CodReparto = selRec.CodGruppo;
|
||||
|
||||
Reference in New Issue
Block a user