123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- 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 CerificateView
- {
- public Guid? CertisfierDistributeID { get; set; }
- public Guid ProjectScoreID { get; set; }
- [DisplayName("用户ID")]
- public Guid? UserID { get; set; }
- public string ErrorMessage { get; set; }
- [Required]
- [DisplayName("学年学期")]
- public Guid? SchoolYearCode { get; set; }
- [DisplayName("项目名称")]
- public string ProjectName { get; set; }
- public Guid? ExaminationProjectID { get; set; }
- public string Schoolyear { get; set; }
- public string ClassName { get; set; }
- public string DistributeStateName {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.ER_CertisfierDistributeStatus.ToString())
- .Where(x => x.Value == RecordStatus)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 校区
- /// </summary>
- public int? SchoolAreaID { get; set; }
- public string SchoolAreaName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolArea.ToString())
- .Where(x => x.Value == SchoolAreaID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 院系所名称
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
- public string CollegeName { get; set; }
- /// <summary>
- /// 年级专业名称
- /// </summary>
- [DisplayName("年级专业名称")]
- public string GrademajorName { get; set; }
- public Guid? CollegeID { get; set; }
- public Guid? ClassmajorID { get; set; }
- /// <summary>
- /// 班级名称
- /// </summary>
- [DisplayName("班级名称")]
- public string ClassmajorName { get; set; }
- /// <summary>
- /// 专业名称
- /// </summary>
- [DisplayName("专业名称")]
- public string SpecialtyName { get; set; }
- /// <summary>
- /// 年级
- /// </summary>
- [DisplayName("年级")]
- public string Years { get; set; }
- /// <summary>
- /// 姓名
- /// </summary>
- [DisplayName("姓名")]
- public string UserName { get; set; }
- /// <summary>
- /// 性别
- /// </summary>
- [DisplayName("性别")]
- public int? Sex { get; set; }
- /// <summary>
- /// 性别
- /// </summary>
- [DisplayName("性别")]
- public string SexName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
- .Where(x => x.Value == Sex)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 身份证号
- /// </summary>
- [DisplayName("身份证号")]
- public string IDNumber { get; set; }
- /// <summary>
- /// 标准专业
- /// </summary>
- [DisplayName("标准专业")]
- public int? StandardID { get; set; }
- /// <summary>
- /// 标准专业名称
- /// </summary>
- [DisplayName("专业名称")]
- public string StandardName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
- .Where(x => x.Value == StandardID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 证件名称
- /// </summary>
- [DisplayName("证件名称")]
- public string CertificatesTypeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString())
- .Where(x => x.Value == CertificatesType)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 证件类型
- /// </summary>
- [Required]
- [DisplayName("证件类型")]
- public int? CertificatesType { get; set; }
- [DisplayName("领取方式")]
- public int? DistributeTypeID { get; set; }
- [DisplayName("领取方式")]
- public string DistributeTypeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.ER_CertisfierDistributeType.ToString())
- .Where(x => x.Value == DistributeTypeID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- [DisplayName("领取单号")]
- public string No { get; set; }
- [DisplayName("领取人")]
- public string Distributer { get; set; }
- [DisplayName("领取时间")]
- public Nullable<DateTime> DistributeTime { get; set; }
- [DisplayName("委托领取人")]
- public string EntrustDistributer { get; set; }
- //[Required]
- [DisplayName("联系人")]
- public string ContactPerson { get; set; }
- //[Required]
- //[RegularExpression(@"^[0-9]{11}$", ErrorMessage = "只能输入数字和英文字母")]
- [DisplayName("邮寄联系电话")]
- //[RegularExpression(@"^[1][0-9]{10}$", ErrorMessage = "联系电话必须是11位数字")]
- public string MailContactNo { get; set; }
- //[Required]
- //[RegularExpression(@"^[0-9]{11}$", ErrorMessage = "只能输入数字和英文字母")]
- [DisplayName("联系电话")]
- //[RegularExpression(@"^[1][0-9]{10}$", ErrorMessage = "联系电话必须是11位数字")]
- public string ContactNo { get; set; }
- //[Required]
- [DisplayName("联系人证件")]
- public string ContactIDNo { get; set; }
- //[Required]
- [DisplayName("邮寄地址")]
- public string Address { get; set; }
- [DisplayName("邮寄单号")]
- public string DeliveryNoteNo { get; set; }
- public int? RecordStatus { get; set; }
- public string SaveNo { get; set; }
- }
- }
|