diff --git a/Tiobon.Core.Model/Edit/Ghre/Ghre_Course.Dto.EditInput.cs b/Tiobon.Core.Model/Edit/Ghre/Ghre_Course.Dto.EditInput.cs index 32df01ed..5a8c748c 100644 --- a/Tiobon.Core.Model/Edit/Ghre/Ghre_Course.Dto.EditInput.cs +++ b/Tiobon.Core.Model/Edit/Ghre/Ghre_Course.Dto.EditInput.cs @@ -26,5 +26,8 @@ namespace Tiobon.Core.Model.Models public List ExamPaperIds { get; set; } public List CourseClassIds { get; set; } + + + public bool? IsOPenLabel { get; set; } } } diff --git a/Tiobon.Core.Model/Insert/Ghre/Ghre_Course.Dto.InsertInput.cs b/Tiobon.Core.Model/Insert/Ghre/Ghre_Course.Dto.InsertInput.cs index 830c6029..7d3ede63 100644 --- a/Tiobon.Core.Model/Insert/Ghre/Ghre_Course.Dto.InsertInput.cs +++ b/Tiobon.Core.Model/Insert/Ghre/Ghre_Course.Dto.InsertInput.cs @@ -25,5 +25,8 @@ namespace Tiobon.Core.Model.Models { public List ExamPaperIds { get; set;} public List CourseClassIds { get; set; } + public bool? IsOPenLabel { get; set; } + + } } diff --git a/Tiobon.Core.Model/Models/Ghre/Ghre_Course.cs b/Tiobon.Core.Model/Models/Ghre/Ghre_Course.cs index 801254a6..5e472abb 100644 --- a/Tiobon.Core.Model/Models/Ghre/Ghre_Course.cs +++ b/Tiobon.Core.Model/Models/Ghre/Ghre_Course.cs @@ -13,7 +13,7 @@ *│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ *│ 作者:SimonHsiao │ *└──────────────────────────────────┘ -*/ +*/ using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; @@ -119,7 +119,7 @@ namespace Tiobon.Core.Model.Models /// /// 是否公开课 /// - public bool? IsOPen { get; set; } + public virtual bool? IsOPen { get; set; } /// /// 培训有效期(月) diff --git a/Tiobon.Core.Model/View/Ghre/Ghre_Course.Dto.View.cs b/Tiobon.Core.Model/View/Ghre/Ghre_Course.Dto.View.cs index 9e8572db..fdb13812 100644 --- a/Tiobon.Core.Model/View/Ghre/Ghre_Course.Dto.View.cs +++ b/Tiobon.Core.Model/View/Ghre/Ghre_Course.Dto.View.cs @@ -35,7 +35,7 @@ public class Ghre_CourseDto : Ghre_Course public string ChargeMethodLabel { get; set; } public string TeacherName { get; set; } - + public string InOrOutLabel { get; set; } public string IsOPenLabel { get; set; } /// diff --git a/Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs b/Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs index fbcb772e..b3648323 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs @@ -260,6 +260,7 @@ public class Ghre_CourseServices : BaseServices