using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using EMIS.ViewModel.Cache; using EMIS.ViewModel.SystemView; namespace EMIS.ViewModel.ExaminationApply { public class StudentListView { public Guid? UserID { get; set; } public Guid? ExaminationRegistrationID { get; set; } /// /// 考试报名学年学期ID /// public Guid? ExaminationSchoolyearID { get; set; } [Required] [DisplayName("学年学期")] public Guid? SchoolyearID { get; set; } [DisplayName("学年学期")] public string SchoolyearCode { get; set; } [Required] [DisplayName("考试批次")] public Guid? ExaminationBatchID { get; set; } [DisplayName("考试批次")] public string ExaminationBatchName { get; set; } [Required] [DisplayName("考试类型")] public Guid? ExaminationTypeID { get; set; } [DisplayName("考试类型")] public string ExaminationTypeName { get; set; } [DisplayName("考试批次")] public Guid? ExaminationBatchProjectID { get; set; } //[DisplayName("考试批次")] //public string ExaminationBatchProjectName { get; set; } [Required] [DisplayName("项目名称")] public Guid? ExaminationProjectID { get; set; } [DisplayName("项目名称")] public string ExaminationProjectName { get; set; } public int? ExaminationLevelID { get; set; } public string ExaminationLevelName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationLevel.ToString()) .Where(x => x.Value == ExaminationLevelID) .Select(x => x.Name).FirstOrDefault(); } } public DateTime? StartDate { get; set; } public DateTime? EndDate { get; set; } [DisplayName("院系")] public Guid? CollegeID { get; set; } [DisplayName("院系")] public string CollegeName { get; set; } /// /// 校区 /// 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(); } } [DisplayName("年级")] public int? SchoolyearNumID { get; set; } [DisplayName("年级")] public string SchoolyearNumName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString()) .Where(x => x.Value == SchoolyearNumID) .Select(x => x.Name).FirstOrDefault(); } } [DisplayName("班级名称")] public Guid? ClassmajorID { get; set; } [DisplayName("班级名称")] public string ClassmajorName { get; set; } [DisplayName("班号")] public string ClassmajorNo { get; set; } [DisplayName("是否交费")] public string IsPay { get; set; } [DisplayName("是否已确认")] public bool IsConfirm { get; set; } [DisplayName("学号")] public string StudentNo { get; set; } [DisplayName("姓名")] public string UserName { get; set; } [DisplayName("性别")] public int? Sex { get; set; } /// /// 性别导入 /// public string SexForImport { 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 decimal? Cost { get; set; } [DisplayName("证件类型")] public int? CertificatesType { get; set; } /// /// 证件类型导入 /// public string CertificatesTypeNameForImport { get; set; } [DisplayName("证件类型")] public string CertificatesTypeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString()) .Where(x => x.Value == CertificatesType) .Select(x => x.Name).FirstOrDefault(); } } [DisplayName("证件号码")] public string IDNumber { get; set; } [DisplayName("项目收费标准对应收费项ID")] public Guid? ExaminationProjectFeeTypeID { get; set; } [DisplayName("项目收费标准对应收费项")] public string ExaminationProjectFeeTypeName { get; set; } [Required] [DisplayName("项目收费标准")] public Guid? ExaminationProjectFeeID { get; set; } [DisplayName("项目收费标准")] public string ExaminationProjectFeeName { get; set; } [Required] [DisplayName("收费项")] public int? FeeTypeID { get; set; } /// /// 编辑绑定下拉用 /// [DisplayName("收费项")] public int? Value { get; set; } [DisplayName("收费项")] public string FeeTypeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationProjectFeeType.ToString()) .Where(x => x.Value == FeeTypeID) .Select(x => x.Name).FirstOrDefault(); } } [DisplayName("费用")] public decimal? Fee { get; set; } [DisplayName("报名项目(费用)")] public string FeeTypeAndFee { get { return FeeTypeName + "(" + Fee.ToString() + ")"; } } /// /// 银行卡号 /// [DisplayName("银行卡号")] public string CardNo { get; set; } [DisplayName("学历")] public int? EducationID { get; set; } [DisplayName("学历")] public string EducationName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString()) .Where(x => x.Value == EducationID) .Select(x => x.Name).FirstOrDefault(); } } [DisplayName("金额")] public decimal? PayFee { get; set; } [DisplayName("缴费状态")] public int? RecordStatus { get; set; } [DisplayName("缴费状态")] public string RecordStatusStr { get { return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationRegistrationStatus.ToString()) .Where(x => x.Value == RecordStatus) .Select(x => x.Name).FirstOrDefault(); } } [DisplayName("确认单号ID")] public Guid? ExaminationRegistrationConfirmID { get; set; } [DisplayName("确认单号")] public string ExaminationRegistrationConfirmNo { get; set; } [DisplayName("备注")] public string Remark { get; set; } [DisplayName("退费原因")] public string RefundReason { get; set; } [DisplayName("学制")] public decimal? LearnSystem { get; set; } [DisplayName("入学年份")] public int? Year { 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 int RegistedCount { get; set; } [DisplayName("照片")] public string PhotoUrl { get; set; } /// /// /// public bool IsExcelVaildateOK { get; set; } /// /// 错误信息 /// [DisplayName("错误信息")] public string ErrorMessage { get; set; } public RegistView RegistView { get; set; } public Dictionary FeeTypeList { get; set; } public bool IsOnlinePay { get; set; } public string OrderID { get; set; } [DisplayName("微信订单号")] public string WechatOrderID { get; set; } [DisplayName("退款单号")] public string RefundOrderID { get; set; } public string PayForm { get; set; } public string PayUrl { get; set; } } }