diff --git a/Tiobon.Core.Api/Controllers/Ghre/Ghre_ConfigController.cs b/Tiobon.Core.Api/Controllers/Ghre/Ghre_ConfigController.cs new file mode 100644 index 00000000..8a5b290d --- /dev/null +++ b/Tiobon.Core.Api/Controllers/Ghre/Ghre_ConfigController.cs @@ -0,0 +1,14 @@ +namespace Tiobon.Core.Api.Controllers; + +/// +/// 参数配置(Controller) +/// +[Route("api/[controller]")] +[ApiController, GlobalActionFilter] +[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghre)] +public class Ghre_ConfigController : BaseController +{ + public Ghre_ConfigController(IGhre_ConfigServices service) : base(service) + { + } +} \ No newline at end of file diff --git a/Tiobon.Core.Api/Tiobon.Core.Model.xml b/Tiobon.Core.Api/Tiobon.Core.Model.xml index e5729939..553d3c99 100644 --- a/Tiobon.Core.Api/Tiobon.Core.Model.xml +++ b/Tiobon.Core.Api/Tiobon.Core.Model.xml @@ -1720,6 +1720,116 @@ 预留字段12 + + + 参数配置 (Dto.Base) + + + + + 参数名称 + + + + + 参数代码 + + + + + 参数值 + + + + + 参数类型 + + + + + 配置内容 + + + + + 排序 + + + + + 是否多选 + + + + + 备注 + + + + + 默认标志 + + + + + 预留字段1 + + + + + 预留字段2 + + + + + 预留字段3 + + + + + 预留字段4 + + + + + 预留字段5 + + + + + 预留字段6 + + + + + 预留字段7 + + + + + 预留字段8 + + + + + 预留字段9 + + + + + 预留字段10 + + + + + 预留字段11 + + + + + 预留字段12 + + 课程 (Dto.Base) @@ -6502,6 +6612,11 @@ 培训证书规则 (Dto.EditInput) + + + 参数配置 (Dto.EditInput) + + 课程 (Dto.EditInput) @@ -6747,6 +6862,11 @@ 培训证书规则 (Dto.InsertInput) + + + 参数配置 (Dto.InsertInput) + + 课程 (Dto.InsertInput) @@ -8836,6 +8956,116 @@ 预留字段12 + + + 参数配置 (Model) + + + + + 参数名称 + + + + + 参数代码 + + + + + 参数值 + + + + + 参数类型 + + + + + 配置内容 + + + + + 排序 + + + + + 是否多选 + + + + + 备注 + + + + + 默认标志 + + + + + 预留字段1 + + + + + 预留字段2 + + + + + 预留字段3 + + + + + 预留字段4 + + + + + 预留字段5 + + + + + 预留字段6 + + + + + 预留字段7 + + + + + 预留字段8 + + + + + 预留字段9 + + + + + 预留字段10 + + + + + 预留字段11 + + + + + 预留字段12 + + 课程 (Model) @@ -14632,6 +14862,21 @@ 发放规则 + + + 参数配置(Dto.View) + + + + + 创建信息 + + + + + 修改信息 + + 课程(Dto.View) diff --git a/Tiobon.Core.Api/Tiobon.Core.xml b/Tiobon.Core.Api/Tiobon.Core.xml index 8c303a21..dbe355f5 100644 --- a/Tiobon.Core.Api/Tiobon.Core.xml +++ b/Tiobon.Core.Api/Tiobon.Core.xml @@ -644,6 +644,11 @@ 培训证书规则(Controller) + + + 参数配置(Controller) + + Ghre_CourseClass(Controller) diff --git a/Tiobon.Core.IServices/Ghre/IGhre_ConfigServices.cs b/Tiobon.Core.IServices/Ghre/IGhre_ConfigServices.cs new file mode 100644 index 00000000..93930bce --- /dev/null +++ b/Tiobon.Core.IServices/Ghre/IGhre_ConfigServices.cs @@ -0,0 +1,12 @@ +using Tiobon.Core.IServices.BASE; +using Tiobon.Core.Model.Models; + +namespace Tiobon.Core.IServices +{ + /// + /// 参数配置(自定义服务接口) + /// + public interface IGhre_ConfigServices :IBaseServices + { + } +} \ No newline at end of file diff --git a/Tiobon.Core.Model/Base/Ghre/Ghre_Config.Dto.Base.cs b/Tiobon.Core.Model/Base/Ghre/Ghre_Config.Dto.Base.cs new file mode 100644 index 00000000..bc155a2c --- /dev/null +++ b/Tiobon.Core.Model/Base/Ghre/Ghre_Config.Dto.Base.cs @@ -0,0 +1,150 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghre_Config.cs +* +*功 能: N / A +* 类 名: Ghre_Config +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2024/9/23 9:34:13 SimonHsiao 初版 +* +* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; + +namespace Tiobon.Core.Model.Models +{ + + /// + /// 参数配置 (Dto.Base) + /// + public class Ghre_ConfigBase + { + + /// + /// 参数名称 + /// + [Display(Name = "ConfigName"), Description("参数名称"), MaxLength(32, ErrorMessage = "参数名称 不能超过 32 个字符")] + public string ConfigName { get; set; } + + /// + /// 参数代码 + /// + [Display(Name = "ConfigCode"), Description("参数代码"), MaxLength(32, ErrorMessage = "参数代码 不能超过 32 个字符")] + public string ConfigCode { get; set; } + + /// + /// 参数值 + /// + [Display(Name = "ConfigValue"), Description("参数值"), MaxLength(32, ErrorMessage = "参数值 不能超过 32 个字符")] + public string ConfigValue { get; set; } + + /// + /// 参数类型 + /// + [Display(Name = "InputType"), Description("参数类型"), MaxLength(32, ErrorMessage = "参数类型 不能超过 32 个字符")] + public string InputType { get; set; } + + /// + /// 配置内容 + /// + [Display(Name = "AvailableValue"), Description("配置内容"), MaxLength(128, ErrorMessage = "配置内容 不能超过 128 个字符")] + public string AvailableValue { get; set; } + + /// + /// 排序 + /// + public int? Sequence { get; set; } + + /// + /// 是否多选 + /// + public bool? IsMultiple { get; set; } + + /// + /// 备注 + /// + [Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")] + public string RemarkSz { 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; } + } +} diff --git a/Tiobon.Core.Model/Edit/Ghre/Ghre_Config.Dto.EditInput.cs b/Tiobon.Core.Model/Edit/Ghre/Ghre_Config.Dto.EditInput.cs new file mode 100644 index 00000000..18b6d2ac --- /dev/null +++ b/Tiobon.Core.Model/Edit/Ghre/Ghre_Config.Dto.EditInput.cs @@ -0,0 +1,27 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghre_Config.cs +* +*功 能: N / A +* 类 名: Ghre_Config +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2024/9/23 9:34:13 SimonHsiao 初版 +* +* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models +{ + + /// + /// 参数配置 (Dto.EditInput) + /// + public class EditGhre_ConfigInput : Ghre_ConfigBase + { + } +} diff --git a/Tiobon.Core.Model/Insert/Ghre/Ghre_Config.Dto.InsertInput.cs b/Tiobon.Core.Model/Insert/Ghre/Ghre_Config.Dto.InsertInput.cs new file mode 100644 index 00000000..9a8af4c4 --- /dev/null +++ b/Tiobon.Core.Model/Insert/Ghre/Ghre_Config.Dto.InsertInput.cs @@ -0,0 +1,27 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghre_Config.cs +* +*功 能: N / A +* 类 名: Ghre_Config +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2024/9/23 9:34:13 SimonHsiao 初版 +* +* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models +{ + + /// + /// 参数配置 (Dto.InsertInput) + /// + public class InsertGhre_ConfigInput : Ghre_ConfigBase + { + } +} diff --git a/Tiobon.Core.Model/Models/Ghre/Ghre_Config.cs b/Tiobon.Core.Model/Models/Ghre/Ghre_Config.cs new file mode 100644 index 00000000..136c891a --- /dev/null +++ b/Tiobon.Core.Model/Models/Ghre/Ghre_Config.cs @@ -0,0 +1,152 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghre_Config.cs +* +*功 能: N / A +* 类 名: Ghre_Config +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2024/9/23 9:34:13 SimonHsiao 初版 +* +* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using SqlSugar; + +namespace Tiobon.Core.Model.Models +{ + + /// + /// 参数配置 (Model) + /// + [SugarTable("Ghre_Config", "Ghre_Config"), Entity(TableCnName = "参数配置", TableName = "Ghre_Config")] + public class Ghre_Config : BasePoco + { + + /// + /// 参数名称 + /// + [Display(Name = "ConfigName"), Description("参数名称"), MaxLength(32, ErrorMessage = "参数名称 不能超过 32 个字符")] + public string ConfigName { get; set; } + + /// + /// 参数代码 + /// + [Display(Name = "ConfigCode"), Description("参数代码"), MaxLength(32, ErrorMessage = "参数代码 不能超过 32 个字符")] + public string ConfigCode { get; set; } + + /// + /// 参数值 + /// + [Display(Name = "ConfigValue"), Description("参数值"), MaxLength(32, ErrorMessage = "参数值 不能超过 32 个字符")] + public string ConfigValue { get; set; } + + /// + /// 参数类型 + /// + [Display(Name = "InputType"), Description("参数类型"), MaxLength(32, ErrorMessage = "参数类型 不能超过 32 个字符")] + public string InputType { get; set; } + + /// + /// 配置内容 + /// + [Display(Name = "AvailableValue"), Description("配置内容"), MaxLength(128, ErrorMessage = "配置内容 不能超过 128 个字符")] + public string AvailableValue { get; set; } + + /// + /// 排序 + /// + public int? Sequence { get; set; } + + /// + /// 是否多选 + /// + public bool? IsMultiple { get; set; } + + /// + /// 备注 + /// + [Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")] + public string RemarkSz { 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; } + } +} diff --git a/Tiobon.Core.Model/View/Ghre/Ghre_Config.Dto.View.cs b/Tiobon.Core.Model/View/Ghre/Ghre_Config.Dto.View.cs new file mode 100644 index 00000000..b77ff0da --- /dev/null +++ b/Tiobon.Core.Model/View/Ghre/Ghre_Config.Dto.View.cs @@ -0,0 +1,34 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghre_Config.cs +* +*功 能: N / A +* 类 名: Ghre_Config +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2024/9/23 9:34:13 SimonHsiao 初版 +* +* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models; + +/// +/// 参数配置(Dto.View) +/// +public class Ghre_ConfigDto : Ghre_Config +{ +/// +/// 创建信息 +/// +public string CreateDataInfo { get; set; } + +/// +/// 修改信息 +/// +public string UpdateDataInfo { get; set; } +} diff --git a/Tiobon.Core.Services/CommonServices.cs b/Tiobon.Core.Services/CommonServices.cs index f9408513..c1d5a9d0 100644 --- a/Tiobon.Core.Services/CommonServices.cs +++ b/Tiobon.Core.Services/CommonServices.cs @@ -2052,7 +2052,7 @@ public partial class CommonServices : BaseServices>, ICommon NULL CourseName, NULL CourseId, NULL YearMonth, - NULL RequestSource, + 'Dept' RequestSource, NULL DeptId, NULL RequestNum, NULL TrainStaffId, diff --git a/Tiobon.Core.Services/Ghre/Ghre_ConfigServices.cs b/Tiobon.Core.Services/Ghre/Ghre_ConfigServices.cs new file mode 100644 index 00000000..e8f8411b --- /dev/null +++ b/Tiobon.Core.Services/Ghre/Ghre_ConfigServices.cs @@ -0,0 +1,23 @@ + +using Tiobon.Core.IServices; +using Tiobon.Core.Model.Models; +using Tiobon.Core.Services.BASE; +using Tiobon.Core.IRepository.Base; +using Tiobon.Core.Common.Caches; + +namespace Tiobon.Core.Services +{ + /// + /// 参数配置 (服务) + /// + public class Ghre_ConfigServices : BaseServices, IGhre_ConfigServices + { + private readonly IBaseRepository _dal; + public Ghre_ConfigServices(ICaching caching, IBaseRepository dal) + { + this._dal = dal; + base.BaseDal = dal; + base._caching = caching; + } + } +} \ No newline at end of file diff --git a/Tiobon.Core/Tiobon.Core.Model.xml b/Tiobon.Core/Tiobon.Core.Model.xml index e5729939..553d3c99 100644 --- a/Tiobon.Core/Tiobon.Core.Model.xml +++ b/Tiobon.Core/Tiobon.Core.Model.xml @@ -1720,6 +1720,116 @@ 预留字段12 + + + 参数配置 (Dto.Base) + + + + + 参数名称 + + + + + 参数代码 + + + + + 参数值 + + + + + 参数类型 + + + + + 配置内容 + + + + + 排序 + + + + + 是否多选 + + + + + 备注 + + + + + 默认标志 + + + + + 预留字段1 + + + + + 预留字段2 + + + + + 预留字段3 + + + + + 预留字段4 + + + + + 预留字段5 + + + + + 预留字段6 + + + + + 预留字段7 + + + + + 预留字段8 + + + + + 预留字段9 + + + + + 预留字段10 + + + + + 预留字段11 + + + + + 预留字段12 + + 课程 (Dto.Base) @@ -6502,6 +6612,11 @@ 培训证书规则 (Dto.EditInput) + + + 参数配置 (Dto.EditInput) + + 课程 (Dto.EditInput) @@ -6747,6 +6862,11 @@ 培训证书规则 (Dto.InsertInput) + + + 参数配置 (Dto.InsertInput) + + 课程 (Dto.InsertInput) @@ -8836,6 +8956,116 @@ 预留字段12 + + + 参数配置 (Model) + + + + + 参数名称 + + + + + 参数代码 + + + + + 参数值 + + + + + 参数类型 + + + + + 配置内容 + + + + + 排序 + + + + + 是否多选 + + + + + 备注 + + + + + 默认标志 + + + + + 预留字段1 + + + + + 预留字段2 + + + + + 预留字段3 + + + + + 预留字段4 + + + + + 预留字段5 + + + + + 预留字段6 + + + + + 预留字段7 + + + + + 预留字段8 + + + + + 预留字段9 + + + + + 预留字段10 + + + + + 预留字段11 + + + + + 预留字段12 + + 课程 (Model) @@ -14632,6 +14862,21 @@ 发放规则 + + + 参数配置(Dto.View) + + + + + 创建信息 + + + + + 修改信息 + + 课程(Dto.View) diff --git a/Tiobon.Core/Tiobon.Core.xml b/Tiobon.Core/Tiobon.Core.xml index 8c303a21..dbe355f5 100644 --- a/Tiobon.Core/Tiobon.Core.xml +++ b/Tiobon.Core/Tiobon.Core.xml @@ -644,6 +644,11 @@ 培训证书规则(Controller) + + + 参数配置(Controller) + + Ghre_CourseClass(Controller)