修改code
This commit is contained in:
@@ -10,7 +10,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
/// <summary> NoneDicomStudyView 列表视图模型 </summary>
|
||||
public class NoneDicomStudyView
|
||||
{
|
||||
public string CodeView => "NST" + Code.ToString("D5");
|
||||
public string CodeView { get; set; }
|
||||
public int Code {get;set;}
|
||||
public Guid Id { get; set; }
|
||||
|
||||
|
||||
@@ -50,6 +50,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
entity.Code = _noneDicomStudyRepository.Where(t => t.TrialId == addOrEditNoneDicomStudy.TrialId).Select(t => t.Code).DefaultIfEmpty().Max() + 1;
|
||||
}
|
||||
|
||||
entity.StudyCode = "NST" + entity.Code.ToString("D5");
|
||||
await _repository.SaveChangesAsync();
|
||||
|
||||
var svTime = _repository.Where<SubjectVisit>(t => t.Id == addOrEditNoneDicomStudy.SubjectVisitId).Select(t => new
|
||||
|
||||
@@ -233,7 +233,8 @@ namespace IRaCIS.Core.Application.Service
|
||||
|
||||
CreateMap<NoneDicomStudy, NoneDicomStudyView>()
|
||||
.ForMember(d => d.FileCount, u => u.MapFrom(s => s.NoneDicomFileList.Count))
|
||||
.ForMember(d => d.NoneDicomStudyFileList, u => u.MapFrom(s => s.NoneDicomFileList));
|
||||
.ForMember(d => d.NoneDicomStudyFileList, u => u.MapFrom(s => s.NoneDicomFileList))
|
||||
.ForMember(d => d.CodeView, u => u.MapFrom(s => s.StudyCode));
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user