using EMIS.ViewModel.CacheManage;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
namespace EMIS.ViewModel.EducationManage.EducationArrange
{
public class EducationMissionClassStudentView
{
///
/// 排课班级ID
///
[DisplayName("排课班级ID")]
public Guid EducationSchedulingClassID { get; set; }
///
/// 排课班名称
///
[DisplayName("排课班名称")]
public string SchedulingClassName { get; set; }
///
/// 学生信息ID
///
[DisplayName("学生信息ID")]
public Guid UserID { get; set; }
///
/// 学号
///
[DisplayName("学号")]
public string StudentNo { get; set; }
///
/// 姓名
///
[DisplayName("姓名")]
public string Name { get; set; }
///
/// 性别
///
[DisplayName("性别")]
public int? SexID { get; set; }
///
/// 性别
///
[DisplayName("性别")]
public string SexName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString()).Where(x => x.Value == SexID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 出生日期
///
[DisplayName("出生日期")]
public DateTime? BirthDate { get; set; }
///
/// 民族
///
[DisplayName("民族")]
public int? NationID { get; set; }
///
/// 民族
///
[DisplayName("民族")]
public string NationName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Nation.ToString()).Where(x => x.Value == NationID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 政治面貌
///
[DisplayName("政治面貌")]
public int? PoliticsID { get; set; }
///
/// 政治面貌
///
[DisplayName("政治面貌")]
public string PoliticsName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString()).Where(x => x.Value == PoliticsID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 在校状态
///
[DisplayName("在校状态")]
public int? InSchoolStatusID { get; set; }
///
/// 在校状态
///
[DisplayName("在校状态")]
public string InSchoolStatusName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString()).Where(x => x.Value == InSchoolStatusID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 学籍状态
///
[DisplayName("学籍状态")]
public int? StudentStatus { get; set; }
///
/// 学籍状态
///
[DisplayName("学籍状态")]
public string StudentStatusName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString()).Where(x => x.Value == StudentStatus).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 专业ID(Value)
///
[DisplayName("专业ID(Value)")]
public int? StandardID { get; set; }
///
/// 专业代码
///
[DisplayName("专业代码")]
public string StandardCode
{
get
{
var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Code).FirstOrDefault();
return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
}
}
///
/// 专业名称
///
[DisplayName("专业名称")]
public string StandardName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 培养层次
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
public int? EducationID { get; set; }
///
/// 培养层次
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
public string EducationName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString()).Where(x => x.Value == EducationID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 学习形式
///
[DisplayName("学习形式")]
public int? LearningformID { get; set; }
///
/// 学习形式
///
[DisplayName("学习形式")]
public string LearningformName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString()).Where(x => x.Value == LearningformID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 学制
///
[DisplayName("学制")]
public decimal? LearnSystem { get; set; }
///
/// 班级信息ID
///
[DisplayName("班级信息ID")]
public Guid? ClassmajorID { get; set; }
///
/// 班级编号
///
[DisplayName("班级编号")]
public string ClassmajorNo { get; set; }
///
/// 班级名称
///
[DisplayName("班级名称")]
public string ClassmajorName { get; set; }
///
/// 班序
///
[DisplayName("班序")]
public int? ClassNum { get; set; }
///
/// 年级
///
[DisplayName("年级")]
public int? GradeID { get; set; }
///
/// 年级
///
[DisplayName("年级")]
public string GradeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 年级专业ID
///
[DisplayName("年级专业ID")]
public Guid? GrademajorID { get; set; }
///
/// 年级专业编号
///
[DisplayName("年级专业编号")]
public string GrademajorCode { get; set; }
///
/// 年级专业名称
///
[DisplayName("年级专业名称")]
public string GrademajorName { get; set; }
///
/// 院系专业ID
///
[DisplayName("院系专业ID")]
public Guid? FacultymajorID { get; set; }
///
/// 院系专业编号
///
[DisplayName("院系专业编号")]
public string FacultymajorCode { get; set; }
///
/// 院系专业名称
///
[DisplayName("院系专业名称")]
public string FacultymajorName { get; set; }
///
/// 院系所ID
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
public Guid? CollegeID { get; set; }
///
/// 院系所代码
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
public string CollegeCode { get; set; }
///
/// 院系所名称
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeName")]
public string CollegeName { get; set; }
///
/// 校区ID
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
public Guid? CampusID { get; set; }
///
/// 校区代码
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
public string CampusNo { get; set; }
///
/// 校区名称
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
public string CampusName { get; set; }
///
/// 教学任务班ID
///
[DisplayName("教学任务班ID")]
public Guid? EducationMissionClassID { get; set; }
///
/// 教学任务ID
///
[DisplayName("教学任务ID")]
public Guid? EducationMissionID { get; set; }
///
/// 任务名称
///
[DisplayName("任务名称")]
public string MissionName { get; set; }
///
/// 学年学期ID
///
[DisplayName("学年学期ID")]
public Guid? SchoolyearID { get; set; }
///
/// 学年学期
///
[DisplayName("学年学期")]
public string SchoolyearCode { get; set; }
///
/// 学年学期对应的Value值
///
[DisplayName("Value")]
public int? Value { get; set; }
///
/// 主排课班级ID
///
[DisplayName("主排课班级ID")]
public Guid? MainScheduleClassID { get; set; }
///
/// 主排课班级编号
///
[DisplayName("主排课班级编号")]
public string MainScheduleClassNo { get; set; }
///
/// 主排课班级名称
///
[DisplayName("主排课班级名称")]
public string MainScheduleClassName { get; set; }
///
/// 任务来源
///
[DisplayName("任务来源")]
public int? MissionSourceID { get; set; }
///
/// 任务来源
///
[DisplayName("任务来源")]
public string MissionSourceName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.EM_MissionSourceType.ToString()).Where(x => x.Value == MissionSourceID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 任务类型
///
[DisplayName("任务类型")]
public int? MissionTypeID { get; set; }
///
/// 任务类型
///
[DisplayName("任务类型")]
public string MissionTypeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.EM_SourceType.ToString()).Where(x => x.Value == MissionTypeID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 任务班序
///
[DisplayName("任务班序")]
public int? OrderNo { get; set; }
///
/// 任务班名称
///
[DisplayName("任务班名称")]
public string MissionClassName { get; set; }
///
/// 课程信息ID
///
[DisplayName("课程信息ID")]
public Guid? CoursematerialID { get; set; }
///
/// 课程代码
///
[DisplayName("课程代码")]
public string CourseCode { get; set; }
///
/// 课程名称
///
[DisplayName("课程名称")]
public string CourseName { get; set; }
///
/// 开课教研室ID
///
[Required]
[DisplayName("开课教研室ID")]
public Guid? DepartmentID { get; set; }
///
/// 开课教研室代码
///
[DisplayName("开课教研室代码")]
public string DepartmentCode { get; set; }
///
/// 开课教研室
///
[DisplayName("开课教研室")]
public string DepartmentName { get; set; }
///
/// 开课院系ID
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CourseCollege")]
public Guid? CourseCollegeID { get; set; }
///
/// 开课院系代码
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CourseCollege")]
public string CourseCollegeCode { get; set; }
///
/// 开课院系
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CourseCollege")]
public string CourseCollegeName { get; set; }
///
/// 课程结构
///
[DisplayName("课程结构")]
public int? CourseStructureID { get; set; }
///
/// 课程结构
///
[DisplayName("课程结构")]
public string CourseStructureName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseStructure.ToString()).Where(x => x.Value == CourseStructureID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 课程属性
///
[DisplayName("课程属性")]
public int? CourseCategoryID { get; set; }
///
/// 课程属性
///
[DisplayName("课程属性")]
public string CourseCategoryName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseCategory.ToString()).Where(x => x.Value == CourseCategoryID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 课程类型
///
[DisplayName("课程类型")]
public int? CourseTypeID { get; set; }
///
/// 课程类型
///
[DisplayName("课程类型")]
public string CourseTypeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString()).Where(x => x.Value == CourseTypeID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 课程性质
///
[DisplayName("课程性质")]
public int? CourseQualityID { get; set; }
///
/// 课程性质
///
[DisplayName("课程性质")]
public string CourseQualityName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseQuality.ToString()).Where(x => x.Value == CourseQualityID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 课程学分
///
[DisplayName("课程学分")]
public decimal? Credit { get; set; }
///
/// 理论学时
///
[DisplayName("理论学时")]
public int? TheoryCourse { get; set; }
///
/// 实践学时
///
[DisplayName("实践学时")]
public int? Practicehours { get; set; }
///
/// 实验学时
///
[DisplayName("实验学时")]
public int? Trialhours { get; set; }
///
/// 总学时
///
[DisplayName("总学时")]
public int? Totalhours { get; set; }
///
/// 执行学时
///
[DisplayName("执行学时")]
public int? ExecHours { get; set; }
///
/// 理论周次
///
[DisplayName("理论周次")]
public int? TheoryWeeklyNum { get; set; }
///
/// 实践周次
///
[DisplayName("实践周次")]
public int? PracticeWeeklyNum { get; set; }
///
/// 实验周次
///
[DisplayName("实验周次")]
public int? TrialWeeklyNum { get; set; }
///
/// 总周次
///
[DisplayName("总周次")]
public int? SchoolweeksNum { get; set; }
///
/// 周学时
///
[DisplayName("周学时")]
public int? WeeklyHours { get; set; }
///
/// 每周次数
///
[DisplayName("每周次数")]
public int? WeeklyNum { get; set; }
///
/// 开始周次
///
[DisplayName("开始周次")]
public int? StartWeeklyNum { get; set; }
///
/// 结束周次
///
[DisplayName("结束周次")]
public int? EndWeeklyNum { get; set; }
///
/// 起止周次
///
[DisplayName("起止周次")]
public string StartEndWeeklyNum { get; set; }
///
/// 执行周次
///
[DisplayName("执行周次")]
public string ExecWeeklyNum { get; set; }
///
/// 教室类型
///
[DisplayName("教室类型")]
public int? ClassroomTypeID { get; set; }
///
/// 教室类型
///
[DisplayName("教室类型")]
public string ClassroomTypeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ClassroomType.ToString()).Where(x => x.Value == ClassroomTypeID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 教室ID
///
[DisplayName("教室")]
public Guid? ClassroomID { get; set; }
///
/// 教室编号
///
[DisplayName("教室编号")]
public string ClassroomCode { get; set; }
///
/// 教室名称
///
[DisplayName("教室名称")]
public string ClassroomName { get; set; }
///
/// 是否需要教材
///
[DisplayName("是否需要教材")]
public bool IsNeedMaterial { get; set; }
///
/// 是否需要教材
///
[DisplayName("是否需要教材")]
public string IsNeedMaterialName
{
get { return this.IsNeedMaterial != true ? "否" : "是"; }
}
///
/// 授课语言
///
[DisplayName("授课语言")]
public int? TeachinglanguageID { get; set; }
///
/// 授课语言
///
[DisplayName("授课语言")]
public string TeachinglanguageName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Teachinglanguage.ToString()).Where(x => x.Value == TeachinglanguageID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 考试方式
///
[Required]
[DisplayName("考试方式")]
public int? ExaminationModeID { get; set; }
///
/// 考试方式
///
[DisplayName("考试方式")]
public string ExaminationModeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationMode.ToString()).Where(x => x.Value == ExaminationModeID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 成绩类型
///
[Required]
[DisplayName("成绩类型")]
public int? ResultTypeID { get; set; }
///
/// 成绩类型
///
[DisplayName("成绩类型")]
public string ResultTypeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ResultType.ToString()).Where(x => x.Value == ResultTypeID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 处理方式
///
[Required]
[DisplayName("处理方式")]
public int? HandleModeID { get; set; }
///
/// 处理方式
///
[DisplayName("处理方式")]
public string HandleModeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HandleMode.ToString()).Where(x => x.Value == HandleModeID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 授课方式
///
[DisplayName("授课方式")]
public int? TeachingModeID { get; set; }
///
/// 授课方式
///
[DisplayName("授课方式")]
public string TeachingModeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString()).Where(x => x.Value == TeachingModeID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 状态
///
public int? ApprovalStatus { get; set; }
///
/// 状态
///
public string ApprovalStatusName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.EM_EducationMissionClassStatus.ToString()).Where(x => x.Value == ApprovalStatus).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 备注
///
[DisplayName("备注")]
public string Remark { get; set; }
}
}