using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Abp.Domain.Entities.Auditing; using WeOnlineApp.Authorization.Users; using WeOnlineApp.Basic; using WeOnlineApp.Configuration; namespace WeOnlineApp.TrainingCamp { /// /// 课程信息 /// [Table("Train_CampInfos")] public class CampInfo:FullAuditedEntity { public const int NameLength = 50; public const int OrganizerLength = 100; public const int ContactInfoLength = 50; public const int VariableLength = 1000; public const int PackageNoLength = 20; public const int RoleNamesLength = 500; public const int DescLength = 500; public const int TagLength = 500; public const int StudyLength = int.MaxValue; /// /// 课程名称 /// [MaxLength(NameLength)] public string Name { get; set; } /// /// 方案包编号 /// [MaxLength(PackageNoLength)] public string PackageNo { get; set; } /// /// 方案包名称 /// [MaxLength(NameLength)] public string PackageName { get; set; } /// /// 主办单位 /// [MaxLength(OrganizerLength)] public string Organizer { get; set; } /// /// 联系方式 /// [MaxLength(ContactInfoLength)] public string ContactInfo { get; set; } /// /// 课程状态 /// public int CampState { get; set; } /// /// 演练目标 /// [MaxLength(DescLength)] public string Purposes { get; set; } /// /// 考核角色 /// [MaxLength(RoleNamesLength)] public string AssessRoleNames { get; set; } /// /// 每轮总分 /// public decimal RoundScore { get; set; } /// /// 全局变量 /// [MaxLength(VariableLength)] public string Variable { get; set; } /// /// 开始时间 /// public DateTime? StartDate { get; set; } /// /// 结束时间 /// public DateTime? EndDate { get; set; } /// /// 最大演练时长 /// public decimal MaxTrainingMinute { get; set; } /// /// 课程描述 /// [MaxLength(DescLength)] public string Description { get; set; } /// /// 行为标签 /// [MaxLength(TagLength)] public string EvalBehaviorTags { get; set; } /// /// 预演学习 /// [MaxLength(StudyLength)] public string StudyContent { get; set; } /// /// 课程类型 /// [MaxLength(IwbConsts.PrimaryKey)] public string SubjectType { get; set; } [ForeignKey("SubjectType")] public SubjectCategoryInfo Subject { get; set; } /// /// 课程积分 /// public int SubjectPoint { get; set; } /// /// 备注 /// [MaxLength(RemarkLength)] public string Remark { get; set; } public const int RemarkLength = 500; } }