using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using EMIS.ViewModel.Cache; namespace EMIS.ViewModel.ChargeManage.ChargeTotal { public class ChargeTotalView { /// /// 班级信息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? Grade { 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 StandardName { 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; } /// /// 缴费学年 /// [Required] [DisplayName("缴费学年")] public int? ChargeYear { get; set; } /// /// 收费项目ID /// [Required] [DisplayName("收费项目ID")] public Guid? ChargeProjectID { get; set; } /// /// 收费项目 /// [DisplayName("收费项目")] public string ChargeProjectStr { get; set; } /// /// 应收人数 /// [DisplayName("应收人数")] public int? ChargeCount { get; set; } /// /// 应收金额 /// [DisplayName("应收金额")] public decimal? Amount { get; set; } /// /// 调整金额 /// [DisplayName("调整金额")] public decimal? ChargeAmount { get; set; } /// /// 实收金额 /// [DisplayName("实收金额")] public decimal? ActualAmount { get; set; } /// /// 缓交人数 /// [DisplayName("缓交人数")] public int? DelayCount { get; set; } /// /// 缓交金额 /// [DisplayName("缓交金额")] public decimal? DelayAmount { get; set; } /// /// 已收人数 /// [DisplayName("已收人数")] public int? PaymenCount { get; set; } /// /// 已收金额 /// [DisplayName("已收金额")] public decimal? PaymenAmount { get; set; } /// /// 班主任ID /// [DisplayName("班主任ID")] public Guid? TeacherID { get; set; } /// /// 班主任编号 /// [DisplayName("班主任编号")] public string TeacherNo { get; set; } /// /// 班主任 /// [DisplayName("班主任")] public string TeacherName { get; set; } } }