namespace IRaCIS.Core.Domain.Models; [Comment("项目 - 项目文档")] [Table("TrialDocument")] public class TrialDocument : BaseFullDeleteAuditEntity { #region 导航属性 [JsonIgnore] public List TrialDocConfirmedUserList { get; set; } [JsonIgnore] public List NeedConfirmedUserTypeList { get; set; } [JsonIgnore] public Trial Trial { get; set; } [JsonIgnore] public List TrialDocumentAttachmentList { get; set; } [JsonIgnore] [ForeignKey("FileTypeId")] public Dictionary FileType { get; set; } #endregion [Comment("需要确认的项目用户 通过TrialId 关联 用中间表过滤")] public Guid FileTypeId { get; set; } public string Name { get; set; } = string.Empty; public string Path { get; set; } = string.Empty; public Guid TrialId { get; set; } public string Description { get; set; } = string.Empty; public int SignViewMinimumMinutes { get; set; } /// /// 现有员工培训天数 /// public int? CurrentStaffTrainDays { get; set; } /// /// 新员工培训天数 /// public int? NewStaffTrainDays { get; set; } /// /// 是否发布 /// public bool IsPublish { get; set; } = true; } [Comment("项目签署文档附件")] [Table("TrialDocumentAttachment")] public class TrialDocumentAttachment : BaseFullAuditEntity { [JsonIgnore] [ForeignKey("TrialDocumentId")] public TrialDocument TrialDocument { get; set; } /// /// 项目文档Id /// public Guid TrialDocumentId { get; set; } public string Name { get; set; } = string.Empty; /// /// 文件名称 /// public string FileName { get; set; } = string.Empty; /// /// 是否下线 /// public bool OffLine { get; set; } /// /// 文件路径 /// [StringLength(1000)] public string FilePath { get; set; } = string.Empty; /// /// 文件大小 /// public decimal? FileSize { get; set; } /// /// 文件类型 /// public string FileFormat { get; set; } = string.Empty; }