using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using EMIS.ViewModel.Cache;
namespace EMIS.ViewModel.Students
{
public class ExaminationApplyView
{
///
/// 考试项目
///
public Guid? ExaminationProjectID { get; set; }
public string ExaminationProjectName { get; set; }
///
/// 学年学期
///
public Guid? SchoolYearID { get; set; }
public string SchoolYearCode { 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 Guid? PreposeProjectID { get; set; }
public string PreposeProjectName { get; set; }
///
/// 发证机关
///
public int? IssuedByID { get; set; }
public string IssuedByName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.EX_Issuer.ToString())
.Where(x => x.Value == IssuedByID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 需交资料及注意事项(批次项目)
///
public string Remark { get; set; }
public string BatchRemark { get; set; }
///
/// 考试批次
///
public Guid? ExaminationBatchID { get; set; }
public string ExaminationBatchName { get; set; }
///
/// 考试类型ID
///
[DisplayName("考试类型")]
public Nullable ExaminationTypeID { get; set; }
///
/// 考试类型
///
[DisplayName("考试类型")]
public string ExaminationTypeName { get; set; }
public Guid? ExaminationBatchProjectID { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
public DateTime? ExaminationDate { get; set; }
[DisplayName("培训情况")]
public string Training { get; set; }
[DisplayName("预开课时间")]
public string TakeCourseTime { get; set; }
///
/// 预考试时间
///
public string SimulateTime { get; set; }
///
/// 最大报名人数
///
public int? MaxRegistCount { get; set; }
public decimal? Cost { get; set; }
public int RegisterNum { get; set; }
public int BKCS { get; set; }
[DisplayName("是否已报考")]
public bool IsRister { get; set; }
[DisplayName("是否已报考")]
public string IsRisterName
{
get { return IsRister == true ? "是" : "否"; }
}
public int? SchoolYearNum { get; set; }
[DisplayName("项目收费标准")]
public Guid? ExaminationProjectFeeID { get; set; }
[DisplayName("项目收费标准")]
public string ExaminationProjectFeeName { get; set; }
public string FeeTypeListStr { get; set; }
}
public class ExaminationRegisView
{
public Guid ExaminationRegistrationID { get; set; }
///
/// 考试项目
///
public Guid? ExaminationProjectID { get; set; }
public string ExaminationProjectName { get; set; }
///
/// 学年学期
///
public Guid? SchoolYearID { get; set; }
public string SchoolYearCode { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
public DateTime? ExaminationDate { get; set; }
///
/// 预考试时间
///
public string SimulateTime { get; set; }
[DisplayName("证件类型")]
public int? CertificatesType { 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; }
[DisplayName("项目收费标准")]
public Guid? ExaminationProjectFeeID { get; set; }
[DisplayName("项目收费标准")]
public string ExaminationProjectFeeName { get; set; }
[DisplayName("收费项")]
public int? FeeTypeID { 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() + ")";
}
}
///
/// 需交资料及注意事项(批次项目)
///
public string Remark { get; set; }
public string BatchRemark { 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();
}
}
public Dictionary FeeTypeList { get; set; }
public string FeeTypeListStr { get; set; }
}
}