feat(esppApi): метод FindOrdersAsync поиска нарядов в АСУ ЕСПП по свойствам
This commit is contained in:
@@ -1,12 +1,23 @@
|
||||
namespace PARR.EsppApi.Models
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace PARR.EsppApi.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Модель наряда из еспп
|
||||
/// </summary>
|
||||
public class EsppOrder
|
||||
{
|
||||
[JsonPropertyName("recordid")]
|
||||
public string Number { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("assignment")]
|
||||
public string? WorkGroup { get; set; }
|
||||
[JsonPropertyName("status")]
|
||||
public string Status { get; set; } = string.Empty;
|
||||
[JsonPropertyName("title")]
|
||||
public string ShortName { get; set; } = string.Empty;
|
||||
[JsonPropertyName("templateName")]
|
||||
public string TemplateName { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -12,9 +12,19 @@
|
||||
/// </summary>
|
||||
public string? ShortDescriptionContains { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Шаблон, содержит значение
|
||||
/// </summary>
|
||||
public string? TemplateNameContains { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Дата - "ПО"
|
||||
/// </summary>
|
||||
public DateTime? DateEnd { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Дата - "Открытия"
|
||||
/// </summary>
|
||||
public DateTime? DateOpen { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user