using YBEE.EQM.Core;
namespace YBEE.EQM.Application;
///
/// 科目极简输出参数
///
public class CourseMiniOutput
{
///
/// 主键
///
[Required]
public short Id { get; set; }
///
/// 名称
///
[Required]
public string Name { get; set; }
///
/// 简称
///
[Required]
public string ShortName { get; set; }
}
///
/// 科目简要输出参数
///
public class CourseLiteOutput
{
///
/// 主键
///
[Required]
public short Id { get; set; }
///
/// 名称
///
[Required]
public string Name { get; set; }
///
/// 简称
///
[Required]
public string ShortName { get; set; }
///
/// 别称
///
public string NickName { get; set; }
///
/// 状态
///
[Required]
public CommonStatus Status { get; set; }
}
///
/// 科目完整输出参数
///
public class CourseOutput : DEntityOutput
{
///
/// 名称
///
[Required]
public string Name { get; set; }
///
/// 简称
///
[Required]
public string ShortName { get; set; }
///
/// 别称
///
public string NickName { get; set; }
///
/// 备注
///
public string Remark { get; set; }
}
///
/// 高中科目对象
///
public class NceeCourseDto
{
///
/// 主键
///
[Required]
public short Id { get; set; }
///
/// 名称
///
[Required]
public string Name { get; set; }
///
/// 简称
///
[Required]
public string ShortName { get; set; }
///
/// 别称
///
public string NickName { get; set; }
///
/// 序
///
public short Sequence { get; set; }
///
/// 是否跳过
///
/// 首选科目ID
///
public bool IsSkip(short directionCourseId)
{
if (Id == 4 && directionCourseId == 8) { return true; }
if (Id == 8 && directionCourseId == 4) { return true; }
return false;
}
}