123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using System.Linq;
- using System.Text;
- using Bowin.Common.Mvc;
- using EMIS.ViewModel.CacheManage;
- namespace EMIS.ViewModel.EvaluationManage.EvaluationSetting
- {
- public class EvaluationParticipateTypeView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [DisplayName("主键ID")]
- public Guid EvaluationParticipateTypeID { get; set; }
- /// <summary>
- /// 参评类型
- /// </summary>
- [Required]
- [DisplayName("参评类型")]
- public int? ParticipateTypeID { get; set; }
- /// <summary>
- /// 参评代码
- /// </summary>
- [DisplayName("参评代码")]
- public string ParticipateTypeCode
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.EM_ParticipateType.ToString()).Where(x => x.Value == ParticipateTypeID).Select(x => x.Code).FirstOrDefault();
- }
- }
- /// <summary>
- /// 参评类型
- /// </summary>
- [DisplayName("参评类型")]
- public string ParticipateTypeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.EM_ParticipateType.ToString()).Where(x => x.Value == ParticipateTypeID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 学生用
- /// </summary>
- [DisplayName("学生用")]
- public bool IsStudent { get; set; }
- /// <summary>
- /// 学生用
- /// </summary>
- [DisplayName("学生用")]
- public string IsStudentName
- {
- get { return this.IsStudent == true ? "是" : "否"; }
- }
- /// <summary>
- /// 可评次数
- /// </summary>
- [Required]
- [DisplayName("可评次数")]
- [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
- public int? Number { get; set; }
- /// <summary>
- /// 开始时间
- /// </summary>
- [Required]
- [DisplayName("开始时间")]
- [DataType(DataType.DateTime)]
- public DateTime? StartTime { get; set; }
- /// <summary>
- /// 结束时间
- /// </summary>
- [Required]
- [DisplayName("结束时间")]
- [DataType(DataType.DateTime)]
- [DateTimeNotLessThan("StartTime", "开始时间")]
- public DateTime? EndTime { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("备注")]
- public string Remark { get; set; }
- /// <summary>
- /// 状态
- /// </summary>
- [DisplayName("状态")]
- public int? RecordStatus { 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; }
- /// <summary>
- /// 修改人
- /// </summary>
- [DisplayName("修改人")]
- public Guid? ModifyUserID { get; set; }
- /// <summary>
- /// 修改人
- /// </summary>
- [DisplayName("修改人")]
- public string ModifyUserName { get; set; }
- /// <summary>
- /// 修改时间
- /// </summary>
- [DisplayName("修改时间")]
- public DateTime? ModifyTime { get; set; }
- }
- }
|