* Extended of Dtos

* Added new Services and Controllers
This commit is contained in:
2025-09-03 15:04:22 +02:00
parent 47f37d016d
commit 0199467f72
15 changed files with 172 additions and 23 deletions

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AutoMapper.Configuration.Annotations;
namespace SytelineSaAppEfDataModel.Dtos
{
@@ -105,6 +106,8 @@ namespace SytelineSaAppEfDataModel.Dtos
public string TranslatedStatus => TranslateStatus(Status ?? string.Empty);
public string? SlOrderNumber => EdiCustomerOrderTranslates.MaxBy(x => x.CreatedDate)?.CoCoNum;
public string SentToSl => Posted == 1 ? "TAK" : "NIE";
[Ignore] public int ScheduleOrderId { get; set; }
[Ignore] public DateTime LastUpdateDate { get; set; }
public IEnumerable<EdiCustomerOrderLineDto> EdiCustomerOrderLines { get; set; } = new List<EdiCustomerOrderLineDto>();
public IEnumerable<EdiCustomerOrderTranslateDto> EdiCustomerOrderTranslates { get; set; } = new List<EdiCustomerOrderTranslateDto>();

View File

@@ -0,0 +1,11 @@
namespace SytelineSaAppEfDataModel.Dtos;
public class EdiLogDto
{
public int Id { get; set; }
public string ProcessName { get; set; }
public string ConfigurationName { get; set; }
public int Status { get; set; }
public string LogText { get; set; }
public DateTime Date { get; set; }
}