|
|
|
@ -342,7 +342,7 @@ namespace Aucma.Core.BoxFoam.ViewModels
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
// 白夜班切换
|
|
|
|
|
ShiftChangeAsync(productLineCode, currentTeamTime);
|
|
|
|
|
ShiftChangeAsync(productLineCode);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -422,7 +422,7 @@ namespace Aucma.Core.BoxFoam.ViewModels
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private async void ShiftChangeAsync(string productLineCode, CurrentTeamTime currentTeamTime)
|
|
|
|
|
private async void ShiftChangeAsync(string productLineCode)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
@ -434,9 +434,11 @@ namespace Aucma.Core.BoxFoam.ViewModels
|
|
|
|
|
//更新计划表操作
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//CurrentTeamTime currentTeamTime = await _currentTeamTimeServices.FirstAsync();
|
|
|
|
|
CurrentTeamTime currentTeamTime = await _currentTeamTimeServices.FirstAsync();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 更新当班时间
|
|
|
|
|
currentTeamTime.TeamName = currentTeamTimeList.FirstOrDefault().TeamName;
|
|
|
|
|
currentTeamTime.TeamName = currentTeamTimeList.First().TeamName;
|
|
|
|
|
currentTeamTime.StartTime = currentTeamTimeList.Min(d => d.StartTime);
|
|
|
|
|
currentTeamTime.EndTime = currentTeamTimeList.Max(d => d.EndTime);
|
|
|
|
|
bool result = await _currentTeamTimeServices.UpdateAsync(currentTeamTime);
|
|
|
|
|