using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using EMIS.Entities;
using EMIS.ViewModel.CacheManage;
namespace EMIS.ViewModel.EvaluationManage
{
public class EvaluationSettingView
{
///
/// 评价设定ID
///
[DisplayName("评价设定ID")]
public Guid EvaluationSettingID { get; set; }
///
/// 评价编号
///
[DisplayName("评价编号")]
public string EvaluationSettingCode { get; set; }
///
/// 教学任务班ID
///
[DisplayName("教学任务班ID")]
[Required]
public Guid? EducationMissionClassID { get; set; }
///
/// 任务班名称
///
[DisplayName("任务班名称")]
public string EducationMissionClassName { get; set; }
///
/// 学年学期
///
[DisplayName("学年学期")]
[Required]
public Guid? SchoolyearID { get; set; }
///
/// 学年学期
///
[DisplayName("学年学期")]
public string SchoolyearCode { get; set; }
///
/// 校区ID
///
public Guid? CampusID { 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 = "College")]
public string CollegeName { get; set; }
///
/// 教研室
///
[DisplayName("教研室")]
public Guid? DepartmentID { get; set; }
///
/// 参评类型ID
///
[DisplayName("参评类型ID")]
public Guid? EvaluationTypeID { get; set; }
///
/// 参评类型
///
[DisplayName("参评类型")]
public string EvaluationTypeName { get; set; }
///
/// 授课方式
///
[DisplayName("授课方式")]
[Required]
public int? EvaluationTableTypeID { get; set; }
///
/// 评价类型ID
///
[DisplayName("评价类型ID")]
[Required]
public Guid? EvaluationIntTypeID { get; set; }
///
/// 评价类型
///
[DisplayName("评价类型")]
[Required]
public string EvaluationTableTypeName { get; set; }
///
/// 评价表名ID
///
[DisplayName("评价表ID")]
[Required]
public Guid? EvaluationTableID { get; set; }
///
/// 评价表编号
///
[DisplayName("评价表编号")]
public string EvaluationTableNo { get; set; }
///
/// 评价表名
///
[DisplayName("评价表名")]
public string EvaluationTableName { get; set; }
///
/// 课程信息ID
///
[Required]
[DisplayName("课程信息ID")]
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();
}
}
///
/// 开放状态
///
[DisplayName("开放状态")]
public int OpenStatus { get; set; }
///
/// 开放状态
///
[DisplayName("开放状态")]
public string OpenStatusName { get; set; }
///
/// 学生人数
///
[DisplayName("学生人数")]
public int StudentCount { get; set; }
///
/// 同行人数
///
[DisplayName("同行人数")]
public int StaffCount { get; set; }
///
/// 备注
///
[DisplayName("备注")]
public string Remark { get; set; }
///
/// 状态
///
[DisplayName("状态")]
public int RecordStatus { get; set; }
///
/// 创建人
///
[DisplayName("创建人")]
public Guid? CreateUserID { get; set; }
///
/// 创建时间
///
[DisplayName("创建时间")]
public DateTime? EntityCreateTime { get; set; }
///
/// 修改人
///
[DisplayName("修改人")]
public Guid? ModifyUserID { get; set; }
///
/// 修改时间
///
[DisplayName("修改时间")]
public DateTime? ModifyTime { get; set; }
///
///
///
[DisplayName("是否适用学生")]
public int? IsStudent { get; set; }
///
///
///
[DisplayName("教师编号")]
public string UserCodes
{
get
{
string name = string.Empty;
if (EvaluationSettingMissionClassTeacherViewList != null && EvaluationSettingMissionClassTeacherViewList.Count() > 0)
{
name = string.Join(",", EvaluationSettingMissionClassTeacherViewList.Select(x =>
x.LoginID));
}
if (string.IsNullOrEmpty(name))
{
return "";
}
else
{
return name;
}
}
}
///
///
///
[DisplayName("教师名称")]
public string UserNames
{
get
{
string name = string.Empty;
if (EvaluationSettingMissionClassTeacherViewList != null && EvaluationSettingMissionClassTeacherViewList.Count() > 0)
{
name = string.Join(",", EvaluationSettingMissionClassTeacherViewList.Select(x =>
x.Name));
}
if (string.IsNullOrEmpty(name))
{
return "";
}
else
{
return name;
}
}
}
///
///
///
[DisplayName("用户ID")]
public Guid? UserID { get; set; }
///
///
///
public CF_Student CF_Student_User { get; set; }
///
///
///
public IEnumerable Sys_User { get; set; }
///
/// 授课老师
///
[DisplayName("授课老师")]
public IEnumerable EvaluationSettingMissionClassTeacherViewList { get; set; }
///
///
///
public CF_Staff CF_Staff_User { get; set; }
}
public class EvaluationSettingMissionClassTeacherView
{
///
///
///
[DisplayName("用户ID")]
public Guid? UserID { get; set; }
///
///
///
[DisplayName("用户名")]
public string LoginID { get; set; }
///
///
///
[DisplayName("姓名")]
public string Name { get; set; }
///
///
///
[DisplayName("任务班ID")]
public Guid? EducationMissionClassID { get; set; }
}
}