You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.1 KiB
C#

2 months ago
namespace DS.WMS.Core.HangfireJob.Dtos
{
public class WSLModel
{
public string Date { get; set; }
public string Month { get; set; }
public IEnumerable<WSLItem>? List { get; set; }
2 months ago
public int? YesterdayTeuSum => List?.Sum(x => x.YesterdayTeu);
public int? TodayTeuSum => List?.Sum(x => x.TodayTeu);
public int? TodayTeuCTNPickupSum => List?.Sum(x => x.TodayTeuCTNPickup);
public int? IncreasedTeuSum => List?.Sum(x => x.IncreasedTeu);
public int? NextMonthTEUSum => List?.Sum(x => x.NextMonthTEU);
public int? LastMonthTEUSum => List?.Sum(x => x.LastMonthTEU);
2 months ago
}
public class WSLItem
{
public long CustomerId { get; set; }
public string? CustomerName { get; set; }
public int? YesterdayTeu { get; set; }
public int? TodayTeu { get; set; }
public int? TodayTeuCTNPickup { get; set; }
public int? IncreasedTeu => TodayTeu - YesterdayTeu;
public string? Date { get; set; }
public int? NextMonthTEU { get; set; }
public int? LastMonthTEU { get; set; }
}
}