培训记录

master
xiaochanghai 11 months ago
parent 4f46e35a34
commit 839fefab02
  1. 1813
      Model/Tiobon.Web.pdm
  2. 14
      Tiobon.Core.Api/Controllers/Ghre/Ghre_StudyRecordController.cs
  3. 325
      Tiobon.Core.Api/Tiobon.Core.Model.xml
  4. 5
      Tiobon.Core.Api/Tiobon.Core.xml
  5. 12
      Tiobon.Core.IServices/Ghre/IGhre_StudyRecordServices.cs
  6. 135
      Tiobon.Core.Model/Base/Ghre/Ghre_StudyRecord.Dto.Base.cs
  7. 27
      Tiobon.Core.Model/Edit/Ghre/Ghre_StudyRecord.Dto.EditInput.cs
  8. 27
      Tiobon.Core.Model/Insert/Ghre/Ghre_StudyRecord.Dto.InsertInput.cs
  9. 137
      Tiobon.Core.Model/Models/Ghre/Ghre_StudyRecord.cs
  10. 132
      Tiobon.Core.Model/View/Ghre/Ghre_StudyRecord.Dto.View.cs
  11. 120
      Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs
  12. 325
      Tiobon.Core/Tiobon.Core.Model.xml
  13. 5
      Tiobon.Core/Tiobon.Core.xml

File diff suppressed because it is too large Load Diff

@ -0,0 +1,14 @@
namespace Tiobon.Core.Api.Controllers;
/// <summary>
/// 培训记录(Controller)
/// </summary>
[Route("api/[controller]")]
[ApiController, GlobalActionFilter]
[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghre)]
public class Ghre_StudyRecordController : BaseController<IGhre_StudyRecordServices, Ghre_StudyRecord, Ghre_StudyRecordDto, InsertGhre_StudyRecordInput, EditGhre_StudyRecordInput>
{
public Ghre_StudyRecordController(IGhre_StudyRecordServices service) : base(service)
{
}
}

@ -3380,6 +3380,106 @@
预留字段12 预留字段12
</summary> </summary>
</member> </member>
<member name="T:Tiobon.Core.Model.Models.Ghre_StudyRecordBase">
<summary>
培训记录 (Dto.Base)
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.StaffId">
<summary>
员工ID
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.CourseSnapId">
<summary>
课程快照ID
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.CourseId">
<summary>
课程ID
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.BeginTime">
<summary>
开始时间
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.EndTime">
<summary>
结束时间
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.RemarkSz">
<summary>
备注
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.IsDefault">
<summary>
默认标志
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.Reverse1">
<summary>
预留字段1
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.Reverse2">
<summary>
预留字段2
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.Reverse3">
<summary>
预留字段3
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.Reverse4">
<summary>
预留字段4
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.Reverse5">
<summary>
预留字段5
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.Reverse6">
<summary>
预留字段6
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.Reverse7">
<summary>
预留字段7
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.Reverse8">
<summary>
预留字段8
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.Reverse9">
<summary>
预留字段9
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.Reverse10">
<summary>
预留字段10
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.ReverseI1">
<summary>
预留字段11
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.ReverseI2">
<summary>
预留字段12
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghre_TeacherBase"> <member name="T:Tiobon.Core.Model.Models.Ghre_TeacherBase">
<summary> <summary>
Ghre_Teacher (Dto.Base) Ghre_Teacher (Dto.Base)
@ -4342,6 +4442,11 @@
培训机构附件 (Dto.EditInput) 培训机构附件 (Dto.EditInput)
</summary> </summary>
</member> </member>
<member name="T:Tiobon.Core.Model.Models.EditGhre_StudyRecordInput">
<summary>
培训记录 (Dto.EditInput)
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.EditGhre_TeacherInput"> <member name="T:Tiobon.Core.Model.Models.EditGhre_TeacherInput">
<summary> <summary>
Ghre_Teacher (Dto.EditInput) Ghre_Teacher (Dto.EditInput)
@ -4497,6 +4602,11 @@
培训机构附件 (Dto.InsertInput) 培训机构附件 (Dto.InsertInput)
</summary> </summary>
</member> </member>
<member name="T:Tiobon.Core.Model.Models.InsertGhre_StudyRecordInput">
<summary>
培训记录 (Dto.InsertInput)
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.InsertGhre_TeacherInput"> <member name="T:Tiobon.Core.Model.Models.InsertGhre_TeacherInput">
<summary> <summary>
Ghre_Teacher (Dto.InsertInput) Ghre_Teacher (Dto.InsertInput)
@ -8076,6 +8186,106 @@
预留字段12 预留字段12
</summary> </summary>
</member> </member>
<member name="T:Tiobon.Core.Model.Models.Ghre_StudyRecord">
<summary>
培训记录 (Model)
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.StaffId">
<summary>
员工ID
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.CourseSnapId">
<summary>
课程快照ID
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.CourseId">
<summary>
课程ID
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.BeginTime">
<summary>
开始时间
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.EndTime">
<summary>
结束时间
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.RemarkSz">
<summary>
备注
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.IsDefault">
<summary>
默认标志
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.Reverse1">
<summary>
预留字段1
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.Reverse2">
<summary>
预留字段2
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.Reverse3">
<summary>
预留字段3
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.Reverse4">
<summary>
预留字段4
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.Reverse5">
<summary>
预留字段5
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.Reverse6">
<summary>
预留字段6
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.Reverse7">
<summary>
预留字段7
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.Reverse8">
<summary>
预留字段8
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.Reverse9">
<summary>
预留字段9
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.Reverse10">
<summary>
预留字段10
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.ReverseI1">
<summary>
预留字段11
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.ReverseI2">
<summary>
预留字段12
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghre_Teacher"> <member name="T:Tiobon.Core.Model.Models.Ghre_Teacher">
<summary> <summary>
Ghre_Teacher (Model) Ghre_Teacher (Model)
@ -10122,6 +10332,121 @@
修改信息 修改信息
</summary> </summary>
</member> </member>
<member name="T:Tiobon.Core.Model.Models.Ghre_StudyRecordDto">
<summary>
培训记录(Dto.View)
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.CreateDataInfo">
<summary>
创建信息
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.UpdateDataInfo">
<summary>
修改信息
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.StaffNo">
<summary>
工号
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.StaffName">
<summary>
员工姓名
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.DeptNo">
<summary>
部门编号
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.DepteName">
<summary>
部门名称
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.TitleName">
<summary>
岗位
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.Indate">
<summary>
入职日期
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.InStatusLabel">
<summary>
在职状态
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.CourseClass">
<summary>
课程分类
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.CourseNo">
<summary>
课程编号
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.CourseName">
<summary>
课程名称
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.StandardHour">
<summary>
标准课时
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.ExamDate">
<summary>
考试日期
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.CourseScene">
<summary>
课程场景
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.Score">
<summary>
考试分数
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.AdjustScore">
<summary>
调整分
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.TotalScore">
<summary>
最终得分
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.IsPassLabel">
<summary>
是否合格
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.CreditPoints">
<summary>
获得学分
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.SourceLabel">
<summary>
来源
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.StaffTypeLabel">
<summary>
必/选修人员
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghre_TeacherDto"> <member name="T:Tiobon.Core.Model.Models.Ghre_TeacherDto">
<summary> <summary>
Ghre_Teacher(Dto.View) Ghre_Teacher(Dto.View)

@ -880,6 +880,11 @@
培训机构(Controller) 培训机构(Controller)
</summary> </summary>
</member> </member>
<member name="T:Tiobon.Core.Api.Controllers.Ghre_StudyRecordController">
<summary>
培训记录(Controller)
</summary>
</member>
<member name="T:Tiobon.Core.Api.Controllers.Ghre_TeacherAttachmentController"> <member name="T:Tiobon.Core.Api.Controllers.Ghre_TeacherAttachmentController">
<summary> <summary>
Ghre_TeacherAttachment(Controller) Ghre_TeacherAttachment(Controller)

@ -0,0 +1,12 @@
using Tiobon.Core.IServices.BASE;
using Tiobon.Core.Model.Models;
namespace Tiobon.Core.IServices
{
/// <summary>
/// 培训记录(自定义服务接口)
/// </summary>
public interface IGhre_StudyRecordServices :IBaseServices<Ghre_StudyRecord, Ghre_StudyRecordDto, InsertGhre_StudyRecordInput, EditGhre_StudyRecordInput>
{
}
}

@ -0,0 +1,135 @@
/* ,
* Ghre_StudyRecord.cs
*
* N / A
* Ghre_StudyRecord
*
* Ver
*
*V0.01 2024/7/16 13:01:53 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Tiobon.Core.Model.Models
{
/// <summary>
/// 培训记录 (Dto.Base)
/// </summary>
public class Ghre_StudyRecordBase
{
/// <summary>
/// 员工ID
/// </summary>
public int? StaffId { get; set; }
/// <summary>
/// 课程快照ID
/// </summary>
public long? CourseSnapId { get; set; }
/// <summary>
/// 课程ID
/// </summary>
public long? CourseId { get; set; }
/// <summary>
/// 开始时间
/// </summary>
public DateTime? BeginTime { get; set; }
/// <summary>
/// 结束时间
/// </summary>
public DateTime? EndTime { get; set; }
/// <summary>
/// 备注
/// </summary>
[Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")]
public string RemarkSz { get; set; }
/// <summary>
/// 默认标志
/// </summary>
public int? IsDefault { get; set; }
/// <summary>
/// 预留字段1
/// </summary>
[Display(Name = "Reverse1"), Description("预留字段1"), MaxLength(1000, ErrorMessage = "预留字段1 不能超过 1000 个字符")]
public string Reverse1 { get; set; }
/// <summary>
/// 预留字段2
/// </summary>
[Display(Name = "Reverse2"), Description("预留字段2"), MaxLength(1000, ErrorMessage = "预留字段2 不能超过 1000 个字符")]
public string Reverse2 { get; set; }
/// <summary>
/// 预留字段3
/// </summary>
[Display(Name = "Reverse3"), Description("预留字段3"), MaxLength(1000, ErrorMessage = "预留字段3 不能超过 1000 个字符")]
public string Reverse3 { get; set; }
/// <summary>
/// 预留字段4
/// </summary>
[Display(Name = "Reverse4"), Description("预留字段4"), MaxLength(1000, ErrorMessage = "预留字段4 不能超过 1000 个字符")]
public string Reverse4 { get; set; }
/// <summary>
/// 预留字段5
/// </summary>
[Display(Name = "Reverse5"), Description("预留字段5"), MaxLength(1000, ErrorMessage = "预留字段5 不能超过 1000 个字符")]
public string Reverse5 { get; set; }
/// <summary>
/// 预留字段6
/// </summary>
[Display(Name = "Reverse6"), Description("预留字段6"), MaxLength(1000, ErrorMessage = "预留字段6 不能超过 1000 个字符")]
public string Reverse6 { get; set; }
/// <summary>
/// 预留字段7
/// </summary>
[Display(Name = "Reverse7"), Description("预留字段7"), MaxLength(1000, ErrorMessage = "预留字段7 不能超过 1000 个字符")]
public string Reverse7 { get; set; }
/// <summary>
/// 预留字段8
/// </summary>
[Display(Name = "Reverse8"), Description("预留字段8"), MaxLength(1000, ErrorMessage = "预留字段8 不能超过 1000 个字符")]
public string Reverse8 { get; set; }
/// <summary>
/// 预留字段9
/// </summary>
[Display(Name = "Reverse9"), Description("预留字段9"), MaxLength(1000, ErrorMessage = "预留字段9 不能超过 1000 个字符")]
public string Reverse9 { get; set; }
/// <summary>
/// 预留字段10
/// </summary>
[Display(Name = "Reverse10"), Description("预留字段10"), MaxLength(1000, ErrorMessage = "预留字段10 不能超过 1000 个字符")]
public string Reverse10 { get; set; }
/// <summary>
/// 预留字段11
/// </summary>
public int? ReverseI1 { get; set; }
/// <summary>
/// 预留字段12
/// </summary>
public int? ReverseI2 { get; set; }
}
}

@ -0,0 +1,27 @@
/* ,
* Ghre_StudyRecord.cs
*
* N / A
* Ghre_StudyRecord
*
* Ver
*
*V0.01 2024/7/16 13:01:53 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models
{
/// <summary>
/// 培训记录 (Dto.EditInput)
/// </summary>
public class EditGhre_StudyRecordInput : Ghre_StudyRecordBase
{
}
}

@ -0,0 +1,27 @@
/* ,
* Ghre_StudyRecord.cs
*
* N / A
* Ghre_StudyRecord
*
* Ver
*
*V0.01 2024/7/16 13:01:53 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models
{
/// <summary>
/// 培训记录 (Dto.InsertInput)
/// </summary>
public class InsertGhre_StudyRecordInput : Ghre_StudyRecordBase
{
}
}

@ -0,0 +1,137 @@
/* ,
* Ghre_StudyRecord.cs
*
* N / A
* Ghre_StudyRecord
*
* Ver
*
*V0.01 2024/7/16 13:01:53 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using SqlSugar;
namespace Tiobon.Core.Model.Models
{
/// <summary>
/// 培训记录 (Model)
/// </summary>
[SugarTable("Ghre_StudyRecord", "Ghre_StudyRecord"), Entity(TableCnName = "培训记录", TableName = "Ghre_StudyRecord")]
public class Ghre_StudyRecord : BasePoco
{
/// <summary>
/// 员工ID
/// </summary>
public int? StaffId { get; set; }
/// <summary>
/// 课程快照ID
/// </summary>
public long? CourseSnapId { get; set; }
/// <summary>
/// 课程ID
/// </summary>
public long? CourseId { get; set; }
/// <summary>
/// 开始时间
/// </summary>
public DateTime? BeginTime { get; set; }
/// <summary>
/// 结束时间
/// </summary>
public DateTime? EndTime { get; set; }
/// <summary>
/// 备注
/// </summary>
[Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")]
public string RemarkSz { get; set; }
/// <summary>
/// 默认标志
/// </summary>
public int? IsDefault { get; set; }
/// <summary>
/// 预留字段1
/// </summary>
[Display(Name = "Reverse1"), Description("预留字段1"), MaxLength(1000, ErrorMessage = "预留字段1 不能超过 1000 个字符")]
public string Reverse1 { get; set; }
/// <summary>
/// 预留字段2
/// </summary>
[Display(Name = "Reverse2"), Description("预留字段2"), MaxLength(1000, ErrorMessage = "预留字段2 不能超过 1000 个字符")]
public string Reverse2 { get; set; }
/// <summary>
/// 预留字段3
/// </summary>
[Display(Name = "Reverse3"), Description("预留字段3"), MaxLength(1000, ErrorMessage = "预留字段3 不能超过 1000 个字符")]
public string Reverse3 { get; set; }
/// <summary>
/// 预留字段4
/// </summary>
[Display(Name = "Reverse4"), Description("预留字段4"), MaxLength(1000, ErrorMessage = "预留字段4 不能超过 1000 个字符")]
public string Reverse4 { get; set; }
/// <summary>
/// 预留字段5
/// </summary>
[Display(Name = "Reverse5"), Description("预留字段5"), MaxLength(1000, ErrorMessage = "预留字段5 不能超过 1000 个字符")]
public string Reverse5 { get; set; }
/// <summary>
/// 预留字段6
/// </summary>
[Display(Name = "Reverse6"), Description("预留字段6"), MaxLength(1000, ErrorMessage = "预留字段6 不能超过 1000 个字符")]
public string Reverse6 { get; set; }
/// <summary>
/// 预留字段7
/// </summary>
[Display(Name = "Reverse7"), Description("预留字段7"), MaxLength(1000, ErrorMessage = "预留字段7 不能超过 1000 个字符")]
public string Reverse7 { get; set; }
/// <summary>
/// 预留字段8
/// </summary>
[Display(Name = "Reverse8"), Description("预留字段8"), MaxLength(1000, ErrorMessage = "预留字段8 不能超过 1000 个字符")]
public string Reverse8 { get; set; }
/// <summary>
/// 预留字段9
/// </summary>
[Display(Name = "Reverse9"), Description("预留字段9"), MaxLength(1000, ErrorMessage = "预留字段9 不能超过 1000 个字符")]
public string Reverse9 { get; set; }
/// <summary>
/// 预留字段10
/// </summary>
[Display(Name = "Reverse10"), Description("预留字段10"), MaxLength(1000, ErrorMessage = "预留字段10 不能超过 1000 个字符")]
public string Reverse10 { get; set; }
/// <summary>
/// 预留字段11
/// </summary>
public int? ReverseI1 { get; set; }
/// <summary>
/// 预留字段12
/// </summary>
public int? ReverseI2 { get; set; }
}
}

@ -0,0 +1,132 @@
/* ,
* Ghre_StudyRecord.cs
*
* N / A
* Ghre_StudyRecord
*
* Ver
*
*V0.01 2024/7/16 13:01:53 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models;
/// <summary>
/// 培训记录(Dto.View)
/// </summary>
public class Ghre_StudyRecordDto : Ghre_StudyRecord
{
/// <summary>
/// 创建信息
/// </summary>
public string CreateDataInfo { get; set; }
/// <summary>
/// 修改信息
/// </summary>
public string UpdateDataInfo { get; set; }
/// <summary>
/// 工号
/// </summary>
public string StaffNo { get; set; }
/// <summary>
/// 员工姓名
/// </summary>
public string StaffName { get; set; }
/// <summary>
/// 部门编号
/// </summary>
public string DeptNo { get; set; }
/// <summary>
/// 部门名称
/// </summary>
public string DepteName { get; set; }
/// <summary>
/// 岗位
/// </summary>
public string TitleName { get; set; }
/// <summary>
/// 入职日期
/// </summary>
public string Indate { get; set; }
/// <summary>
/// 在职状态
/// </summary>
public string InStatusLabel { get; set; }
/// <summary>
/// 课程分类
/// </summary>
public string CourseClass { get; set; }
/// <summary>
/// 课程编号
/// </summary>
public string CourseNo { get; set; }
/// <summary>
/// 课程名称
/// </summary>
public string CourseName { get; set; }
/// <summary>
/// 标准课时
/// </summary>
public string StandardHour { get; set; }
/// <summary>
/// 考试日期
/// </summary>
public string ExamDate { get; set; }
/// <summary>
/// 课程场景
/// </summary>
public string CourseScene { get; set; }
/// <summary>
/// 考试分数
/// </summary>
public decimal? Score { get; set; }
/// <summary>
/// 调整分
/// </summary>
public decimal? AdjustScore { get; set; }
/// <summary>
/// 最终得分
/// </summary>
public decimal? TotalScore { get; set; }
/// <summary>
/// 是否合格
/// </summary>
public string IsPassLabel { get; set; }
/// <summary>
/// 获得学分
/// </summary>
public string CreditPoints { get; set; }
/// <summary>
/// 来源
/// </summary>
public string SourceLabel { get; set; }
/// <summary>
/// 必/选修人员
/// </summary>
public string StaffTypeLabel { get; set; }
}

@ -0,0 +1,120 @@

using Tiobon.Core.IServices;
using Tiobon.Core.Model.Models;
using Tiobon.Core.Services.BASE;
using Tiobon.Core.IRepository.Base;
using Tiobon.Core.Common.Caches;
using Newtonsoft.Json.Linq;
using Tiobon.Core.Common;
using Tiobon.Core.Model;
using Newtonsoft.Json;
namespace Tiobon.Core.Services
{
/// <summary>
/// 培训记录 (服务)
/// </summary>
public class Ghre_StudyRecordServices : BaseServices<Ghre_StudyRecord, Ghre_StudyRecordDto, InsertGhre_StudyRecordInput, EditGhre_StudyRecordInput>, IGhre_StudyRecordServices
{
private readonly IBaseRepository<Ghre_StudyRecord> _dal;
public Ghre_StudyRecordServices(ICaching caching, IBaseRepository<Ghre_StudyRecord> dal)
{
this._dal = dal;
base.BaseDal = dal;
base._caching = caching;
}
public override async Task<ServicePageResult<Ghre_StudyRecordDto>> QueryFilterPage(QueryBody filter, string condition, bool? IsEnable = true)
{
if (string.IsNullOrWhiteSpace(filter.orderBy))
filter.orderBy = "CreateTime1 DESC";
if (filter.pageSize == 0)
filter.pageSize = 10000;
var countSql = @$" SELECT COUNT(1) FROM Ghre_StudyRecord_V";
var sql = @$" SELECT *
FROM Ghre_StudyRecord_V A";
string conditions = " WHERE 1=1 ";
if (IsEnable == true)
conditions += " AND IsEnable = 1";
else if (IsEnable == false)
conditions += " AND IsEnable = 0";
if (!string.IsNullOrWhiteSpace(condition))
conditions += " AND " + condition;
if (filter.jsonParam != null)
foreach (JProperty jProperty in filter.jsonParam.Properties())
{
var name = jProperty.Name;
var value = jProperty.Value.ToString();
if (name == "page" || name == "pageSize")
continue;
if (name == "Date")
{
var jsonParam = JsonConvert.DeserializeObject<JsonParam1>(value);
conditions += $" AND (Date BETWEEN '{jsonParam.columnValue[0]}' AND '{jsonParam.columnValue[1]}')";
continue;
}
if (!string.IsNullOrWhiteSpace(value))
{
var jsonParam = JsonConvert.DeserializeObject<JsonParam>(value);
switch (jsonParam.operationKey)
{
case "Include":
conditions += $" AND {name} LIKE '%{jsonParam.columnValue}%'";
break;
case "NotInclude":
conditions += $" AND {name} NOT LIKE '%{jsonParam.columnValue}%'";
break;
case "IsNull":
conditions += $" AND {name} IS NULL";
break;
case "NotNull":
conditions += $" AND {name} IS NOT NULL";
break;
case "Equal":
conditions += $" AND {name} ='{jsonParam.columnValue}'";
break;
case "NotEqual":
conditions += $" AND {name} !='{jsonParam.columnValue}'";
break;
case "GreaterOrEqual"://大于等于
conditions += $" AND {name} >='{jsonParam.columnValue}'";
break;
case "Greater"://大于
conditions += $" AND {name} >'{jsonParam.columnValue}'";
break;
case "LessOrEqual"://小于等于
conditions += $" AND {name} <='{jsonParam.columnValue}'";
break;
case "Less"://小于
conditions += $" AND {name} <'{jsonParam.columnValue}'";
break;
default:
break;
}
}
}
sql += conditions;
countSql += conditions;
int total = await Db.Ado.GetIntAsync(countSql);
sql = "SELECT * FROM (SELECT *, ROW_NUMBER() OVER (ORDER BY " + filter.orderBy + ") NUM FROM (SELECT * FROM (" + sql + " ";
sql += ") A ) B ) C";
sql += " WHERE NUM <= " + filter.pageNum * filter.pageSize + " AND NUM >" + (filter.pageNum - 1) * filter.pageSize;
var entitys = await Db.Ado.SqlQueryAsync<Ghre_StudyRecordDto>(sql);
return new ServicePageResult<Ghre_StudyRecordDto>(filter.pageNum, total, filter.pageSize, entitys);
}
}
}

@ -3380,6 +3380,106 @@
预留字段12 预留字段12
</summary> </summary>
</member> </member>
<member name="T:Tiobon.Core.Model.Models.Ghre_StudyRecordBase">
<summary>
培训记录 (Dto.Base)
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.StaffId">
<summary>
员工ID
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.CourseSnapId">
<summary>
课程快照ID
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.CourseId">
<summary>
课程ID
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.BeginTime">
<summary>
开始时间
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.EndTime">
<summary>
结束时间
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.RemarkSz">
<summary>
备注
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.IsDefault">
<summary>
默认标志
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.Reverse1">
<summary>
预留字段1
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.Reverse2">
<summary>
预留字段2
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.Reverse3">
<summary>
预留字段3
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.Reverse4">
<summary>
预留字段4
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.Reverse5">
<summary>
预留字段5
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.Reverse6">
<summary>
预留字段6
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.Reverse7">
<summary>
预留字段7
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.Reverse8">
<summary>
预留字段8
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.Reverse9">
<summary>
预留字段9
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.Reverse10">
<summary>
预留字段10
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.ReverseI1">
<summary>
预留字段11
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordBase.ReverseI2">
<summary>
预留字段12
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghre_TeacherBase"> <member name="T:Tiobon.Core.Model.Models.Ghre_TeacherBase">
<summary> <summary>
Ghre_Teacher (Dto.Base) Ghre_Teacher (Dto.Base)
@ -4342,6 +4442,11 @@
培训机构附件 (Dto.EditInput) 培训机构附件 (Dto.EditInput)
</summary> </summary>
</member> </member>
<member name="T:Tiobon.Core.Model.Models.EditGhre_StudyRecordInput">
<summary>
培训记录 (Dto.EditInput)
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.EditGhre_TeacherInput"> <member name="T:Tiobon.Core.Model.Models.EditGhre_TeacherInput">
<summary> <summary>
Ghre_Teacher (Dto.EditInput) Ghre_Teacher (Dto.EditInput)
@ -4497,6 +4602,11 @@
培训机构附件 (Dto.InsertInput) 培训机构附件 (Dto.InsertInput)
</summary> </summary>
</member> </member>
<member name="T:Tiobon.Core.Model.Models.InsertGhre_StudyRecordInput">
<summary>
培训记录 (Dto.InsertInput)
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.InsertGhre_TeacherInput"> <member name="T:Tiobon.Core.Model.Models.InsertGhre_TeacherInput">
<summary> <summary>
Ghre_Teacher (Dto.InsertInput) Ghre_Teacher (Dto.InsertInput)
@ -8076,6 +8186,106 @@
预留字段12 预留字段12
</summary> </summary>
</member> </member>
<member name="T:Tiobon.Core.Model.Models.Ghre_StudyRecord">
<summary>
培训记录 (Model)
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.StaffId">
<summary>
员工ID
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.CourseSnapId">
<summary>
课程快照ID
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.CourseId">
<summary>
课程ID
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.BeginTime">
<summary>
开始时间
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.EndTime">
<summary>
结束时间
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.RemarkSz">
<summary>
备注
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.IsDefault">
<summary>
默认标志
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.Reverse1">
<summary>
预留字段1
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.Reverse2">
<summary>
预留字段2
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.Reverse3">
<summary>
预留字段3
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.Reverse4">
<summary>
预留字段4
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.Reverse5">
<summary>
预留字段5
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.Reverse6">
<summary>
预留字段6
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.Reverse7">
<summary>
预留字段7
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.Reverse8">
<summary>
预留字段8
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.Reverse9">
<summary>
预留字段9
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.Reverse10">
<summary>
预留字段10
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.ReverseI1">
<summary>
预留字段11
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecord.ReverseI2">
<summary>
预留字段12
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghre_Teacher"> <member name="T:Tiobon.Core.Model.Models.Ghre_Teacher">
<summary> <summary>
Ghre_Teacher (Model) Ghre_Teacher (Model)
@ -10122,6 +10332,121 @@
修改信息 修改信息
</summary> </summary>
</member> </member>
<member name="T:Tiobon.Core.Model.Models.Ghre_StudyRecordDto">
<summary>
培训记录(Dto.View)
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.CreateDataInfo">
<summary>
创建信息
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.UpdateDataInfo">
<summary>
修改信息
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.StaffNo">
<summary>
工号
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.StaffName">
<summary>
员工姓名
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.DeptNo">
<summary>
部门编号
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.DepteName">
<summary>
部门名称
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.TitleName">
<summary>
岗位
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.Indate">
<summary>
入职日期
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.InStatusLabel">
<summary>
在职状态
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.CourseClass">
<summary>
课程分类
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.CourseNo">
<summary>
课程编号
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.CourseName">
<summary>
课程名称
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.StandardHour">
<summary>
标准课时
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.ExamDate">
<summary>
考试日期
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.CourseScene">
<summary>
课程场景
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.Score">
<summary>
考试分数
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.AdjustScore">
<summary>
调整分
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.TotalScore">
<summary>
最终得分
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.IsPassLabel">
<summary>
是否合格
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.CreditPoints">
<summary>
获得学分
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.SourceLabel">
<summary>
来源
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_StudyRecordDto.StaffTypeLabel">
<summary>
必/选修人员
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghre_TeacherDto"> <member name="T:Tiobon.Core.Model.Models.Ghre_TeacherDto">
<summary> <summary>
Ghre_Teacher(Dto.View) Ghre_Teacher(Dto.View)

@ -880,6 +880,11 @@
培训机构(Controller) 培训机构(Controller)
</summary> </summary>
</member> </member>
<member name="T:Tiobon.Core.Api.Controllers.Ghre_StudyRecordController">
<summary>
培训记录(Controller)
</summary>
</member>
<member name="T:Tiobon.Core.Api.Controllers.Ghre_TeacherAttachmentController"> <member name="T:Tiobon.Core.Api.Controllers.Ghre_TeacherAttachmentController">
<summary> <summary>
Ghre_TeacherAttachment(Controller) Ghre_TeacherAttachment(Controller)

Loading…
Cancel
Save