using EMIS.ViewModel.CacheManage;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
namespace EMIS.ViewModel.DegreeManage.DegreeSetting
{
public class DegreeConditionPackageView
{
///
/// 学位公式ID
///
[DisplayName("学位公式ID")]
public Guid DegreeConditionPackageID { get; set; }
///
/// 公式名称
///
[Required]
[DisplayName("公式名称")]
public string Title { get; set; }
///
/// 学生类别
///
[Required]
[DisplayName("学生类别")]
public int? StudentTypeID { get; set; }
///
/// 学生类别
///
[DisplayName("学生类别")]
public string StudentTypeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_STUDENTTYPE.ToString())
.Where(x => x.Value == StudentTypeID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 是否默认
///
[DisplayName("是否默认")]
public bool IsDefault { get; set; }
///
/// 是否默认
///
[DisplayName("是否默认公式")]
public string IsDefaultName
{
get
{
return IsDefault ? "是" : "否";
}
}
///
/// 启用状态
///
[DisplayName("启用状态")]
public bool IsEnable { get; set; }
///
/// 启用状态
///
[DisplayName("启用状态")]
public string IsEnableName
{
get
{
return IsEnable ? "启用" : "禁用";
}
}
///
/// 学位条件
///
[DisplayName("学位条件")]
public string DegreeCondition { get; set; }
///
/// 状态
///
[DisplayName("状态")]
public int? RecordStatus { get; set; }
///
/// 创建人
///
[DisplayName("创建人")]
public Guid? CreateUserID { get; set; }
///
/// 创建时间
///
[DisplayName("创建时间")]
public DateTime? CreateTime { get; set; }
///
/// 修改人
///
[DisplayName("")]
public Guid? ModifyUserID { get; set; }
///
/// 修改时间
///
[DisplayName("修改时间")]
public DateTime? ModifyTime { get; set; }
}
}