using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using EMIS.ViewModel.CacheManage;
using EMIS.Entities;
namespace EMIS.ViewModel.ScoreManage
{
public class FinalExaminationView
{
///
/// 期末设定ID
///
[DisplayName("期末设定ID")]
public Guid? FinalExaminationID { get; set; }
///
/// 设定类型
///
public int? ExaminationType { get; set; }
///
/// 设定类型
///
public string ExaminationTypeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationType.ToString())
.Where(x => x.Value == ExaminationType)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 学年学期
///
[Required]
[DisplayName("学年学期")]
public Guid? SchoolyearID { get; set; }
///
/// 学年学期
///
[DisplayName("学年学期")]
public string SchoolyearCode { get; set; }
///
/// 教学任务主表ID
///
[DisplayName("教学任务主表ID")]
public Guid? EducationMissionID { get; set; }
///
/// 开课院系所
///
public Guid? CourseCollegeID { get; set; }
///
/// 院系所
///
[Required]
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
public Guid? CollegeID { get; set; }
///
/// 院系所
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
public string CollegeName { get; set; }
///
/// 开课教研室
///
[Required]
[DisplayName("开课教研室")]
public Guid? DepartmentID { get; set; }
///
/// 教研室
///
[DisplayName("教研室")]
public string DepartmentName { get; set; }
///
/// 录入班级名称
///
[Required]
[DisplayName("录入班级名称")]
public string ClassName { get; set; }
///
/// 班级ID
///
[DisplayName("班级ID")]
public Guid? ClassmajorID { get; set; }
///
/// 班级编号
///
[DisplayName("班级编号")]
public string ClassID { get; set; }
///
/// 班级编号
///
[DisplayName("班级编号")]
public string ClassmajorCode { get; set; }
///
/// 班级名称
///
[DisplayName("班级名称")]
public string ClassmajorName { get; set; }
///
/// 年级
///
[Required]
[DisplayName("年级")]
public int? GradeYearID { get; set; }
///
/// 专业信息ID
///
[DisplayName("专业信息ID")]
public int? StandardID { get; set; }
///
/// 专业代码
///
[DisplayName("专业代码")]
public string StandardCode { get; set; }
///
/// 专业名称
///
[DisplayName("专业名称")]
public string StandardName { get; set; }
///
/// 开课学期
///
[Required]
[DisplayName("开课学期")]
public int? StarttermID { get; set; }
///
/// 开课学期
///
[DisplayName("开课学期")]
public string StarttermName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Startterm.ToString())
.Where(x => x.Value == StarttermID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 课程名称
///
[Required]
[DisplayName("课程名称")]
public Guid? CoursematerialID { get; set; }
///
/// 课程代码
///
[DisplayName("课程代码")]
public string CourseCode { get; set; }
///
/// 课程名称
///
[DisplayName("课程名称")]
public string CourseName { get; set; }
///
/// 课程类型
///
[Required]
[DisplayName("课程类型")]
public int? CourseTypeID { get; set; }
///
/// 课程类型
///
[DisplayName("课程类型")]
public string CourseTypeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString())
.Where(x => x.Value == CourseTypeID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 考试性质
///
[Required]
[DisplayName("考试性质")]
public int? ExamsCategoryID { get; set; }
///
/// 考试性质
///
[DisplayName("考试性质")]
public string ExamsCategoryName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsCategory.ToString())
.Where(x => x.Value == ExamsCategoryID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 考试方式
///
[Required]
[DisplayName("考试方式")]
public int? ExaminationModeID { get; set; }
///
/// 考试方式
///
[DisplayName("考试方式")]
public string ExaminationModeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationMode.ToString())
.Where(x => x.Value == ExaminationModeID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 课程学分
///
[Required]
[DisplayName("课程学分")]
[RegularExpression(@"^\d+(\.\d{1,2})?$", ErrorMessage = "请输整数或保留2位小数")]
public decimal? Credit { get; set; }
///
/// 总学时
///
[Required]
[DisplayName("总学时")]
public int? TotalHours { get; set; }
///
/// 考试日期
///
[DisplayName("考试日期")]
public DateTime? ExamsDatetime { get; set; }
///
/// 成绩类型
///
[Required]
[DisplayName("成绩类型")]
public int? ResultTypeID { get; set; }
///
/// 成绩类型
///
[DisplayName("成绩类型")]
public string ResultTypeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ResultType.ToString())
.Where(x => x.Value == ResultTypeID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 录入人ID
///
//[Required]
[DisplayName("录入人ID")]
public Guid? CreatorUserID { get; set; }
///
/// 录入人编号
///
[DisplayName("录入人编号")]
public string CreatorUserNo { get; set; }
///
/// 录入人姓名
///
[DisplayName("录入人姓名")]
public string CreatorUserName { get; set; }
///
/// 录入截止日期
///
[DisplayName("录入截止日期")]
public DateTime? EntryDeadlineTime { get; set; }
///
/// 学生数
///
[DisplayName("学生数")]
public int? StudentCount { get; set; }
///
/// 未录入人数
///
[DisplayName("未录入人数")]
public int? SAPunlogStudentCount { get; set; }
///
///
///
[DisplayName("")]
public int? sAPunlogStudentCounts
{
get
{
if (SAPunlogStudentCount >= 0)
{
return SAPunlogStudentCount;
}
else
{
SAPunlogStudentCount = SAPunlogStudentCount * (-1);
return SAPunlogStudentCount;
}
}
}
///
/// 是否可录入
///
[DisplayName("是否可录入")]
public bool IsEntry { get; set; }
///
/// 是否可录入
///
[DisplayName("是否可录入")]
public string IsEntryName
{
get
{
return IsEntry == true ? "可录入" : "不可录入";
}
}
///
/// 同时添加学生
///
[DisplayName("同时添加学生")]
public bool isAutoAdd { get; set; }
///
/// 已通过状态
///
[DisplayName("已通过状态")]
public int? ApprovalEndStatus { get; set; }
///
/// 审核状态
///
[DisplayName("审核状态")]
public int? ApprovalStatus { get; set; }
///
/// 审核状态
///
[DisplayName("审核状态")]
public string ApprovalStatusName
{
get;
set;
//get
//{
// return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ScoreState.ToString())
// .Where(x => x.Value == ApprovalStatus)
// .Select(x => x.Name).FirstOrDefault();
//}
}
///
/// 总评语
///
[DisplayName("总评语")]
public string Comment { get; set; }
///
/// 总分公式ID
///
[DisplayName("总分公式ID")]
public Guid? ScoreFormulaID { get; set; }
///
/// 学分公式ID
///
[DisplayName("学分公式ID")]
public Guid? CreditFormulaID { get; set; }
///
/// 绩点公式ID
///
[DisplayName("绩点公式ID")]
public Guid? GradePointFormulaID { get; set; }
///
/// 处理方式
///
[DisplayName("处理方式")]
public int? HandleModeID { get; set; }
/////
///// 开课学年
/////
//[DisplayName("开课学年")]
//public int? SchooolYearNumID { get; set; }
///
/// 备注
///
[DisplayName("备注")]
public string Remarks { get; set; }
//成绩审核的撤销功能用到
[Required]
[DisplayName("学号")]
public Guid? UserID { get; set; }
///
/// 姓名
///
[DisplayName("姓名")]
public string UserName { get; set; }
///
/// 状态
///
[DisplayName("状态")]
public int? RecordStatus { get; set; }
///
/// 创建时间
///
[DisplayName("创建时间")]
public DateTime? CreateTime { get; set; }
///
/// 创建人
///
[DisplayName("创建人")]
public Guid? CreateUserID { get; set; }
}
}