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.SelectCourse
{
public class SelectCourseOpenControlSettingView
{
public System.Guid SelectCourseOpenControlSettingID { get; set; }
[Required]
[DisplayName("学年学期")]
public Guid? SchoolyearID { get; set; }
///
/// 学年学期
///
public string SchoolyearCode { get; set; }
[Required]
[DisplayName("年级专业")]
public Nullable GrademajorID { get; set; }
///
/// 年级专业名称
///
public string GrademajorName { get; set; }
///
/// 年级专业代码
///
public string GrademajorCode { get; set; }
///
/// 年级
///
public int? YearID { get; set; }
///
/// 年级
///
public string YearName { get; set; }
///
/// 专业代码(国标码)
///
public int? StandardID { get; set; }
///
/// 专业代码
///
[DisplayName("专业代码")]
public string SpecialtyCode
{
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') : "");
}
}
///
/// 专业名称
///
public string StandardDesc { get; set; }
///
/// 学制
///
[DisplayName("学制")]
public decimal? LearnSystem { get; set; }
///
/// 学习形式
///
[Required]
[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();
}
}
///
/// 培养层次
///
[Required]
[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();
}
}
///
/// 院系所ID
///
public Guid? CollegeID { get; set; }
///
/// 院系所
///
public string CollegeName { get; set; }
///
/// 开始时间
///
[Required]
[DisplayName("开始时间")]
public Nullable StartTime { get; set; }
///
/// 结束时间
///
[Required]
[DisplayName("结束时间")]
public Nullable EndTime { get; set; }
///
/// 门数下限
///
[Required]
[DisplayName("门数下限")]
public Nullable MinSelectCount { get; set; }
///
/// 门数上限
///
[Required]
[DisplayName("门数上限")]
public Nullable MaxSelectCount { get; set; }
///
/// 学分下限
///
[Required]
[DisplayName("学分下限")]
public Nullable MinCredit { get; set; }
///
/// 学分上限
///
[Required]
[DisplayName("学分上限")]
public Nullable MaxCredit { get; set; }
///
/// 备注
///
[DisplayName("备注")]
public string Remark { get; set; }
///
/// RecordStatus
///
public Nullable RecordStatus { get; set; }
///
/// CreateTime
///
public Nullable CreateTime { get; set; }
///
/// CreateUserID
///
public Nullable CreateUserID { get; set; }
///
/// ModifyUserID
///
public Nullable ModifyUserID { get; set; }
///
/// ModifyTime
///
public Nullable ModifyTime { get; set; }
}
}