Compare commits
5 Commits
2e539dfa71
...
29f6196698
| Author | SHA1 | Date |
|---|---|---|
|
|
29f6196698 | |
|
|
09ff2468e9 | |
|
|
1867277e1b | |
|
|
053a09a5b2 | |
|
|
fae86f0836 |
|
|
@ -95,10 +95,12 @@ 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));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -57,10 +57,6 @@ 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