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
{
///
/// 主键
///
[DisplayName("主键")]
public Guid EntityID { get; set; }
///
/// 异动学期
///
[DisplayName("异动学期")]
[Required]
public Guid? SchoolyearID { get; set; }
///
/// 异动学期Code
///
[DisplayName("异动学期")]
public string SchoolyearCode { get; set; }
///
/// 学号对应的UserID
///
[DisplayName("学号")]
[Required]
public Guid? UserID { get; set; }
///
/// 学号
///
[DisplayName("学号")]
public string LoginID { get; set; }
///
/// 姓名
///
[DisplayName("姓名")]
public string Name { get; set; }
///
/// 异动类型
///
[DisplayName("异动类型")]
[Required]
public int? DifferentDynamicType { get; set; }
///
/// 异动类型名称
///
[DisplayName("异动类型")]
public string DifferentDynamicTypeName
{
get
{
return IdNameExt.GetName(DictionaryItem.CF_ChangeType, DifferentDynamicType);
}
}
///
/// 异动原因代码
///
[Required]
[DisplayName("异动原因")]
public int? Reason { get; set; }
///
/// 异动原因名称
///
[DisplayName("异动原因")]
public string ReasonName
{
get
{
try
{
return IdNameExt.GetName(DictionaryItem.CF_ChangeReason, Reason);
}
catch
{
return "";
}
}
}
///
/// 在校状态
///
[DisplayName("在校状态")]
public int? InSchoolStatusID { get; set; }
///
/// 在校状态名称
///
[DisplayName("在校状态")]
public string InSchoolStatusName
{
get
{
return IdNameExt.GetName(DictionaryItem.CF_InschoolStatus, InSchoolStatusID);
}
}
///
/// 学籍状态
///
[DisplayName("学籍状态")]
public int? StudentStatus { get; set; }
///
/// 学籍状态名称
///
[DisplayName("学籍状态")]
public string StudentStatusName
{
get
{
return IdNameExt.GetName(DictionaryItem.CF_StudentStatus, StudentStatus);
}
}
///
/// 专业
///
[DisplayName("专业")]
public int? StandardID { get; set; }
///
/// 专业名称
///
[DisplayName("专业")]
public string StandardName
{
get
{
return IdNameExt.GetName(DictionaryItem.CF_Standard, StandardID);
}
}
///
/// 班级
///
[DisplayName("班级")]
public Guid? ClassmajorID { get; set; }
///
/// 班级名称
///
[DisplayName("班级")]
public string ClassmajorName { get; set; }
///
/// 异动后专业
///
[DisplayName("异动后专业")]
public int? AfterStandardID { get; set; }
///
/// 异动后班级
///
[DisplayName("异动后班级")]
public Guid? AfterClassmajorID { get; set; }
///
/// 异动后在校状态
///
[DisplayName("异动后在校状态")]
public int? AfterInSchoolStatusID { get; set; }
///
/// 异动后学籍状态
///
[DisplayName("异动后学籍状态")]
public int? AfterStudentStatus { get; set; }
///
/// 异动后专业名称
///
[DisplayName("异动后专业")]
public string AfterStandardName
{
get
{
return IdNameExt.GetName(DictionaryItem.CF_Standard, AfterStandardID);
}
}
///
/// 异动后班级名称
///
[DisplayName("异动后班级")]
public string AfterClassmajorName { get; set; }
///
/// 异动后在校状态名称
///
[DisplayName("异动后在校状态")]
public string AfterInSchoolStatusName
{
get
{
return IdNameExt.GetName(DictionaryItem.CF_InschoolStatus, AfterInSchoolStatusID);
}
}
///
/// 异动后学籍状态名称
///
[DisplayName("异动后学籍状态")]
public string AfterStudentStatusName
{
get
{
return IdNameExt.GetName(DictionaryItem.CF_StudentStatus, AfterStudentStatus);
}
}
///
/// 返校学期
///
[DisplayName("返校学期")]
public Guid? ReturnSchoolyearID { get; set; }
///
/// 返校学期Code
///
[DisplayName("返校学期")]
public string ReturnSchoolyearCode { get; set; }
///
/// 申请渠道
///
public int? ApplyTypeID { get; set; }
///
/// 申请说明
///
[DisplayName("申请说明")]
public string ApplyRemark { get; set; }
///
/// 异动开始日期
///
[DisplayName("异动开始日期")]
public DateTime? BeginTime { get; set; }
///
/// 异动结束日期
///
[DisplayName("异动结束日期")]
[DateTimeNotLessThan("BeginTime", "异动开始日期")]
public DateTime? EndTime { get; set; }
///
/// 异动来源
///
[DisplayName("异动来源")]
public string Source { get; set; }
///
/// 异动去向
///
[DisplayName("异动去向")]
public string Direction { get; set; }
///
/// 审批状态
///
[DisplayName("审批状态")]
public int? EntityApprovalStatus { get; set; }
///
/// 审批状态名称
///
[DisplayName("审批状态")]
public string ApprovalStatusName { get; set; }
/////
///// 状态
/////
//[DisplayName("状态")]
//public int? RecordStatus { get; set; }
///
/// 创建人
///
[DisplayName("创建人")]
public Guid? EntityCreateUserID { get; set; }
///
/// 创建人
///
[DisplayName("创建人")]
public string CreateUser { get; set; }
///
/// 创建时间
///
[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; }
/////
///// 修改人
/////
//[DisplayName("修改人")]
//public Guid? ModifyUserID { get; set; }
/////
///// 修改时间
/////
//[DisplayName("修改时间")]
//public DateTime? ModifyTime { get; set; }
///
/// 备注
///
[DisplayName("备注")]
public string Remark { get; set; }
///
/// 动作
///
[DisplayName("动作")]
public string Action { get; set; }
public Guid? CollegeID { get; set; }
///
/// 报到状态
///
[DisplayName("报到状态")]
public int? ReportStatus { get; set; }
private string _reportStatusName;
///
/// 报到状态名称
///
[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; }
}
///
/// 报表名称
///
[DisplayName("报表名称")]
public string ReportName{get;set;}
///
/// 报表地址
///
[DisplayName("报表地址")]
public string ReportUrl { get; set; }
}
}