123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using EMIS.ViewModel.CacheManage;
- using EMIS.Entities;
- namespace EMIS.ViewModel.ExaminationManage
- {
- public class AdultExaminationPlanExportView
- {
- public string SchoolyearCode { get; set; }
- public Nullable<System.Guid> CoursematerialID { get; set; }
- public string CoursematerialName { get; set; }
- public string ClassName { get; set; }
- public int? MissionStudentCount { get; set; }
- public int? StudentCount { get; set; }
- public Nullable<int> ExamsCategoryID { get; set; }
- public string ExamsCategoryName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsCategory.ToString())
- .Where(x => x.Value == ExamsCategoryID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- public Nullable<int> ExaminationModeID { get; set; }
- public string ExaminationModeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationMode.ToString())
- .Where(x => x.Value == ExaminationModeID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- public IEnumerable<int?> ExaminationWeekNumList { get; set; }
- public string ExaminationWeekNumString
- {
- get
- {
- return string.Join(@"\", ExaminationWeekNumList);
- }
- }
- /// <summary>
- /// 最大排考周次,主要用于排序,不能直接从WeekNum算出……
- /// </summary>
- public int? MaxExaminationWeekNum { get; set; }
- public Nullable<System.DateTime> ExaminationDate { get; set; }
- public Nullable<System.TimeSpan> StartTime { get; set; }
- public string StartTimeStr {
- get
- {
- if (StartTime.HasValue)
- {
- return StartTime.Value.Hours + ":" + StartTime.Value.Minutes;
- }
- else
- {
- return null;
- }
- }
- }
- public Nullable<System.TimeSpan> EndTime { get; set; }
- public string EndTimeStr
- {
- get
- {
- if (EndTime.HasValue)
- {
- return EndTime.Value.Hours + ":" + EndTime.Value.Minutes;
- }
- else
- {
- return null;
- }
- }
- }
- public Nullable<Guid> ClassroomID { get; set; }
- public string ClassroomName { get; set; }
- public IEnumerable<Sys_User> Sys_User { get; set; }
- public string TeacherNames
- {
- get
- {
- return string.Join(@"/", Sys_User.Select(x => x.Name));
- }
- }
- }
- }
|