using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Abp.Domain.Entities.Auditing; using WeApp.Authorization.Users; using WeApp.Configuration; namespace WeApp.TrainingCamp { /// /// 培训营分组画像信息 /// [Table("Train_CampGroupPortraits")] public class GroupPortraitInfo : AuditedEntity { public const int RemarkLength = 1000; /// /// 培训营编号 /// [MaxLength(IwbConsts.PrimaryKey)] public string CampNo { get; set; } /// /// 分组编号 /// [MaxLength(IwbConsts.PrimaryKey)] public string GroupNo { get; set; } [ForeignKey("GroupNo")] public CampGroupInfo GroupInfo { get; set; } [NotMapped] public string GroupName => GroupInfo?.Name ?? ""; [NotMapped] public DateTime? StartDate => GroupInfo?.StartDate; [NotMapped] public DateTime? EngDate => GroupInfo?.EngDate; [NotMapped] public decimal TrainingMinute => GroupInfo?.TrainingMinute??0; [NotMapped] public string CampName => GroupInfo?.CampInfo?.Name ?? ""; /// /// 情景数量 /// public int SceneCount { get; set; } /// /// 角色数量 /// public int RoleCount { get; set; } /// /// 指令数量 /// public int CmdCount { get; set; } /// /// 情景说明 /// [MaxLength(RemarkLength)] public string SceneRemark { get; set; } /// /// 四攻说明 /// [MaxLength(RemarkLength)] public string SiGongRemark { get; set; } /// /// 五力说明 /// [MaxLength(RemarkLength)] public string WuLiRemark { get; set; } /// /// 缺陷与不足 /// [MaxLength(RemarkLength)] public string ShortRemark { get; set; } /// /// 情景信息 /// [MaxLength(int.MaxValue)] public string SceneInfos { get; set; } /// /// 推演网格信息 /// [MaxLength(int.MaxValue)] public string TrainingInfos { get; set; } /// /// 角色指令信息 /// [MaxLength(int.MaxValue)] public string RoleCmdInfos { get; set; } /// /// 轮次得分信息 /// [MaxLength(int.MaxValue)] public string RoundScoreInfos { get; set; } /// /// 四攻信息 /// [MaxLength(int.MaxValue)] public string SiGongInfos { get; set; } /// /// 五力信息 /// [MaxLength(int.MaxValue)] public string WuLiInfos { get; set; } /// /// 专家评语 /// [MaxLength(RemarkLength)] public string ZhuanJiaRemark { get; set; } } }