修改一版
							parent
							
								
									31a09ea99c
								
							
						
					
					
						commit
						72b8b579e2
					
				| 
						 | 
					@ -84,6 +84,13 @@
 | 
				
			||||||
            <param name="item"></param>
 | 
					            <param name="item"></param>
 | 
				
			||||||
            <returns></returns>
 | 
					            <returns></returns>
 | 
				
			||||||
        </member>
 | 
					        </member>
 | 
				
			||||||
 | 
					        <member name="M:IRaCIS.Core.Application.Service.FrontAuditConfigService.FullyReplicated(IRaCIS.Core.Application.ViewModel.FullyReplicated)">
 | 
				
			||||||
 | 
					            <summary>
 | 
				
			||||||
 | 
					            完全复制其他子项到当前项
 | 
				
			||||||
 | 
					            </summary>
 | 
				
			||||||
 | 
					            <param name="fully"></param>
 | 
				
			||||||
 | 
					            <returns></returns>
 | 
				
			||||||
 | 
					        </member>
 | 
				
			||||||
        <member name="M:IRaCIS.Core.Application.Service.FrontAuditConfigService.CopyOtherToThisItem(IRaCIS.Core.Application.ViewModel.CopyOtherToThisItem)">
 | 
					        <member name="M:IRaCIS.Core.Application.Service.FrontAuditConfigService.CopyOtherToThisItem(IRaCIS.Core.Application.ViewModel.CopyOtherToThisItem)">
 | 
				
			||||||
            <summary>
 | 
					            <summary>
 | 
				
			||||||
            Cope子项数据
 | 
					            Cope子项数据
 | 
				
			||||||
| 
						 | 
					@ -470,6 +477,16 @@
 | 
				
			||||||
        <member name="T:IRaCIS.Core.Application.ViewModel.FrontAuditConfigView">
 | 
					        <member name="T:IRaCIS.Core.Application.ViewModel.FrontAuditConfigView">
 | 
				
			||||||
            <summary> FrontAuditConfigView  列表视图模型 </summary>
 | 
					            <summary> FrontAuditConfigView  列表视图模型 </summary>
 | 
				
			||||||
        </member>
 | 
					        </member>
 | 
				
			||||||
 | 
					        <member name="P:IRaCIS.Core.Application.ViewModel.FullyReplicated.DataFromItem">
 | 
				
			||||||
 | 
					            <summary>
 | 
				
			||||||
 | 
					            数据来源对象
 | 
				
			||||||
 | 
					            </summary>
 | 
				
			||||||
 | 
					        </member>
 | 
				
			||||||
 | 
					        <member name="P:IRaCIS.Core.Application.ViewModel.FullyReplicated.ThisTiem">
 | 
				
			||||||
 | 
					            <summary>
 | 
				
			||||||
 | 
					            要赋值到的对象
 | 
				
			||||||
 | 
					            </summary>
 | 
				
			||||||
 | 
					        </member>
 | 
				
			||||||
        <member name="T:IRaCIS.Core.Application.ViewModel.FrontAuditConfigQuery">
 | 
					        <member name="T:IRaCIS.Core.Application.ViewModel.FrontAuditConfigQuery">
 | 
				
			||||||
            <summary>FrontAuditConfigQuery  列表查询参数模型</summary>
 | 
					            <summary>FrontAuditConfigQuery  列表查询参数模型</summary>
 | 
				
			||||||
        </member>
 | 
					        </member>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -48,7 +48,20 @@ namespace IRaCIS.Core.Application.ViewModel
 | 
				
			||||||
        public Guid Id { get; set; }
 | 
					        public Guid Id { get; set; }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public class FullyReplicated
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        /// <summary>
 | 
				
			||||||
 | 
					        /// 数据来源对象
 | 
				
			||||||
 | 
					        /// </summary>
 | 
				
			||||||
 | 
					        public Guid DataFromItem { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        /// <summary>
 | 
				
			||||||
 | 
					        /// 要赋值到的对象
 | 
				
			||||||
 | 
					        /// </summary>
 | 
				
			||||||
 | 
					        public Guid ThisTiem { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public class CopyOtherToThisItem
 | 
					    public class CopyOtherToThisItem
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -127,7 +127,27 @@ namespace IRaCIS.Core.Application.Service
 | 
				
			||||||
                       select childrenType).OrderBy(x=>x.Sort).ToListAsync();
 | 
					                       select childrenType).OrderBy(x=>x.Sort).ToListAsync();
 | 
				
			||||||
            return list;
 | 
					            return list;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
         
 | 
					
 | 
				
			||||||
 | 
					        /// <summary>
 | 
				
			||||||
 | 
					        /// 完全复制其他子项到当前项
 | 
				
			||||||
 | 
					        /// </summary>
 | 
				
			||||||
 | 
					        /// <param name="fully"></param>
 | 
				
			||||||
 | 
					        /// <returns></returns>
 | 
				
			||||||
 | 
					        [HttpPost]
 | 
				
			||||||
 | 
					        public async Task<IResponseOutput> FullyReplicated(FullyReplicated fully)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            await _frontAuditConfigRepository.DeleteFromQueryAsync(x => x.ParentId == fully.ThisTiem);
 | 
				
			||||||
 | 
					            var list = await _frontAuditConfigRepository.Where(x => x.ParentId == fully.DataFromItem).ToListAsync();
 | 
				
			||||||
 | 
					            list.ForEach(x =>
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                x.ParentId = fully.ThisTiem;
 | 
				
			||||||
 | 
					            });
 | 
				
			||||||
 | 
					            await _frontAuditConfigRepository.AddRangeAsync(list);
 | 
				
			||||||
 | 
					            await _frontAuditConfigRepository.SaveChangesAsync();
 | 
				
			||||||
 | 
					            return ResponseOutput.Ok();
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// Cope子项数据
 | 
					        /// Cope子项数据
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -106,6 +106,17 @@ namespace IRaCIS.Core.Infra.EFCore.Common
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            // 签名模板
 | 
				
			||||||
 | 
					            foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(SystemBasicData)))
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                await InsertInspection<SystemBasicData>(item, type, x => new DataInspection()
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    VisitStageId = x.Id,
 | 
				
			||||||
 | 
					                });
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            // 项目
 | 
					            // 项目
 | 
				
			||||||
            foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(Trial)))
 | 
					            foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(Trial)))
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
| 
						 | 
					@ -156,6 +167,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            // 检查
 | 
					            // 检查
 | 
				
			||||||
            foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(DicomStudy)))
 | 
					            foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(DicomStudy)))
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue