using System; using System.Collections.Generic; using System.Linq; using System.Text; using EMIS.ViewModel.CacheManage; namespace EMIS.ViewModel.DifferentDynamic { public class StudentReentryView { public Guid ID { get; set; } public Guid? UserID { get; set; } public string LoginID { get; set; } public string UserName { get; set; } public DateTime? EndDate { get; set; } public int? DifferentDynamicTypeID { get; set; } public string DifferentDynamicTypeDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ChangeType.ToString()) .Where(x => x.Value == DifferentDynamicTypeID) .Select(x => x.Name).FirstOrDefault(); } } public Guid? ClassmajorID { get; set; } public string ClassmajorName { get; set; } public int? StudentStatusID { get; set; } public string StudentStatusDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString()) .Where(x => x.Value == StudentStatusID).Select(x => x.Name).FirstOrDefault(); } } public Guid? AfterClassmajorID { get; set; } public string AfterClassmajorName { get; set; } public int? AfterStudentStatusID { get; set; } public string AfterStudentStatusDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString()) .Where(x => x.Value == AfterStudentStatusID).Select(x => x.Name).FirstOrDefault(); } } public int? ReasonID { get; set; } public string ReasonDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ChangeReason.ToString()) .Where(x => x.Value == ReasonID) .Select(x => x.Name).FirstOrDefault(); } } public DateTime? ApprovalDate { get; set; } public bool IsReentried { get; set; } public string IsReentriedDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_YesOrNoStatus.ToString()) .Where(x => x.Value == (IsReentried ? (int)CF_YesOrNoStatus.Yes : (int)CF_YesOrNoStatus.No)) .Select(x => x.Name).FirstOrDefault(); } } public Guid? CollegeID { get; set; } public string CollegeName { get; set; } public Guid? CampusID { get; set; } public string CampusName { get; set; } public DateTime? CreateTime { get; set; } } }