using System.ComponentModel.DataAnnotations.Schema; using YBEE.EQM.Core; namespace YBEE.EQM.Application; /// /// 批量导入监测教师 /// public class ImportExamTeacherItem { /// /// 监测计划ID /// [Required] public int ExamPlanId { get; set; } /// /// 机构ID /// public short? SysOrgId { get; set; } /// /// 姓名 /// [Required] public string Name { get; set; } /// /// 校内职务ID /// [Required] public SchoolJobTitle SchoolJobTitle { get; set; } = SchoolJobTitle.TEACHER; /// /// 证件类型 /// [Required] public CertificateType CertificateType { get; set; } /// /// 证件号码 /// public string IdNumber { get; set; } = ""; /// /// 性别 /// public Gender? Gender { get; set; } = Core.Gender.UNKNOWN; /// /// 手机号码 /// public string Mobile { get; set; } = ""; /// /// 电子邮箱 /// public string Email { get; set; } = ""; /// /// 备注 /// public string Remark { get; set; } } /// /// 批量导入监测教师输入参数 /// public class ImportExamTeacherInput { /// /// 监测计划ID /// [Required] public int ExamPlanId { get; set; } /// /// 机构ID /// public short? SysOrgId { get; set; } /// /// 导入行 /// [Required] public List Items { get; set; } /// /// 数据导入模式 /// [Required] public DataImportMode DataImportMode { get; set; } } /// /// 添加监测教师 /// public class AddExamTeacherInput { /// /// 监测计划ID /// [Required] public int ExamPlanId { get; set; } /// /// 机构ID /// public short? SysOrgId { get; set; } /// /// 姓名 /// [Required, StringLength(100)] public string Name { get; set; } /// /// 校内职务ID /// [Required] public SchoolJobTitle SchoolJobTitle { get; set; } = SchoolJobTitle.TEACHER; /// /// 证件类型 /// [Required] public CertificateType CertificateType { get; set; } = CertificateType.NONE; /// /// 证件号码 /// [StringLength(50)] public string IdNumber { get; set; } = ""; /// /// 出生日期 /// public DateTime? BirthDate { get; set; } /// /// 性别 /// [Required] public Gender Gender { get; set; } = Gender.UNKNOWN; /// /// 手机号码 /// [StringLength(50)] public string Mobile { get; set; } = ""; /// /// 电子邮箱 /// [StringLength(200)] public string Email { get; set; } = ""; /// /// 备注 /// [StringLength(200)] public string Remark { get; set; } } /// /// 更新监测教师 /// public class UpdateExamTeacherInput : BaseId { /// /// 姓名 /// [Required, StringLength(100)] public string Name { get; set; } /// /// 校内职务ID /// [Required] public SchoolJobTitle SchoolJobTitle { get; set; } = SchoolJobTitle.TEACHER; /// /// 证件类型 /// [Required] public CertificateType CertificateType { get; set; } = CertificateType.NONE; /// /// 证件号码 /// [StringLength(50)] public string IdNumber { get; set; } = ""; /// /// 出生日期 /// public DateTime? BirthDate { get; set; } /// /// 性别 /// [Required] public Gender Gender { get; set; } = Gender.UNKNOWN; /// /// 手机号码 /// [StringLength(50)] public string Mobile { get; set; } = ""; /// /// 电子邮箱 /// [StringLength(200)] public string Email { get; set; } = ""; /// /// 备注 /// [StringLength(200)] public string Remark { get; set; } } /// /// 清空监测教师 /// public class ClearExamTeacherInput { /// /// 监测计划ID /// [Required] public int ExamPlanId { get; set; } } /// /// 分页查询监测教师 /// public class ExamTeacherPageInput : PageInputBase { /// /// 监测计划ID /// [Required] public int ExamPlanId { get; set; } /// /// 姓名 /// public string Name { get; set; } /// /// 校内职务ID /// public SchoolJobTitle? SchoolJobTitle { get; set; } /// /// 证件类型 /// public CertificateType? CertificateType { get; set; } /// /// 证件号码 /// public string IdNumber { get; set; } /// /// 性别 /// public Gender? Gender { get; set; } /// /// 手机号码 /// [StringLength(50)] public string Mobile { get; set; } /// /// 电子邮箱 /// [StringLength(200)] public string Email { get; set; } }