using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using EMIS.ViewModel.Cache; using System.ComponentModel.DataAnnotations; namespace EMIS.ViewModel.ChargeManage.ChargeSituation { public class ChargeStandardView { /// /// 收费标准ID /// [DisplayName("收费标准ID")] public System.Guid ChargeStandardID { 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; } /// /// 年级专业ID /// [DisplayName("年级专业ID")] public Guid? GrademajorID { get; set; } /// /// 年级专业代码 /// [DisplayName("年级专业代码")] public string GradeMajorCode { get; set; } /// /// 年级专业名称 /// [Required] [DisplayName("年级专业名称")] public string GrademajorStr { 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 LearningformStr { 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; } /// /// 收费项目 /// [Required] [DisplayName("收费项目")] public string ChargeProjectStr { get; set; } /// /// 应收金额 /// [Required] [DisplayName("应收金额")] [RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入金额")] public decimal? Amount { get; set; } /// /// 学生人数 /// [DisplayName("学生人数")] public int? StudentCount { get; set; } /// /// 生成人数 /// [DisplayName("生成人数")] public int? StudentChargeCount { get; set; } /// /// 用户ID /// [DisplayName("用户ID")] public Guid? UserID { get; set; } /// /// 在校状态(用于收费标准新增) /// [DisplayName("在校状态")] public int? InSchoolStatus { get; set; } /// /// 状态 /// [DisplayName("状态")] public int? RecordStatus { get; set; } /// /// 创建人 /// [DisplayName("创建人")] public Guid? CreateUserID { get; set; } /// /// 创建时间 /// [DisplayName("创建时间")] public DateTime? CreateTime { get; set; } /// /// 修改人 /// [DisplayName("修改人")] public Guid? ModifyUserID { get; set; } /// /// 修改时间 /// [DisplayName("修改时间")] public DateTime? ModifyTime { get; set; } } }