123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using EMIS.ViewModel.CacheManage;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel;
- namespace EMIS.ViewModel.PaymentManage
- {
- public class WorktimeRateView
- {
- /// <summary>
- /// WorktimeRateID
- /// </summary>
- public System.Guid WorktimeRateID { get; set; }
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
- public Nullable<System.Guid> CollegeID { get; set; }
- public string CollegeNo { get; set; }
- public string CollegeName { get; set; }
- [Required]
- [DisplayName("授课方式")]
- public Nullable<int> TeachingModeID { get; set; }
- public string TeachingModeDesc
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString())
- .Where(x => x.Value == TeachingModeID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- [DisplayName("任课方式")]
- public Nullable<int> TeachingMethodID { get; set; }
- public string TeachingMethodDesc
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.EM_TeachingMethod.ToString())
- .Where(x => x.Value == TeachingMethodID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- [Required]
- [DisplayName("课酬级别")]
- public Nullable<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 Nullable<int> StudentCountStart { get; set; }
- [DisplayName("人数(止)")]
- public Nullable<int> StudentCountEnd { get; set; }
- [Required]
- [DisplayName("系数")]
- [RegularExpression(@"^\d+(\.\d{1,2})?$")]
- public Nullable<decimal> WorktimeRate { get; set; }
- }
- }
|