using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using EMIS.ViewModel.Cache;
namespace EMIS.ViewModel.FeeManage
{
public class RefundView
{
public System.Guid ExaminationRegistrationID { get; set; }
///
/// 学生ID
///
public Nullable UserID { get; set; }
///
/// 姓名
///
[DisplayName("姓名")]
public string UserName { get; set; }
[DisplayName("证件号码")]
public string IDNumber { get; set; }
[DisplayName("联系电话")]
public string Mobile { get; set; }
[DisplayName("年级")]
public Nullable Year { get; set; }
///
/// 院系
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
public Nullable CollegeID { get; set; }
public string CollegeName { get; set; }
///
/// 班级
///
[DisplayName("班级")]
public Nullable ClassmajorID { get; set; }
public string ClassmajorName { get; set; }
[DisplayName("考试批次")]
public Nullable ExaminationBatchID { get; set; }
public string ExaminationBatchName { get; set; }
[DisplayName("考试项目")]
public Nullable ExaminationProjectID { get; set; }
public string ExaminationProjectName { get; set; }
[DisplayName("报名项目")]
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();
}
}
///
/// 金额
///
[DisplayName("金额")]
[DisplayFormat(DataFormatString = "{0:#.00}")]
public Nullable Fee { get; set; }
[DisplayName("收据号")]
public string ReceiptNo { get; set; }
///
/// 开户银行
///
[DisplayName("开户银行及支行")]
[MaxLength(50)]
[Required]
public string BankName { get; set; }
///
/// 银行卡号
///
[DisplayName("银行卡号")]
[MaxLength(50)]
[Required]
public string CardNo { get; set; }
[DisplayName("退费原因")]
[Required]
public string RefundReason { get; set; }
[DisplayName("经办老师")]
[Required]
public Nullable RefundUserID { get; set; }
public string RefundUserName { get; set; }
[DisplayName("申请时间")]
[Required]
public Nullable RefundTime { get; set; }
public string RefundTimeStr
{
get
{
return RefundTime == null ? "" : RefundTime.Value.ToString("yyyy年MM月dd日");
}
}
[DisplayName("确认单号")]
public string ConfirmNo { get; set; }
public Guid? SchoolYearID { get; set; }
[DisplayName("学年学期")]
public string SchoolYearCode { get; set; }
[DisplayName("学号")]
public string StudentNo { get; set; }
public int? RecordStatus { get; set; }
}
}