using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TEAMModelOS.SDK.Models
{
///
/// 课程基础信息
///
public class CourseBase : CosmosEntity
{ ///
/// 课程名称
///
[Required(ErrorMessage = "{0} 必须填写")]
public string name { get; set; }
///
/// 科目
///
public IdName subject { get; set; }
///
/// 学段
///
public IdName period { get; set; }
///
/// 专业 不是必须的。
///
public IdName major { get; set; }
public string scope { get; set; }
///
/// 描述
///
public string desc { get; set; }
///
/// 课程编号
///
public string no { get; set; }
///
/// 创建者的id
///
public string creatorId { get; set; }
///
/// 学校编码
///
public string school { get; set; }
///
/// 颜色,课表标记颜色
///
public string color { get; set; }
}
///
/// 课程任务
///
public class CourseTask : CosmosEntity
{
// id 2022-semesterId
// code CourseTask-hbcn-courseId
///
/// 过期时间,-1永不过期, 1577808000000 2020-01-01。 学校的课程则自动根据学期的时间变化。
///
public long expire { get; set; } = -1;
///
/// 课程的id
///
public string courseId { get; set; }
///
/// 课表所属年份
///
public int year { get; set; }
///
/// semesterId 学期id
///
public string semesterId { get; set; }
public List schedules { get; set; } = new List();
///
/// 课程持续多少周
///
public int weekCount { get; set; } = -1;
}
public class ScheduleTask
{
///
/// 教室id
///
public string roomId { get; set; }
///
/// 班级名单id: 行政班|教学班
///
public string groupId { get; set; }
///
/// type class行政班 teach教学班
///
public string type { get; set; }
///
/// 教师的醍摩豆id
///
public string teacherId { get; set; }
///
/// 排课时间表
///
public List times { get; set; } = new List();
}
public class ScheduleTime {
///
/// 作息的第几节课的id
///
public string id { get; set; }
///
/// 星期几
///
public string week { get; set; }
///
/// all全部,single单周,double双周,custom自定义
///
public string mode { get; set; }
///
/// 自定义序列
///
//[1,2,5,8]
public Listindex { get; set; }= new List();
}
public class IdName
{
public string id { get; set; }
public string name { get; set; }
}
}