123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- 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 ExaminationSubjectView
- {
- /// <summary>
- /// 考试科目ID
- /// </summary>
- [DisplayName("考试科目ID")]
- public System.Guid ExaminationSubjectID { get; set; }
- /// <summary>
- /// 考试科目
- /// </summary>
- [Required]
- [DisplayName("考试科目")]
- public string Name { get; set; }
- /// <summary>
- /// 学年学期ID
- /// </summary>
- [Required]
- [DisplayName("学年学期")]
- public Nullable<System.Guid> SchoolyearID { get; set; }
- /// <summary>
- /// 学年学期
- /// </summary>
- [DisplayName("学年学期")]
- public string SchoolyearCode { get; set; }
- /// <summary>
- /// 考试类型ID
- /// </summary>
- [Required]
- [DisplayName("考试类型")]
- public Nullable<System.Guid> ExaminationTypeID { get; set; }
- /// <summary>
- /// 考试类型
- /// </summary>
- [DisplayName("考试类型")]
- public string ExaminationTypeName { get; set; }
- /// <summary>
- /// 考试类别ID
- /// </summary>
- [Required]
- [DisplayName("考试类别")]
- public Nullable<int> ExaminationFormID { get; set; }
- /// <summary>
- /// 考试类别
- /// </summary>
- [DisplayName("考试类别")]
- public string ExaminationFormName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationForm.ToString())
- .Where(x => x.Value == ExaminationFormID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 考试性质ID
- /// </summary>
- [Required]
- [DisplayName("考试性质ID")]
- public Nullable<int> ExaminationFormsID { get; set; }
- /// <summary>
- /// 考试性质
- /// </summary>
- [DisplayName("考试性质")]
- public string ExaminationFormNames
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationForm.ToString())
- .Where(x => x.Value == ExaminationFormsID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
-
- /// <summary>
- /// 要求通过科目ID
- /// </summary>
- [DisplayName("要求通过科目")]
- public Nullable<System.Guid> PreposeSubjectID { get; set; }
- /// <summary>
- /// 要求通过科目
- /// </summary>
- [DisplayName("要求通过科目")]
- public string PreposeSubjectName { get; set; }
- /// <summary>
- /// 通过科目最低成绩
- /// </summary>
- [DisplayName("通过科目最低成绩")]
- public Nullable<decimal> PreposeScoreLimit { get; set; }
- /// <summary>
- /// 考试日期
- /// </summary>
- [Required]
- [DisplayName("考试日期")]
- public Nullable<System.DateTime> ExaminationDate { get; set; }
- /// <summary>
- /// 最大报名人数
- /// </summary>
- [Required]
- [DisplayName("最大报名人数")]
- [RegularExpression(@"^[1-9]\d*$", ErrorMessage = "必须填写正整数")]
- public Nullable<int> PeopleNumLimit { get; set; }
- /// <summary>
- /// 报名费
- /// </summary>
- [DisplayName("报名费")]
- public Nullable<decimal> Cost { get; set; }
- /// <summary>
- /// 考试说明
- /// </summary>
- [Required]
- [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; }
- }
- }
|