using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using EMIS.ViewModel.CacheManage;
namespace EMIS.ViewModel.EvaluationManage.EvaluationResult
{
public class EvaluationStaffScoreView
{
///
/// 主键ID
///
[DisplayName("主键ID")]
public Guid EvaluationStaffScoreID { get; set; }
///
/// 学年学期ID
///
[Required]
[DisplayName("学年学期ID")]
public Guid? SchoolyearID { get; set; }
///
/// 学年学期对应的Value值
///
[DisplayName("SchoolyearValue")]
public int? SchoolyearValue { get; set; }
///
/// 学年学期
///
[DisplayName("学年学期")]
public string SchoolyearCode { get; set; }
///
/// 任课教师ID
///
[Required]
[DisplayName("任课教师ID")]
public Guid? UserID { get; set; }
///
/// 教师工号
///
[DisplayName("教师工号")]
public string StaffCode { get; set; }
///
/// 任课教师
///
[DisplayName("任课教师")]
public string StaffName { get; set; }
///
/// 性别
///
[DisplayName("性别")]
public int? SexID { get; set; }
///
/// 性别
///
[DisplayName("性别")]
public string SexName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString()).Where(x => x.Value == SexID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 教师类型
///
[DisplayName("教师类型")]
public int? TeacherTypeID { get; set; }
///
/// 教师类型
///
[DisplayName("教师类型")]
public string TeacherTypeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeacherType.ToString()).Where(x => x.Value == TeacherTypeID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 在职状态
///
[DisplayName("在职状态")]
public int? IncumbencyState { get; set; }
///
/// 在职状态
///
[DisplayName("在职状态")]
public string IncumbencyStateName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_IncumbencyState.ToString()).Where(x => x.Value == IncumbencyState).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 职称
///
[DisplayName("职称")]
public int? TitleID { get; set; }
///
/// 职称
///
[DisplayName("职称")]
public string TitleName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Title.ToString()).Where(x => x.Value == TitleID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 课程信息ID
///
[Required]
[DisplayName("课程信息ID")]
public Guid? CoursematerialID { get; set; }
///
/// 课程代码
///
[DisplayName("课程代码")]
public string CourseCode { get; set; }
///
/// 课程名称
///
[DisplayName("课程名称")]
public string CourseName { get; set; }
///
/// 所属教研室ID
///
[Required]
[DisplayName("所属教研室ID")]
public Guid? DepartmentID { get; set; }
///
/// 所属教研室代码
///
[DisplayName("所属教研室代码")]
public string DepartmentNo { get; set; }
///
/// 所属教研室
///
[DisplayName("所属教研室")]
public string DepartmentName { get; set; }
///
/// 院系所ID
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
public Guid? CollegeID { get; set; }
///
/// 院系所代码
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
public string CollegeNo { get; set; }
///
/// 院系所
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
public string CollegeName { get; set; }
///
/// 校区ID
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
public Guid? CampusID { get; set; }
///
/// 校区代码
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
public string CampusNo { get; set; }
///
/// 校区名称
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
public string CampusName { get; set; }
///
/// 学生评分
///
[Required]
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EvaluationStudentScore")]
[RegularExpression(@"^\d+(\.\d{1,2})?$", ErrorMessage = "请输入分数或保留2位以下小数点分数")]
public decimal? StudentScore { get; set; }
///
/// 院系评分
///
[Required]
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EvaluationCollegeScore")]
[RegularExpression(@"^\d+(\.\d{1,2})?$", ErrorMessage = "请输入分数或保留2位以下小数点分数")]
public decimal? CollegeScore { get; set; }
///
/// 总评分
///
[Required]
[DisplayName("总评分")]
[RegularExpression(@"^\d+(\.\d{1,2})?$", ErrorMessage = "请输入分数或保留2位以下小数点分数")]
public decimal? TotalScore { get; set; }
///
/// 备注
///
[DisplayName("备注")]
public string Remark { get; set; }
///
/// 状态
///
[DisplayName("状态")]
public int? RecordStatus { get; set; }
///
/// 创建人
///
[DisplayName("创建人")]
public Guid? CreateUserID { get; set; }
///
/// 创建时间
///
[DisplayName("创建时间")]
public DateTime? CreateTime { get; set; }
///
/// 修改人
///
[DisplayName("修改人")]
public Guid? ModifyUserID { get; set; }
///
/// 修改时间
///
[DisplayName("修改时间")]
public DateTime? ModifyTime { get; set; }
}
}