123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel;
- using EMIS.ViewModel.CacheManage;
- namespace EMIS.ViewModel.PaymentManage
- {
- public class LevelStandardView
- {
- public Guid LevelStandardID { get; set; }
- [DisplayName("聘任类别")]
- public int? EmploymentTypeID { get; set; }
- public string EmploymentTypeDesc
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_EmploymentType.ToString())
- .Where(x => x.Value == EmploymentTypeID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- [Required]
- [DisplayName("课酬级别")]
- public int? PaymentLevelID { get; set; }
- public string PaymentLevelDesc
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.TP_PaymentLevel.ToString())
- .Where(x => x.Value == PaymentLevelID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- [Required]
- [DisplayName("教师类型")]
- public int? TeacherType { get; set; }
- public string TeacherTypeDesc
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeacherType.ToString())
- .Where(x => x.Value == TeacherType)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- [Required]
- [DisplayName("标准课酬")]
- [RegularExpression(@"^\d+(\.\d{1,2})?$", ErrorMessage = "请输入整数或保留2位小数")]
- public decimal? Amount { get; set; }
- }
- }
|