* Added new Enrichers
* Added new Translators * Changed in DTOs * Further development
This commit is contained in:
@@ -100,8 +100,8 @@ namespace SytelineSaAppEfDataModel.Dtos
|
||||
public string UfFkrEdiAddIntDest { get; set; }
|
||||
public string UfFkrEdiCustPoLineNum { get; set; }
|
||||
public string UfFkrEdiPlaceOrPortDischarge { get; set; }
|
||||
public string RoutingCode { get; set; }
|
||||
public string DeliveryCallNumber { get; set; }
|
||||
public string? RoutingCode { get; set; }
|
||||
public string? DeliveryCallNumber { get; set; }
|
||||
public string UnloadingPoint { get; set; }
|
||||
public string DestinationPoint { get; set; }
|
||||
public string NewStatus { get; set; }
|
||||
|
||||
@@ -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
|
||||
{
|
||||
@@ -20,5 +21,7 @@ namespace SytelineSaAppEfDataModel.Dtos
|
||||
public DateTime CreatedDate { get; set; }
|
||||
public string FoundNumbers { get; set; }
|
||||
public int ScheduleOrderId { get; set; }
|
||||
|
||||
[Ignore] public string PoNumber { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace SytelineSaAppEfDataModel.Dtos;
|
||||
|
||||
public class ItemCustPriceAllDto
|
||||
public class ItemCustPriceAllDto : DtoBase
|
||||
{
|
||||
public string SiteRef { get; set; }
|
||||
public string Item { get; set; }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace SytelineSaAppEfDataModel.Dtos;
|
||||
|
||||
public class ItemDto
|
||||
public class ItemDto : DtoBase
|
||||
{
|
||||
public string ItemCode { get; set; }
|
||||
public string Description { get; set; }
|
||||
|
||||
@@ -73,6 +73,29 @@ namespace SytelineSaAppEfDataModel.Services
|
||||
.Select(x => mapper.Map<CustomerOrderDto>(x)).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
public async Task<IList<CustomerOrderDto>> GetListByCustomerAndPo(string customerNumber, int customerSequence,
|
||||
string poNumber)
|
||||
{
|
||||
return await context.CustomerOrders
|
||||
.Where(x => x.CustNum == customerNumber && x.CustSeq == customerSequence && x.CustPo == poNumber)
|
||||
.Select(x => mapper.Map<CustomerOrderDto>(x)).ToListAsync();
|
||||
}
|
||||
|
||||
public async Task<List<CustomerOrderDto>> GetListByCustomer(string customerNumber, int customerSequence)
|
||||
{
|
||||
return await context.CustomerOrders.Where(x => x.CustNum == customerNumber && x.CustSeq == customerSequence)
|
||||
.Select(x => mapper.Map<CustomerOrderDto>(x)).ToListAsync();
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<CustomerOrderLineDto>?> GetLinesByCoNumber(string customerOrderNumber)
|
||||
{
|
||||
List<CustomerOrderLineDto> customerOrderLines = await context.CustomerOrderLines
|
||||
.Where(x => x.CoNum == customerOrderNumber).Select(x => mapper.Map<CustomerOrderLineDto>(x))
|
||||
.ToListAsync();
|
||||
|
||||
return customerOrderLines;
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<CustomerOrderLineItemDto>?> GetItemsByCoNumber(string customerOrderNumber)
|
||||
{
|
||||
List<CustomerOrderLineItemDto> customerOrderLineItems = await context.CustomerOrderLineItems
|
||||
|
||||
@@ -13,6 +13,12 @@ namespace SytelineSaAppEfDataModel.Services
|
||||
Task<CustomerOrderDto?> GetByOrderNumber(Guid orderNumber);
|
||||
Task<CustomerOrderDto?> GetByCoNumber(string orderNumber);
|
||||
Task<CustomerOrderDto?> GetByCustomerAndPo(string customerNumber, int customerSequence, string poNumber);
|
||||
|
||||
Task<IList<CustomerOrderDto>> GetListByCustomerAndPo(string customerNumber, int customerSequence,
|
||||
string poNumber);
|
||||
|
||||
Task<List<CustomerOrderDto>> GetListByCustomer(string customerNumber, int customerSequence);
|
||||
Task<IEnumerable<CustomerOrderLineDto>?> GetLinesByCoNumber(string customerOrderNumber);
|
||||
Task<IEnumerable<CustomerOrderLineItemDto>?> GetItemsByCoNumber(string customerOrderNumber);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user