修改code
parent
977d83924d
commit
d41c7cb16f
|
@ -34,13 +34,13 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
|
||||
public DateTime UploadTime { get; set; }
|
||||
|
||||
public string StudyCode => IsDicom ? DicomStudyCode : "NST" + NoneDicomCode.ToString("D5");
|
||||
public string StudyCode { get; set; }
|
||||
|
||||
|
||||
[JsonIgnore]
|
||||
public string DicomStudyCode { get; set; } = string.Empty;
|
||||
[JsonIgnore]
|
||||
public int NoneDicomCode { get; set; }
|
||||
//[JsonIgnore]
|
||||
//public string DicomStudyCode { get; set; } = string.Empty;
|
||||
//[JsonIgnore]
|
||||
//public int NoneDicomCode { get; set; }
|
||||
|
||||
public bool IsDicom { get; set; }
|
||||
}
|
||||
|
|
|
@ -51,8 +51,10 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc
|
|||
|
||||
Count = t.SeriesCount,
|
||||
|
||||
DicomStudyCode = t.StudyCode,
|
||||
NoneDicomCode = 0,
|
||||
StudyCode = t.StudyCode,
|
||||
|
||||
//DicomStudyCode = t.StudyCode,
|
||||
//NoneDicomCode = 0,
|
||||
|
||||
StudyTime = t.StudyTime,
|
||||
|
||||
|
@ -97,8 +99,10 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc
|
|||
|
||||
Count = t.NoneDicomFileList.Count(),
|
||||
|
||||
NoneDicomCode = t.Code,
|
||||
DicomStudyCode = string.Empty,
|
||||
StudyCode = t.StudyCode,
|
||||
|
||||
//NoneDicomCode = t.Code,
|
||||
//DicomStudyCode = string.Empty,
|
||||
|
||||
StudyTime = t.ImageDate,
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -23,6 +23,8 @@ namespace IRaCIS.Core.Domain.Models
|
|||
|
||||
public Subject Subject { get; set; }
|
||||
|
||||
public string StudyCode { get; set; } = string.Empty;
|
||||
|
||||
public int Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
@ -98,8 +100,8 @@ namespace IRaCIS.Core.Domain.Models
|
|||
/// <summary>
|
||||
/// Description
|
||||
/// </summary>
|
||||
public string Description { get; set; }
|
||||
|
||||
}
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue