using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using EMIS.ViewModel.CacheManage;
using System.ComponentModel.DataAnnotations;
namespace EMIS.ViewModel.ChargeManage.ChargeSituation
{
public class StudentChargeView
{
///
/// 应收名单ID
///
[DisplayName("应收名单ID")]
public Guid StudentChargeID { get; set; }
///
/// 用户ID
///
[Required]
[DisplayName("用户ID")]
public Guid? UserID { get; set; }
///
/// 学号
///
[Required]
[DisplayName("学号")]
public string StudentNo { get; set; }
///
/// 姓名
///
[DisplayName("姓名")]
public string UserName { get; set; }
///
/// 性别
///
[DisplayName("性别")]
public int? SexID { get; set; }
///
/// 性别
///
[DisplayName("性别")]
public string SexName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
.Where(x => x.Value == SexID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 在校状态
///
[DisplayName("在校状态")]
public int? InSchoolStatusID { get; set; }
///
/// 在校状态
///
[DisplayName("在校状态")]
public string InSchoolStatusIDStr
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString())
.Where(x => x.Value == InSchoolStatusID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 在校状态
///
[DisplayName("在校状态")]
public string InSchoolStatusName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString())
.Where(x => x.Value == InSchoolStatusID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 学籍状态
///
[DisplayName("学籍状态")]
public int? StudentStatusID { get; set; }
///
/// 学籍状态
///
[DisplayName("学籍状态")]
public string StudentStatusName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString())
.Where(x => x.Value == StudentStatusID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 班级信息ID
///
[DisplayName("班级信息ID")]
public Guid? ClassID { get; set; }
///
/// 班级编号
///
[DisplayName("班级编号")]
public string ClassNo { get; set; }
///
/// 班级名称
///
[DisplayName("班级名称")]
public string ClassName { get; set; }
///
/// 年级专业ID
///
[DisplayName("年级专业ID")]
public Guid? GradeMajorID { get; set; }
///
/// 年级专业编号
///
[DisplayName("年级专业编号")]
public string GradeMajorCode { get; set; }
///
/// 年级专业名称
///
[DisplayName("年级专业名称")]
public string GradeMajoyStr { get; set; }
///
/// 院系所ID
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
public Guid? CollegeID { get; set; }
///
/// 院系所代码
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
public string CollegeCode { get; set; }
///
/// 院系所名称
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
public string CollegeStr { get; set; }
///
/// 年级
///
[DisplayName("年级")]
public int? GradeStr { get; set; }
///
/// 专业ID(Value)
///
[DisplayName("专业ID(Value)")]
public int? StandardID { get; set; }
///
/// 专业代码
///
[DisplayName("专业代码")]
public string StandardCode
{
get
{
var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
.Where(x => x.Value == StandardID)
.Select(x => x.Code).FirstOrDefault();
return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
}
}
///
/// 专业名称
///
[DisplayName("专业名称")]
public string MajorStr
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
.Where(x => x.Value == StandardID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 培养层次
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
public int? EducationID { get; set; }
///
/// 培养层次
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
public string EducationName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
.Where(x => x.Value == EducationID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 培养层次
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
public string EducationStr { get; set; }
///
/// 学习形式
///
[DisplayName("学习形式")]
public int? LearningformID { get; set; }
///
/// 学习形式
///
[DisplayName("学习形式")]
public string LearningformName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
.Where(x => x.Value == LearningformID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 学习形式
///
[DisplayName("学习形式")]
public string LearningformStr { get; set; }
///
/// 学制
///
[DisplayName("学制")]
public decimal? LearnSystem { get; set; }
///
/// 缴费学年
///
[Required]
[DisplayName("缴费学年")]
public int? ChargeYear { get; set; }
///
/// 收费项目ID
///
[Required]
[DisplayName("收费项目ID")]
public Guid? ChargeProjectID { get; set; }
///
/// 收费项目
///
[DisplayName("收费项目")]
public string ChargeProjectStr { get; set; }
///
/// 应收金额
///
[Required]
[DisplayName("应收金额")]
[RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入金额")]
public decimal? Amount { get; set; }
///
/// 调整金额
///
[DisplayName("调整金额")]
[RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入金额")]
public decimal? ChargeAmount { get; set; }
///
/// 实收金额(减免后的实收金额)
///
[Required]
[DisplayName("实收金额")]
[RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入金额")]
public decimal? ActualAmount { get; set; }
///
/// 缴费标记
///
[Required]
[DisplayName("缴费标记")]
public int? ChargeTag { get; set; }
///
/// 缴费标记
///
[DisplayName("缴费标记")]
public string ChargeTagName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.EC_ChargeTag.ToString())
.Where(x => x.Value == ChargeTag)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 已缴金额
///
[DisplayName("已缴金额")]
public decimal? PaidAmount { get; set; }
///
/// 欠费状态
///
[DisplayName("欠费状态")]
public int? IsArrear { get; set; }
///
/// 欠费状态
///
[DisplayName("欠费状态")]
public string IsArrearName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_GeneralPurpose.ToString())
.Where(x => x.Value == IsArrear)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 是否圆梦计划
///
[DisplayName("是否圆梦计划")]
public int? IsDream { get; set; }
///
/// 是否圆梦计划
///
[DisplayName("是否圆梦计划")]
public string IsDreamProject
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_GeneralPurpose.ToString())
.Where(x => x.Value == IsDream)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 备注
///
[DisplayName("备注")]
public string Remark { get; set; }
///
/// 状态
///
[DisplayName("状态")]
public int? RecordStatus { get; set; }
///
/// 创建人ID
///
[DisplayName("创建人ID")]
public Guid? CreateUserID { get; set; }
///
/// 创建时间
///
[DisplayName("创建时间")]
public DateTime? CreateTime { get; set; }
///
/// 修改人ID
///
[DisplayName("修改人ID")]
public Guid? ModifyUserID { get; set; }
///
/// 修改时间
///
[DisplayName("修改时间")]
public DateTime? ModifyTime { get; set; }
}
}