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 ScoreConvertByLevelView
{
///
/// 主键ID
///
public Guid? ScoreConvertByLevelScoreID { get; set; }
///
/// 学年学期
///
[DisplayName("学年学期")]
public Guid? SchoolyearID { get; set; }
///
/// 学年学期
///
public string SchoolyearCode { get; set; }
///
/// 过级成绩ID
///
[Required]
[DisplayName("考试科目")]
public Guid? LevelScoreID { get; set; }
///
/// 课程主键
///
[Required]
[DisplayName("课程")]
public Guid? CoursematerialID { get; set; }
///
/// 课程名称
///
public string CourseName { get; set; }
///
/// 课程代码
///
public string CourseCode { get; set; }
///
/// 成绩
///
public decimal? Score { get; set; }
public string ExaminationSubjectName { get; set; }
///
/// 过级成绩
///
public decimal? LeveLScore { get; set; }
///
/// 院系所ID
///
public Guid? CollegeID { get; set; }
///
/// 院系所
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
public string CollegeName { get; set; }
///
/// 替换的院系所
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
public Guid? ReplaceCollegeID { get; set; }
///
/// 年级
///
[DisplayName("年级")]
public int? Year { get; set; }
///
/// 年级
///
[DisplayName("年级")]
public int? ReplaceYear { get; set; }
///
/// 专业名称ID
///
[DisplayName("专业")]
public int? StandardID { get; set; }
///
/// 专业名称
///
public string StandardStr
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
.Where(x => x.Value == StandardID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 专业名称
///
[DisplayName("专业")]
public int? ReplaceStandardID { get; set; }
///
/// 班级ID
///
[DisplayName("班级名称")]
public Guid? ClassmajorID { get; set; }
///
/// 班级ID
///
[DisplayName("班级名称")]
public Guid? ReplaceClassmajorID { get; set; }
///
/// 班级名称
///
public string ClassmajorName { get; set; }
///
/// 用户ID
///
public Guid? UserID { get; set; }
///
/// 学号
///
public string LoginID { get; set; }
///
/// 姓名
///
public string UserName { get; set; }
///
/// 考试类型ID
///
[DisplayName("考试类型")]
public Nullable ExaminationTypeID { get; set; }
///
/// 考试类型
///
[DisplayName("考试类型")]
public string ExaminationTypeName { get; set; }
///
/// 考试类别ID
///
[DisplayName("考试类别")]
public Nullable ExaminationFormID { get; set; }
///
/// 考试类别
///
[DisplayName("考试类别")]
public string ExaminationFormName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationForm.ToString())
.Where(x => x.Value == ExaminationFormID)
.Select(x => x.Name).FirstOrDefault();
}
}
}
}