using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using EMIS.ViewModel.CacheManage;
namespace EMIS.ViewModel.ScoreManage
{
public class FinallyScoreView
{
///
/// 最终成绩ID
///
[DisplayName("最终成绩ID")]
public Guid? FinallyScoreID { get; set; }
///
/// 学年学期
///
[Required]
[DisplayName("学年学期")]
public Guid? SchoolyearID { get; set; }
///
/// 学年学期
///
[DisplayName("学年学期")]
public string SchoolyearCode { get; set; }
///
/// 学生ID
///
[Required]
[DisplayName("学生ID")]
public Guid? UserID { get; set; }
///
/// 学号
///
[DisplayName("学号")]
public string LoginID { get; set; }
///
/// 姓名
///
[DisplayName("姓名")]
public string UserName { get; set; }
///
/// 班级信息ID
///
[DisplayName("班级信息ID")]
public Guid? ClassmajorID { get; set; }
///
/// 班级编号
///
[DisplayName("班级编号")]
public string ClassmajorNo { get; set; }
///
/// 班级名称
///
[DisplayName("班级名称")]
public string ClassmajorName { get; set; }
///
/// 院系所
///
[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 CollegeNo { get; set; }
///
/// 院系所
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
public string CollegeName { get; set; }
///
/// 学年数
///
[Required]
[DisplayName("学年数")]
public int? SchoolyearNumID { get; set; }
///
/// 学年数
///
[DisplayName("学年数")]
public string SchoolyearNumName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString())
.Where(x => x.Value == SchoolyearNumID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 开课学期
///
[DisplayName("开课学期")]
public int? StarttermID { get; set; }
///
/// 开课学期
///
public string StarttermName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Startterm.ToString())
.Where(x => x.Value == StarttermID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 录入班级名称
///
[Required]
[DisplayName("录入班级名称")]
public string ClassName { get; set; }
///
/// 课程名称
///
[Required]
[DisplayName("课程名称")]
public Guid? CoursematerialID { get; set; }
///
/// 课程代码
///
[DisplayName("课程代码")]
public string CourseCode { get; set; }
///
/// 课程名称
///
[DisplayName("课程名称")]
public string CourseName { get; set; }
///
/// 开课教研室
///
[Required]
[DisplayName("开课教研室")]
public Guid? DepartmentID { get; set; }
///
/// 开课教研室代码
///
[DisplayName("开课教研室代码")]
public string DepartmentNo { get; set; }
///
/// 开课教研室
///
[DisplayName("开课教研室")]
public string DepartmentName { get; set; }
///
/// 课程类型
///
[Required]
[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 bool IsMainCourse { get; set; }
///
/// 是否学位课程
///
[DisplayName("是否学位课程")]
public string IsMainCourseName
{
get { return this.IsMainCourse == true ? "是" : "否"; }
}
///
/// 选修类别
///
[DisplayName("选修类别")]
public int? CourseSelectTypeID { get; set; }
///
/// 选修类别
///
[DisplayName("选修类别")]
public string CourseSelectTypeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseSelectType.ToString())
.Where(x => x.Value == CourseSelectTypeID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 背景颜色(课程类型)
///
[DisplayName("背景颜色")]
public string CourseTypeColour { get; set; }
///
/// 课程学分
///
[Required]
[DisplayName("课程学分")]
[RegularExpression(@"^\d+(\.\d{2})?$", ErrorMessage = "请输整数或保留2位小数")]
public decimal? Credit { get; set; }
///
/// 总学时
///
[Required]
[DisplayName("总学时")]
public int? TotalHours { get; set; }
///
/// 是否计划(执行计划)
///
[DisplayName("是否计划")]
public bool IsExecutablePlan { get; set; }
///
/// 是否计划(执行计划)
///
[DisplayName("是否计划")]
public string IsExecutablePlanName
{
get { return this.IsExecutablePlan == true ? "是" : "否"; }
}
///
/// 计划状态(执行计划)
///
[DisplayName("计划状态")]
public int? ExecutablePlanStatus { get; set; }
///
/// 计划状态(执行计划)
///
[DisplayName("计划状态")]
public string ExecutablePlanStatusName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.EM_ExecuteStatus.ToString())
.Where(x => x.Value == ExecutablePlanStatus)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 设定类型
///
[Required]
[DisplayName("设定类型")]
public int? ExaminationType { get; set; }
///
/// 设定类型
///
[DisplayName("设定类型")]
public string ExaminationTypeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationType.ToString())
.Where(x => x.Value == ExaminationType)
.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? 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 DateTime? ExamsDatetime { get; set; }
///
/// 录入人
///
[Required]
[DisplayName("录入人")]
public Guid? CreatorUserID { get; set; }
///
/// 录入人
///
[DisplayName("录入人")]
public string CreatorUserNo { get; set; }
///
/// 录入人
///
[DisplayName("录入人")]
public string CreatorUserName { get; set; }
///
/// 录入截止日期
///
[DisplayName("录入截止日期")]
public DateTime? EntryDeadlineTime { get; set; }
///
/// 成绩类型
///
[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? ExamsCategoryID { get; set; }
///
/// 考试性质
///
[DisplayName("考试性质")]
public string ExamsCategoryName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsCategory.ToString())
.Where(x => x.Value == ExamsCategoryID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 考试状态
///
[DisplayName("考试状态")]
public int? ExamsStateID { get; set; }
///
/// 考试状态
///
public string ExamsStateName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsState.ToString())
.Where(x => x.Value == ExamsStateID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 平时成绩
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Peacetime")]
public decimal? Pingshi { get; set; }
///
/// 技术成绩
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Technique")]
public decimal? Jishu { get; set; }
///
/// 理论成绩
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Theoretical")]
public decimal? Lilun { get; set; }
///
/// 总成绩
///
[DisplayName("总成绩")]
public decimal? TotalScore { get; set; }
///
/// 成绩学分
///
[DisplayName("成绩学分")]
public decimal? ScoreCredit { get; set; }
///
/// 绩点
///
[DisplayName("绩点")]
public decimal? GradePoint { get; set; }
///
/// 备注
///
[DisplayName("备注")]
public string Remarks { get; set; }
///
/// 状态
///
[DisplayName("状态")]
public int? RecordStatus { get; set; }
///
/// 创建人ID
///
[DisplayName("创建人ID")]
public Guid? CreateUserID { get; set; }
///
/// 创建时间
///
[DisplayName("创建时间")]
public DateTime? CreateTime { get; set; }
///
/// 修改人ID
///
[DisplayName("修改人ID")]
public Guid? ModifyUserID { get; set; }
///
/// 修改时间
///
[DisplayName("修改时间")]
public DateTime? ModifyTime { get; set; }
[DisplayName("序号")]
public int? OrderNo { get; set; }
}
}