using System; using System.Collections.Generic; using System.Linq; using System.Text; using EMIS.ViewModel.Cache; using System.ComponentModel; namespace EMIS.ViewModel.FeeManage { public class StudentFeeView { public System.Guid ExaminationRegistrationID { get; set; } public Nullable ExaminationBatchProjectID { get; set; } public Nullable ExaminationProjectID { get; set; } public System.Guid? ExaminationRegistrationConfirmID { get; set; } /// /// 确认单号 /// public string No { get; set; } /// /// 收据号 /// public string ReceiptNo { get; set; } /// /// 项目名称 /// public string ExaminationProjectName { get; set; } /// /// 考试批次 /// public string ExaminationBatchName { get; set; } /// /// 学年学期 /// public Nullable SchoolyearID { get; set; } public string SchoolyearCode { get; set; } /// /// 报名项目 /// public Nullable ExaminationProjectFeeTypeID { get; set; } public Nullable FeeTypeID { get; set; } public string FeeTypeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationProjectFeeType.ToString()) .Where(x => x.Value == FeeTypeID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 学生ID /// public Nullable UserID { get; set; } /// /// 院系 /// public Nullable CollegeID { 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(); } } /// /// 班级 /// public Nullable ClassmajorID { get; set; } public string ClassmajorName { get; set; } /// /// 学号 /// public string LoginID { get; set; } /// /// 学号 /// public string StudentNo { get; set; } /// /// 姓名 /// public string UserName { get; set; } /// /// 性别 /// public Nullable Sex { get; set; } public string SexName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString()) .Where(x => x.Value == Sex) .Select(x => x.Name).FirstOrDefault(); } } /// /// 证件类型 /// public Nullable CertificatesType { get; set; } public string CertificatesTypeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString()) .Where(x => x.Value == CertificatesType) .Select(x => x.Name).FirstOrDefault(); } } [DisplayName("考试类型")] public Guid? ExaminationTypeID { get; set; } [DisplayName("考试类型")] public string ExaminationTypeName { get; set; } public string IDNumber { get; set; } /// /// 联系电话 /// public string PhoneNumber { get; set; } /// /// 金额 /// public Nullable Fee { get; set; } /// /// Remark /// public string Remark { get; set; } /// /// 缴费状态 /// public Nullable RecordStatus { get; set; } public string RecordStatusName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationRegistrationStatus.ToString()) .Where(x => x.Value == RecordStatus) .Select(x => x.Name).FirstOrDefault(); } } /// /// 收费时间 /// public Nullable PayTime { get; set; } /// /// 开户银行 /// [DisplayName("开户银行及支行")] public string BankName { get; set; } /// /// 银行卡号 /// [DisplayName("银行卡号")] public string CardNo { get; set; } [DisplayName("缴费方式")] public int? PayWay { get; set; } [DisplayName("缴费方式")] public string PayWayStr { get { return IdNameExt.GetDictionaryItem(DictionaryItem.EX_PayWay.ToString()) .Where(x => x.Value == PayWay) .Select(x => x.Name).FirstOrDefault(); } } [DisplayName("退费经办老师")] public Nullable RefundUserID { get; set; } public string RefundUserName { get; set; } [DisplayName("退费申请时间")] public Nullable RefundTime { get; set; } public string RefundTimeStr { get { return RefundTime == null ? "" :RefundTime.Value.ToString("yyyy-MM-dd HH:mm:ss"); } } [DisplayName("退费确认老师")] public Nullable RefundConfirmUserID { get; set; } public string RefundConfirmUserName { get; set; } [DisplayName("退费确认时间")] public Nullable RefundConfirmTime { get; set; } public string RefundConfirmTimeStr { get { return RefundConfirmTime == null ? "" : RefundConfirmTime.Value.ToString("yyyy-MM-dd HH:mm:ss"); } } public string WechatOrderID { get; set; } public string RefundOrderID { get; set; } } }