123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- 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.ExaminationApply
- {
- public class SubjectCountLimitView
- {
- /// <summary>
- /// ExaminationSubjectCountLimitID
- /// </summary>
- public System.Guid? ExaminationSubjectCountLimitID { get; set; }
- [Required]
- [DisplayName("考试类型")]
- public Nullable<System.Guid> ExaminationTypeID { get; set; }
- public string ExaminationTypeName { get; set; }
- [Required]
- [DisplayName("院系专业")]
- public Nullable<System.Guid> FacultymajorID { get; set; }
- public string FacultymajorName { get; set; }
- [Required]
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
- public Guid? CollegeID { get; set; }
- [Required]
- [DisplayName("年级数")]
- public Nullable<int> Years { get; set; }
- [DisplayName("报名门数")]
- [RegularExpression(@"^[1-9]\d*$", ErrorMessage = "必须填写正整数")]
- public Nullable<int> SubjectCountLimit { 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; }
- public string SchoolyearNumName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString())
- .Where(x => x.Value == Years)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- }
- }
|