@@ -301,7 +301,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
if (addOrEditTrialQCQuestionConfigure.ParentId != null)
|
||||
{
|
||||
var parentShowOrder = await _trialQcQuestionRepository.Where(x => x.Id == addOrEditTrialQCQuestionConfigure.ParentId).Select(x => x.ShowOrder).FirstOrDefaultAsync();
|
||||
if(parentShowOrder< addOrEditTrialQCQuestionConfigure.ShowOrder)
|
||||
if(parentShowOrder> addOrEditTrialQCQuestionConfigure.ShowOrder)
|
||||
{
|
||||
//---父问题的显示序号要比子问题的显示序号小,请确认。
|
||||
throw new BusinessValidationFailedException(_localizer["TrialConfig_InvalidParentQuestionId"]);
|
||||
@@ -309,7 +309,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
}
|
||||
|
||||
var child = await _trialQcQuestionRepository.FirstOrDefaultAsync(x => x.ParentId == addOrEditTrialQCQuestionConfigure.Id);
|
||||
if (child != null && child.ShowOrder > addOrEditTrialQCQuestionConfigure.ShowOrder)
|
||||
if (child != null && child.ShowOrder < addOrEditTrialQCQuestionConfigure.ShowOrder)
|
||||
{
|
||||
//---父问题的显示序号要比子问题的显示序号小,请确认。
|
||||
throw new BusinessValidationFailedException(_localizer["TrialConfig_InvalidParentQuestionId"]);
|
||||
|
||||
Reference in New Issue
Block a user