修改一版
parent
5c4485a3f0
commit
988c5959ae
|
@ -49,23 +49,32 @@ namespace IRaCIS.Application.Services
|
||||||
return ResponseOutput.Ok(entity.Id.ToString());
|
return ResponseOutput.Ok(entity.Id.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
///// <summary>
|
||||||
/// 分页获取
|
///// 分页获取
|
||||||
/// </summary>
|
///// </summary>
|
||||||
/// <param name="query"></param>
|
///// <param name="query"></param>
|
||||||
/// <returns></returns>
|
///// <returns></returns>
|
||||||
[HttpPost]
|
//[HttpPost]
|
||||||
public async Task<PageOutput<ClinicalDataSetView>> GetClinicalDataSetList(ClinicalDataQuery query)
|
//public async Task<PageOutput<ClinicalDataSetView>> GetClinicalDataSetList(ClinicalDataQuery query)
|
||||||
{
|
//{
|
||||||
var readquery = _clinicalDataSetRepository.AsQueryable()
|
// var readquery = _clinicalDataSetRepository.AsQueryable()
|
||||||
.Where( x => x.TrialId == query.TrialId)
|
// .Where( x => x.TrialId == query.TrialId)
|
||||||
.WhereIf(query.ClinicalDataSetName!=string.Empty,x=>x.ClinicalDataSetName.Contains(query.ClinicalDataSetName))
|
// .WhereIf(query.ClinicalDataSetName!=string.Empty,x=>x.ClinicalDataSetName.Contains(query.ClinicalDataSetName))
|
||||||
.ProjectTo<ClinicalDataSetView>(_mapper.ConfigurationProvider);
|
// .ProjectTo<ClinicalDataSetView>(_mapper.ConfigurationProvider);
|
||||||
var pageList = await readquery.ToPagedListAsync(query.PageIndex, query.PageSize, query.SortField == null ? "CreateTime" : query.SortField,
|
// var pageList = await readquery.ToPagedListAsync(query.PageIndex, query.PageSize, query.SortField == null ? "CreateTime" : query.SortField,
|
||||||
query.Asc);
|
// query.Asc);
|
||||||
|
|
||||||
return pageList;
|
// return pageList;
|
||||||
}
|
//}
|
||||||
|
|
||||||
|
///// <summary>
|
||||||
|
///// 设置项目
|
||||||
|
///// </summary>
|
||||||
|
///// <returns></returns>
|
||||||
|
//public async Task<IResponseOutput> SetClinicalDataCheck()
|
||||||
|
//{
|
||||||
|
// _clinicalDataSetRepository.UpdateAsync()
|
||||||
|
//}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取系统临床数据
|
/// 获取系统临床数据
|
||||||
|
@ -79,6 +88,13 @@ namespace IRaCIS.Application.Services
|
||||||
.ProjectTo<ClinicalDataSetView>(_mapper.ConfigurationProvider).ToListAsync();
|
.ProjectTo<ClinicalDataSetView>(_mapper.ConfigurationProvider).ToListAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取项目的临床数据
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="inDto"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
|
||||||
|
[HttpGet]
|
||||||
public async Task<List<ClinicalDataSetView>> GetTrialClinicalDataSetList(AddTrialClinicalDataSetInDto inDto)
|
public async Task<List<ClinicalDataSetView>> GetTrialClinicalDataSetList(AddTrialClinicalDataSetInDto inDto)
|
||||||
{
|
{
|
||||||
await this.AddTrialClinicalDataSet(inDto);
|
await this.AddTrialClinicalDataSet(inDto);
|
||||||
|
|
|
@ -39,6 +39,16 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// 上传方式
|
/// 上传方式
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ClinicalUploadType ClinicalUploadType { get; set; }
|
public ClinicalUploadType ClinicalUploadType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 是否启用
|
||||||
|
/// </summary>
|
||||||
|
public bool IsEnable { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 是否勾选
|
||||||
|
/// </summary>
|
||||||
|
public bool IsCheck { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ClinicalDataView : ClinicalData
|
public class ClinicalDataView : ClinicalData
|
||||||
|
@ -139,6 +149,26 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public class SetClinicalDataCheckIndto
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 项目ID
|
||||||
|
/// </summary>
|
||||||
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
|
List<>
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 勾选的ID
|
||||||
|
/// </summary>
|
||||||
|
public List<Guid> CheckIds { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 启用的ID
|
||||||
|
/// </summary>
|
||||||
|
public List<Guid> EnableIds { get; set; }
|
||||||
|
}
|
||||||
public class AddTrialClinicalDataSetInDto
|
public class AddTrialClinicalDataSetInDto
|
||||||
{
|
{
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
|
|
|
@ -165,7 +165,7 @@ namespace IRaCIS.Application.Services
|
||||||
SiteId = x.Key.SiteId,
|
SiteId = x.Key.SiteId,
|
||||||
SubjectCode = x.Key.SubjectCode,
|
SubjectCode = x.Key.SubjectCode,
|
||||||
SubjectId = x.Key.SubjectId,
|
SubjectId = x.Key.SubjectId,
|
||||||
Data = x.ToList()
|
Data = x.OrderBy(x=>x.ModuleType).ThenBy(x=>x.VisitNum).ToList(),
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|
||||||
PageOutput<GetReadModuleDtoOut> pageOutput = new PageOutput<GetReadModuleDtoOut>()
|
PageOutput<GetReadModuleDtoOut> pageOutput = new PageOutput<GetReadModuleDtoOut>()
|
||||||
|
|
Loading…
Reference in New Issue