diff --git a/Model/Tiobon.Web.pdm b/Model/Tiobon.Web.pdm index 95688f84..88550411 100644 --- a/Model/Tiobon.Web.pdm +++ b/Model/Tiobon.Web.pdm @@ -1,5 +1,5 @@ - + @@ -10410,7 +10410,7 @@ Shadow=0 1727337857 1727337857 -((-54786,11250), (-48786,18150)) +((-52286,11250), (-51286,18150)) ((-51786,18150),(-51786,11250)) 2 1 @@ -13729,10 +13729,12 @@ LABL 0 Arial Unicode MS,8,N StandardHour 1717724112 Administrator -1717729080 +1735177617 Administrator 标准课时 -int +decimal(20,2) +20 +2 2987D052-2869-45F2-8520-C020A6BB4084 diff --git a/Tiobon.Core.Model/Base/Ghre/Ghre_Course.Dto.Base.cs b/Tiobon.Core.Model/Base/Ghre/Ghre_Course.Dto.Base.cs index cb52e65a..b3cd90ab 100644 --- a/Tiobon.Core.Model/Base/Ghre/Ghre_Course.Dto.Base.cs +++ b/Tiobon.Core.Model/Base/Ghre/Ghre_Course.Dto.Base.cs @@ -6,258 +6,255 @@ * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── -*V0.01 2024/7/15 13:56:06 SimonHsiao 初版 +*V0.01 2024/12/26 9:54:09 SimonHsiao 初版 * * Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. *┌──────────────────────────────────┐ *│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ *│ 作者:SimonHsiao │ *└──────────────────────────────────┘ -*/ -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +*/ +namespace Tiobon.Core.Model.Models; -namespace Tiobon.Core.Model.Models + +/// +/// 课程 (Dto.Base) +/// +public class Ghre_CourseBase { /// - /// 课程 (Dto.Base) - /// - public class Ghre_CourseBase - { - - /// - /// 课程编号 - /// - [Display(Name = "CourseNo"), Description("课程编号"), MaxLength(32, ErrorMessage = "课程编号 不能超过 32 个字符")] - public string CourseNo { get; set; } - - /// - /// 课程名称 - /// - [Display(Name = "CourseName"), Description("课程名称"), MaxLength(32, ErrorMessage = "课程名称 不能超过 32 个字符")] - public string CourseName { get; set; } - - /// - /// 课程分类ID - /// - [Display(Name = "CourseClassId"), Description("课程分类ID"), MaxLength(2000, ErrorMessage = "课程分类ID 不能超过 2000 个字符")] - public string CourseClassId { get; set; } - - /// - /// 课程场景ID - /// - public long? CourseSceneId { get; set; } - - /// - /// 课件ID - /// - public long? CourseWareId { get; set; } - - /// - /// 标准课时 - /// - public int? StandardHour { get; set; } - - /// - /// 学分 - /// - public int? CreditPoints { get; set; } - - /// - /// 课程负责人 - /// - public int? ManagerId { get; set; } - - /// - /// 课程负责人部门ID - /// - public int? ManagerDeptId { get; set; } - - /// - /// 内/外训 - /// - [Display(Name = "InOrOut"), Description("内/外训"), MaxLength(32, ErrorMessage = "内/外训 不能超过 32 个字符")] - public string InOrOut { get; set; } - - /// - /// 讲师ID - /// - public long? TeacherId { get; set; } - - /// - /// 讲师部门ID - /// - public long? TeacherDeptId { get; set; } - - /// - /// 培训机构ID - /// - public long? SchoolId { get; set; } - - /// - /// 培训机构讲师ID - /// - public long? SchoolTeacherId { get; set; } - - /// - /// 市场价格 - /// - [Display(Name = "Price"), Description("市场价格"), Column(TypeName = "decimal(20,2)")] - public decimal? Price { get; set; } - - /// - /// 收费方式,天数、时间、项目 - /// - [Display(Name = "ChargeMethod"), Description("收费方式,天数、时间、项目"), MaxLength(32, ErrorMessage = "收费方式,天数、时间、项目 不能超过 32 个字符")] - public string ChargeMethod { get; set; } - - /// - /// 是否公开课 - /// - public string IsOpen { get; set; } - - /// - /// 培训有效期(月) - /// - public int? ValidityPeriod { get; set; } - - /// - /// 试卷ID - /// - [Display(Name = "ExamPaperId"), Description("试卷ID"), MaxLength(2000, ErrorMessage = "试卷ID 不能超过 2000 个字符")] - public string ExamPaperId { get; set; } - - /// - /// 反馈单ID - /// - public long? FeedbackOrderId { get; set; } - - /// - /// 封面图 - /// - [Display(Name = "CoverUrl"), Description("封面图"), MaxLength(2000, ErrorMessage = "封面图 不能超过 2000 个字符")] - public string CoverUrl { get; set; } - - /// - /// 课程大纲 - /// - [Display(Name = "Outline"), Description("课程大纲"), MaxLength(2000, ErrorMessage = "课程大纲 不能超过 2000 个字符")] - public string Outline { get; set; } - - /// - /// 课前准备 - /// - [Display(Name = "BeforeReady"), Description("课前准备"), MaxLength(2000, ErrorMessage = "课前准备 不能超过 2000 个字符")] - public string BeforeReady { get; set; } - - /// - /// 发布时间 - /// - public DateTime? PublishTime { get; set; } - - /// - /// 备注 - /// - [Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")] - public string RemarkSz { get; set; } - - /// - /// 排序 - /// - public int? SortNo { get; set; } - - /// - /// 默认标志 - /// - public int? IsDefault { get; set; } - - /// - /// 预留字段1 - /// - [Display(Name = "Reverse1"), Description("预留字段1"), MaxLength(1000, ErrorMessage = "预留字段1 不能超过 1000 个字符")] - public string Reverse1 { get; set; } - - /// - /// 预留字段2 - /// - [Display(Name = "Reverse2"), Description("预留字段2"), MaxLength(1000, ErrorMessage = "预留字段2 不能超过 1000 个字符")] - public string Reverse2 { get; set; } - - /// - /// 预留字段3 - /// - [Display(Name = "Reverse3"), Description("预留字段3"), MaxLength(1000, ErrorMessage = "预留字段3 不能超过 1000 个字符")] - public string Reverse3 { get; set; } - - /// - /// 预留字段4 - /// - [Display(Name = "Reverse4"), Description("预留字段4"), MaxLength(1000, ErrorMessage = "预留字段4 不能超过 1000 个字符")] - public string Reverse4 { get; set; } - - /// - /// 预留字段5 - /// - [Display(Name = "Reverse5"), Description("预留字段5"), MaxLength(1000, ErrorMessage = "预留字段5 不能超过 1000 个字符")] - public string Reverse5 { get; set; } - - /// - /// 预留字段6 - /// - [Display(Name = "Reverse6"), Description("预留字段6"), MaxLength(1000, ErrorMessage = "预留字段6 不能超过 1000 个字符")] - public string Reverse6 { get; set; } - - /// - /// 预留字段7 - /// - [Display(Name = "Reverse7"), Description("预留字段7"), MaxLength(1000, ErrorMessage = "预留字段7 不能超过 1000 个字符")] - public string Reverse7 { get; set; } - - /// - /// 预留字段8 - /// - [Display(Name = "Reverse8"), Description("预留字段8"), MaxLength(1000, ErrorMessage = "预留字段8 不能超过 1000 个字符")] - public string Reverse8 { get; set; } - - /// - /// 预留字段9 - /// - [Display(Name = "Reverse9"), Description("预留字段9"), MaxLength(1000, ErrorMessage = "预留字段9 不能超过 1000 个字符")] - public string Reverse9 { get; set; } - - /// - /// 预留字段10 - /// - [Display(Name = "Reverse10"), Description("预留字段10"), MaxLength(1000, ErrorMessage = "预留字段10 不能超过 1000 个字符")] - public string Reverse10 { get; set; } - - /// - /// 预留字段11 - /// - public int? ReverseI1 { get; set; } - - /// - /// 预留字段12 - /// - public int? ReverseI2 { get; set; } - - /// - /// 状态 - /// - [Display(Name = "Status"), Description("状态"), MaxLength(32, ErrorMessage = "状态 不能超过 32 个字符")] - public string Status { get; set; } - - /// - /// 是否使用默认封面 - /// - public bool? UseDefaultCoverImage { get; set; } - - /// - /// 默认封面图Name - /// - [Display(Name = "DefaultCoverImageName"), Description("默认封面图Name"), MaxLength(32, ErrorMessage = "默认封面图Name 不能超过 32 个字符")] - public string DefaultCoverImageName { get; set; } - } + /// 课程编号 + /// + [Display(Name = "CourseNo"), Description("课程编号"), MaxLength(32, ErrorMessage = "课程编号 不能超过 32 个字符")] + public string CourseNo { get; set; } + + /// + /// 课程名称 + /// + [Display(Name = "CourseName"), Description("课程名称"), MaxLength(64, ErrorMessage = "课程名称 不能超过 64 个字符")] + public string CourseName { get; set; } + + /// + /// 课程分类ID + /// + [Display(Name = "CourseClassId"), Description("课程分类ID"), MaxLength(2000, ErrorMessage = "课程分类ID 不能超过 2000 个字符")] + public string CourseClassId { get; set; } + + /// + /// 课程场景ID + /// + public long? CourseSceneId { get; set; } + + /// + /// 课件ID + /// + public long? CourseWareId { get; set; } + + /// + /// 标准课时 + /// + [Display(Name = "StandardHour"), Description("标准课时"), Column(TypeName = "decimal(20,2)")] + public decimal? StandardHour { get; set; } + + /// + /// 学分 + /// + public int? CreditPoints { get; set; } + + /// + /// 课程负责人 + /// + public int? ManagerId { get; set; } + + /// + /// 课程负责人部门ID + /// + public int? ManagerDeptId { get; set; } + + /// + /// 内/外训 + /// + [Display(Name = "InOrOut"), Description("内/外训"), MaxLength(32, ErrorMessage = "内/外训 不能超过 32 个字符")] + public string InOrOut { get; set; } + + /// + /// 讲师ID + /// + public long? TeacherId { get; set; } + + /// + /// 讲师部门ID + /// + public long? TeacherDeptId { get; set; } + + /// + /// 培训机构ID + /// + public long? SchoolId { get; set; } + + /// + /// 培训机构讲师ID + /// + public long? SchoolTeacherId { get; set; } + + /// + /// 市场价格 + /// + [Display(Name = "Price"), Description("市场价格"), Column(TypeName = "decimal(20,2)")] + public decimal? Price { get; set; } + + /// + /// 收费方式,天数、时间、项目 + /// + [Display(Name = "ChargeMethod"), Description("收费方式,天数、时间、项目"), MaxLength(32, ErrorMessage = "收费方式,天数、时间、项目 不能超过 32 个字符")] + public string ChargeMethod { get; set; } + + /// + /// 是否公开课 + /// + [Display(Name = "IsOpen"), Description("是否公开课"), MaxLength(32, ErrorMessage = "是否公开课 不能超过 32 个字符")] + public string IsOpen { get; set; } + + /// + /// 培训有效期(月) + /// + public int? ValidityPeriod { get; set; } + + /// + /// 试卷ID + /// + [Display(Name = "ExamPaperId"), Description("试卷ID"), MaxLength(2000, ErrorMessage = "试卷ID 不能超过 2000 个字符")] + public string ExamPaperId { get; set; } + + /// + /// 反馈单ID + /// + public long? FeedbackOrderId { get; set; } + + /// + /// 封面图 + /// + [Display(Name = "CoverUrl"), Description("封面图"), MaxLength(2000, ErrorMessage = "封面图 不能超过 2000 个字符")] + public string CoverUrl { get; set; } + + /// + /// 课程大纲 + /// + [Display(Name = "Outline"), Description("课程大纲"), MaxLength(2000, ErrorMessage = "课程大纲 不能超过 2000 个字符")] + public string Outline { get; set; } + + /// + /// 课前准备 + /// + [Display(Name = "BeforeReady"), Description("课前准备"), MaxLength(2000, ErrorMessage = "课前准备 不能超过 2000 个字符")] + public string BeforeReady { get; set; } + + /// + /// 备注 + /// + [Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")] + public string RemarkSz { get; set; } + + /// + /// 排序 + /// + public int? SortNo { get; set; } + + /// + /// 默认标志 + /// + public int? IsDefault { get; set; } + + /// + /// 预留字段1 + /// + [Display(Name = "Reverse1"), Description("预留字段1"), MaxLength(1000, ErrorMessage = "预留字段1 不能超过 1000 个字符")] + public string Reverse1 { get; set; } + + /// + /// 预留字段2 + /// + [Display(Name = "Reverse2"), Description("预留字段2"), MaxLength(1000, ErrorMessage = "预留字段2 不能超过 1000 个字符")] + public string Reverse2 { get; set; } + + /// + /// 预留字段3 + /// + [Display(Name = "Reverse3"), Description("预留字段3"), MaxLength(1000, ErrorMessage = "预留字段3 不能超过 1000 个字符")] + public string Reverse3 { get; set; } + + /// + /// 预留字段4 + /// + [Display(Name = "Reverse4"), Description("预留字段4"), MaxLength(1000, ErrorMessage = "预留字段4 不能超过 1000 个字符")] + public string Reverse4 { get; set; } + + /// + /// 预留字段5 + /// + [Display(Name = "Reverse5"), Description("预留字段5"), MaxLength(1000, ErrorMessage = "预留字段5 不能超过 1000 个字符")] + public string Reverse5 { get; set; } + + /// + /// 预留字段6 + /// + [Display(Name = "Reverse6"), Description("预留字段6"), MaxLength(1000, ErrorMessage = "预留字段6 不能超过 1000 个字符")] + public string Reverse6 { get; set; } + + /// + /// 预留字段7 + /// + [Display(Name = "Reverse7"), Description("预留字段7"), MaxLength(1000, ErrorMessage = "预留字段7 不能超过 1000 个字符")] + public string Reverse7 { get; set; } + + /// + /// 预留字段8 + /// + [Display(Name = "Reverse8"), Description("预留字段8"), MaxLength(1000, ErrorMessage = "预留字段8 不能超过 1000 个字符")] + public string Reverse8 { get; set; } + + /// + /// 预留字段9 + /// + [Display(Name = "Reverse9"), Description("预留字段9"), MaxLength(1000, ErrorMessage = "预留字段9 不能超过 1000 个字符")] + public string Reverse9 { get; set; } + + /// + /// 预留字段10 + /// + [Display(Name = "Reverse10"), Description("预留字段10"), MaxLength(1000, ErrorMessage = "预留字段10 不能超过 1000 个字符")] + public string Reverse10 { get; set; } + + /// + /// 预留字段11 + /// + public int? ReverseI1 { get; set; } + + /// + /// 预留字段12 + /// + public int? ReverseI2 { get; set; } + + /// + /// 状态 + /// + [Display(Name = "Status"), Description("状态"), MaxLength(32, ErrorMessage = "状态 不能超过 32 个字符")] + public string Status { get; set; } + + /// + /// 是否使用默认封面 + /// + public bool? UseDefaultCoverImage { get; set; } + + /// + /// 默认封面图Name + /// + [Display(Name = "DefaultCoverImageName"), Description("默认封面图Name"), MaxLength(32, ErrorMessage = "默认封面图Name 不能超过 32 个字符")] + public string DefaultCoverImageName { get; set; } + + /// + /// 发布时间 + /// + public DateTime? PublishTime { get; set; } } diff --git a/Tiobon.Core.Model/Base/Ghre/Ghre_CourseScene.Dto.Base.cs b/Tiobon.Core.Model/Base/Ghre/Ghre_CourseScene.Dto.Base.cs index 29e4e73f..8fea909b 100644 --- a/Tiobon.Core.Model/Base/Ghre/Ghre_CourseScene.Dto.Base.cs +++ b/Tiobon.Core.Model/Base/Ghre/Ghre_CourseScene.Dto.Base.cs @@ -6,7 +6,7 @@ * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── -*V0.01 2024/4/28 11:09:46 SimonHsiao 初版 +*V0.01 2024/12/26 9:54:02 SimonHsiao 初版 * * Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. *┌──────────────────────────────────┐ @@ -14,157 +14,152 @@ *│ 作者:SimonHsiao │ *└──────────────────────────────────┘ */ -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; +namespace Tiobon.Core.Model.Models; -namespace Tiobon.Core.Model.Models + +/// +/// 课程场景 (Dto.Base) +/// +public class Ghre_CourseSceneBase { /// - /// 课程场景 (Dto.Base) - /// - public class Ghre_CourseSceneBase - { - - /// - /// 场景编号 - /// - [Display(Name = "SceneNo"), Description("场景编号"), MaxLength(32, ErrorMessage = "场景编号 不能超过 32 个字符")] - public string SceneNo { get; set; } - - /// - /// 场景名称 - /// - [Display(Name = "SceneName"), Description("场景名称"), MaxLength(32, ErrorMessage = "场景名称 不能超过 32 个字符")] - public string SceneName { get; set; } - - /// - /// 课程ID - /// - [Display(Name = "CourseId"), Description("课程ID"), MaxLength(2000, ErrorMessage = "课程ID 不能超过 2000 个字符")] - public string CourseId { get; set; } - - /// - /// 课程 - /// - [Display(Name = "CourseName"), Description("课程ID"), MaxLength(2000, ErrorMessage = "课程ID 不能超过 2000 个字符")] - public string CourseName { get; set; } - - /// - /// 备注 - /// - [Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")] - public string RemarkSz { get; set; } - - /// - /// 排序 - /// - public int? SortNo { get; set; } - - /// - /// 标准课时 - /// - public int? StandardHour { get; set; } - - /// - /// 学分 - /// - public int? CreditPoints { get; set; } - - /// - /// 封面图 - /// - [Display(Name = "CoverUrl"), Description("封面图"), MaxLength(2000, ErrorMessage = "封面图 不能超过 2000 个字符")] - public string CoverUrl { get; set; } - - /// - /// 是否使用默认封面 - /// - public bool? UseDefaultCoverImage { get; set; } - - /// - /// 默认封面图Name - /// - [Display(Name = "DefaultCoverImageName"), Description("默认封面图Name"), MaxLength(32, ErrorMessage = "默认封面图Name 不能超过 32 个字符")] - public string DefaultCoverImageName { get; set; } - - /// - /// 默认标志 - /// - public int? IsDefault { get; set; } - - /// - /// 预留字段1 - /// - [Display(Name = "Reverse1"), Description("预留字段1"), MaxLength(1000, ErrorMessage = "预留字段1 不能超过 1000 个字符")] - public string Reverse1 { get; set; } - - /// - /// 预留字段2 - /// - [Display(Name = "Reverse2"), Description("预留字段2"), MaxLength(1000, ErrorMessage = "预留字段2 不能超过 1000 个字符")] - public string Reverse2 { get; set; } - - /// - /// 预留字段3 - /// - [Display(Name = "Reverse3"), Description("预留字段3"), MaxLength(1000, ErrorMessage = "预留字段3 不能超过 1000 个字符")] - public string Reverse3 { get; set; } - - /// - /// 预留字段4 - /// - [Display(Name = "Reverse4"), Description("预留字段4"), MaxLength(1000, ErrorMessage = "预留字段4 不能超过 1000 个字符")] - public string Reverse4 { get; set; } - - /// - /// 预留字段5 - /// - [Display(Name = "Reverse5"), Description("预留字段5"), MaxLength(1000, ErrorMessage = "预留字段5 不能超过 1000 个字符")] - public string Reverse5 { get; set; } - - /// - /// 预留字段6 - /// - [Display(Name = "Reverse6"), Description("预留字段6"), MaxLength(1000, ErrorMessage = "预留字段6 不能超过 1000 个字符")] - public string Reverse6 { get; set; } - - /// - /// 预留字段7 - /// - [Display(Name = "Reverse7"), Description("预留字段7"), MaxLength(1000, ErrorMessage = "预留字段7 不能超过 1000 个字符")] - public string Reverse7 { get; set; } - - /// - /// 预留字段8 - /// - [Display(Name = "Reverse8"), Description("预留字段8"), MaxLength(1000, ErrorMessage = "预留字段8 不能超过 1000 个字符")] - public string Reverse8 { get; set; } - - /// - /// 预留字段9 - /// - [Display(Name = "Reverse9"), Description("预留字段9"), MaxLength(1000, ErrorMessage = "预留字段9 不能超过 1000 个字符")] - public string Reverse9 { get; set; } - - /// - /// 预留字段10 - /// - [Display(Name = "Reverse10"), Description("预留字段10"), MaxLength(1000, ErrorMessage = "预留字段10 不能超过 1000 个字符")] - public string Reverse10 { get; set; } - - /// - /// 预留字段11 - /// - public int? ReverseI1 { get; set; } - - /// - /// 预留字段12 - /// - public int? ReverseI2 { get; set; } - - - public List CourseIds { get; set; } = new List(); - - } + /// 场景编号 + /// + [Display(Name = "SceneNo"), Description("场景编号"), MaxLength(32, ErrorMessage = "场景编号 不能超过 32 个字符")] + public string SceneNo { get; set; } + + /// + /// 场景名称 + /// + [Display(Name = "SceneName"), Description("场景名称"), MaxLength(32, ErrorMessage = "场景名称 不能超过 32 个字符")] + public string SceneName { get; set; } + + /// + /// 备注 + /// + [Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")] + public string RemarkSz { get; set; } + + /// + /// 排序 + /// + public int? SortNo { get; set; } + + /// + /// 默认标志 + /// + public int? IsDefault { get; set; } + + /// + /// 预留字段1 + /// + [Display(Name = "Reverse1"), Description("预留字段1"), MaxLength(1000, ErrorMessage = "预留字段1 不能超过 1000 个字符")] + public string Reverse1 { get; set; } + + /// + /// 预留字段2 + /// + [Display(Name = "Reverse2"), Description("预留字段2"), MaxLength(1000, ErrorMessage = "预留字段2 不能超过 1000 个字符")] + public string Reverse2 { get; set; } + + /// + /// 预留字段3 + /// + [Display(Name = "Reverse3"), Description("预留字段3"), MaxLength(1000, ErrorMessage = "预留字段3 不能超过 1000 个字符")] + public string Reverse3 { get; set; } + + /// + /// 预留字段4 + /// + [Display(Name = "Reverse4"), Description("预留字段4"), MaxLength(1000, ErrorMessage = "预留字段4 不能超过 1000 个字符")] + public string Reverse4 { get; set; } + + /// + /// 预留字段5 + /// + [Display(Name = "Reverse5"), Description("预留字段5"), MaxLength(1000, ErrorMessage = "预留字段5 不能超过 1000 个字符")] + public string Reverse5 { get; set; } + + /// + /// 预留字段6 + /// + [Display(Name = "Reverse6"), Description("预留字段6"), MaxLength(1000, ErrorMessage = "预留字段6 不能超过 1000 个字符")] + public string Reverse6 { get; set; } + + /// + /// 预留字段7 + /// + [Display(Name = "Reverse7"), Description("预留字段7"), MaxLength(1000, ErrorMessage = "预留字段7 不能超过 1000 个字符")] + public string Reverse7 { get; set; } + + /// + /// 预留字段8 + /// + [Display(Name = "Reverse8"), Description("预留字段8"), MaxLength(1000, ErrorMessage = "预留字段8 不能超过 1000 个字符")] + public string Reverse8 { get; set; } + + /// + /// 预留字段9 + /// + [Display(Name = "Reverse9"), Description("预留字段9"), MaxLength(1000, ErrorMessage = "预留字段9 不能超过 1000 个字符")] + public string Reverse9 { get; set; } + + /// + /// 预留字段10 + /// + [Display(Name = "Reverse10"), Description("预留字段10"), MaxLength(1000, ErrorMessage = "预留字段10 不能超过 1000 个字符")] + public string Reverse10 { get; set; } + + /// + /// 预留字段11 + /// + public int? ReverseI1 { get; set; } + + /// + /// 预留字段12 + /// + public int? ReverseI2 { get; set; } + + /// + /// 课程ID + /// + [Display(Name = "CourseId"), Description("课程ID"), MaxLength(2000, ErrorMessage = "课程ID 不能超过 2000 个字符")] + public string CourseId { get; set; } + + /// + /// 课程 + /// + [Display(Name = "CourseName"), Description("课程"), MaxLength(2000, ErrorMessage = "课程 不能超过 2000 个字符")] + public string CourseName { get; set; } + + /// + /// 标准课时 + /// + [Display(Name = "StandardHour"), Description("标准课时"), Column(TypeName = "decimal(20,2)")] + public decimal? StandardHour { get; set; } + + /// + /// 学分 + /// + public int? CreditPoints { get; set; } + + /// + /// 封面图 + /// + [Display(Name = "CoverUrl"), Description("封面图"), MaxLength(2000, ErrorMessage = "封面图 不能超过 2000 个字符")] + public string CoverUrl { get; set; } + + public List CourseIds { get; set; } = new List(); + + /// + /// 是否使用默认封面 + /// + public bool? UseDefaultCoverImage { get; set; } + + /// + /// 默认封面图Name + /// + [Display(Name = "DefaultCoverImageName"), Description("默认封面图Name"), MaxLength(32, ErrorMessage = "默认封面图Name 不能超过 32 个字符")] + public string DefaultCoverImageName { get; set; } } diff --git a/Tiobon.Core.Model/Models/Ghre/Ghre_Course.cs b/Tiobon.Core.Model/Models/Ghre/Ghre_Course.cs index 04c3d2c5..d98fd587 100644 --- a/Tiobon.Core.Model/Models/Ghre/Ghre_Course.cs +++ b/Tiobon.Core.Model/Models/Ghre/Ghre_Course.cs @@ -6,7 +6,7 @@ * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── -*V0.01 2024/7/15 13:56:06 SimonHsiao 初版 +*V0.01 2024/12/26 9:54:09 SimonHsiao 初版 * * Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. *┌──────────────────────────────────┐ @@ -33,7 +33,7 @@ public class Ghre_Course : BasePoco /// /// 课程名称 /// - [Display(Name = "CourseName"), Description("课程名称"), MaxLength(32, ErrorMessage = "课程名称 不能超过 32 个字符")] + [Display(Name = "CourseName"), Description("课程名称"), MaxLength(64, ErrorMessage = "课程名称 不能超过 64 个字符")] public string CourseName { get; set; } /// @@ -49,13 +49,14 @@ public class Ghre_Course : BasePoco /// /// 课件ID - /// + /// public long? CourseWareId { get; set; } /// /// 标准课时 /// - public int? StandardHour { get; set; } + [Display(Name = "StandardHour"), Description("标准课时"), Column(TypeName = "decimal(20,2)")] + public decimal? StandardHour { get; set; } /// /// 学分 @@ -113,7 +114,8 @@ public class Ghre_Course : BasePoco /// /// 是否公开课 /// - public virtual string IsOpen { get; set; } + [Display(Name = "IsOpen"), Description("是否公开课"), MaxLength(32, ErrorMessage = "是否公开课 不能超过 32 个字符")] + public string IsOpen { get; set; } /// /// 培训有效期(月) @@ -149,11 +151,6 @@ public class Ghre_Course : BasePoco [Display(Name = "BeforeReady"), Description("课前准备"), MaxLength(2000, ErrorMessage = "课前准备 不能超过 2000 个字符")] public string BeforeReady { get; set; } - /// - /// 发布时间 - /// - public DateTime? PublishTime { get; set; } - /// /// 备注 /// @@ -256,4 +253,9 @@ public class Ghre_Course : BasePoco /// [Display(Name = "DefaultCoverImageName"), Description("默认封面图Name"), MaxLength(32, ErrorMessage = "默认封面图Name 不能超过 32 个字符")] public string DefaultCoverImageName { get; set; } + + /// + /// 发布时间 + /// + public DateTime? PublishTime { get; set; } } diff --git a/Tiobon.Core.Model/Models/Ghre/Ghre_CourseScene.cs b/Tiobon.Core.Model/Models/Ghre/Ghre_CourseScene.cs index 83b1a541..5973975e 100644 --- a/Tiobon.Core.Model/Models/Ghre/Ghre_CourseScene.cs +++ b/Tiobon.Core.Model/Models/Ghre/Ghre_CourseScene.cs @@ -6,7 +6,7 @@ * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── -*V0.01 2024/4/28 11:09:46 SimonHsiao 初版 +*V0.01 2024/12/26 9:54:02 SimonHsiao 初版 * * Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. *┌──────────────────────────────────┐ @@ -27,27 +27,15 @@ public class Ghre_CourseScene : BasePoco /// /// 场景编号 /// - [Display(Name = "SceneNo"), Description("场景编号"), MaxLength(32, ErrorMessage = "场景编号 不能超过 32 个字符"), EntityColumn(Unique = true)] + [Display(Name = "SceneNo"), Description("场景编号"), MaxLength(32, ErrorMessage = "场景编号 不能超过 32 个字符")] public string SceneNo { get; set; } /// /// 场景名称 /// - [Display(Name = "SceneName"), Description("场景名称"), MaxLength(32, ErrorMessage = "场景名称 不能超过 32 个字符"), EntityColumn(Unique = true)] + [Display(Name = "SceneName"), Description("场景名称"), MaxLength(32, ErrorMessage = "场景名称 不能超过 32 个字符")] public string SceneName { get; set; } - /// - /// 课程ID - /// - [Display(Name = "CourseId"), Description("课程ID"), MaxLength(2000, ErrorMessage = "课程ID 不能超过 2000 个字符")] - public string CourseId { get; set; } - - /// - /// 课程 - /// - [Display(Name = "CourseName"), Description("课程ID"), MaxLength(2000, ErrorMessage = "课程ID 不能超过 2000 个字符")] - public string CourseName { get; set; } - /// /// 备注 /// @@ -59,33 +47,6 @@ public class Ghre_CourseScene : BasePoco /// public int? SortNo { get; set; } - /// - /// 标准课时 - /// - public int? StandardHour { get; set; } - - /// - /// 学分 - /// - public int? CreditPoints { get; set; } - - /// - /// 封面图 - /// - [Display(Name = "CoverUrl"), Description("封面图"), MaxLength(2000, ErrorMessage = "封面图 不能超过 2000 个字符")] - public string CoverUrl { get; set; } - - /// - /// 是否使用默认封面 - /// - public bool? UseDefaultCoverImage { get; set; } - - /// - /// 默认封面图Name - /// - [Display(Name = "DefaultCoverImageName"), Description("默认封面图Name"), MaxLength(32, ErrorMessage = "默认封面图Name 不能超过 32 个字符")] - public string DefaultCoverImageName { get; set; } - /// /// 默认标志 /// @@ -160,4 +121,44 @@ public class Ghre_CourseScene : BasePoco /// 预留字段12 /// public int? ReverseI2 { get; set; } + + /// + /// 课程ID + /// + [Display(Name = "CourseId"), Description("课程ID"), MaxLength(2000, ErrorMessage = "课程ID 不能超过 2000 个字符")] + public string CourseId { get; set; } + + /// + /// 课程 + /// + [Display(Name = "CourseName"), Description("课程"), MaxLength(2000, ErrorMessage = "课程 不能超过 2000 个字符")] + public string CourseName { get; set; } + + /// + /// 标准课时 + /// + [Display(Name = "StandardHour"), Description("标准课时"), Column(TypeName = "decimal(20,2)")] + public decimal? StandardHour { get; set; } + + /// + /// 学分 + /// + public int? CreditPoints { get; set; } + + /// + /// 封面图 + /// + [Display(Name = "CoverUrl"), Description("封面图"), MaxLength(2000, ErrorMessage = "封面图 不能超过 2000 个字符")] + public string CoverUrl { get; set; } + + /// + /// 是否使用默认封面 + /// + public bool? UseDefaultCoverImage { get; set; } + + /// + /// 默认封面图Name + /// + [Display(Name = "DefaultCoverImageName"), Description("默认封面图Name"), MaxLength(32, ErrorMessage = "默认封面图Name 不能超过 32 个字符")] + public string DefaultCoverImageName { get; set; } } diff --git a/Tiobon.Core/Tiobon.Core.Model.xml b/Tiobon.Core/Tiobon.Core.Model.xml index fe3bbcc0..75a0f7e0 100644 --- a/Tiobon.Core/Tiobon.Core.Model.xml +++ b/Tiobon.Core/Tiobon.Core.Model.xml @@ -2598,7 +2598,7 @@ 课件ID - + @@ -2690,11 +2690,6 @@ 课前准备 - - - 发布时间 - - 备注 @@ -2785,6 +2780,11 @@ 默认封面图Name + + + 发布时间 + + 课程分类 (Dto.Base) @@ -2890,16 +2890,6 @@ 场景名称 - - - 课程ID - - - - - 课程 - - 备注 @@ -2910,31 +2900,6 @@ 排序 - - - 标准课时 - - - - - 学分 - - - - - 封面图 - - - - - 是否使用默认封面 - - - - - 默认封面图Name - - 默认标志 @@ -3000,6 +2965,41 @@ 预留字段12 + + + 课程ID + + + + + 课程 + + + + + 标准课时 + + + + + 学分 + + + + + 封面图 + + + + + 是否使用默认封面 + + + + + 默认封面图Name + + Ghre_CourseSnap (Dto.Base) @@ -16119,7 +16119,7 @@ 课件ID - + @@ -16211,11 +16211,6 @@ 课前准备 - - - 发布时间 - - 备注 @@ -16306,6 +16301,11 @@ 默认封面图Name + + + 发布时间 + + 课程分类 (Model) @@ -16411,16 +16411,6 @@ 场景名称 - - - 课程ID - - - - - 课程 - - 备注 @@ -16431,31 +16421,6 @@ 排序 - - - 标准课时 - - - - - 学分 - - - - - 封面图 - - - - - 是否使用默认封面 - - - - - 默认封面图Name - - 默认标志 @@ -16521,6 +16486,41 @@ 预留字段12 + + + 课程ID + + + + + 课程 + + + + + 标准课时 + + + + + 学分 + + + + + 封面图 + + + + + 是否使用默认封面 + + + + + 默认封面图Name + + Ghre_CourseSnap (Model)