using Learun.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
///
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-10-14 10:09
/// 描 述:教学计划
///
public class TeachingPlanEntity
{
#region 实体成员
///
/// 主键
///
[Column("ID")]
public string Id { get; set; }
///
/// 名称
///
[Column("NAME")]
public string Name { get; set; }
///
/// 年级
///
[Column("GRADE")]
public string Grade { get; set; }
///
/// 专业
///
[Column("MAJOR")]
public string Major { get; set; }
///
/// 学制
///
[Column("SCHOOLSYSTEM")]
public string SchoolSystem { get; set; }
///
/// 总学分
///
[Column("CREDIT")]
public string Credit { get; set; }
///
/// 备注
///
[Column("REMARK")]
public string Remark { get; set; }
///
/// 禁用 启用
///
[Column("ENABLED")]
public bool? Enabled { get; set; }
///
/// CreateUserId
///
[Column("CREATEUSERID")]
public string CreateUserId { get; set; }
///
/// CreateTime
///
[Column("CREATETIME")]
public DateTime? CreateTime { get; set; }
#endregion
#region 扩展操作
///
/// 新增调用
///
public void Create()
{
this.Id = Guid.NewGuid().ToString();
this.CreateTime = DateTime.Now;
this.CreateUserId = LoginUserInfo.Get().userId;
}
///
/// 编辑调用
///
///
public void Modify(string keyValue)
{
this.Id = keyValue;
}
#endregion
#region 扩展字段
///
/// 专业课
///
[NotMapped]
public int? Zyknum { get; set; }
///
/// 公共课
///
[NotMapped]
public int? Ggknum { get; set; }
#endregion
}
public class LessonData
{
[NotMapped]
public string Major { get; set; }
[NotMapped]
public string LessonTypeName { get; set; }
[NotMapped]
public int? num { get; set; }
}
public class TeachingPlanRes
{
public TeachingPlanEntity TeachingPlan { get; set; }
public IEnumerable TeachingPlanItem { get; set; }
}
}