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
{
///
/// WorktimeRateID
///
public System.Guid WorktimeRateID { get; set; }
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
public Nullable CollegeID { get; set; }
public string CollegeNo { get; set; }
public string CollegeName { get; set; }
[Required]
[DisplayName("授课方式")]
public Nullable 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 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 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 StudentCountStart { get; set; }
[DisplayName("人数(止)")]
public Nullable StudentCountEnd { get; set; }
[Required]
[DisplayName("系数")]
[RegularExpression(@"^\d+(\.\d{1,2})?$")]
public Nullable WorktimeRate { get; set; }
}
}