|
|
@ -1461,7 +1461,7 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
|
|
var model = _vesselinfo.AsQueryable().Filter(null, true).Where(x => x.Vessel == item.Vessel && x.Voyno == item.Voyno && x.TenantId == UserManager.TENANT_ID).First();
|
|
|
|
var model = _vesselinfo.AsQueryable().Filter(null, true).Where(x => x.Vessel == item.Vessel && x.Voyno == item.Voyno && x.TenantId == UserManager.TENANT_ID).First();
|
|
|
|
model.ETA = item.ETA;
|
|
|
|
model.ETA = item.ETA;
|
|
|
|
model.ETD = item.ETD;
|
|
|
|
//model.ETD = item.ETD;
|
|
|
|
model.ATD = item.ATD;
|
|
|
|
model.ATD = item.ATD;
|
|
|
|
await _vesselinfo.AsUpdateable(model).IgnoreColumns().ExecuteCommandAsync();
|
|
|
|
await _vesselinfo.AsUpdateable(model).IgnoreColumns().ExecuteCommandAsync();
|
|
|
|
var order = await _rep.AsQueryable().Filter(null, true).Where(x => x.VESSEL == item.Vessel && x.VOYNO == item.Voyno && x.TenantId == UserManager.TENANT_ID).ToListAsync();
|
|
|
|
var order = await _rep.AsQueryable().Filter(null, true).Where(x => x.VESSEL == item.Vessel && x.VOYNO == item.Voyno && x.TenantId == UserManager.TENANT_ID).ToListAsync();
|
|
|
@ -1491,27 +1491,27 @@ namespace Myshipping.Application
|
|
|
|
});
|
|
|
|
});
|
|
|
|
it.ETA = item.ETA;
|
|
|
|
it.ETA = item.ETA;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (it.ETD != item.ETD)
|
|
|
|
//if (it.ETD != item.ETD)
|
|
|
|
{
|
|
|
|
//{
|
|
|
|
////添加booking日志
|
|
|
|
// ////添加booking日志
|
|
|
|
var bid = await _bookinglog.InsertReturnSnowflakeIdAsync(new BookingLog
|
|
|
|
// var bid = await _bookinglog.InsertReturnSnowflakeIdAsync(new BookingLog
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
Type = "Edit",
|
|
|
|
// Type = "Edit",
|
|
|
|
BookingId = it.Id,
|
|
|
|
// BookingId = it.Id,
|
|
|
|
TenantId = Convert.ToInt64(UserManager.TENANT_ID),
|
|
|
|
// TenantId = Convert.ToInt64(UserManager.TENANT_ID),
|
|
|
|
CreatedTime = DateTime.Now,
|
|
|
|
// CreatedTime = DateTime.Now,
|
|
|
|
CreatedUserId = UserManager.UserId,
|
|
|
|
// CreatedUserId = UserManager.UserId,
|
|
|
|
CreatedUserName = UserManager.Name
|
|
|
|
// CreatedUserName = UserManager.Name
|
|
|
|
});
|
|
|
|
// });
|
|
|
|
await _bookinglogdetail.InsertReturnSnowflakeIdAsync(new BookingLogDetail
|
|
|
|
// await _bookinglogdetail.InsertReturnSnowflakeIdAsync(new BookingLogDetail
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
PId = bid,
|
|
|
|
// PId = bid,
|
|
|
|
Field = "ETD",
|
|
|
|
// Field = "ETD",
|
|
|
|
OldValue = it.ETD == null ? "" : it.ETD.ToString(),
|
|
|
|
// OldValue = it.ETD == null ? "" : it.ETD.ToString(),
|
|
|
|
NewValue = item.ETD == null ? "" : item.ETD.ToString(),
|
|
|
|
// NewValue = item.ETD == null ? "" : item.ETD.ToString(),
|
|
|
|
});
|
|
|
|
// });
|
|
|
|
it.ETD = item.ETD;
|
|
|
|
// it.ETD = item.ETD;
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
if (it.ATD != item.ATD)
|
|
|
|
if (it.ATD != item.ATD)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
////添加booking日志
|
|
|
|
////添加booking日志
|
|
|
|