using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using EMIS.ViewModel.CacheManage;
namespace EMIS.ViewModel.MinorManage.MinorApply
{
public class MinorApplyView
{
///
/// 辅修专业学生报名ID
///
[DisplayName("辅修专业学生报名ID")]
public Guid StudentMinorRegistID { get; set; }
///
/// 学生ID
///
[DisplayName("学生ID")]
public Guid? UserID { get; set; }
///
/// 学号
///
[DisplayName("学号")]
public string LoginID { get; set; }
///
/// 学生姓名
///
[DisplayName("学生姓名")]
public string UserName { get; set; }
///
/// 学年学期ID
///
[DisplayName("学年学期ID")]
public Guid? SchoolyearID { get; set; }
///
/// 学年学期
///
[DisplayName("学年学期")]
public string SchoolyearCode { get; set; }
///
/// 年级
///
[DisplayName("年级")]
public int? GradeYearID { get; set; }
///
/// 年级
///
[DisplayName("年级")]
public string Grade
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeYearID).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; }
///
/// 班级名称
///
[Required]
[DisplayName("班级名称")]
public Guid? ClassmajorID { get; set; }
///
/// 班级编号
///
[DisplayName("班级编号")]
public string ClassmajorCode { get; set; }
///
/// 班级名称
///
[DisplayName("班级名称")]
public string ClassmajorName { get; set; }
///
/// 辅修专业ID
///
[DisplayName("辅修专业ID")]
public Guid? GrademinorID { get; set; }
///
/// 辅修专业代码
///
[DisplayName("辅修专业代码")]
public string GrademinorCode { get; set; }
///
/// 辅修专业名称
///
[DisplayName("辅修专业名称")]
public string GrademinorName { get; set; }
///
/// 学院ID
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
public Guid? CollegeID { get; set; }
///
/// 学院代码
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
public string CollegeCode { get; set; }
///
/// 学院名称
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
public string CollegeName { get; set; }
///
/// 开放状态
///
[DisplayName("开放状态")]
public int? OpenStatus { get; set; }
///
/// 开放状态
///
[DisplayName("开放状态")]
public string OpenStatusStr
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_GrademinorStatus.ToString())
.Where(x => x.Value == OpenStatus)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 状态
///
[DisplayName("状态")]
public int? RecordStatus { get; set; }
///
/// 状态
///
[DisplayName("状态")]
public string RecordStatusStr { get; set; }
///
/// 处理动作
///
[Required]
[DisplayName("处理动作")]
public string Action { get; set; }
///
/// 处理意见
///
[DisplayName("处理意见")]
public string Comment { get; set; }
}
}