123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using EMIS.ViewModel.CacheManage;
- namespace EMIS.ViewModel.MinorManage.MinorApply
- {
- public class GrademinorView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- public Guid GrademinorID { get; set; }
- /// <summary>
- /// 辅修专业申请ID
- /// </summary>
- [DisplayName("辅修专业申请ID")]
- public Guid? GradeMinorApplicationID { get; set; }
- /// <summary>
- /// 年级
- /// </summary>
- [DisplayName("年级")]
- public int? YearID { get; set; }
- /// <summary>
- /// 专业代码
- /// </summary>
- [DisplayName("专业代码")]
- 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 StandardName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
- .Where(x => x.Value == StandardID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- public string LookCoursematerial {
- get {
- return "查看课程";
- }
- }
- /// <summary>
- /// 院系所
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
- public Guid? CollegeID { get; set; }
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
- public string CollegeNo { get; set; }
- /// <summary>
- /// 院系所
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
- public string CollegeName { get; set; }
- /// <summary>
- /// 学年学期ID
- /// </summary>
- [DisplayName("学年学期")]
- public Guid? SchoolyearID { get; set; }
- public string SchoolyearCode { get; set; }
- /// <summary>
- /// 人数上限
- /// </summary>
- [DisplayName("人数上限")]
- public int? StudentLimit { get; set; }
- /// <summary>
- /// 辅修专业状态
- /// </summary>
- [DisplayName("辅修专业状态")]
- public int? OpenStatus { get; set; }
- /// <summary>
- /// 辅修专业状态
- /// </summary>
- [DisplayName("辅修专业状态")]
- public string OpenStatusStr
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_GrademinorStatus.ToString())
- .Where(x => x.Value == OpenStatus)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("备注")]
- public string Remarks { get; set; }
- /// <summary>
- /// 创建人
- /// </summary>
- [DisplayName("创建人")]
- public Guid? CreateUserID { get; set; }
- /// <summary>
- /// 创建人姓名
- /// </summary>
- [DisplayName("创建人姓名")]
- public string CreateUserName { get; set; }
- /// <summary>
- /// 创建时间
- /// </summary>
- [DisplayName("创建时间")]
- public DateTime? CreateTime { get; set; }
- /// <summary>
- /// 已报人数
- /// </summary>
- [DisplayName("已报人数")]
- public int? ApplyNumber { get; set; }
- /// <summary>
- /// 辅修控制信息ID
- /// </summary>
- [DisplayName("辅修控制信息ID")]
- public Guid? MinorControlID { get; set; }
- /// <summary>
- /// 开始时间
- /// </summary>
- [DisplayName("开始时间")]
- public DateTime? StartDate { get; set; }
- /// <summary>
- /// 结束时间
- /// </summary>
- [DisplayName("结束时间")]
- public DateTime? EndDate { get; set; }
- /// <summary>
- /// 报名状态
- /// </summary>
- [DisplayName("报名状态")]
- public bool? ApplyStatus { get; set; }
- /// <summary>
- /// 报名状态
- /// </summary>
- [DisplayName("报名状态")]
- public string ApplyStatusName
- {
- get
- {
- return ApplyStatus == true ? "是" : "否";
- }
- }
- /// <summary>
- /// 修读门数
- /// </summary>
- [DisplayName("修读门数")]
- public int? CourseCount { get; set; }
- /// <summary>
- /// 操作状态
- /// </summary>
- [DisplayName("操作状态")]
- public bool? CanSelect { get; set; }
- /// <summary>
- /// 操作状态
- /// </summary>
- public string OperateText
- {
- get
- {
- if (ApplyStatus.Value)
- {
- return "已报名";
- }
- if (ApplyNumber != null && StudentLimit != 0 && ApplyNumber.Value >= StudentLimit.Value)
- {
- return "已报满";
- }
-
- return "立即报名";
- }
- }
- /// <summary>
- /// 学生报名审核状态
- /// </summary>
- [DisplayName("学生报名审核状态")]
- public int? RecordStatus { get; set; }
- /// <summary>
- /// 审核状态
- /// </summary>
- [DisplayName("审核状态")]
- public string RecordStatusStr { get; set; }
- ///// <summary>
- ///// 辅修专业状态
- ///// </summary>
- //[DisplayName("辅修专业状态")]
- //public int? GrademinorRecordStatus { get; set; }
- ///// <summary>
- ///// 辅修专业状态
- ///// </summary>
- //[DisplayName("辅修专业状态")]
- //public string GrademinorRecordStatusStr { get; set; }
- }
- }
|