239 lines
		
	
	
		
			5.7 KiB
		
	
	
	
		
			C#
		
	
	
			
		
		
	
	
			239 lines
		
	
	
		
			5.7 KiB
		
	
	
	
		
			C#
		
	
	
| using IRaCIS.Application.Contracts;
 | |
| using IRaCIS.Core.Application.Contracts;
 | |
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.Linq;
 | |
| using System.Text;
 | |
| using System.Threading.Tasks;
 | |
| 
 | |
| namespace IRaCIS.Core.Application.Service.Inspection.DTO
 | |
| {
 | |
| 
 | |
|   
 | |
| 
 | |
| 
 | |
|     public class DataInspectionAddDTO
 | |
|     {
 | |
| 
 | |
|         public Guid? TrialId { get; set; }
 | |
|         public Guid? SiteId { get; set; }
 | |
|         public Guid? SubjectId { get; set; }
 | |
|         public Guid? SubjectVisitId { get; set; }
 | |
|         public string ModuleType { get; set; } = string.Empty;
 | |
|         public string OptType { get; set; } = string.Empty;
 | |
| 
 | |
| 
 | |
| 
 | |
|         public string BlindName { get; set; } = string.Empty;
 | |
|         public string Reason { get; set; } = string.Empty;
 | |
| 
 | |
| 
 | |
|         /// <summary>
 | |
|         /// 子类
 | |
|         /// </summary>
 | |
|         public string ChildrenType { get; set; } = string.Empty;
 | |
|         public bool IsSign { get; set; }
 | |
|         public string JsonDetail { get; set; } = string.Empty;
 | |
| 
 | |
|         /// <summary>
 | |
|         /// 创建人名称
 | |
|         /// </summary>
 | |
|         public string CreateUserName { get; set; } = string.Empty;
 | |
| 
 | |
|         /// <summary>
 | |
|         /// 项目名称
 | |
|         /// </summary>
 | |
|         public string TrialName { get; set; } = string.Empty;
 | |
| 
 | |
|         /// <summary>
 | |
|         /// 中心名称
 | |
|         /// </summary>
 | |
|         public string SiteName { get; set; } = string.Empty;
 | |
| 
 | |
|         /// <summary>
 | |
|         /// 受试者Code
 | |
|         /// </summary>
 | |
|         public string SubjectCode { get; set; } = string.Empty;
 | |
| 
 | |
|         /// <summary>
 | |
|         /// 访视名称
 | |
|         /// </summary>
 | |
|         public string SubjectVisitName { get; set; } = string.Empty;
 | |
| 
 | |
|         /// <summary>
 | |
|         /// 角色名称
 | |
|         /// </summary>
 | |
|         public string RoleName { get; set; } = string.Empty;
 | |
| 
 | |
| 
 | |
|         ////需要单独处理
 | |
|         //public string IP { get; set; }
 | |
| 
 | |
|         //public Guid? SignId { get; set; }
 | |
| 
 | |
|     }
 | |
| 
 | |
| 
 | |
|     public interface IInspectionDTO
 | |
|     {
 | |
|         public DataInspectionAddDTO AuditInfo { get; set; }
 | |
|     }
 | |
| 
 | |
|     public interface ISignDTO
 | |
|     {
 | |
|         public SignDTO SignInfo { get; set; }
 | |
| 
 | |
|     }
 | |
| 
 | |
|     #region Setting
 | |
|     /// <summary>
 | |
|     /// 配置 基础逻辑信息
 | |
|     /// </summary>
 | |
|     public class InsBasicTrialConfig : InspectionBase, IInspectionDTO, ISignDTO
 | |
|     {
 | |
|         public BasicTrialConfig OptCommand { get; set; }
 | |
|     }
 | |
| 
 | |
|     /// <summary>
 | |
|     /// 配置流程
 | |
|     /// </summary>
 | |
|     public class InsTrialProcessConfig : InspectionBase, IInspectionDTO, ISignDTO
 | |
|     {
 | |
|         public TrialProcessConfig OptCommand { get; set; }
 | |
|     }
 | |
| 
 | |
|     /// <summary>
 | |
|     /// 配置加急信息
 | |
|     /// </summary>
 | |
|     public class InsTrialUrgentConfig : InspectionBase, IInspectionDTO, ISignDTO
 | |
|     {
 | |
|         public TrialUrgentConfig OptCommand { get; set; }
 | |
|     }
 | |
|     #endregion
 | |
| 
 | |
| 
 | |
|     #region 受试者
 | |
|     public class InsSubjectCommand : InspectionBase, IInspectionDTO, ISignDTO
 | |
|     {
 | |
|         public SubjectCommand OptCommand { get; set; }
 | |
|     }
 | |
| 
 | |
|     public class InsUpdateSubjectStatus : InspectionBase, IInspectionDTO, ISignDTO
 | |
|     {
 | |
|         public SubjectStatusChangeCommand OptCommand { get; set; }
 | |
|     }
 | |
| 
 | |
| 
 | |
|     public class InsDeleteSubjectDto : InspectionBase, IInspectionDTO, ISignDTO
 | |
|     {
 | |
|         public DeleteSubjectDto OptCommand { get; set; }
 | |
|     }
 | |
| 
 | |
| 
 | |
|     public class DeleteSubjectDto
 | |
|     {
 | |
|         public Guid SubjectId { get; set; }
 | |
| 
 | |
|         public Guid TrialId { get; set; }
 | |
| 
 | |
|         public Guid SiteId { get; set; }
 | |
|     }
 | |
| 
 | |
|     #endregion
 | |
| 
 | |
|     /// <summary>
 | |
|     /// 用户 签名某个文档  Dto
 | |
|     /// </summary>
 | |
|     public class TrialDocumentConfirmDTO : InspectionBase, IInspectionDTO, ISignDTO
 | |
|     {
 | |
| 
 | |
|         public UserConfirmCommand OptCommand { get; set; }
 | |
| 
 | |
|     }
 | |
| 
 | |
|     public class GetDataInspectionOutDto : DataInspection
 | |
|     {
 | |
|         public string ExperimentName { get; set; } = string.Empty;
 | |
| 
 | |
|         public string SiteName { get; set; } = string.Empty;
 | |
| 
 | |
|         public string FirstName { get; set; } = string.Empty;
 | |
| 
 | |
|         public string LastName { get; set; } = string.Empty;
 | |
| 
 | |
|         public string VisitName { get; set; } = string.Empty;
 | |
| 
 | |
|         public string ParentJson { get; set; } = string.Empty;
 | |
| 
 | |
|         public string CreateUser { get; set; } = string.Empty;
 | |
|         public string UserFirstName { get; set; } = string.Empty;
 | |
|         public string UserLastName { get; set; } = string.Empty;
 | |
| 
 | |
|         public string SubjectCode { get; set; } = string.Empty;
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
|     }
 | |
| 
 | |
| 
 | |
|     public class GetDataInspectionDto : PageInput
 | |
|     {
 | |
|         /// <summary>
 | |
|         /// 功能模块
 | |
|         /// </summary>
 | |
|         public string ModuleType { get; set; } = string.Empty;
 | |
|         /// <summary>
 | |
|         /// 盲态访视名
 | |
|         /// </summary>
 | |
|         public string BlindName { get; set; } = string.Empty;
 | |
| 
 | |
|         /// <summary>
 | |
|         /// 项目iD
 | |
|         /// </summary>
 | |
|         public Guid? TrialId { get; set; }
 | |
| 
 | |
|         /// <summary>
 | |
|         /// 中心
 | |
|         /// </summary>
 | |
|         public Guid? SiteId { get; set; }
 | |
| 
 | |
|         /// <summary>
 | |
|         /// 受试者
 | |
|         /// </summary>
 | |
|         public Guid? SubjectId { get; set; }
 | |
| 
 | |
|         /// <summary>
 | |
|         /// 访视
 | |
|         /// </summary>
 | |
|         public Guid? SubjectVisitId { get; set; }
 | |
| 
 | |
|         /// <summary>
 | |
|         /// 操作类型
 | |
|         /// </summary>
 | |
|         public string OptType { get; set; } = string.Empty;
 | |
|         /// <summary>
 | |
|         /// 子类
 | |
|         /// </summary>
 | |
|         public string ChildrenType { get; set; } = string.Empty;
 | |
| 
 | |
|         /// <summary>
 | |
|         /// 修改原因
 | |
|         /// </summary>
 | |
| 
 | |
|         public string Reason { get; set; } = string.Empty;
 | |
| 
 | |
|         /// <summary>
 | |
|         /// 是否有签名
 | |
|         /// </summary>
 | |
|         public bool? IsSign { get; set; }
 | |
|     }
 | |
| 
 | |
|     public class InspectionBase
 | |
|     {
 | |
|         public DataInspectionAddDTO AuditInfo { get; set; }
 | |
| 
 | |
|         public SignDTO SignInfo { get; set; } = new SignDTO();
 | |
|     }
 | |
| }
 |