feat(esppOrderManager): доработка логики. EsppApi - запросы переделаны под модели.

This commit is contained in:
Mikhail Trubnikov
2023-11-21 12:26:08 +10:00
parent 7f3a2441c9
commit f85b97f60a
13 changed files with 261 additions and 29 deletions

View File

@@ -0,0 +1,17 @@
namespace PARR.EsppApi.Requests
{
/// <summary>
/// Списать трудозатраты
/// </summary>
internal class AddMTNKRequest
{
public required string recordid { get; set; }
public required string joboperation { get; set; }
public required string time { get; set; }
public required string workscope { get; set; }
}
}

View File

@@ -0,0 +1,10 @@
namespace PARR.EsppApi.Requests
{
/// <summary>
/// Получить список нарядов
/// </summary>
internal class GetTaskListRequest
{
public required string VIEW_QUERY { get; set; }
}
}

View File

@@ -0,0 +1,10 @@
namespace PARR.EsppApi.Requests
{
/// <summary>
/// Получить наряд по номеру
/// </summary>
internal class GetTaskRequest
{
public required string recordid { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
namespace PARR.EsppApi.Requests
{
/// <summary>
/// Изменить статус наряда
/// </summary>
internal class SetStatusRequest
{
public required string recordid { get; set; }
public required string status { get; set; }
public required string assignee { get; set; }
public required string resolution { get; set; }
}
}