using System; using System.Collections.Generic; using System.Linq; using System.Text; using EMIS.ViewModel.CacheManage; using System.ComponentModel; namespace EMIS.ViewModel.DQPSystem { public class SOCDetailStudentScoreView { public Guid? SOCID { get; set; } public Guid? SOCDetailStudentID { get; set; } public Guid? SchoolyearID { get; set; } public Guid? EducationMissionID { get; set; } public string EducationMissionName { get; set; } public string EducationMissionNameStr { get { if (string.IsNullOrEmpty(EducationMissionName)) { return ""; } else { return EducationMissionName.Replace(CourseName, "").Replace("-", ""); } } } public string SchoolyearCode { get; set; } public int? YearID { get; set; } public Guid? CoursematerialID { get; set; } public string CourseCode { get; set; } public string CourseName { get; set; } public Guid? ClassmajorID { get; set; } public string ClassmajorNo { get; set; } public string ClassmajorName { get; set; } public Guid? UserID { get; set; } public string LoginID { get; set; } public string Name { get; set; } public Guid? SOCDetailID { get; set; } public string SOCDetailName { get; set; } public string SOCDetailUrl { get; set; } public string FileName { get; set; } public decimal? SOCDetailCredit { get; set; } public decimal? Weight { get; set; } public decimal? Score { get; set; } public decimal? Credit { get; set; } public int? RecordStatus { get; set; } public string RecordStatusDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.DQP_SOCDetailSubmitStatus.ToString()) .Where(x => x.Value == RecordStatus) .Select(x => x.Name).FirstOrDefault(); } } public bool IsCanEdit { get { return RecordStatus == (int)DQP_SOCDetailSubmitStatus.Submited || RecordStatus == (int)DQP_SOCDetailSubmitStatus.HasScore; } } [DisplayName("意见")] public string Remark { get; set; } } }