using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using EMIS.ViewModel.Cache;
namespace EMIS.ViewModel
{
public class UniversityView
{
///
/// 主键ID
///
[DisplayName("主键ID")]
public Guid UniversityID { get; set; }
///
/// 学校代码
///
[Required]
[DisplayName("学校代码")]
[RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "请输入数字或英文字母")]
public string Code { get; set; }
///
/// 学校名称
///
[Required]
[DisplayName("学校名称")]
public string Name { get; set; }
///
/// 学校简称
///
[DisplayName("学校简称")]
public string SimpleName { get; set; }
///
/// 英文名称
///
[DisplayName("英文名称")]
public string EnglishName { get; set; }
///
/// 所属省份
///
[DisplayName("所属省份")]
public int? ProvinceID { get; set; }
///
/// 所属省份
///
[DisplayName("所属省份")]
public string ProvinceName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Province.ToString())
.Where(x => x.Value == ProvinceID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 所属市
///
[DisplayName("所属市")]
public int? CityID { get; set; }
///
/// 所属市
///
[DisplayName("所属市")]
public string CityName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Region.ToString())
.Where(x => x.Value == CityID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 所属区
///
[DisplayName("所属区")]
public int? DistrictID { get; set; }
///
/// 所属区
///
[DisplayName("所属区")]
public string DistrictName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Region.ToString())
.Where(x => x.Value == DistrictID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 学校性质
///
[DisplayName("学校性质")]
public int? PropertyID { get; set; }
///
/// 学校性质
///
[DisplayName("学校性质")]
public string PropertyName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_UniversityProperty.ToString())
.Where(x => x.Value == PropertyID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 办学类型
///
[Required]
[DisplayName("办学类型")]
public int? SchoolTypeID { get; set; }
///
/// 办学类型
///
[DisplayName("办学类型")]
public string SchoolTypeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolType.ToString())
.Where(x => x.Value == SchoolTypeID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 主管部门
///
[DisplayName("主管部门")]
public int? ManagerID { get; set; }
///
/// 主管部门
///
[DisplayName("主管部门")]
public string ManagerName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ManagerType.ToString())
.Where(x => x.Value == SchoolTypeID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 举办者
///
[DisplayName("举办者")]
public int? FounderTypeID { get; set; }
///
/// 举办者
///
[DisplayName("举办者")]
public string FounderTypeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_FounderType.ToString())
.Where(x => x.Value == FounderTypeID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 学校级别
///
[DisplayName("学校级别")]
public int? SchoolLevelID { get; set; }
///
/// 学校级别
///
[DisplayName("学校级别")]
public string SchoolLevelName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolLevel.ToString())
.Where(x => x.Value == SchoolLevelID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 校长
///
[DisplayName("校长")]
public string HeadMasterName { get; set; }
///
/// 党务负责人
///
[DisplayName("党务负责人")]
public Guid? PartyManageID { get; set; }
///
/// 党务负责人
///
[DisplayName("党务负责人")]
public string PartyManageName { get; set; }
///
/// 法人代表
///
[DisplayName("法人代表")]
public string LegalPersonName { get; set; }
///
/// 创校日期
///
[DisplayName("创校日期")]
public DateTime? BuildDate { get; set; }
///
/// 校庆日期
///
[DisplayName("校庆日期")]
public DateTime? AnniversaryDate { get; set; }
///
/// 建校基础
///
[DisplayName("建校基础")]
public string SchoolBasis { get; set; }
///
/// 校训
///
[DisplayName("校训")]
public string SchoolMotto { get; set; }
///
/// 学科门数
///
[DisplayName("学科门数")]
[RegularExpression(@"^[0-9]*[1-9][0-9]*$", ErrorMessage = "请输入正整数")]
public int? SubjectCount { get; set; }
///
/// 是否211工程院校
///
[DisplayName("是否211工程院校")]
public bool Is211University { get; set; }
///
/// 是否重点院校
///
[DisplayName("是否重点院校")]
public bool IsKeyUniversity { get; set; }
///
/// 是否附设成教学院
///
[DisplayName("是否附设成教学院")]
public bool IsAdultCollege { get; set; }
///
/// 是否设立研究生院
///
[DisplayName("是否设立研究生院")]
public bool IsPostCollege { get; set; }
///
/// 是否附设网络学院
///
[DisplayName("是否附设网络学院")]
public bool IsNetCollege { get; set; }
///
/// 联系电话
///
[DisplayName("联系电话")]
public string Telephone { get; set; }
///
/// 邮政编码
///
[DisplayName("邮政编码")]
public string ZIPCode { get; set; }
///
/// 电子邮件
///
[DisplayName("电子邮件")]
public string Email { get; set; }
///
/// 传真
///
[DisplayName("传真")]
public string FAX { get; set; }
///
/// 微信公众号
///
[DisplayName("微信公众号")]
public string PublicNum { get; set; }
///
/// 主页地址
///
[DisplayName("主页地址")]
public string HomePage { get; set; }
///
/// 学校地址
///
[DisplayName("学校地址")]
public string Address { get; set; }
///
/// 学校英文地址
///
[DisplayName("学校英文地址")]
public string EnglishAddress { get; set; }
///
/// 历史沿革
///
[DisplayName("历史沿革")]
public string HistoryEvolution { get; set; }
///
/// 备注
///
[DisplayName("备注")]
public string Remark { 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; }
}
}