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.MinorGraduation.MinorGraduationSetting
{
public class MinorGraduationStandardView
{
///
/// 毕业标准主键ID
///
[DisplayName("主键ID")]
public Guid MinorGraduationStandardID { 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 = "CollegeCode")]
public string CollegeNo { get; set; }
///
/// 院系所名称
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
public string CollegeName { get; set; }
///
/// 年级
///
[DisplayName("年级")]
public int? YearID { get; set; }
///
/// 专业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; }
///
/// 计划门数
///
[DisplayName("计划门数")]
public int? PlanCourseCount { get; set; }
///
/// 计划学分
///
[DisplayName("计划学分")]
public decimal? SpecialtyCreditTotal { get; set; }
///
/// 必修学分
///
[DisplayName("必修学分")]
public decimal? SpecialtyRequireCreditTotal { get; set; }
///
/// 限选学分
///
[DisplayName("限选学分")]
public decimal? OptionalCreditTotal { get; set; }
///
/// 任选学分
///
[DisplayName("任选学分")]
public decimal? FreeSelectionCreditTotal { get; set; }
///
/// 执行门数(已修门数)
///
[DisplayName("执行门数")]
public int? ExecCourseCount { get; set; }
///
/// 执行学分
///
[DisplayName("执行学分")]
public decimal? ExecutableCreditTotal { get; set; }
///
/// 毕业门数
///
[Required]
[DisplayName("毕业门数")]
[RegularExpression(@"^\d+$", ErrorMessage = "请输入整数")]
public int? RequireCourseCount { get; set; }
///
/// 毕业学分
///
[Required]
[DisplayName("毕业学分")]
[DisplayFormat(DataFormatString = "{0:N1}")]
[RegularExpression(@"^\d+(\.\d{1,1})?$", ErrorMessage = "请输整数或保留1位小数")]
public decimal? GraduationCredit { get; set; }
///
/// 人数
///
[DisplayName("人数")]
public int? StudentCount { get; set; }
///
/// 状态
///
[DisplayName("状态")]
public int? RecordStatus { get; set; }
///
/// 创建人
///
[DisplayName("创建人")]
public Guid? CreateUserID { get; set; }
///
/// 创建时间
///
[DisplayName("创建时间")]
public DateTime? CreateTime { get; set; }
///
/// 修改人
///
[DisplayName("修改人")]
public Guid? ModifyUserID { get; set; }
///
/// 修改时间
///
[DisplayName("修改时间")]
public DateTime? ModifyTime { get; set; }
}
}