123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using EMIS.ViewModel.CacheManage;
- using Bowin.Common.Mvc;
- namespace EMIS.ViewModel.DifferentDynamic
- {
- public class DifferentDynamicView
- {
- /// <summary>
- /// 主键
- /// </summary>
- [DisplayName("主键")]
- public Guid EntityID { get; set; }
- /// <summary>
- /// 异动学期
- /// </summary>
- [DisplayName("异动学期")]
- [Required]
- public Guid? SchoolyearID { get; set; }
- /// <summary>
- /// 异动学期Code
- /// </summary>
- [DisplayName("异动学期")]
- public string SchoolyearCode { get; set; }
- /// <summary>
- /// 学号对应的UserID
- /// </summary>
- [DisplayName("学号")]
- [Required]
- public Guid? UserID { get; set; }
- /// <summary>
- /// 学号
- /// </summary>
- [DisplayName("学号")]
- public string LoginID { get; set; }
- /// <summary>
- /// 姓名
- /// </summary>
- [DisplayName("姓名")]
- public string Name { get; set; }
- /// <summary>
- /// 异动类型
- /// </summary>
- [DisplayName("异动类型")]
- [Required]
- public int? DifferentDynamicType { get; set; }
- /// <summary>
- /// 异动类型名称
- /// </summary>
- [DisplayName("异动类型")]
- public string DifferentDynamicTypeName
- {
- get
- {
- return IdNameExt.GetName(DictionaryItem.CF_ChangeType, DifferentDynamicType);
- }
- }
- /// <summary>
- /// 异动原因代码
- /// </summary>
- [Required]
- [DisplayName("异动原因")]
- public int? Reason { get; set; }
- /// <summary>
- /// 异动原因名称
- /// </summary>
- [DisplayName("异动原因")]
- public string ReasonName
- {
- get
- {
- try
- {
- return IdNameExt.GetName(DictionaryItem.CF_ChangeReason, Reason);
- }
- catch
- {
- return "";
- }
- }
- }
- /// <summary>
- /// 在校状态
- /// </summary>
- [DisplayName("在校状态")]
- public int? InSchoolStatusID { get; set; }
- /// <summary>
- /// 在校状态名称
- /// </summary>
- [DisplayName("在校状态")]
- public string InSchoolStatusName
- {
- get
- {
- return IdNameExt.GetName(DictionaryItem.CF_InschoolStatus, InSchoolStatusID);
- }
- }
- /// <summary>
- /// 学籍状态
- /// </summary>
- [DisplayName("学籍状态")]
- public int? StudentStatus { get; set; }
- /// <summary>
- /// 学籍状态名称
- /// </summary>
- [DisplayName("学籍状态")]
- public string StudentStatusName
- {
- get
- {
- return IdNameExt.GetName(DictionaryItem.CF_StudentStatus, StudentStatus);
- }
- }
- /// <summary>
- /// 专业
- /// </summary>
- [DisplayName("专业")]
- public int? StandardID { get; set; }
- /// <summary>
- /// 专业名称
- /// </summary>
- [DisplayName("专业")]
- public string StandardName
- {
- get
- {
- return IdNameExt.GetName(DictionaryItem.CF_Standard, StandardID);
- }
- }
-
- /// <summary>
- /// 班级
- /// </summary>
- [DisplayName("班级")]
- public Guid? ClassmajorID { get; set; }
- /// <summary>
- /// 班级名称
- /// </summary>
- [DisplayName("班级")]
- public string ClassmajorName { get; set; }
- /// <summary>
- /// 异动后专业
- /// </summary>
- [DisplayName("异动后专业")]
- public int? AfterStandardID { get; set; }
- /// <summary>
- /// 异动后班级
- /// </summary>
- [DisplayName("异动后班级")]
- public Guid? AfterClassmajorID { get; set; }
- /// <summary>
- /// 异动后在校状态
- /// </summary>
- [DisplayName("异动后在校状态")]
- public int? AfterInSchoolStatusID { get; set; }
- /// <summary>
- /// 异动后学籍状态
- /// </summary>
- [DisplayName("异动后学籍状态")]
- public int? AfterStudentStatus { get; set; }
- /// <summary>
- /// 异动后专业名称
- /// </summary>
- [DisplayName("异动后专业")]
- public string AfterStandardName
- {
- get
- {
- return IdNameExt.GetName(DictionaryItem.CF_Standard, AfterStandardID);
- }
- }
- /// <summary>
- /// 异动后班级名称
- /// </summary>
- [DisplayName("异动后班级")]
- public string AfterClassmajorName { get; set; }
- /// <summary>
- /// 异动后在校状态名称
- /// </summary>
- [DisplayName("异动后在校状态")]
- public string AfterInSchoolStatusName
- {
- get
- {
- return IdNameExt.GetName(DictionaryItem.CF_InschoolStatus, AfterInSchoolStatusID);
- }
- }
- /// <summary>
- /// 异动后学籍状态名称
- /// </summary>
- [DisplayName("异动后学籍状态")]
- public string AfterStudentStatusName
- {
- get
- {
- return IdNameExt.GetName(DictionaryItem.CF_StudentStatus, AfterStudentStatus);
- }
- }
- /// <summary>
- /// 返校学期
- /// </summary>
- [DisplayName("返校学期")]
- public Guid? ReturnSchoolyearID { get; set; }
- /// <summary>
- /// 返校学期Code
- /// </summary>
- [DisplayName("返校学期")]
- public string ReturnSchoolyearCode { get; set; }
- /// <summary>
- /// 申请渠道
- /// </summary>
- public int? ApplyTypeID { get; set; }
- /// <summary>
- /// 申请说明
- /// </summary>
- [DisplayName("申请说明")]
- public string ApplyRemark { get; set; }
- /// <summary>
- /// 异动开始日期
- /// </summary>
- [DisplayName("异动开始日期")]
- public DateTime? BeginTime { get; set; }
- /// <summary>
- /// 异动结束日期
- /// </summary>
- [DisplayName("异动结束日期")]
- [DateTimeNotLessThan("BeginTime", "异动开始日期")]
- public DateTime? EndTime { get; set; }
- /// <summary>
- /// 异动来源
- /// </summary>
- [DisplayName("异动来源")]
- public string Source { get; set; }
- /// <summary>
- /// 异动去向
- /// </summary>
- [DisplayName("异动去向")]
- public string Direction { get; set; }
- /// <summary>
- /// 审批状态
- /// </summary>
- [DisplayName("审批状态")]
- public int? EntityApprovalStatus { get; set; }
- /// <summary>
- /// 审批状态名称
- /// </summary>
- [DisplayName("审批状态")]
- public string ApprovalStatusName { get; set; }
- ///// <summary>
- ///// 状态
- ///// </summary>
- //[DisplayName("状态")]
- //public int? RecordStatus { get; set; }
- /// <summary>
- /// 创建人
- /// </summary>
- [DisplayName("创建人")]
- public Guid? EntityCreateUserID { get; set; }
- /// <summary>
- /// 创建人
- /// </summary>
- [DisplayName("创建人")]
- public string CreateUser { get; set; }
- /// <summary>
- /// 创建时间
- /// </summary>
- [DisplayName("创建时间")]
- public DateTime? EntityCreateTime { get; set; }
- [DisplayName("创建时间")]
- public string EntityCreateTimeStr {
- get {
- return EntityCreateTime != null ? EntityCreateTime.Value.ToString("yyyy-MM-dd") : null;
- }
- }
- [DisplayName("申请日期")]
- public DateTime? EntityApplyDate { get; set; }
- ///// <summary>
- ///// 修改人
- ///// </summary>
- //[DisplayName("修改人")]
- //public Guid? ModifyUserID { get; set; }
- ///// <summary>
- ///// 修改时间
- ///// </summary>
- //[DisplayName("修改时间")]
- //public DateTime? ModifyTime { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("备注")]
- public string Remark { get; set; }
- /// <summary>
- /// 动作
- /// </summary>
- [DisplayName("动作")]
- public string Action { get; set; }
- public Guid? CollegeID { get; set; }
- /// <summary>
- /// 报到状态
- /// </summary>
- [DisplayName("报到状态")]
- public int? ReportStatus { get; set; }
- private string _reportStatusName;
- /// <summary>
- /// 报到状态名称
- /// </summary>
- [DisplayName("报到状态")]
- public string ReportStatusName
- {
- get
- {
- if (string.IsNullOrEmpty(_reportStatusName))
- {
- return Bowin.Common.Exceptions.EnumHelper.GetEnumShowName(typeof(CF_ReportStatus), (int)CF_ReportStatus.NotReport);
- }
- return _reportStatusName;
- }
- set { _reportStatusName = value; }
- }
- /// <summary>
- /// 报表名称
- /// </summary>
- [DisplayName("报表名称")]
- public string ReportName{get;set;}
- /// <summary>
- /// 报表地址
- /// </summary>
- [DisplayName("报表地址")]
- public string ReportUrl { get; set; }
- }
- }
|