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();
}
}
///
/// 校区
///
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();
}
}
///
/// 院系所名称
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
public string CollegeName { get; set; }
///
/// 年级专业名称
///
[DisplayName("年级专业名称")]
public string GrademajorName { get; set; }
public Guid? CollegeID { get; set; }
public Guid? ClassmajorID { get; set; }
///
/// 班级名称
///
[DisplayName("班级名称")]
public string ClassmajorName { get; set; }
///
/// 专业名称
///
[DisplayName("专业名称")]
public string SpecialtyName { get; set; }
///
/// 年级
///
[DisplayName("年级")]
public string Years { get; set; }
///
/// 姓名
///
[DisplayName("姓名")]
public string UserName { get; set; }
///
/// 性别
///
[DisplayName("性别")]
public int? Sex { get; set; }
///
/// 性别
///
[DisplayName("性别")]
public string SexName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
.Where(x => x.Value == Sex)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 身份证号
///
[DisplayName("身份证号")]
public string IDNumber { get; set; }
///
/// 标准专业
///
[DisplayName("标准专业")]
public int? StandardID { get; set; }
///
/// 标准专业名称
///
[DisplayName("专业名称")]
public string StandardName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
.Where(x => x.Value == StandardID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 证件名称
///
[DisplayName("证件名称")]
public string CertificatesTypeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString())
.Where(x => x.Value == CertificatesType)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 证件类型
///
[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 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; }
}
}