123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- 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.MinorPlanManage
- {
- public class MinorSpecialtyView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- public Guid GrademinorID { get; set; }
-
- public Guid? GradeMinorApplicationID { get; set; }
- /// <summary>
- /// 年级
- /// </summary>
- [Required]
- [DisplayName("年级")]
- public int? YearID { get; set; }
- /// <summary>
- /// 专业代码
- /// </summary>
- [Required]
- [DisplayName("专业代码")]
- public int? StandardID { get; set; }
- /// <summary>
- /// 专业代码
- /// </summary>
- [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') : "");
- }
- }
- /// <summary>
- /// 专业名称
- /// </summary>
- [DisplayName("专业名称")]
- public string StandardName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
- .Where(x => x.Value == StandardID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 院系所
- /// </summary>
- [Required]
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
- public Guid? CollegeID { get; set; }
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
- public string CollegeNo { get; set; }
- /// <summary>
- /// 院系所
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
- public string CollegeName { get; set; }
- /// <summary>
- /// 学年学期ID
- /// </summary>
- [DisplayName("学年学期")]
- public Guid? SchoolyearID { get; set; }
- public string SchoolyearCode { get; set; }
- /// <summary>
- /// 人数上限
- /// </summary>
- [DisplayName("人数上限")]
- public int? StudentLimit { get; set; }
- /// <summary>
- /// 已报名人数
- /// </summary>
- [DisplayName("已报名人数")]
- public int? StudentCount { get; set; }
- /// <summary>
- /// 开放状态
- /// </summary>
- [DisplayName("开放状态")]
- public int? OpenStatus { get; set; }
- /// <summary>
- /// 开放状态
- /// </summary>
- [DisplayName("开放状态")]
- public string OpenStatusStr
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_GrademinorStatus.ToString())
- .Where(x => x.Value == OpenStatus)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("备注")]
- public string Remarks { get; set; }
- /// <summary>
- /// 创建人
- /// </summary>
- [DisplayName("创建人")]
- public Guid? CreateUserID { get; set; }
- /// <summary>
- /// 创建人姓名
- /// </summary>
- [DisplayName("创建人姓名")]
- public string CreateUserName { get; set; }
- /// <summary>
- /// 创建时间
- /// </summary>
- [DisplayName("创建时间")]
- public DateTime? CreateTime { get; set; }
- }
- }
|