Production approval - fertigung auftrag - autocomplete
This commit is contained in:
@@ -53,5 +53,20 @@
|
||||
|
||||
return new OrderPositions(positionsFound);
|
||||
}
|
||||
|
||||
public ProductionOrders FindProductionOrders(string productionNr)
|
||||
{
|
||||
var ordersFound = this.dbContext.ExecuteReader($@"
|
||||
SELECT DISTINCT
|
||||
[AlleAuftragPositionen].[FertigungsauftragNr] -- 1
|
||||
FROM [AlleAuftragPositionen]
|
||||
WHERE [AlleAuftragPositionen].[Versand_Ist_datum] IS NOT NULL
|
||||
AND [AlleAuftragPositionen].[AuftragNr] LIKE @{nameof(productionNr)}
|
||||
ORDER BY [AlleAuftragPositionen].[FertigungsauftragNr]",
|
||||
parameters => parameters.Add(nameof(productionNr), $"{productionNr}%"),
|
||||
reader => reader.GetValue<int>());
|
||||
|
||||
return new ProductionOrders(ordersFound);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user