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