添加项目文件。

This commit is contained in:
DK
2022-03-28 15:27:40 +08:00
parent b620fcb0cf
commit dc78fd1a09
898 changed files with 173053 additions and 0 deletions
@@ -0,0 +1,21 @@
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
{
[Table("TrialAttachment")]
public class TrialAttachment : Entity, IAuditUpdate, IAuditAdd
{
public Guid TrialId { get; set; }
public string Type { get; set; } = String.Empty;
public string DocumentName { get; set; } = String.Empty;
public string DocumentPath { get; set; } = String.Empty;
public string UserTypes { get; set; } = String.Empty;
public DateTime CreateTime { get; set; }
public Guid CreateUserId { get; set; }
public DateTime UpdateTime { get; set; }
public Guid UpdateUserId { get; set; }
}
}
@@ -0,0 +1,29 @@
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
{
public class TrialAudit:Entity
{
public int AuditType { get; set; }
public Guid TrialId { get; set; }
public Guid StudyId { get; set; } = Guid.Empty;
public Guid? SubjectId { get; set; }
public Guid OptUserId { get; set; }
public string OptUser { get; set; }
public DateTime OptTime { get; set; }=DateTime.Now;
public string Note { get; set; }
public string Detail { get; set; }
[ForeignKey("SubjectId")]
public Subject Subject { get; set; }
public Trial Trial { get; set; }
}
}
@@ -0,0 +1,112 @@
//--------------------------------------------------------------------
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2022-03-04 13:33:37
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
using IRaCIS.Core.Domain.Share;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
{
///<summary>
///TrialExternalUser
///</summary>
[Table("TrialExternalUser")]
public class TrialExternalUser : Entity, IAuditUpdate, IAuditAdd
{
public Trial Trial { get; set; }
/// <summary>
/// TrialId
/// </summary>
[Required]
public Guid TrialId { get; set; }
public Guid UserTypeId { get; set; }
/// <summary>
/// CreateTime
/// </summary>
[Required]
public DateTime CreateTime { get; set; }
/// <summary>
/// CreateUserId
/// </summary>
[Required]
public Guid CreateUserId { get; set; }
/// <summary>
/// UpdateTime
/// </summary>
[Required]
public DateTime UpdateTime { get; set; }
/// <summary>
/// UpdateUserId
/// </summary>
[Required]
public Guid UpdateUserId { get; set; }
/// <summary>
/// Phone
/// </summary>
[Required]
public string Phone { get; set; } = String.Empty;
/// <summary>
/// Email
/// </summary>
[Required]
public string Email { get; set; }
/// <summary>
/// FirstName
/// </summary>
[Required]
public string FirstName { get; set; }
/// <summary>
/// LastName
/// </summary>
[Required]
public string LastName { get; set; }
/// <summary>
/// 邀请状态
/// </summary>
[Required]
public TrialExternalUserStateEnum InviteState { get; set; } = TrialExternalUserStateEnum.WaitSent;
///// <summary>
///// 是否存在系统用户表中
///// </summary>
//[Required]
//public bool IsExist { get; set; }
public string OrganizationName { get; set; }=String.Empty;
public bool IsSystemUser{ get; set; }
public Guid SystemUserId { get; set; }
public DateTime? ExpireTime { get; set; }
public bool? IsJoin { get; set; }
public DateTime? ConfirmTime { get; set; }
public string RejectReason { get; set; }
}
}
@@ -0,0 +1,56 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
{
public class TrialSite : Entity, IAuditAdd, IAuditUpdate,ISoftDelete
{
public Guid TrialId { get; set; }
public Guid SiteId { get; set; }
public string TrialSiteCode { get; set; } = String.Empty;
public string TrialSiteAliasName { get; set; }=String.Empty;
public Guid CreateUserId { get; set; }
public DateTime CreateTime { get; set; }
public Guid UpdateUserId { get; set; }
public DateTime UpdateTime { get; set; }
public bool IsDeleted { get; set; }
//导航属性
[ForeignKey("SiteId")]
public Site Site { get; set; }
[ForeignKey("TrialId")]
public Trial Trial { get; set; }
/// <summary>
/// Site 下面有多个访视记录
/// </summary>
public List<SubjectVisit> SubjectVisitList { get; set; }
public List<TrialSiteSurvey> TrialSiteSurveyList { get; set; }
//Site 由多个人负责
public List<TrialSiteUser> CRCUserList { get; set; }
public List<Subject> SubjectList { get; set; }
public List<DicomStudy> StudyList { get; set; }
public List<NoneDicomStudy> NoneDicomStudyList { get; set; }
public List<StudyMonitor> StudyMonitorList { get; set; }
}
}
@@ -0,0 +1,88 @@
//--------------------------------------------------------------------
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2021-11-23 15:40:27
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
using IRaCIS.Core.Domain.Share;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
{
///<summary>
///UserTrialSite
///</summary>
[Table("TrialUserSite")]
public class TrialSiteUser : Entity, IAuditUpdate, IAuditAdd,ISoftDelete
{
[Required]
public Guid UserId { get; set; }
[Required]
public Guid TrialId { get; set; }
[Required]
public Guid SiteId { get; set; }
public DateTime UpdateTime { get; set; }
public DateTime CreateTime { get; set; }
public Guid CreateUserId { get; set; }
public Guid UpdateUserId { get; set; }
public bool IsDeleted { get; set; }
public DateTime? RemoveTime { get; set; }
//public Guid UserTypeId { get; set; }
//public string UserType { get; set; } = string.Empty;
//public string UserRealName { get; set; } = string.Empty;
//public UserType UserTypeEnum { get; set; }
[ForeignKey("UserId")]
public User User { get; set; }
[ForeignKey("TrialId")]
public Trial Trial { get; set; }
[ForeignKey("SiteId")]
public Site Site { get; set; }
//public DicomStudy DicomStudy { get; set; }
//public Subject Subject {get;set;}
//TrialId 不管 其实就是 User和Site 的中间关系表
[ForeignKey("SiteId")]
public TrialSite TrialSite { get; set; }
[ForeignKey("UserId")]
public TrialUser TrialUser { get; set; }
[ForeignKey("UserId")]
public UserType UserTypeRole { get; set; }
}
}
@@ -0,0 +1,54 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using IRaCIS.Core.Domain.Share;
namespace IRaCIS.Core.Domain.Models
{
/// <summary>
/// 运维人员与项目关联关系表 - 实体
/// </summary>
[Table("TrialUser")]
public partial class TrialUser : Entity, IAuditUpdate, IAuditAdd ,ISoftDelete
{
public Guid UserId { get; set; }
public Guid TrialId { get; set; }
public Trial Trial { get; set; }
[ForeignKey("UserId")]
public User User { get; set; }
public List<TrialSiteUser> SiteList { get; set; }
// 0 表示参与 1 表示暂停
//public int JoinState { get; set; }
//已经确认的 项目文档
//public List<TrialDocUserTypeConfirmedUser> TrialDocUserConfirmedList { get; set; }
//////一个用户 肯定对应一个用户类型 通过用户的UserTypeId 作为关联 弱关系 手动配置
//public TrialDocNeedConfirmedUserType TrialDocNeedConfirmedUserType { get; set; }
//public List<TrialDocument> TrialDocumentList { get; set; }
//public Guid UserTypeId { get; set; }
//public string UserRealName { get; set; }
//public string UserType { get; set; }
//public UserType UserTypeEnum { get; set; }
public Guid UpdateUserId { get; set; }
public DateTime UpdateTime { get; set; }
public Guid CreateUserId { get; set; }
public DateTime CreateTime { get; set; }
public bool IsDeleted { get; set; }
public DateTime? RemoveTime { get; set; }
public DateTime? JoinTime { get; set; }
}
}
@@ -0,0 +1,74 @@
//--------------------------------------------------------------------
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2022-03-24 13:22:08
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
using System;
using IRaCIS.Core.Domain.Share;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
{
///<summary>
///TrialUserPreparation
///</summary>
[Table("TrialUserPreparation ")]
public class TrialUserPreparation : Entity, IAuditUpdate, IAuditAdd
{
/// <summary>
/// UserId
/// </summary>
[Required]
public Guid UserId { get; set; }
/// <summary>
/// TrialId
/// </summary>
[Required]
public Guid TrialId { get; set; }
/// <summary>
/// UpdateTime
/// </summary>
[Required]
public DateTime UpdateTime { get; set; }
/// <summary>
/// CreateTime
/// </summary>
[Required]
public DateTime CreateTime { get; set; }
/// <summary>
/// CreateUserId
/// </summary>
[Required]
public Guid CreateUserId { get; set; }
/// <summary>
/// UpdateUserId
/// </summary>
[Required]
public Guid UpdateUserId { get; set; }
public DateTime? ExpireTime { get; set; }
public bool? IsJoin { get; set; }
public DateTime? JoinTime { get; set; }
public string RejectReason { get; set; }
public User User { get; set; }
public Trial Trial { get; set; }
}
}