|
|
|
@ -181,43 +181,43 @@ namespace Myshipping.Application
|
|
|
|
|
var oldOrder = it.Adapt<BookingOrder>();
|
|
|
|
|
|
|
|
|
|
bool flag = false;
|
|
|
|
|
if (it.StartETA != dto.ETA)
|
|
|
|
|
if (it.StartETA != dto.ETA && dto.ETA != null)
|
|
|
|
|
{
|
|
|
|
|
flag = true;
|
|
|
|
|
it.StartETA = dto.ETA;
|
|
|
|
|
}
|
|
|
|
|
if (it.VESSEL != dto.Vessel)
|
|
|
|
|
if (it.VESSEL != dto.Vessel && !string.IsNullOrEmpty(dto.Vessel))
|
|
|
|
|
{
|
|
|
|
|
flag = true;
|
|
|
|
|
it.VESSEL = dto.Vessel;
|
|
|
|
|
}
|
|
|
|
|
if (it.VOYNO != dto.Voyno)
|
|
|
|
|
if (it.VOYNO != dto.Voyno && !string.IsNullOrEmpty(dto.Voyno))
|
|
|
|
|
{
|
|
|
|
|
flag = true;
|
|
|
|
|
it.VOYNO = dto.Voyno;
|
|
|
|
|
}
|
|
|
|
|
if (it.VOYNOINNER != dto.VoynoInside)
|
|
|
|
|
if (it.VOYNOINNER != dto.VoynoInside && !string.IsNullOrEmpty(dto.VoynoInside))
|
|
|
|
|
{
|
|
|
|
|
flag = true;
|
|
|
|
|
it.VOYNOINNER = dto.VoynoInside;
|
|
|
|
|
}
|
|
|
|
|
if (it.CARRIERID != dto.CARRIERID)
|
|
|
|
|
{
|
|
|
|
|
flag = true;
|
|
|
|
|
it.CARRIERID = dto.CARRIERID;
|
|
|
|
|
}
|
|
|
|
|
if (it.CARRIER != dto.CARRIER)
|
|
|
|
|
{
|
|
|
|
|
flag = true;
|
|
|
|
|
it.CARRIER = dto.CARRIER;
|
|
|
|
|
}
|
|
|
|
|
if (it.YgtETD != dto.YgtETD)
|
|
|
|
|
//if (it.CARRIERID != dto.CARRIERID)
|
|
|
|
|
//{
|
|
|
|
|
// flag = true;
|
|
|
|
|
// it.CARRIERID = dto.CARRIERID;
|
|
|
|
|
//}
|
|
|
|
|
//if (it.CARRIER != dto.CARRIER)
|
|
|
|
|
//{
|
|
|
|
|
// flag = true;
|
|
|
|
|
// it.CARRIER = dto.CARRIER;
|
|
|
|
|
//}
|
|
|
|
|
if (it.YgtETD != dto.YgtETD && dto.YgtETD != null)
|
|
|
|
|
{
|
|
|
|
|
flag = true;
|
|
|
|
|
|
|
|
|
|
it.YgtETD = dto.YgtETD;
|
|
|
|
|
}
|
|
|
|
|
if (it.ETD != dto.ETD)
|
|
|
|
|
if (it.ETD != dto.ETD && dto.ETD != null)
|
|
|
|
|
{
|
|
|
|
|
flag = true;
|
|
|
|
|
it.ETD = dto.ETD;
|
|
|
|
@ -228,12 +228,12 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
it.ATD = dto.ATD;
|
|
|
|
|
}
|
|
|
|
|
if (dto.ClosingDate != null && dto.ClosingDate != it.CLOSINGDATE)
|
|
|
|
|
if (dto.ClosingDate != it.CLOSINGDATE && dto.ClosingDate != null)
|
|
|
|
|
{
|
|
|
|
|
flag = true;
|
|
|
|
|
it.CLOSINGDATE = dto.ClosingDate;
|
|
|
|
|
}
|
|
|
|
|
if (dto.CloseDocTime != null && dto.CloseDocTime != it.CLOSEDOCDATE)
|
|
|
|
|
if (dto.CloseDocTime != it.CLOSEDOCDATE && dto.CloseDocTime != null)
|
|
|
|
|
{
|
|
|
|
|
flag = true;
|
|
|
|
|
it.CLOSEDOCDATE = dto.CloseDocTime;
|
|
|
|
|