修改
This commit is contained in:
@@ -128,7 +128,8 @@ namespace IRaCIS.Application.Services
|
||||
|
||||
if (readingCategoryList.Except(inDto.ReadingCategorys).Count() > 0)
|
||||
{
|
||||
return ResponseOutput.NotOk("已分配任务,不允许减少阅片类型");
|
||||
//---已分配任务,不允许减少阅片类型
|
||||
return ResponseOutput.NotOk(_localizer["DoctorWorkload_AssignType"]);
|
||||
|
||||
}
|
||||
|
||||
@@ -658,7 +659,8 @@ namespace IRaCIS.Application.Services
|
||||
if (await _doctorWorkloadRepository.AnyAsync(workloadLambda))
|
||||
{
|
||||
|
||||
return ResponseOutput.NotOk("This type of data can only have one");
|
||||
//---This type of data can only have one
|
||||
return ResponseOutput.NotOk(_localizer["DoctorWorkload_Unique"]);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -669,7 +671,8 @@ namespace IRaCIS.Application.Services
|
||||
doctorworkloadLambda = doctorworkloadLambda.And(t => t.DataFrom == (int)WorkLoadFromStatus.Doctor);
|
||||
if (await _doctorWorkloadRepository.AnyAsync(doctorworkloadLambda))
|
||||
{
|
||||
return ResponseOutput.NotOk("This type of data can only have one");
|
||||
//---This type of data can only have one
|
||||
return ResponseOutput.NotOk(_localizer["DoctorWorkload_Unique"]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -698,7 +701,8 @@ namespace IRaCIS.Application.Services
|
||||
if (isLocked)
|
||||
{
|
||||
|
||||
return ResponseOutput.NotOk("Expenses have been settled and workload cannot be modified.");
|
||||
//---Expenses have been settled and workload cannot be modified.
|
||||
return ResponseOutput.NotOk(_localizer["DoctorWorkload_FeeSettled"]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -259,7 +259,8 @@ namespace IRaCIS.Application.Services
|
||||
}
|
||||
return ResponseOutput.Result(await _enrollRepository.SaveChangesAsync());
|
||||
}
|
||||
return ResponseOutput.NotOk($"Cannot find trial {trialId}");
|
||||
//$"Cannot find trial {trialId}"
|
||||
return ResponseOutput.NotOk(_localizer["Enroll_NotFound", trialId]);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -387,7 +388,8 @@ namespace IRaCIS.Application.Services
|
||||
|
||||
if (errorList.Count() > 0)
|
||||
{
|
||||
return ResponseOutput.NotOk(string.Join(',', errorList.Select(c => c.LastName+" / "+c.FirstName)) +"邮箱格式存在问题") ;
|
||||
// errorList.Select(c => c.LastName+" / "+c.FirstName)) +"邮箱格式存在问题"
|
||||
return ResponseOutput.NotOk(string.Join(',', _localizer["Enroll_EmailFormat"], errorList.Select(c => c.LastName + " / " + c.FirstName))) ;
|
||||
}
|
||||
|
||||
if (confirmReviewerCommand.ConfirmState == 1) //确认入组
|
||||
@@ -489,7 +491,8 @@ namespace IRaCIS.Application.Services
|
||||
u.Downtime);
|
||||
if (sum != 0)
|
||||
{
|
||||
return ResponseOutput.NotOk("Reviewers with workload cannot go back");
|
||||
//---Reviewers with workload cannot go back
|
||||
return ResponseOutput.NotOk(_localizer["Enroll_CannotRollback"]);
|
||||
}
|
||||
|
||||
intoGroupItem.EnrollStatus = EnrollStatus.InviteIntoGroup;
|
||||
|
||||
Reference in New Issue
Block a user