feat(esppApi): добавлены методы взятия в работу, выполнения и списания трудозатрат
This commit is contained in:
@@ -37,7 +37,6 @@ namespace PARR.EsppApi.Models
|
||||
return new DateTimeOffset(utc, new TimeSpan(0));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
14
PARR.EsppApi/Models/EsppResponse.cs
Normal file
14
PARR.EsppApi/Models/EsppResponse.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PARR.EsppApi.Models
|
||||
{
|
||||
public class EsppResponse
|
||||
{
|
||||
public string Message { get; set; } = string.Empty;
|
||||
public string ErrorCode { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
27
PARR.EsppApi/Models/Query/AddMtnkQuery.cs
Normal file
27
PARR.EsppApi/Models/Query/AddMtnkQuery.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
namespace PARR.EsppApi.Models.Query
|
||||
{
|
||||
public class AddMtnkQuery
|
||||
{
|
||||
/// <summary>
|
||||
/// номер наряда
|
||||
/// </summary>
|
||||
public required string RecordId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// операция для списания, должна совпадать по тексту с АСУ ЕСПП
|
||||
/// </summary>
|
||||
public required string JobOperation { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// время в формате чч:мм
|
||||
/// </summary>
|
||||
public required string Time { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// объём работ
|
||||
/// </summary>
|
||||
public int Workspace { get; set; } = 1;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -5,15 +5,11 @@
|
||||
/// </summary>
|
||||
public class FindOrdersQuery
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Подробное описание, содержит значение
|
||||
/// </summary>
|
||||
public string? DescriptionContains { get; set; }
|
||||
|
||||
private DateTime? _generateDateStart;
|
||||
|
||||
/// <summary>
|
||||
/// Дата сначала которой выбирать созданные наряды, UTC
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user