|
|
@ -3720,28 +3720,28 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
|
|
|
|
|
|
|
var ctnList = tenantDb.Queryable<BookingSlotCtn>().Where(x=>x.SlotId == id).ToList();
|
|
|
|
var ctnList = tenantDb.Queryable<BookingSlotCtn>().Where(x=>x.SlotId == id).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
ctnList.ForEach(async t =>
|
|
|
|
ctnList.ForEach(t =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
t.Deleted = true;
|
|
|
|
t.Deleted = true;
|
|
|
|
t.DeleteTime = DateTime.Now;
|
|
|
|
t.DeleteTime = DateTime.Now;
|
|
|
|
t.DeleteBy = long.Parse(user.UserId);
|
|
|
|
t.DeleteBy = long.Parse(user.UserId);
|
|
|
|
t.DeleteUserName = user.UserName;
|
|
|
|
t.DeleteUserName = user.UserName;
|
|
|
|
|
|
|
|
|
|
|
|
await tenantDb.Updateable<BookingSlotCtn>(t).ExecuteCommandAsync();
|
|
|
|
tenantDb.Updateable<BookingSlotCtn>(t).ExecuteCommand();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
var alloc = tenantDb.Queryable<BookingSlotAllocation>().Where(a => a.BookingSlotId == id && a.Deleted == false).ToList();
|
|
|
|
var alloc = tenantDb.Queryable<BookingSlotAllocation>().Where(a => a.BookingSlotId == id && a.Deleted == false).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
if (alloc.Count > 0)
|
|
|
|
if (alloc.Count > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
alloc.ForEach(async t =>
|
|
|
|
alloc.ForEach(t =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
t.Deleted = true;
|
|
|
|
t.Deleted = true;
|
|
|
|
t.DeleteTime = DateTime.Now;
|
|
|
|
t.DeleteTime = DateTime.Now;
|
|
|
|
t.DeleteBy = long.Parse(user.UserId);
|
|
|
|
t.DeleteBy = long.Parse(user.UserId);
|
|
|
|
t.DeleteUserName = user.UserName;
|
|
|
|
t.DeleteUserName = user.UserName;
|
|
|
|
|
|
|
|
|
|
|
|
await tenantDb.Updateable<BookingSlotAllocation>(t).ExecuteCommandAsync();
|
|
|
|
tenantDb.Updateable<BookingSlotAllocation>(t).ExecuteCommand();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|