WerksverkaufScanner: ClientIP im Release hart verdrahtet
This commit is contained in:
parent
b1b2cf608c
commit
08aa9bf7f3
@ -43,7 +43,6 @@ else
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
// IP dynamisch auslesen, z.B. aus localStorage oder Service:
|
||||
var ip = "10.251.0.12"; // Zum Testen hart eintragen
|
||||
historie = await Inventur.LadeInventurHistorieAsync(ip);
|
||||
historie = await Inventur.LadeInventurHistorieAsync();
|
||||
}
|
||||
}
|
||||
|
||||
@ -54,10 +54,12 @@ public class InventurService
|
||||
return ctx?.Connection.RemoteIpAddress?.ToString();
|
||||
}
|
||||
|
||||
public async Task<List<InventurHistorieEintrag>> LadeInventurHistorieAsync(string clientIp)
|
||||
public async Task<List<InventurHistorieEintrag>> LadeInventurHistorieAsync()
|
||||
{
|
||||
await using var db = await _dbFactory.CreateDbContextAsync();
|
||||
|
||||
var clientIp = GetClientIp();
|
||||
|
||||
// Hole die letzten 5 offenen Einträge inkl. Artikelnummer und Bezeichnung (JOIN via Artikel)
|
||||
var query = from er in db.InventurErfassung
|
||||
join art in db.Artikel on er.ArtikelId equals art.ArtikelId
|
||||
|
||||
Loading…
Reference in New Issue
Block a user