|
|
@ -1,5 +1,6 @@ |
|
|
|
using System; |
|
|
|
using System.ComponentModel.DataAnnotations; |
|
|
|
using Win_in.Sfs.Basedata.Domain.Shared; |
|
|
|
|
|
|
|
namespace Win_in.Sfs.Wms.Dashboard.Host.Models; |
|
|
|
|
|
|
@ -51,16 +52,16 @@ public class AsnTimeWindowDashboardDto |
|
|
|
else |
|
|
|
{ |
|
|
|
var timeSpan = ReceiptTime - PlanArriveDate; |
|
|
|
|
|
|
|
if (timeSpan.Minutes < DashboardConst.AsnReceiptTimeDifferenceMinutes || timeSpan.Minutes > -(DashboardConst.AsnReceiptTimeDifferenceMinutes)) |
|
|
|
var timeSpanCha =Math.Abs(timeSpan.TotalMinutes.TryToDecimal().Value); |
|
|
|
if (timeSpanCha <= DashboardConst.AsnReceiptTimeDifferenceMinutes&&timeSpanCha>0) |
|
|
|
{ |
|
|
|
return "准时"; |
|
|
|
} |
|
|
|
else if (timeSpan.Minutes > DashboardConst.AsnReceiptTimeDifferenceMinutes) |
|
|
|
else if (timeSpan.TotalMinutes.TryToDecimal() > DashboardConst.AsnReceiptTimeDifferenceMinutes) |
|
|
|
{ |
|
|
|
return "延后"; |
|
|
|
} |
|
|
|
else if (timeSpan.Minutes < -(DashboardConst.AsnReceiptTimeDifferenceMinutes)) |
|
|
|
else if (timeSpan.TotalMinutes.TryToDecimal() < -(DashboardConst.AsnReceiptTimeDifferenceMinutes)) |
|
|
|
{ |
|
|
|
return "提前"; |
|
|
|
} |
|
|
|