using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using EMIS.ViewModel.Cache; using EMIS.Entities; using System.ComponentModel.DataAnnotations; namespace EMIS.ViewModel.ChargeManage.ChargeSituation { public class ChargeAggregateView { /// /// 应收名单ID /// [DisplayName("应收名单ID")] public Guid StudentChargeID { get; set; } /// /// 用户ID /// [DisplayName("用户ID")] public Guid? UserID { get; set; } /// /// 学号 /// [DisplayName("学号")] public string StudentNo { get; set; } /// /// 考生号 /// [DisplayName("考生号")] public string ExamineeNum { get; set; } /// /// 姓名 /// [DisplayName("姓名")] public string UserName { get; set; } /// /// 性别 /// [DisplayName("性别")] public int? Sex { 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 int? InSchoolStatus { get; set; } /// /// 在校状态 /// [DisplayName("在校状态")] public string InSchoolStatusName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString()) .Where(x => x.Value == InSchoolStatus) .Select(x => x.Name).FirstOrDefault(); } } /// /// 学籍状态 /// [DisplayName("学籍状态")] public int? StudentStatus { get; set; } /// /// 学籍状态 /// [DisplayName("学籍状态")] public string StudentStatusName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_STUDENTSTATUS.ToString()) .Where(x => x.Value == StudentStatus) .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 GrademajorStr { 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(); } } /// /// 学习形式 /// [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 decimal? LearnSystem { get; set; } /// /// 缴费学年 /// [DisplayName("缴费学年")] public int? ChargeYear { get; set; } /// /// 收费项目ID /// [DisplayName("收费项目")] public Guid? ChargeProjectID { get; set; } /// /// 收费项目 /// [DisplayName("收费项目")] public string ChargeProjectName { get; set; } /// /// 应收金额 /// [DisplayName("应收金额")] public decimal? Amount { get; set; } /// /// 调整金额 /// [DisplayName("调整金额")] public decimal? ChargeAmount { get; set; } /// /// 实收金额(减免后的实收金额) /// [DisplayName("实收金额")] public decimal? ActualAmount { get; set; } /// /// 缴费标记 /// [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? DelayAmount { get; set; } /// /// 已缴金额 /// [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 decimal? AmountSum { get; set; } /// /// 是否圆梦计划 /// [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(); } } /// /// 班主任ID /// [DisplayName("班主任ID")] public Guid? TeacherID { get; set; } /// /// 班主任编号 /// [DisplayName("班主任编号")] public string TeacherNo { get; set; } /// /// 班主任 /// [DisplayName("班主任")] public string TeacherName { get; set; } } }