using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using Abp.Domain.Entities.Auditing;
using WeApp.Authorization.Users;
using WeApp.Configuration;
namespace WeApp.TrainingCamp
{
///
/// 培训营分组信息
///
[Table("Train_CampGroups")]
public class CampGroupInfo : FullAuditedEntity
{
public const int NameLength = 50;
///
/// 分组名称
///
[MaxLength(NameLength)]
public string Name { get; set; }
///
/// 培训营
///
[MaxLength(IwbConsts.PrimaryKey)]
public string CampNo { get; set; }
[ForeignKey("CampNo")]
public CampInfo CampInfo { get; set; }
[NotMapped]
public string CampName => CampInfo?.Name ?? "";
///
/// 培训营分组状态
///
public int CampGroupState { get; set; }
///
/// 轮次
///
public int RoundIndex { get; set; }
///
/// 开始时间
///
public DateTime? StartDate { get; set; }
///
/// 结束时间
///
public DateTime? EngDate { get; set; }
///
/// 演练时长
///
public decimal TrainingMinute { get; set; }
[MaxLength(Int32.MaxValue)]
public string RunningInfo { get; set; }
}
}