|
|
|
@ -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();
|
|
|
|
|
model.ETA = item.ETA;
|
|
|
|
|
model.ETD = item.ETD;
|
|
|
|
|
//model.ETD = item.ETD;
|
|
|
|
|
model.ATD = item.ATD;
|
|
|
|
|
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();
|
|
|
|
@ -1491,27 +1491,27 @@ namespace Myshipping.Application
|
|
|
|
|
});
|
|
|
|
|
it.ETA = item.ETA;
|
|
|
|
|
}
|
|
|
|
|
if (it.ETD != item.ETD)
|
|
|
|
|
{
|
|
|
|
|
////添加booking日志
|
|
|
|
|
var bid = await _bookinglog.InsertReturnSnowflakeIdAsync(new BookingLog
|
|
|
|
|
{
|
|
|
|
|
Type = "Edit",
|
|
|
|
|
BookingId = it.Id,
|
|
|
|
|
TenantId = Convert.ToInt64(UserManager.TENANT_ID),
|
|
|
|
|
CreatedTime = DateTime.Now,
|
|
|
|
|
CreatedUserId = UserManager.UserId,
|
|
|
|
|
CreatedUserName = UserManager.Name
|
|
|
|
|
});
|
|
|
|
|
await _bookinglogdetail.InsertReturnSnowflakeIdAsync(new BookingLogDetail
|
|
|
|
|
{
|
|
|
|
|
PId = bid,
|
|
|
|
|
Field = "ETD",
|
|
|
|
|
OldValue = it.ETD == null ? "" : it.ETD.ToString(),
|
|
|
|
|
NewValue = item.ETD == null ? "" : item.ETD.ToString(),
|
|
|
|
|
});
|
|
|
|
|
it.ETD = item.ETD;
|
|
|
|
|
}
|
|
|
|
|
//if (it.ETD != item.ETD)
|
|
|
|
|
//{
|
|
|
|
|
// ////添加booking日志
|
|
|
|
|
// var bid = await _bookinglog.InsertReturnSnowflakeIdAsync(new BookingLog
|
|
|
|
|
// {
|
|
|
|
|
// Type = "Edit",
|
|
|
|
|
// BookingId = it.Id,
|
|
|
|
|
// TenantId = Convert.ToInt64(UserManager.TENANT_ID),
|
|
|
|
|
// CreatedTime = DateTime.Now,
|
|
|
|
|
// CreatedUserId = UserManager.UserId,
|
|
|
|
|
// CreatedUserName = UserManager.Name
|
|
|
|
|
// });
|
|
|
|
|
// await _bookinglogdetail.InsertReturnSnowflakeIdAsync(new BookingLogDetail
|
|
|
|
|
// {
|
|
|
|
|
// PId = bid,
|
|
|
|
|
// Field = "ETD",
|
|
|
|
|
// OldValue = it.ETD == null ? "" : it.ETD.ToString(),
|
|
|
|
|
// NewValue = item.ETD == null ? "" : item.ETD.ToString(),
|
|
|
|
|
// });
|
|
|
|
|
// it.ETD = item.ETD;
|
|
|
|
|
//}
|
|
|
|
|
if (it.ATD != item.ATD)
|
|
|
|
|
{
|
|
|
|
|
////添加booking日志
|
|
|
|
|