using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using EMIS.ViewModel.CacheManage; using EMIS.Resources.DataAnnotations; using EMIS.Entities; namespace EMIS.ViewModel.ScoreManage { public class ScoreConvertByApplyView { public Guid ScoreConvertByApplyID { get; set; } [DisplayName("学年学期")] public Guid? SchoolyearID { get; set; } public string SchoolyearCode { get; set; } [DisplayName("学号/姓名")] [Required] public Guid? UserID { get; set; } public string LoginID { get; set; } public string Name { get; set; } [DisplayName("欲认定课程")] [Required] public Guid? CoursematerialID { get; set; } public string CourseCode { get; set; } public string CourseName { get; set; } [Display(ResourceType = typeof(Label), Name = "College")] public Nullable CollegeID { get; set; } public string CollegeNo { get; set; } public string CollegeName { get; set; } [DisplayName("年级")] public Nullable YearID { get; set; } [DisplayName("专业")] public Nullable StandardID { get; set; } public string StandardDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()) .Where(x => x.Value == StandardID) .Select(x => x.Name).FirstOrDefault(); } } [DisplayName("班级")] public Nullable ClassmajorID { get; set; } public string ClassmajorNo { get; set; } public string ClassmajorName { get; set; } /// /// 开课学年 /// //[Required] [DisplayName("开课学年")] public int? SchoolyearNumID { get; set; } [DisplayName("开课学年")] public string SchoolyearNumNameStr { 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("学期")] public int? SchoolcodeID { get; set; } [DisplayName("学期")] public string SchoolcodeStr { get; set; } /// /// 学期 /// [DisplayName("学期")] public string SchoolcodeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == SchoolcodeID).Select(x => x.Name).FirstOrDefault(); } } [DisplayName("成绩")] public decimal? TotalScore { get; set; } //public decimal? TotalHours { get; set; } [DisplayName("原因")] public string Reason { get; set;} public int? RecordStatus { get; set; } public string RecordStatusDesc { get; set; } public IEnumerable AttachmentList { get; set; } /// /// 附件名称 /// [DisplayName("附件名称")] public string AttachmentName { get { if (AttachmentList != null && AttachmentList.Count() > 0) { return string.Join(",", AttachmentList.Select(x => x.Name)); } else { return ""; } } } [DisplayName("证明文件")] public string UploadAttachmentName { get; set; } /// /// 附件状态 /// public int? IsChangeAttachment { get; set; } } }