using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using EMIS.ViewModel.Cache;
using System.ComponentModel;
namespace EMIS.ViewModel.ExaminationApply
{
public class ExaminationTypeView
{
///
/// 考试类型ID
///
public System.Guid ExaminationTypeID { get; set; }
public System.Guid ExaminationBatchID { get; set; }
///
/// 考试类型
///
[Required]
[DisplayName("考试类型")]
public string Name { get; set; }
///
/// 是否要求次数限定
///
[DisplayName("是否要求次数限定")]
public bool IsTimesLimit { get; set; }
public string IsTimesLimitDesc
{
get
{
return IsTimesLimit ? "是" : "否";
}
}
///
/// 状态
///
public Nullable RecordStatus { get; set; }
public string RecordStatusDesc
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.SYS_STATUS.ToString())
.Where(x => x.Value == RecordStatus)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 创建时间
///
public Nullable CreateTime { get; set; }
///
/// 创建人
///
public Nullable CreateUserID { get; set; }
///
/// 修改人
///
public Nullable ModifyUserID { get; set; }
///
/// 修改时间
///
public Nullable ModifyTime { get; set; }
}
}