Compare commits

..

No commits in common. "29f6196698f8373369bdcf03f77996cb6afc50c3" and "2e539dfa711c3d74352b92ef354f91de3622e7e0" have entirely different histories.

2 changed files with 5 additions and 3 deletions

View File

@ -95,12 +95,10 @@ namespace IRaCIS.Core.Application.Contracts
//默认会是0 //默认会是0
var code = await _noneDicomStudyRepository.Where(t => t.TrialId == addOrEditNoneDicomStudy.TrialId).Select(x => x.Code).DefaultIfEmpty().MaxAsync(); var code = await _noneDicomStudyRepository.Where(t => t.TrialId == addOrEditNoneDicomStudy.TrialId).Select(x => x.Code).DefaultIfEmpty().MaxAsync();
addOrEditNoneDicomStudy.Code = code + 1;
optEntity = await _noneDicomStudyRepository.InsertFromDTOAsync(addOrEditNoneDicomStudy); optEntity = await _noneDicomStudyRepository.InsertFromDTOAsync(addOrEditNoneDicomStudy);
optEntity.Code = code + 1;
optEntity.StudyCode = AppSettings.GetCodeStr(optEntity.Code, nameof(NoneDicomStudy)); optEntity.StudyCode = AppSettings.GetCodeStr(optEntity.Code, nameof(NoneDicomStudy));
} }

View File

@ -57,6 +57,10 @@ namespace IRaCIS.Core.Application.Contracts
public DateTime ImageDate { get; set; } public DateTime ImageDate { get; set; }
public string Description { get; set; } = string.Empty; public string Description { get; set; } = string.Empty;
public int Code { get; set; }
public string StudyName { get; set; } public string StudyName { get; set; }
public string VideoName { get; set; } = string.Empty; public string VideoName { get; set; } = string.Empty;