123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- 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; }
- /// <summary>
- /// 学年学期
- /// </summary>
- public string SchoolyearCode { get; set; }
- [Required]
- [DisplayName("年级专业")]
- public Nullable<System.Guid> GrademajorID { get; set; }
- /// <summary>
- /// 年级专业名称
- /// </summary>
- public string GrademajorName { get; set; }
- /// <summary>
- /// 年级专业代码
- /// </summary>
- public string GrademajorCode { get; set; }
- /// <summary>
- /// 年级
- /// </summary>
- public int? YearID { get; set; }
- /// <summary>
- /// 年级
- /// </summary>
- public string YearName { get; set; }
- /// <summary>
- /// 专业代码(国标码)
- /// </summary>
- public int? StandardID { get; set; }
- /// <summary>
- /// 专业代码
- /// </summary>
- [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') : "");
- }
- }
- /// <summary>
- /// 专业名称
- /// </summary>
- public string StandardDesc { get; set; }
- /// <summary>
- /// 学制
- /// </summary>
- [DisplayName("学制")]
- public decimal? LearnSystem { get; set; }
- /// <summary>
- /// 学习形式
- /// </summary>
- [Required]
- [DisplayName("学习形式")]
- public int? LearningformID { get; set; }
- /// <summary>
- /// 学习形式
- /// </summary>
- [DisplayName("学习形式")]
- public string LearningformName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
- .Where(x => x.Value == LearningformID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 培养层次
- /// </summary>
- [Required]
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
- public int? EducationID { get; set; }
- /// <summary>
- /// 培养层次
- /// </summary>
- [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();
- }
- }
- /// <summary>
- /// 院系所ID
- /// </summary>
- public Guid? CollegeID { get; set; }
- /// <summary>
- /// 院系所
- /// </summary>
- public string CollegeName { get; set; }
- /// <summary>
- /// 开始时间
- /// </summary>
- [Required]
- [DisplayName("开始时间")]
- public Nullable<System.DateTime> StartTime { get; set; }
- /// <summary>
- /// 结束时间
- /// </summary>
- [Required]
- [DisplayName("结束时间")]
- public Nullable<System.DateTime> EndTime { get; set; }
- /// <summary>
- /// 门数下限
- /// </summary>
- [Required]
- [DisplayName("门数下限")]
- public Nullable<int> MinSelectCount { get; set; }
- /// <summary>
- /// 门数上限
- /// </summary>
- [Required]
- [DisplayName("门数上限")]
- public Nullable<int> MaxSelectCount { get; set; }
- /// <summary>
- /// 学分下限
- /// </summary>
- [Required]
- [DisplayName("学分下限")]
- public Nullable<decimal> MinCredit { get; set; }
- /// <summary>
- /// 学分上限
- /// </summary>
- [Required]
- [DisplayName("学分上限")]
- public Nullable<decimal> MaxCredit { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("备注")]
- public string Remark { get; set; }
- /// <summary>
- /// RecordStatus
- /// </summary>
- public Nullable<int> RecordStatus { get; set; }
- /// <summary>
- /// CreateTime
- /// </summary>
- public Nullable<System.DateTime> CreateTime { get; set; }
- /// <summary>
- /// CreateUserID
- /// </summary>
- public Nullable<System.Guid> CreateUserID { get; set; }
- /// <summary>
- /// ModifyUserID
- /// </summary>
- public Nullable<System.Guid> ModifyUserID { get; set; }
- /// <summary>
- /// ModifyTime
- /// </summary>
- public Nullable<System.DateTime> ModifyTime { get; set; }
- }
- }
|