123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- 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 PaymentStandardView
- {
- public Guid PaymentStandardID { get; set; }
- [Required]
- [DisplayName("职称")]
- public int? TitleID { get; set; }
- public string TitleDesc
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Title.ToString())
- .Where(x => x.Value == TitleID)
- .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; }
- }
- }
|