123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using EMIS.ViewModel.CacheManage;
- namespace EMIS.ViewModel.ExaminationApply
- {
- public class OpenControlView
- {
- /// <summary>
- /// ExaminationOpenControlID
- /// </summary>
- public System.Guid? ExaminationOpenControlID { get; set; }
- [Required]
- [DisplayName("考试科目")]
- public Nullable<System.Guid> ExaminationSubjectID { get; set; }
- [Required]
- [DisplayName("考试科目")]
- public Nullable<System.Guid> ExaminationSubjectEditID { get; set; }
- public string ExaminationSubjectName { get; set; }
- [Required]
- [DisplayName("考试类型")]
- public Nullable<System.Guid> ExaminationTypeID { get; set; }
- public string ExaminationTypeName { get; set; }
- /// <summary>
- /// 学生类别
- /// </summary>
- [Required]
- [DisplayName("学生类别")]
- public List<int> StudentTypeID { get; set; }
- [Required]
- [DisplayName("学生类别")]
- public Nullable<int> StudentType { get; set; }
- public string StudentTypeDesc
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_STUDENTTYPE.ToString())
- .Where(x => x.Value == StudentType)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- [Required]
- [DisplayName("年级数")]
- public Nullable<int> SchoolyearNumID { get; set; }
- public string SchoolyearNumName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString())
- .Where(x => x.Value == SchoolyearNumID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- [Required]
- [DisplayName("报名时间起")]
- public Nullable<System.DateTime> StartDate { get; set; }
- [Required]
- [DisplayName("报名时间止")]
- public Nullable<System.DateTime> EndDate { get; set; }
- [Required]
- [DisplayName("限定人数")]
- // [RegularExpression(@"^[1-9]{1,3}$", ErrorMessage = "只能输入1至3位整数")]
- [RegularExpression(@"^[0-9]\d*$", ErrorMessage = "必须填写正整数")]
- public int? PeopleNumLimit { 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; }
- }
- }
|