123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- 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<System.Guid> CollegeID { get; set; }
- public string CollegeNo { get; set; }
- public string CollegeName { get; set; }
- [DisplayName("年级")]
- public Nullable<int> YearID { get; set; }
- [DisplayName("专业")]
- public Nullable<int> 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<Guid> ClassmajorID { get; set; }
- public string ClassmajorNo { get; set; }
- public string ClassmajorName { get; set; }
- /// <summary>
- /// 开课学年
- /// </summary>
- //[Required]
- [DisplayName("开课学年")]
- public int? SchoolyearNumID { get; set; }
- [DisplayName("开课学年")]
- public string SchoolyearNumNameStr { get; set; }
- /// <summary>
- /// 开课学年
- /// </summary>
- [DisplayName("开课学年")]
- public string SchoolyearNumName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString())
- .Where(x => x.Value == SchoolyearNumID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 学期
- /// </summary>
- //[Required]
- [DisplayName("学期")]
- public int? SchoolcodeID { get; set; }
- [DisplayName("学期")]
- public string SchoolcodeStr { get; set; }
- /// <summary>
- /// 学期
- /// </summary>
- [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<ER_ScoreConvertByApplyAttachment> AttachmentList { get; set; }
- /// <summary>
- /// 附件名称
- /// </summary>
- [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; }
- /// <summary>
- /// 附件状态
- /// </summary>
- public int? IsChangeAttachment { get; set; }
- }
- }
|