using EMIS.ViewModel.Cache; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace EMIS.ViewModel.ScoreManage { public class ResitView { public Guid ResitID { get; set; } public Guid? ExaminationScoreID { get; set; } public Guid? SchoolyearID { get; set; } public string SchoolyearCode { get; set; } public Guid? ExaminationBatchID { get; set; } public string ExaminationBatchName { get; set; } public Guid? ExaminationTypeID { get; set; } public string ExaminationTypeName { get; set; } public Guid? ExaminationProjectID { get; set; } public string ExaminationProjectName { get; set; } public int? ExaminationSubjectID { get; set; } public string ExaminationSubjectName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationSubject.ToString()) .Where(x => x.Value == ExaminationSubjectID) .Select(x => x.Name).FirstOrDefault(); } } public Guid? CollegeID { get; set; } public string CollegeName { get; set; } public int? Year { get; set; } public int? StandardID { get; set; } public string StandardName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()) .Where(x => x.Value == StandardID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 校区 /// public int? SchoolAreaID { get; set; } public string SchoolAreaName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolArea.ToString()) .Where(x => x.Value == SchoolAreaID) .Select(x => x.Name).FirstOrDefault(); } } public Guid? ClassmajorID { get; set; } public string ClassmajorName { get; set; } public Guid? UserID { get; set; } public string UserName { get; set; } public int? CertificatesType { get; set; } public string CertificatesTypeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString()) .Where(x => x.Value == CertificatesType) .Select(x => x.Name).FirstOrDefault(); } } public string IDNumber { get; set; } public decimal? Score { get; set; } public DateTime? Expire { get; set; } } }