修改一版
parent
edf85de710
commit
491b0a4d7d
|
@ -3854,31 +3854,6 @@
|
||||||
仲裁规则/对象
|
仲裁规则/对象
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="P:IRaCIS.Core.Application.Contracts.GetTrialReadingInfoOutDto.DigitPlaces">
|
|
||||||
<summary>
|
|
||||||
修约小数点
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="P:IRaCIS.Core.Application.Contracts.GetTrialReadingInfoOutDto.TrialCriterionId">
|
|
||||||
<summary>
|
|
||||||
项目标准Id
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="P:IRaCIS.Core.Application.Contracts.GetTrialReadingInfoOutDto.ReadingCriterionPageList">
|
|
||||||
<summary>
|
|
||||||
项目分页
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="P:IRaCIS.Core.Application.Contracts.GetTrialReadingInfoOutDto.TrialJudgeQuestionList">
|
|
||||||
<summary>
|
|
||||||
项目裁判问题集合
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="P:IRaCIS.Core.Application.Contracts.GetTrialReadingInfoOutDto.TrialQuestionList">
|
|
||||||
<summary>
|
|
||||||
项目问题集合
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="P:IRaCIS.Core.Application.Contracts.ReadingCriterionPageDto.Id">
|
<member name="P:IRaCIS.Core.Application.Contracts.ReadingCriterionPageDto.Id">
|
||||||
<summary>
|
<summary>
|
||||||
pageId
|
pageId
|
||||||
|
@ -4009,6 +3984,26 @@
|
||||||
标准
|
标准
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="P:IRaCIS.Core.Application.Contracts.GetTrialReadingCriterionInfoOutDto.DigitPlaces">
|
||||||
|
<summary>
|
||||||
|
修约小数点
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:IRaCIS.Core.Application.Contracts.GetTrialReadingCriterionInfoOutDto.TrialCriterionId">
|
||||||
|
<summary>
|
||||||
|
项目标准Id
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:IRaCIS.Core.Application.Contracts.GetTrialReadingCriterionInfoOutDto.ReadingCriterionPageList">
|
||||||
|
<summary>
|
||||||
|
项目分页
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:IRaCIS.Core.Application.Contracts.GetTrialReadingCriterionInfoOutDto.TrialQuestionList">
|
||||||
|
<summary>
|
||||||
|
项目问题集合
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="P:IRaCIS.Core.Application.Contracts.SetTrialReadingCriterionInDto.FormType">
|
<member name="P:IRaCIS.Core.Application.Contracts.SetTrialReadingCriterionInDto.FormType">
|
||||||
<summary>
|
<summary>
|
||||||
表单类型
|
表单类型
|
||||||
|
@ -4642,6 +4637,20 @@
|
||||||
<param name="inDto"></param>
|
<param name="inDto"></param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:IRaCIS.Core.Application.TrialConfigService.GetTrialReadingJudgeList(IRaCIS.Core.Application.Contracts.GetTrialReadingInfoInDto)">
|
||||||
|
<summary>
|
||||||
|
获取项目裁判信息
|
||||||
|
</summary>
|
||||||
|
<param name="inDto"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:IRaCIS.Core.Application.TrialConfigService.GetTrialReadingCriterionInfo(IRaCIS.Core.Application.Contracts.GetTrialReadingInfoInDto)">
|
||||||
|
<summary>
|
||||||
|
获取项目阅片标准信息
|
||||||
|
</summary>
|
||||||
|
<param name="inDto"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
<member name="M:IRaCIS.Core.Application.TrialConfigService.SetTrialReadingCriterion(IRaCIS.Core.Application.Contracts.SetTrialReadingCriterionInDto)">
|
<member name="M:IRaCIS.Core.Application.TrialConfigService.SetTrialReadingCriterion(IRaCIS.Core.Application.Contracts.SetTrialReadingCriterionInDto)">
|
||||||
<summary>
|
<summary>
|
||||||
设置项目阅片标准
|
设置项目阅片标准
|
||||||
|
|
|
@ -327,16 +327,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int ArbitrationRule { get; set; } = 2;
|
public int ArbitrationRule { get; set; } = 2;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 修约小数点
|
|
||||||
/// </summary>
|
|
||||||
public int? DigitPlaces { get; set; }
|
|
||||||
|
|
||||||
public FormType? FormType { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 项目标准Id
|
|
||||||
/// </summary>
|
|
||||||
public Guid? TrialCriterionId { get; set; }
|
|
||||||
|
|
||||||
///// <summary>
|
///// <summary>
|
||||||
///// 全局阅片
|
///// 全局阅片
|
||||||
|
@ -370,21 +361,9 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 项目分页
|
|
||||||
/// </summary>
|
|
||||||
public List<ReadingCriterionPageDto> ReadingCriterionPageList { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 项目裁判问题集合
|
|
||||||
/// </summary>
|
|
||||||
public List<TrialJudgeQuestion> TrialJudgeQuestionList { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 项目问题集合
|
|
||||||
/// </summary>
|
|
||||||
public List<TrialReadQuestion> TrialQuestionList { get; set; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ReadingCriterionPageDto
|
public class ReadingCriterionPageDto
|
||||||
|
@ -546,6 +525,31 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class GetTrialReadingCriterionInfoOutDto
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 修约小数点
|
||||||
|
/// </summary>
|
||||||
|
public int? DigitPlaces { get; set; }
|
||||||
|
|
||||||
|
public FormType? FormType { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 项目标准Id
|
||||||
|
/// </summary>
|
||||||
|
public Guid? TrialCriterionId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 项目分页
|
||||||
|
/// </summary>
|
||||||
|
public List<ReadingCriterionPageDto> ReadingCriterionPageList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 项目问题集合
|
||||||
|
/// </summary>
|
||||||
|
public List<TrialReadQuestion> TrialQuestionList { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public class GetTrialReadingInfoInDto
|
public class GetTrialReadingInfoInDto
|
||||||
{
|
{
|
||||||
|
|
|
@ -73,19 +73,19 @@ namespace IRaCIS.Core.Application
|
||||||
public async Task<GetTrialReadingInfoOutDto> GetTrialReadingInfo(GetTrialReadingInfoInDto inDto)
|
public async Task<GetTrialReadingInfoOutDto> GetTrialReadingInfo(GetTrialReadingInfoInDto inDto)
|
||||||
{
|
{
|
||||||
GetTrialReadingInfoOutDto trialInfo= await _trialRepository.Where(x=>x.Id==inDto.TrialId).ProjectTo<GetTrialReadingInfoOutDto>(_mapper.ConfigurationProvider).FirstNotNullAsync();
|
GetTrialReadingInfoOutDto trialInfo= await _trialRepository.Where(x=>x.Id==inDto.TrialId).ProjectTo<GetTrialReadingInfoOutDto>(_mapper.ConfigurationProvider).FirstNotNullAsync();
|
||||||
trialInfo.DigitPlaces = null;
|
return trialInfo;
|
||||||
trialInfo.ReadingCriterionPageList = await _readingCriterionPageRepository.Where(x => x.TrialId == inDto.TrialId).ProjectTo<ReadingCriterionPageDto>(_mapper.ConfigurationProvider).ToListAsync();
|
}
|
||||||
|
|
||||||
var trialCriterion = await _readingQuestionCriterionTrialRepository.Where(x => x.TrialId == inDto.TrialId && x.IsConfirm).FirstOrDefaultAsync();
|
|
||||||
|
|
||||||
if (trialCriterion != null)
|
/// <summary>
|
||||||
|
/// 获取项目裁判信息
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="inDto"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpPost]
|
||||||
|
public async Task<List<TrialJudgeQuestion>> GetTrialReadingJudgeList(GetTrialReadingInfoInDto inDto)
|
||||||
{
|
{
|
||||||
trialInfo.DigitPlaces= trialCriterion.DigitPlaces;
|
return await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrial.IsConfirm && x.IsJudgeQuestion && x.TrialId == inDto.TrialId)
|
||||||
trialInfo.TrialCriterionId = trialCriterion.Id;
|
|
||||||
trialInfo.FormType = trialCriterion.FormType;
|
|
||||||
};
|
|
||||||
|
|
||||||
trialInfo.TrialJudgeQuestionList = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrial.IsConfirm && x.IsJudgeQuestion && x.TrialId == inDto.TrialId)
|
|
||||||
.Select(x => new TrialJudgeQuestion()
|
.Select(x => new TrialJudgeQuestion()
|
||||||
{
|
{
|
||||||
AnswerCombination = x.AnswerCombination,
|
AnswerCombination = x.AnswerCombination,
|
||||||
|
@ -95,12 +95,36 @@ namespace IRaCIS.Core.Application
|
||||||
QuestionName = x.QuestionName,
|
QuestionName = x.QuestionName,
|
||||||
ReadingQuestionCriterionTrialId = x.ReadingQuestionCriterionTrialId
|
ReadingQuestionCriterionTrialId = x.ReadingQuestionCriterionTrialId
|
||||||
}).ToListAsync();
|
}).ToListAsync();
|
||||||
|
|
||||||
trialInfo.TrialQuestionList= await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrial.IsConfirm&&x.TrialId==inDto.TrialId)
|
|
||||||
.ProjectTo<TrialReadQuestion>(_mapper.ConfigurationProvider).ToListAsync();
|
|
||||||
return trialInfo;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取项目阅片标准信息
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="inDto"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpPost]
|
||||||
|
public async Task<GetTrialReadingCriterionInfoOutDto> GetTrialReadingCriterionInfo(GetTrialReadingInfoInDto inDto)
|
||||||
|
{
|
||||||
|
GetTrialReadingCriterionInfoOutDto result = new GetTrialReadingCriterionInfoOutDto();
|
||||||
|
result.ReadingCriterionPageList = await _readingCriterionPageRepository.Where(x => x.TrialId == inDto.TrialId).ProjectTo<ReadingCriterionPageDto>(_mapper.ConfigurationProvider).ToListAsync();
|
||||||
|
var trialCriterion = await _readingQuestionCriterionTrialRepository.Where(x => x.TrialId == inDto.TrialId && x.IsConfirm).FirstOrDefaultAsync();
|
||||||
|
|
||||||
|
if (trialCriterion != null)
|
||||||
|
{
|
||||||
|
result.DigitPlaces = trialCriterion.DigitPlaces;
|
||||||
|
result.TrialCriterionId = trialCriterion.Id;
|
||||||
|
result.FormType = trialCriterion.FormType;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
result.TrialQuestionList = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrial.IsConfirm && x.TrialId == inDto.TrialId)
|
||||||
|
.ProjectTo<TrialReadQuestion>(_mapper.ConfigurationProvider).ToListAsync();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 设置项目阅片标准
|
/// 设置项目阅片标准
|
||||||
|
|
Loading…
Reference in New Issue