123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel;
- using EMIS.ViewModel.CacheManage;
- namespace EMIS.ViewModel.SelectCourse
- {
- public class OptionalCourseSettingCreateView
- {
- /// <summary>
- /// 学年学期ID
- /// </summary>
- [Required]
- [DisplayName("学年学期ID")]
- public Guid? SchoolyearID { get; set; }
-
- /// <summary>
- /// 学年学期
- /// </summary>
- [DisplayName("学年学期")]
- public string SchoolYearCode { get; set; }
- /// <summary>
- /// 校区ID
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusID")]
- public Nullable<System.Guid> CampusID { get; set; }
- /// <summary>
- /// 院系所ID
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
- public Nullable<System.Guid> CollegeID { get; set; }
- /// <summary>
- /// 院系所
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
- public string CollegeName { get; set; }
- /// <summary>
- /// 年级专业
- /// </summary>
- [DisplayName("年级专业")]
- public Guid? GrademajorID { get; set; }
- /// <summary>
- /// 年级(年级专业对应的年级)
- /// </summary>
- [DisplayName("年级")]
- public int? GradeID { get; set; }
- /// <summary>
- /// 年级(年级专业对应的年级)
- /// </summary>
- [DisplayName("年级")]
- public string Grade
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 学年
- /// </summary>
- [DisplayName("学年")]
- public int? Years { get; set; }
- /// <summary>
- /// 院系专业
- /// </summary>
- public int? StandardID { get; set; }
- /// <summary>
- /// 专业代码
- /// </summary>
- [DisplayName("专业代码")]
- public string StandardCode
- {
- get
- {
- var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
- .Where(x => x.Value == StandardID)
- .Select(x => x.Code).FirstOrDefault();
- return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
- }
- }
- /// <summary>
- /// 专业名称
- /// </summary>
- [DisplayName("专业名称")]
- public string StandardDesc
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
- .Where(x => x.Value == StandardID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 课程名称
- /// </summary>
- [DisplayName("课程名称")]
- public string CourseName { get; set; }
- /// <summary>
- /// 课程信息ID
- /// </summary>
- public Guid? CoursematerialID { get; set; }
- /// <summary>
- /// 年级专业名称
- /// </summary>
- [DisplayName("年级专业名称")]
- public string GrademajorName { get; set; }
- }
- }
|