Uat_Study
parent
810a601583
commit
c19c34b80a
|
@ -667,6 +667,16 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid? ReadingCriterionPageId { get; set; }
|
public Guid? ReadingCriterionPageId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 关联ID
|
||||||
|
/// </summary>
|
||||||
|
public Guid? RelevanceId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 关联Value
|
||||||
|
/// </summary>
|
||||||
|
public string RelevanceValue { get; set; } = string.Empty;
|
||||||
|
|
||||||
public List<GetTrialReadingQuestionOutDto> Childrens { get; set; }
|
public List<GetTrialReadingQuestionOutDto> Childrens { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -267,6 +267,17 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// 标准分页Id
|
/// 标准分页Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid? ReadingCriterionPageId { get; set; }
|
public Guid? ReadingCriterionPageId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 关联ID
|
||||||
|
/// </summary>
|
||||||
|
public Guid? RelevanceId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 关联Value
|
||||||
|
/// </summary>
|
||||||
|
public string RelevanceValue { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ReadingQuestionSystemView
|
public class ReadingQuestionSystemView
|
||||||
|
@ -492,6 +503,17 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// 裁判类型
|
/// 裁判类型
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public JudgeTypeEnum JudgeType { get; set; }
|
public JudgeTypeEnum JudgeType { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 关联ID
|
||||||
|
/// </summary>
|
||||||
|
public Guid? RelevanceId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 关联Value
|
||||||
|
/// </summary>
|
||||||
|
public string RelevanceValue { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
public class AddOrUpdateReadingQuestionSystemInDto
|
public class AddOrUpdateReadingQuestionSystemInDto
|
||||||
{
|
{
|
||||||
|
@ -641,6 +663,16 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// 标准分页Id
|
/// 标准分页Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid? ReadingCriterionPageId { get; set; }
|
public Guid? ReadingCriterionPageId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 关联ID
|
||||||
|
/// </summary>
|
||||||
|
public Guid? RelevanceId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 关联Value
|
||||||
|
/// </summary>
|
||||||
|
public string RelevanceValue { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -730,6 +762,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否是系统数据
|
/// 是否是系统数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -672,6 +672,8 @@ namespace IRaCIS.Application.Services
|
||||||
QuestionName = data.QuestionName,
|
QuestionName = data.QuestionName,
|
||||||
IsRequired = data.IsRequired,
|
IsRequired = data.IsRequired,
|
||||||
ShowOrder = data.ShowOrder,
|
ShowOrder = data.ShowOrder,
|
||||||
|
RelevanceId=data.RelevanceId,
|
||||||
|
RelevanceValue=data.RelevanceValue,
|
||||||
ParentId = data.ParentId,
|
ParentId = data.ParentId,
|
||||||
TypeValue = data.TypeValue,
|
TypeValue = data.TypeValue,
|
||||||
Answer = leftquestionAnswer.Answer,
|
Answer = leftquestionAnswer.Answer,
|
||||||
|
|
|
@ -287,6 +287,8 @@ namespace IRaCIS.Application.Services
|
||||||
Id = x.Id,
|
Id = x.Id,
|
||||||
JudgeType = x.JudgeType,
|
JudgeType = x.JudgeType,
|
||||||
ReadingCriterionPageId = x.ReadingCriterionPageId,
|
ReadingCriterionPageId = x.ReadingCriterionPageId,
|
||||||
|
RelevanceId=x.RelevanceId,
|
||||||
|
RelevanceValue=x.RelevanceValue,
|
||||||
ParentId = x.ParentId,
|
ParentId = x.ParentId,
|
||||||
ReadingQuestionCriterionTrialId = x.ReadingQuestionCriterionTrialId,
|
ReadingQuestionCriterionTrialId = x.ReadingQuestionCriterionTrialId,
|
||||||
ReadingQuestionSystemId = x.ReadingQuestionSystemId,
|
ReadingQuestionSystemId = x.ReadingQuestionSystemId,
|
||||||
|
@ -328,10 +330,13 @@ namespace IRaCIS.Application.Services
|
||||||
ParentTriggerValue=c.system.ParentTriggerValue,
|
ParentTriggerValue=c.system.ParentTriggerValue,
|
||||||
QuestionName=c.system.QuestionName,
|
QuestionName=c.system.QuestionName,
|
||||||
ReadingCriterionPageId=c.trial.FirstOrDefault()?.ReadingCriterionPageId,
|
ReadingCriterionPageId=c.trial.FirstOrDefault()?.ReadingCriterionPageId,
|
||||||
|
RelevanceId = c.trial.FirstOrDefault()?.RelevanceId,
|
||||||
|
RelevanceValue = c.trial.FirstOrDefault()?.RelevanceValue,
|
||||||
ReadingQuestionCriterionTrialId = item.Id,
|
ReadingQuestionCriterionTrialId = item.Id,
|
||||||
Remark=c.system.Remark,
|
Remark=c.system.Remark,
|
||||||
TrialId=item.TrialId,
|
TrialId=item.TrialId,
|
||||||
Type=c.system.Type,
|
Type=c.system.Type,
|
||||||
|
|
||||||
TypeValue=c.system.TypeValue,
|
TypeValue=c.system.TypeValue,
|
||||||
}).ToList();
|
}).ToList();
|
||||||
var copydata = needAddQuestionList.Clone();
|
var copydata = needAddQuestionList.Clone();
|
||||||
|
|
|
@ -620,6 +620,10 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
public int? DigitPlaces { get; set; }
|
public int? DigitPlaces { get; set; }
|
||||||
|
|
||||||
public FormType? FormType { get; set; }
|
public FormType? FormType { get; set; }
|
||||||
|
|
||||||
|
public int ImageCount { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 项目标准Id
|
/// 项目标准Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -702,6 +706,9 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int? DigitPlaces { get; set; }
|
public int? DigitPlaces { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
public int ImageCount { get; set; }
|
||||||
|
|
||||||
public bool IsSignSave { get; set; } = false;
|
public bool IsSignSave { get; set; } = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -229,6 +229,7 @@ namespace IRaCIS.Core.Application
|
||||||
result.DigitPlaces = trialCriterion.DigitPlaces;
|
result.DigitPlaces = trialCriterion.DigitPlaces;
|
||||||
result.TrialCriterionId = trialCriterion.Id;
|
result.TrialCriterionId = trialCriterion.Id;
|
||||||
result.FormType = trialCriterion.FormType;
|
result.FormType = trialCriterion.FormType;
|
||||||
|
result.ImageCount=trialCriterion.ImageCount;
|
||||||
};
|
};
|
||||||
|
|
||||||
result.TrialQuestionList = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrial.IsConfirm && x.TrialId == inDto.TrialId&&x.ReadingQuestionCriterionTrialId == result.TrialCriterionId
|
result.TrialQuestionList = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrial.IsConfirm && x.TrialId == inDto.TrialId&&x.ReadingQuestionCriterionTrialId == result.TrialCriterionId
|
||||||
|
@ -247,7 +248,6 @@ namespace IRaCIS.Core.Application
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public async Task<IResponseOutput> SetTrialReadingCriterion(SetTrialReadingCriterionInDto inDto)
|
public async Task<IResponseOutput> SetTrialReadingCriterion(SetTrialReadingCriterionInDto inDto)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (inDto.IsSignSave)
|
if (inDto.IsSignSave)
|
||||||
{
|
{
|
||||||
var criterionFormType = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == inDto.TrialCriterionId).Select(x => x.FormType).FirstOrDefaultAsync();
|
var criterionFormType = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == inDto.TrialCriterionId).Select(x => x.FormType).FirstOrDefaultAsync();
|
||||||
|
@ -261,12 +261,11 @@ namespace IRaCIS.Core.Application
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
await _readingQuestionCriterionTrialRepository.UpdatePartialFromQueryAsync(inDto.TrialCriterionId, x => new ReadingQuestionCriterionTrial()
|
await _readingQuestionCriterionTrialRepository.UpdatePartialFromQueryAsync(inDto.TrialCriterionId, x => new ReadingQuestionCriterionTrial()
|
||||||
{
|
{
|
||||||
|
|
||||||
FormType = inDto.FormType,
|
FormType = inDto.FormType,
|
||||||
DigitPlaces = inDto.DigitPlaces,
|
DigitPlaces = inDto.DigitPlaces,
|
||||||
|
ImageCount=inDto.ImageCount,
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -71,6 +71,11 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int? DigitPlaces { get; set; } = 2;
|
public int? DigitPlaces { get; set; } = 2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 图片数量
|
||||||
|
/// </summary>
|
||||||
|
public int ImageCount { get; set; } = 0;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 评估结果
|
/// 评估结果
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -117,6 +117,16 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid? ReadingCriterionPageId { get; set; }
|
public Guid? ReadingCriterionPageId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 关联ID
|
||||||
|
/// </summary>
|
||||||
|
public Guid? RelevanceId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 关联Value
|
||||||
|
/// </summary>
|
||||||
|
public string RelevanceValue { get; set; }=string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 分页标准
|
/// 分页标准
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue