Ancora update gestione controller queue
This commit is contained in:
@@ -21,30 +21,6 @@ namespace WebDoorCreator.API.Controllers
|
||||
|
||||
#endregion Public Constructors
|
||||
|
||||
#if false
|
||||
/// <summary>
|
||||
/// Lunghezza coda in attesa
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet("ActPendingLenght")]
|
||||
public async Task<long> ActPendingLenght()
|
||||
{
|
||||
long numQueue = await QDataServ.NumRequestPending();
|
||||
return numQueue;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Lunghezza coda in fase di processing
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet("ActProcessingLenght")]
|
||||
public async Task<long> ActProcessingLenght()
|
||||
{
|
||||
long numQueue = await QDataServ.NumRequestProcessing();
|
||||
return numQueue;
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
@@ -68,37 +44,13 @@ namespace WebDoorCreator.API.Controllers
|
||||
/// </summary>
|
||||
/// <param name="calcResults">Risultati elaborazioni in formato CalcResultDTO</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("SaveProcessingResult")]
|
||||
public async Task<bool> SaveProcessingResult(List<CalcResultDTO> calcResults)
|
||||
[HttpPost("SaveProcResult")]
|
||||
public async Task<bool> SaveProcResult(List<CalcResultDTO> calcResults)
|
||||
{
|
||||
bool answ = await QDataServ.SaveProcessingResult(calcResults);
|
||||
return answ;
|
||||
}
|
||||
|
||||
#if false
|
||||
/// <summary>
|
||||
/// Elenco richieste in stato pending
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet("ShowPending")]
|
||||
public async Task<Dictionary<string, string>?> ShowPending()
|
||||
{
|
||||
var actQueue = await QDataServ.RequestPending();
|
||||
return actQueue;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Elenco richeiste in stato processing
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet("ShowProcessing")]
|
||||
public async Task<Dictionary<string, string>> ShowProcessing()
|
||||
{
|
||||
var actQueue = await QDataServ.RequestProcessing();
|
||||
return actQueue;
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Elenco richieste raggruppate x stato
|
||||
/// </summary>
|
||||
@@ -121,7 +73,7 @@ namespace WebDoorCreator.API.Controllers
|
||||
/// - verranno messi nella coda FIFO processing
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet("TakeProcessingItems")]
|
||||
[HttpGet("TakeNextItems")]
|
||||
public async Task<Dictionary<string, string>> TakeProcessingItems(int numItems)
|
||||
{
|
||||
var actQueue = await QDataServ.TakeProcessingItems(numItems);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#Door1
|
||||
|
||||
code: 0015943
|
||||
date: 2023-04-19T14:05:03.5064525+02:00
|
||||
date: 2023-04-19T14:59:00.2592242+02:00
|
||||
material: wood
|
||||
measures: millimiters
|
||||
order:
|
||||
@@ -41,12 +41,17 @@ version: 2
|
||||
edge_pulls:
|
||||
- template: Generic\EdgePull230B
|
||||
position: 45
|
||||
flush_pulls:
|
||||
- template: Generic\Circle
|
||||
position: 35
|
||||
back_set: 5
|
||||
depth: 1
|
||||
face: secure
|
||||
flush_bolts:
|
||||
- template: Corner\8501
|
||||
type: corner
|
||||
side: top
|
||||
position: 5
|
||||
offset_WS: 0.0
|
||||
- template: Corner\8501
|
||||
type: corner
|
||||
side: top
|
||||
position: 5
|
||||
offset_WS: 0.0
|
||||
locks:
|
||||
- template: Generic\DocMyTest5Bore
|
||||
position: 45.875
|
||||
|
||||
Reference in New Issue
Block a user