Compare commits
No commits in common. "09ff2468e93155c9a2bb7c30e91df73ecbf0cec0" and "053a09a5b2c27c3d9395db24425df8b0b17db080" have entirely different histories.
09ff2468e9
...
053a09a5b2
|
|
@ -86,12 +86,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));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,8 @@ 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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue