123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel;
- namespace EMIS.ViewModel.ScoreManage
- {
- public class GradePointFormulaView
- {
- /// <summary>
- /// 绩点公式设置ID
- /// </summary>
- public Guid? GradePointFormulaID { get; set; }
- /// <summary>
- /// 绩点公式名称
- /// </summary>
- [Required]
- [DisplayName("绩点公式名称")]
- public string Name { get; set; }
- /// <summary>
- /// 分数上限绩点
- /// </summary>
- [Required]
- [DisplayName("绩点基准分数")]
- [RegularExpression(@"^(0|-?[1-9][0-9]*)(\.\d)?$", ErrorMessage = "请输入数字或保留一位小数数字")]
- public decimal? GradePointlimit { get; set; }
- /// <summary>
- /// 分数下限绩点
- /// </summary>
- [Required]
- [DisplayName("后续绩点增率(绩点/分)")]
- [RegularExpression(@"^(0|-?[1-9][0-9]*)(\.\d)?$", ErrorMessage = "请输入数字或保留一位小数数字")]
- public decimal? GradePointFloor { get; set; }
- /// <summary>
- /// 创建时间
- /// </summary>
- [DisplayName("创建时间")]
- public DateTime? CreateTime { get; set; }
- /// <summary>
- /// 创建人
- /// </summary>
- [DisplayName("创建人")]
- public Guid? CreateUserID { get; set; }
- }
- public class GradePointView
- {
- public Guid? GradePointFormulaID { get; set; }
- public string Name { get; set; }
- public decimal? GradePointlimit { get; set; }
- public decimal? GradePointFloor { get; set; }
- }
- }
|