using System; using System.Collections.Generic; using System.Linq; using System.Text; using EMIS.ViewModel.Cache; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace EMIS.ViewModel.ChargeManage.ChargeSituation { public class StudentChargePaymenView { /// /// 学生缴费ID /// [DisplayName("学生缴费ID")] public Guid StudentChargePaymentID { get; set; } /// /// 应收名单ID /// [DisplayName("应收名单ID")] public Guid? StudentChargeID { get; set; } /// /// 用户ID /// [Required] [DisplayName("学号")] public Guid? UserID { get; set; } /// /// 学号 /// [DisplayName("学号")] public string StudentNo { 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? InSchoolStatusID { get; set; } /// /// 在校状态 /// [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 /// [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 CollegeName { get; set; } /// /// 班级信息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; } /// /// 年级 /// [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 decimal? LearnSystem { get; set; } /// /// 缴费学年 /// [Required] [DisplayName("缴费学年")] public int? ChargeYear { get; set; } /// /// 缴费学年 /// [DisplayName("缴费学年")] public string ChargeYearStr { get; set; } /// /// 收费项目ID /// [Required] [DisplayName("收费项目")] public Guid? ChargeProjectID { get; set; } /// /// 收费项目 /// [DisplayName("收费项目")] public string ChargeProjectStr { get; set; } /// /// 应收金额(应收名单对应的应收金额、收费标准对应的应收金额) /// [Required] [DisplayName("应收金额")] [RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入金额")] public decimal? StandardAmount { get; set; } /// /// 调整金额 /// [Required] [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(); } } /// /// 已缴金额 /// [Required] [DisplayName("已缴金额")] [RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入金额")] public decimal? PaidAmount { get; set; } /// /// 已缴总金额 /// [DisplayName("已缴总金额")] public decimal? AmountSum { get; set; } /// /// 缴费金额(正浮点数) /// [Required] [DisplayName("缴费金额")] [RegularExpression(@"^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$", ErrorMessage = "请输入缴费金额")] public decimal? Amount { get; set; } /// /// 缴费金额 /// [DisplayName("缴费金额")] [RegularExpression(@"^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$", ErrorMessage = "请输入缴费金额")] public string AmountStr { get; set; } /// /// 缴费日期 /// [Required] [DisplayName("缴费日期")] public DateTime? ChargeDate { get; set; } /// /// 缴费日期 /// [DisplayName("缴费日期")] public string ChargeDateStr { 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(); } } /// /// 状态 /// [DisplayName("状态")] public int? RecordStatus { get; set; } /// /// 备注 /// [DisplayName("备注")] public string Remark { get; set; } /// /// 错误信息 /// [DisplayName("错误信息")] public string ErrorMessage { get; set; } private bool _isExcelVaildateOK = true; /// /// Excel验证是否通过,默认为true /// true:通过;false:不通过 /// public bool IsExcelVaildateOK { get { return _isExcelVaildateOK; } set { _isExcelVaildateOK = value; } } /// /// 创建人ID /// [DisplayName("创建人ID")] public Guid? CreateUserID { get; set; } /// /// 创建时间 /// [DisplayName("创建时间")] public DateTime? CreateTime { get; set; } /// /// 修改人ID /// [DisplayName("修改人")] public Guid? ModifyUserID { get; set; } /// /// 修改时间 /// [DisplayName("修改时间")] public DateTime? ModifyTime { get; set; } } }