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.StudentManage.OnlineChecking
{
public class OpenObjectView
{
///
/// 主键ID
///
[DisplayName("主键ID")]
public Guid StudentEditObjectsID { get; set; }
///
/// 培养层次
///
[Required]
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
public int? EducationID { get; set; }
///
/// 培养层次
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
public string EducationName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString()).Where(x => x.Value == EducationID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 开放学年
///
[Required]
[DisplayName("开放学年")]
public int? SchoolyearNumID { get; set; }
///
/// 开放学年
///
[DisplayName("开放学年")]
public string SchoolyearNumName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString()).Where(x => x.Value == SchoolyearNumID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 开始时间
///
[Required]
[DisplayName("开始时间")]
[DataType(DataType.DateTime)]
public DateTime? Starttime { get; set; }
///
/// 结束时间
///
[Required]
[DisplayName("结束时间")]
[DataType(DataType.DateTime)]
[DateTimeNotLessThan("Starttime", "开始时间")]
public DateTime? Endtime { get; set; }
///
/// 备注
///
[DisplayName("备注")]
public string Remark { get; set; }
///
/// 状态
///
[DisplayName("状态")]
public int? RecordStatus { get; set; }
///
/// 创建人
///
[DisplayName("创建人")]
public Guid? CreateUserID { get; set; }
///
/// 创建人
///
[DisplayName("创建人")]
public string CreateUserName { get; set; }
///
/// 创建时间
///
[DisplayName("创建时间")]
public DateTime? CreateTime { get; set; }
///
/// 修改人
///
[DisplayName("修改人")]
public Guid? ModifyUserID { get; set; }
///
/// 修改人
///
[DisplayName("修改人")]
public string ModifyUserName { get; set; }
///
/// 修改时间
///
[DisplayName("修改时间")]
public DateTime? ModifyTime { get; set; }
}
}