123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- 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 CollegeView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
- public Guid CollegeID { get; set; }
-
- /// <summary>
- /// 院系所代码
- /// </summary>
- [Required]
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
- [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "请输入数字或英文字母")]
- public string No { get; set; }
- /// <summary>
- /// 院系所名称
- /// </summary>
- [Required]
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeName")]
- public string Name { get; set; }
- /// <summary>
- /// 简称
- /// </summary>
- [DisplayName("简称")]
- public string SimpleName { get; set; }
- /// <summary>
- /// 英文名称
- /// </summary>
- [DisplayName("英文名称")]
- public string EnglishName { get; set; }
- /// <summary>
- /// 校区ID
- /// </summary>
- [Required]
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusID")]
- public Guid? CampusID { get; set; }
- /// <summary>
- /// 校区代码
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
- public string CampusNo { get; set; }
- /// <summary>
- /// 校区名称
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
- public string CampusName { get; set; }
- /// <summary>
- /// 党务负责人
- /// </summary>
- [DisplayName("党务负责人")]
- public Guid? PoliticalManager { get; set; }
- /// <summary>
- /// 党务负责人
- /// </summary>
- [DisplayName("党务负责人")]
- public string PoliticalManagerName { get; set; }
- /// <summary>
- /// 行政负责人
- /// </summary>
- [DisplayName("行政负责人")]
- public Guid? AdministrativeManager { get; set; }
- /// <summary>
- /// 行政负责人
- /// </summary>
- [DisplayName("行政负责人")]
- public string AdministrativeManagerName { get; set; }
- /// <summary>
- /// 单位类别
- /// </summary>
- [Required]
- [DisplayName("单位类别")]
- public int? UnitCategoryID { get; set; }
- /// <summary>
- /// 单位类别
- /// </summary>
- [DisplayName("单位类别")]
- public string UnitCategoryStr { get; set; }
- /// <summary>
- /// 单位类别
- /// </summary>
- [DisplayName("单位类别")]
- public string UnitCategoryName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_UnitCategory.ToString())
- .Where(x => x.Value == UnitCategoryID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 院系类型
- /// </summary>
- [DisplayName("院系类型")]
- public int? CollegeTypeID { get; set; }
- /// <summary>
- /// 院系类型
- /// </summary>
- [DisplayName("院系类型")]
- public string CollegeTypeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CollegeType.ToString())
- .Where(x => x.Value == CollegeTypeID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 院系类别
- /// </summary>
- [DisplayName("院系类别")]
- public int? CollegeCategoryID { get; set; }
- /// <summary>
- /// 院系类别
- /// </summary>
- [DisplayName("院系类别")]
- public string CollegeCategoryName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CollegeCategory.ToString())
- .Where(x => x.Value == CollegeCategoryID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 办学类别
- /// </summary>
- [DisplayName("办学类别")]
- public int? RunByCategoryID { get; set; }
- /// <summary>
- /// 办学类别
- /// </summary>
- [DisplayName("办学类别")]
- public string RunByCategoryName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_RunByCategory.ToString())
- .Where(x => x.Value == RunByCategoryID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 建立年月
- /// </summary>
- [DisplayName("建立年月")]
- public DateTime? FoundDate { get; set; }
- /// <summary>
- /// 建立年月
- /// </summary>
- [DisplayName("建立年月")]
- public string FoundDateStr { get; set; }
- /// <summary>
- /// 办公电话
- /// </summary>
- [DisplayName("办公电话")]
- public string Officephone { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("备注")]
- public string Remark { get; set; }
- /// <summary>
- /// 错误信息(Excel导入)
- /// </summary>
- [DisplayName("未导入原因")]
- public string ErrorMessage { 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; }
- }
- }
|