废弃
This commit is contained in:
@@ -2,13 +2,11 @@
|
||||
using Dicom.Imaging.Codec;
|
||||
using EasyCaching.Core;
|
||||
using IRaCIS.Core.Application.Contracts.Dicom;
|
||||
using IRaCIS.Core.Infra.EFCore;
|
||||
using IRaCIS.Core.Domain.Share;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using System.Text;
|
||||
using IRaCIS.Core.Application.Contracts;
|
||||
using Newtonsoft.Json;
|
||||
using MassTransit;
|
||||
|
||||
|
||||
namespace IRaCIS.Core.Application.Services
|
||||
{
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
using IRaCIS.Core.Application.Contracts.Dicom;
|
||||
using IRaCIS.Core.Application.Contracts.Dicom.DTO;
|
||||
using IRaCIS.Core.Application.Contracts.Dicom.DTO;
|
||||
using IRaCIS.Application.Contracts;
|
||||
using IRaCIS.Core.Infra.EFCore;
|
||||
using IRaCIS.Core.Domain.Models;
|
||||
using IRaCIS.Core.Domain.Share;
|
||||
using IRaCIS.Core.Infrastructure.Extention;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
using IRaCIS.Core.Application.Contracts.Dicom;
|
||||
using IRaCIS.Core.Application.Contracts.Dicom.DTO;
|
||||
using IRaCIS.Core.Infra.EFCore;
|
||||
using IRaCIS.Core.Domain.Models;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using IRaCIS.Core.Application.Dicom;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using IRaCIS.Core.Application.Contracts;
|
||||
using IRaCIS.Core.Infrastructure.Extention;
|
||||
|
||||
namespace IRaCIS.Core.Application.Services
|
||||
{
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
using IRaCIS.Core.Application.Contracts.Dicom;
|
||||
using IRaCIS.Core.Application.Contracts.Dicom.DTO;
|
||||
using IRaCIS.Core.Infra.EFCore;
|
||||
using IRaCIS.Core.Domain.Models;
|
||||
using IRaCIS.Core.Application.Contracts.Dicom.DTO;
|
||||
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using IRaCIS.Core.Application.Dicom;
|
||||
using IRaCIS.Core.Infrastructure.Extention;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
|
||||
namespace IRaCIS.Core.Application.Services
|
||||
|
||||
@@ -1,108 +0,0 @@
|
||||
//using IRaCIS.Core.Application.Contracts.Dicom.DTO;
|
||||
//using IRaCIS.Core.Application.Contracts.Image;
|
||||
//using IRaCIS.Core.Infrastructure.Extention;
|
||||
//using IRaCIS.Core.Infra.EFCore;
|
||||
//using IRaCIS.Core.Domain.Models;
|
||||
//using Microsoft.AspNetCore.Authorization;
|
||||
//using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
//namespace IRaCIS.Core.Application.Services
|
||||
//{
|
||||
// [ ApiExplorerSettings(GroupName = "Image")]
|
||||
// public class StudyDTFService : BaseService, IStudyDTFService
|
||||
// {
|
||||
// private readonly IRepository<StudyDTF> _studyDtfRepository;
|
||||
|
||||
// private readonly IRepository<User> _userRepository;
|
||||
|
||||
|
||||
// public StudyDTFService(IRepository<StudyDTF> studyDtfRepository, IRepository<User> userRepository)
|
||||
// {
|
||||
// _studyDtfRepository = studyDtfRepository;
|
||||
|
||||
// _userRepository = userRepository;
|
||||
// }
|
||||
|
||||
// public IResponseOutput AddStudyDTF(StudyDTFAddOrUpdateCommand studyDtfAddOrUpdate)
|
||||
// {
|
||||
// var studyDtf = _mapper.Map<StudyDTF>(studyDtfAddOrUpdate);
|
||||
|
||||
// _studyDtfRepository.Add(studyDtf);
|
||||
|
||||
// var success = _studyDtfRepository.SaveChanges();
|
||||
|
||||
// return ResponseOutput.Result(success);
|
||||
// }
|
||||
|
||||
// //[NonDynamicMethod]
|
||||
// //[AllowAnonymous]
|
||||
// //public async Task<IResponseOutput> UpdateStudyDTF(StudyDTFAddOrUpdateCommand studyDtfAddOrUpdate)
|
||||
// //{
|
||||
// // studyDtfAddOrUpdate.Id.IfNullThrowException();
|
||||
// // var studyDTF = await _studyDtfRepository.FindAsync( studyDtfAddOrUpdate.Id.Value );
|
||||
|
||||
// // studyDTF.Path = "9999";
|
||||
|
||||
// // //var success= await _efStudyDtfRepository.UpdateAsync(studyDTF,true);
|
||||
|
||||
// // var success = await _studyDtfRepository.SaveChangesAsync();
|
||||
|
||||
// // //_efStudyDtfRepository.UpdateAsync();
|
||||
|
||||
|
||||
// // return ResponseOutput.Ok(success);
|
||||
// //}
|
||||
|
||||
// [HttpDelete("{trialId:guid}/{studyDTFId:guid}")]
|
||||
// public IResponseOutput DeleteStudyDTF(Guid studyDTFId)
|
||||
// {
|
||||
// return ResponseOutput.Result(_studyDtfRepository.Delete(t => t.Id == studyDTFId));
|
||||
// }
|
||||
|
||||
// [HttpGet("{trialId:guid}/{studyInstanceUid}")]
|
||||
// public List<StudyDTFDTO> GetStudyDtfdtos(Guid trialId, string studyInstanceUid)
|
||||
// {
|
||||
// var studyId = IdentifierHelper.CreateGuid(studyInstanceUid, trialId.ToString());
|
||||
|
||||
// var query = from studyDtf in _studyDtfRepository.Where(t => t.StudyId == studyId)
|
||||
// join user in _userRepository.AsQueryable() on studyDtf.CreateUserId equals user.Id
|
||||
// select new StudyDTFDTO()
|
||||
// {
|
||||
// CreateTime = studyDtf.CreateTime,
|
||||
// CreateUserId = studyDtf.CreateUserId,
|
||||
// FileName = studyDtf.FileName,
|
||||
// Id = studyDtf.Id,
|
||||
// FirstName = user.FirstName,
|
||||
// LastName = user.LastName,
|
||||
// UserName = user.UserName,
|
||||
// Path = studyDtf.Path
|
||||
// };
|
||||
|
||||
// return query.ToList();
|
||||
// }
|
||||
|
||||
|
||||
// [HttpGet("{trialId:guid}/{studyId:guid}")]
|
||||
// public List<StudyDTFDTO> GetStudyDtfList(Guid trialId, Guid studyId)
|
||||
// {
|
||||
// //var studyId = IdentifierHelper.CreateGuid(studyInstanceUid, trialId.ToString());
|
||||
|
||||
// var query = from studyDtf in _studyDtfRepository.Where(t => t.StudyId == studyId)
|
||||
// join user in _userRepository.AsQueryable() on studyDtf.CreateUserId equals user.Id
|
||||
// select new StudyDTFDTO()
|
||||
// {
|
||||
// CreateTime = studyDtf.CreateTime,
|
||||
// CreateUserId = studyDtf.CreateUserId,
|
||||
// FileName = studyDtf.FileName,
|
||||
// Id = studyDtf.Id,
|
||||
// FirstName = user.FirstName,
|
||||
// LastName = user.LastName,
|
||||
// UserName = user.UserName,
|
||||
// Path = studyDtf.Path
|
||||
// };
|
||||
|
||||
// return query.ToList();
|
||||
// }
|
||||
|
||||
// }
|
||||
//}
|
||||
Reference in New Issue
Block a user