Merge branch 'Test.IRC' of http://192.168.3.69:3000/XCKJ/irc-netcore-api into Test.IRC
commit
aea09998f9
|
@ -12,7 +12,7 @@ namespace IRaCIS.Application.Contracts
|
|||
{
|
||||
public Guid? Id { get; set; }
|
||||
public string SiteName { get; set; } = String.Empty;
|
||||
|
||||
public string SiteNameCN { get; set; } = String.Empty;
|
||||
public int Code { get; set; }
|
||||
public string SiteCode { get; set; } = String.Empty;
|
||||
|
||||
|
@ -54,7 +54,7 @@ namespace IRaCIS.Application.Contracts
|
|||
|
||||
public string City { get; set; } = string.Empty;
|
||||
|
||||
|
||||
public string Province { get; set; } = string.Empty;
|
||||
public string Country { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
|
@ -31,6 +31,7 @@ namespace IRaCIS.Application.Services
|
|||
.WhereIf(!string.IsNullOrWhiteSpace(searchModel.AliasName), t => t.AliasName.Contains(searchModel.AliasName))
|
||||
.WhereIf(!string.IsNullOrWhiteSpace(searchModel.City), t => t.City.Contains(searchModel.City))
|
||||
.WhereIf(!string.IsNullOrWhiteSpace(searchModel.Country), t => t.Country.Contains(searchModel.Country))
|
||||
.WhereIf(!string.IsNullOrWhiteSpace(searchModel.Province), t => t.Country.Contains(searchModel.Province))
|
||||
.ProjectTo<SiteSelectDTO>(_mapper.ConfigurationProvider);
|
||||
|
||||
|
||||
|
|
|
@ -165,7 +165,7 @@ namespace IRaCIS.Core.Application.Services
|
|||
.WhereIf(!string.IsNullOrWhiteSpace(param.UserKeyInfo), t => t.CRCUserList.Any(k => (k.User.FullName).Contains(param.UserKeyInfo)
|
||||
|| k.User.UserName.Contains(param.UserKeyInfo) || k.User.EMail.Contains(param.UserKeyInfo)))
|
||||
|
||||
.ProjectTo<SiteStatSimpleDTO>(_mapper.ConfigurationProvider);
|
||||
.ProjectTo<SiteStatSimpleDTO>(_mapper.ConfigurationProvider ,new { isEn_Us = _userInfo.IsEn_Us });
|
||||
|
||||
|
||||
var result = await siteStatQuery.ToPagedListAsync(param.PageIndex,
|
||||
|
@ -198,7 +198,7 @@ namespace IRaCIS.Core.Application.Services
|
|||
.WhereIf(!string.IsNullOrWhiteSpace(searchModel.AliasName), t => t.AliasName.Contains(searchModel.AliasName))
|
||||
.WhereIf(!string.IsNullOrWhiteSpace(searchModel.City), t => t.City.Contains(searchModel.City))
|
||||
.WhereIf(!string.IsNullOrWhiteSpace(searchModel.Country), t => t.Country.Contains(searchModel.Country))
|
||||
.ProjectTo<TrialSiteScreeningDTO>(_mapper.ConfigurationProvider, new { trialId = searchModel.TrialId });
|
||||
.ProjectTo<TrialSiteScreeningDTO>(_mapper.ConfigurationProvider, new { trialId = searchModel.TrialId , isEn_Us =_userInfo.IsEn_Us});
|
||||
|
||||
|
||||
return await siteQueryable.ToPagedListAsync(searchModel.PageIndex,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
using AutoMapper;
|
||||
using AutoMapper.EquivalencyExpression;
|
||||
using DocumentFormat.OpenXml.Spreadsheet;
|
||||
using IRaCIS.Application.Contracts;
|
||||
using IRaCIS.Core.Application.Contracts;
|
||||
using IRaCIS.Core.Application.Contracts.DTO;
|
||||
|
@ -110,8 +111,11 @@ namespace IRaCIS.Core.Application.Service
|
|||
.ForMember(d => d.HospitalName, u => u.MapFrom(s => s.Hospital.HospitalName));
|
||||
|
||||
//trial site 选择列表 subjectVisit pannel 模式添加的时候
|
||||
var isEn_Us = false;
|
||||
|
||||
CreateMap<Site, TrialSiteScreeningDTO>()
|
||||
.ForMember(d => d.IsSelect, u => u.MapFrom(s => s.TrialSiteList.Any(k => k.TrialId == trialId)));
|
||||
.ForMember(d => d.IsSelect, u => u.MapFrom(s => s.TrialSiteList.Any(k => k.TrialId == trialId)))
|
||||
.ForMember(d => d.SiteName, u => u.MapFrom(c=> isEn_Us?c.SiteName:c.SiteNameCN));
|
||||
|
||||
#region 项目 stie pannel
|
||||
|
||||
|
@ -144,7 +148,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
CreateMap<TrialSite, SiteStatSimpleDTO>().IncludeMembers(t => t.Site)
|
||||
.ForMember(d => d.Id, u => u.MapFrom(s => s.Id))
|
||||
.ForMember(d => d.UpdateTime, u => u.MapFrom(s => s.UpdateTime))
|
||||
.ForMember(d => d.Site, u => u.MapFrom(s => s.Site.SiteName))
|
||||
.ForMember(d => d.Site, u => u.MapFrom(s => isEn_Us ?s.Site.SiteName:s.Site.SiteNameCN))
|
||||
.ForMember(d => d.Hospital, u => u.MapFrom(s => s.Site.Hospital.HospitalName))
|
||||
.ForMember(d => d.UserCount, u => u.MapFrom(s => s.CRCUserList.Count()))
|
||||
.ForMember(d => d.UserNameList, u => u.MapFrom(s => s.CRCUserList.Where(t => t.IsDeleted == false).Select(u => u.User.FullName)));
|
||||
|
@ -162,7 +166,6 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
CreateMap<AssginSiteCRCCommand, TrialSiteUser>();
|
||||
|
||||
var isEn_Us = false;
|
||||
|
||||
CreateMap<Domain.Models.Trial, TrialConfigDTO>().ForMember(t => t.TrialId, u => u.MapFrom(c => c.Id))
|
||||
.ForMember(t => t.TrialCriterionIds, u => u.MapFrom(c => c.ReadingQuestionCriterionTrialList.Where(v =>v.IsConfirm).OrderBy(x=>x.ShowOrder).Select(r => r.Id)))
|
||||
|
|
|
@ -9,15 +9,15 @@ namespace IRaCIS.Core.Domain.Models
|
|||
{
|
||||
[JsonIgnore]
|
||||
public Hospital Hospital { get; set; }
|
||||
public string SiteName { get; set; }
|
||||
|
||||
public string SiteName { get; set; } = string.Empty;
|
||||
public string SiteNameCN{ get; set; } = string.Empty;
|
||||
public string AliasName { get; set; } = string.Empty;
|
||||
public string SiteCode { get; set; }
|
||||
|
||||
public int Code { get; set; }
|
||||
|
||||
public string City { get; set; }
|
||||
public string Country { get; set; }
|
||||
public string City { get; set; } = string.Empty;
|
||||
public string Country { get; set; } = string.Empty;
|
||||
public Guid? HospitalId { get; set; }
|
||||
public int State { get; set; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue