修改 多标准
This commit is contained in:
@@ -145,9 +145,11 @@ namespace IRaCIS.Application.Contracts
|
||||
[NotDefault]
|
||||
public Guid EnrollId { get; set; }
|
||||
|
||||
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
[NotDefault]
|
||||
public Guid TrialReadingCriterionId { get; set; }
|
||||
|
||||
public List<ReadingCategory> ReadingCategorys { get; set; }
|
||||
}
|
||||
|
||||
@@ -252,12 +254,43 @@ namespace IRaCIS.Application.Contracts
|
||||
|
||||
public string? AgreementFileName => AgreementPath?.Split('/').Last();
|
||||
|
||||
public string AgreementFullPath => AgreementPath;
|
||||
public string AgreementFullPath => AgreementPath;
|
||||
|
||||
|
||||
//public List<ReadingCategory> ReadingCategorys { get; set; }
|
||||
|
||||
public List<TrialReadingCriterionDto> TrialReadingCriterionList { get; set; }
|
||||
|
||||
public List<TrialCriterionReadingCategory> CriterionReadingCategoryList { get; set; }
|
||||
|
||||
|
||||
public List<CriterionReadingCategory> CriterionCategoryList => CriterionReadingCategoryList
|
||||
.GroupBy(t => new { t.TrialReadingCriterionId, t.EnrollId })
|
||||
.Select(g => new CriterionReadingCategory() { EnrollId = g.Key.EnrollId, TrialReadingCriterionId = g.Key.TrialReadingCriterionId, ReadingCategorys = g.Select(t => t.ReadingCategory).ToList() });
|
||||
}
|
||||
|
||||
public class TrialReadingCriterionDto
|
||||
{
|
||||
public Guid TrialReadingCriterionId { get; set; }
|
||||
public string TrialReadingCriterionName { get; set; }
|
||||
}
|
||||
|
||||
public class TrialCriterionReadingCategory
|
||||
{
|
||||
public Guid EnrollId { get; set; }
|
||||
public Guid TrialReadingCriterionId { get; set; }
|
||||
public ReadingCategory ReadingCategory { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class CriterionReadingCategory
|
||||
{
|
||||
public Guid EnrollId { get; set; }
|
||||
public Guid TrialReadingCriterionId { get; set; }
|
||||
|
||||
public List<ReadingCategory> ReadingCategorys { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user