using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using Bowin.Common.DataTime;
namespace EMIS.ViewModel.CalendarManage
{
public class SchoolYearView
{
///
/// 主键ID
///
[DisplayName("主键ID")]
public Guid? SchoolYearID { get; set; }
///
/// 学年学期
///
[Required]
[DisplayName("学年学期")]
public string Code { get; set; }
///
/// 学年
///
[Required]
[DisplayName("学年")]
public int? Years { get; set; }
///
/// 学期
///
[Required]
[DisplayName("学期")]
public int? SchoolcodeID { get; set; }
///
/// 学期
///
[Required]
[DisplayName("学期")]
public string SchoolcodeName { get; set; }
///
/// 学年学期全名
///
public string FullName { get; set; }
///
/// 周数
///
[Required]
[DisplayName("周数")]
public int? WeeksNum { get; set; }
///
/// 毕业学期ID
///
public Guid? GraduateSchoolyearID { get; set; }
///
///毕业日期
///
[Required]
[DisplayName("毕业日期")]
public DateTime? GraduateDate { get; set; }
public string GraduateDateStr
{
get
{
string date = "";
if (GraduateDate.HasValue)
{
date = GraduateDate.Value.Year + "年" + GraduateDate.Value.Month + "月" + GraduateDate.Value.Day + "日";
}
return date;
}
}
///
/// 首周周一日期
///
[Required]
[DisplayName("首周周一日期")]
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
public DateTime? FirstWeek { get; set; }
///
/// Value
///
[DisplayName("Value")]
public int? Value { get; set; }
///
///默认
///
[DisplayName("默认")]
public int? RecordStatus { get; set; }
///
/// 是否当前学期
///
[DisplayName("是否当前学期")]
public bool IsCurrent { get; set; }
///
/// 是否当前学期
///
[DisplayName("是否当前学期")]
public string Current { get; set; }
///
/// 每周工作天数
///
[Required]
[DisplayName("每周工作天数")]
public int? WeekDays { 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; }
}
}