From 65fc07505e58983f8b6256b7de58ae1226b56712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A4=E5=85=B0?= Date: Wed, 16 Apr 2025 15:21:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BB=A9=E6=95=88=E8=80=83?= =?UTF-8?q?=E6=A0=B8=E6=9C=9F=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Ghrp/Ghrp_PerformancePeriodController.cs | 14 ++ .../Ghrp_PerformancePeriodTypeController.cs | 14 ++ .../Ghrp/IGhrp_PerformancePeriodServices.cs | 12 + .../IGhrp_PerformancePeriodTypeServices.cs | 12 + .../Ghrp/Ghrp_PerformancePeriod.Dto.Base.cs | 205 +++++++++++++++++ .../Ghrp_PerformancePeriodType.Dto.Base.cs | 155 +++++++++++++ .../Ghrp_PerformancePeriod.Dto.EditInput.cs | 27 +++ ...hrp_PerformancePeriodType.Dto.EditInput.cs | 27 +++ .../Ghrp_PerformancePeriod.Dto.InsertInput.cs | 27 +++ ...p_PerformancePeriodType.Dto.InsertInput.cs | 27 +++ .../Models/Ghrp/Ghrp_PerformancePeriod.cs | 207 ++++++++++++++++++ .../Models/Ghrp/Ghrp_PerformancePeriodType.cs | 157 +++++++++++++ .../Ghrp/Ghrp_PerformancePeriod.Dto.View.cs | 34 +++ .../Ghrp_PerformancePeriodType.Dto.View.cs | 34 +++ .../Ghrp/Ghrp_PerformancePeriodServices.cs | 23 ++ .../Ghrp_PerformancePeriodTypeServices.cs | 23 ++ 16 files changed, 998 insertions(+) create mode 100644 Tiobon.Core.Api/Controllers/Ghrp/Ghrp_PerformancePeriodController.cs create mode 100644 Tiobon.Core.Api/Controllers/Ghrp/Ghrp_PerformancePeriodTypeController.cs create mode 100644 Tiobon.Core.IServices/Ghrp/IGhrp_PerformancePeriodServices.cs create mode 100644 Tiobon.Core.IServices/Ghrp/IGhrp_PerformancePeriodTypeServices.cs create mode 100644 Tiobon.Core.Model/Base/Ghrp/Ghrp_PerformancePeriod.Dto.Base.cs create mode 100644 Tiobon.Core.Model/Base/Ghrp/Ghrp_PerformancePeriodType.Dto.Base.cs create mode 100644 Tiobon.Core.Model/Edit/Ghrp/Ghrp_PerformancePeriod.Dto.EditInput.cs create mode 100644 Tiobon.Core.Model/Edit/Ghrp/Ghrp_PerformancePeriodType.Dto.EditInput.cs create mode 100644 Tiobon.Core.Model/Insert/Ghrp/Ghrp_PerformancePeriod.Dto.InsertInput.cs create mode 100644 Tiobon.Core.Model/Insert/Ghrp/Ghrp_PerformancePeriodType.Dto.InsertInput.cs create mode 100644 Tiobon.Core.Model/Models/Ghrp/Ghrp_PerformancePeriod.cs create mode 100644 Tiobon.Core.Model/Models/Ghrp/Ghrp_PerformancePeriodType.cs create mode 100644 Tiobon.Core.Model/View/Ghrp/Ghrp_PerformancePeriod.Dto.View.cs create mode 100644 Tiobon.Core.Model/View/Ghrp/Ghrp_PerformancePeriodType.Dto.View.cs create mode 100644 Tiobon.Core.Services/Ghrp/Ghrp_PerformancePeriodServices.cs create mode 100644 Tiobon.Core.Services/Ghrp/Ghrp_PerformancePeriodTypeServices.cs diff --git a/Tiobon.Core.Api/Controllers/Ghrp/Ghrp_PerformancePeriodController.cs b/Tiobon.Core.Api/Controllers/Ghrp/Ghrp_PerformancePeriodController.cs new file mode 100644 index 00000000..ea2d38b9 --- /dev/null +++ b/Tiobon.Core.Api/Controllers/Ghrp/Ghrp_PerformancePeriodController.cs @@ -0,0 +1,14 @@ +namespace Tiobon.Core.Api.Controllers; + +/// +/// 考核期间(Controller) +/// +[Route("api/[controller]")] +[ApiController, GlobalActionFilter] +[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghrp)] +public class Ghrp_PerformancePeriodController : BaseController +{ + public Ghrp_PerformancePeriodController(IGhrp_PerformancePeriodServices service) : base(service) + { + } +} \ No newline at end of file diff --git a/Tiobon.Core.Api/Controllers/Ghrp/Ghrp_PerformancePeriodTypeController.cs b/Tiobon.Core.Api/Controllers/Ghrp/Ghrp_PerformancePeriodTypeController.cs new file mode 100644 index 00000000..bc3db002 --- /dev/null +++ b/Tiobon.Core.Api/Controllers/Ghrp/Ghrp_PerformancePeriodTypeController.cs @@ -0,0 +1,14 @@ +namespace Tiobon.Core.Api.Controllers; + +/// +/// 考核周期类别(Controller) +/// +[Route("api/[controller]")] +[ApiController, GlobalActionFilter] +[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghrp)] +public class Ghrp_PerformancePeriodTypeController : BaseController +{ + public Ghrp_PerformancePeriodTypeController(IGhrp_PerformancePeriodTypeServices service) : base(service) + { + } +} \ No newline at end of file diff --git a/Tiobon.Core.IServices/Ghrp/IGhrp_PerformancePeriodServices.cs b/Tiobon.Core.IServices/Ghrp/IGhrp_PerformancePeriodServices.cs new file mode 100644 index 00000000..0a48f30d --- /dev/null +++ b/Tiobon.Core.IServices/Ghrp/IGhrp_PerformancePeriodServices.cs @@ -0,0 +1,12 @@ +using Tiobon.Core.IServices.BASE; +using Tiobon.Core.Model.Models; + +namespace Tiobon.Core.IServices +{ + /// + /// 考核期间(自定义服务接口) + /// + public interface IGhrp_PerformancePeriodServices :IBaseServices + { + } +} \ No newline at end of file diff --git a/Tiobon.Core.IServices/Ghrp/IGhrp_PerformancePeriodTypeServices.cs b/Tiobon.Core.IServices/Ghrp/IGhrp_PerformancePeriodTypeServices.cs new file mode 100644 index 00000000..316e40c5 --- /dev/null +++ b/Tiobon.Core.IServices/Ghrp/IGhrp_PerformancePeriodTypeServices.cs @@ -0,0 +1,12 @@ +using Tiobon.Core.IServices.BASE; +using Tiobon.Core.Model.Models; + +namespace Tiobon.Core.IServices +{ + /// + /// 考核周期类别(自定义服务接口) + /// + public interface IGhrp_PerformancePeriodTypeServices :IBaseServices + { + } +} \ No newline at end of file diff --git a/Tiobon.Core.Model/Base/Ghrp/Ghrp_PerformancePeriod.Dto.Base.cs b/Tiobon.Core.Model/Base/Ghrp/Ghrp_PerformancePeriod.Dto.Base.cs new file mode 100644 index 00000000..0a46644c --- /dev/null +++ b/Tiobon.Core.Model/Base/Ghrp/Ghrp_PerformancePeriod.Dto.Base.cs @@ -0,0 +1,205 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghrp_PerformancePeriod.cs +* +*功 能: N / A +* 类 名: Ghrp_PerformancePeriod +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2025/4/16 14:36:35 SimonHsiao 初版 +* +* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; + +namespace Tiobon.Core.Model.Models +{ + + /// + /// 考核期间 (Dto.Base) + /// + public class Ghrp_PerformancePeriodBase + { + + /// + /// 期间编号 + /// + [Display(Name = "PeriodNo"), Description("期间编号"), MaxLength(50, ErrorMessage = "期间编号 不能超过 50 个字符")] + public string PeriodNo { get; set; } + + /// + /// 期间名称 + /// + [Display(Name = "PeriodName"), Description("期间名称"), MaxLength(50, ErrorMessage = "期间名称 不能超过 50 个字符")] + public string PeriodName { get; set; } + + /// + /// 考核周期类别ID + /// + public long? PerformancePeriodTypeID { get; set; } + + /// + /// 考核周期类别 + /// + [Display(Name = "PeriodType"), Description("考核周期类别"), MaxLength(255, ErrorMessage = "考核周期类别 不能超过 255 个字符")] + public string PeriodType { get; set; } + + /// + /// 考核阶段数 + /// + [Display(Name = "Stage"), Description("考核阶段数"), MaxLength(255, ErrorMessage = "考核阶段数 不能超过 255 个字符")] + public string Stage { get; set; } + + /// + /// 阶段名称 + /// + [Display(Name = "StageItem"), Description("阶段名称"), MaxLength(255, ErrorMessage = "阶段名称 不能超过 255 个字符")] + public string StageItem { get; set; } + + /// + /// 当期类别 + /// + public int? PeriodNum { get; set; } + + /// + /// 当期是否启用 + /// + public int? IsUsing { get; set; } + + /// + /// 期间开始日 + /// + public DateTime? BeginDate { get; set; } + + /// + /// 期间结束日 + /// + public DateTime? EndDate { get; set; } + + /// + /// 员工填写开始日 + /// + public DateTime? StaffBeginDate { get; set; } + + /// + /// 员工填写结束日 + /// + public DateTime? StaffEndDate { get; set; } + + /// + /// 主管填写开始日 + /// + public DateTime? MGBeginDate { get; set; } + + /// + /// 主管填写结束日 + /// + public DateTime? MGEndDate { get; set; } + + /// + /// 人员状态基准日 + /// + public DateTime? OnJobBaseDate { get; set; } + + /// + /// 前置期间 + /// + public long? PrePerformancePeriodID { 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; } + + /// + /// 内置 + /// + public int? BuiltIn { get; set; } + } +} diff --git a/Tiobon.Core.Model/Base/Ghrp/Ghrp_PerformancePeriodType.Dto.Base.cs b/Tiobon.Core.Model/Base/Ghrp/Ghrp_PerformancePeriodType.Dto.Base.cs new file mode 100644 index 00000000..63244a5f --- /dev/null +++ b/Tiobon.Core.Model/Base/Ghrp/Ghrp_PerformancePeriodType.Dto.Base.cs @@ -0,0 +1,155 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghrp_PerformancePeriodType.cs +* +*功 能: N / A +* 类 名: Ghrp_PerformancePeriodType +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2025/4/16 14:36:13 SimonHsiao 初版 +* +* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; + +namespace Tiobon.Core.Model.Models +{ + + /// + /// 考核周期类别 (Dto.Base) + /// + public class Ghrp_PerformancePeriodTypeBase + { + + /// + /// 类别编号 + /// + [Display(Name = "PeriodTypeNo"), Description("类别编号"), MaxLength(32, ErrorMessage = "类别编号 不能超过 32 个字符")] + public string PeriodTypeNo { get; set; } + + /// + /// 类别名称 + /// + [Display(Name = "PeriodTypeName"), Description("类别名称"), MaxLength(32, ErrorMessage = "类别名称 不能超过 32 个字符")] + public string PeriodTypeName { get; set; } + + /// + /// 多语编号 + /// + [Display(Name = "MKey"), Description("多语编号"), MaxLength(255, ErrorMessage = "多语编号 不能超过 255 个字符")] + public string MKey { get; set; } + + /// + /// 考核阶段数 + /// + [Display(Name = "Stage"), Description("考核阶段数"), MaxLength(255, ErrorMessage = "考核阶段数 不能超过 255 个字符")] + public string Stage { get; set; } + + /// + /// 考核阶段名称 + /// + [Display(Name = "StageItems"), Description("考核阶段名称"), MaxLength(255, ErrorMessage = "考核阶段名称 不能超过 255 个字符")] + public string StageItems { get; set; } + + /// + /// 集团数据归属ID + /// + public int? DataBelongID { 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; } + + /// + /// 内置 + /// + public int? BuiltIn { get; set; } + } +} diff --git a/Tiobon.Core.Model/Edit/Ghrp/Ghrp_PerformancePeriod.Dto.EditInput.cs b/Tiobon.Core.Model/Edit/Ghrp/Ghrp_PerformancePeriod.Dto.EditInput.cs new file mode 100644 index 00000000..418d296a --- /dev/null +++ b/Tiobon.Core.Model/Edit/Ghrp/Ghrp_PerformancePeriod.Dto.EditInput.cs @@ -0,0 +1,27 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghrp_PerformancePeriod.cs +* +*功 能: N / A +* 类 名: Ghrp_PerformancePeriod +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2025/4/16 14:36:35 SimonHsiao 初版 +* +* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models +{ + + /// + /// 考核期间 (Dto.EditInput) + /// + public class EditGhrp_PerformancePeriodInput : Ghrp_PerformancePeriodBase + { + } +} diff --git a/Tiobon.Core.Model/Edit/Ghrp/Ghrp_PerformancePeriodType.Dto.EditInput.cs b/Tiobon.Core.Model/Edit/Ghrp/Ghrp_PerformancePeriodType.Dto.EditInput.cs new file mode 100644 index 00000000..e9464239 --- /dev/null +++ b/Tiobon.Core.Model/Edit/Ghrp/Ghrp_PerformancePeriodType.Dto.EditInput.cs @@ -0,0 +1,27 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghrp_PerformancePeriodType.cs +* +*功 能: N / A +* 类 名: Ghrp_PerformancePeriodType +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2025/4/16 14:36:13 SimonHsiao 初版 +* +* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models +{ + + /// + /// 考核周期类别 (Dto.EditInput) + /// + public class EditGhrp_PerformancePeriodTypeInput : Ghrp_PerformancePeriodTypeBase + { + } +} diff --git a/Tiobon.Core.Model/Insert/Ghrp/Ghrp_PerformancePeriod.Dto.InsertInput.cs b/Tiobon.Core.Model/Insert/Ghrp/Ghrp_PerformancePeriod.Dto.InsertInput.cs new file mode 100644 index 00000000..ade20306 --- /dev/null +++ b/Tiobon.Core.Model/Insert/Ghrp/Ghrp_PerformancePeriod.Dto.InsertInput.cs @@ -0,0 +1,27 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghrp_PerformancePeriod.cs +* +*功 能: N / A +* 类 名: Ghrp_PerformancePeriod +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2025/4/16 14:36:35 SimonHsiao 初版 +* +* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models +{ + + /// + /// 考核期间 (Dto.InsertInput) + /// + public class InsertGhrp_PerformancePeriodInput : Ghrp_PerformancePeriodBase + { + } +} diff --git a/Tiobon.Core.Model/Insert/Ghrp/Ghrp_PerformancePeriodType.Dto.InsertInput.cs b/Tiobon.Core.Model/Insert/Ghrp/Ghrp_PerformancePeriodType.Dto.InsertInput.cs new file mode 100644 index 00000000..398e0a7b --- /dev/null +++ b/Tiobon.Core.Model/Insert/Ghrp/Ghrp_PerformancePeriodType.Dto.InsertInput.cs @@ -0,0 +1,27 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghrp_PerformancePeriodType.cs +* +*功 能: N / A +* 类 名: Ghrp_PerformancePeriodType +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2025/4/16 14:36:13 SimonHsiao 初版 +* +* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models +{ + + /// + /// 考核周期类别 (Dto.InsertInput) + /// + public class InsertGhrp_PerformancePeriodTypeInput : Ghrp_PerformancePeriodTypeBase + { + } +} diff --git a/Tiobon.Core.Model/Models/Ghrp/Ghrp_PerformancePeriod.cs b/Tiobon.Core.Model/Models/Ghrp/Ghrp_PerformancePeriod.cs new file mode 100644 index 00000000..13a2bd20 --- /dev/null +++ b/Tiobon.Core.Model/Models/Ghrp/Ghrp_PerformancePeriod.cs @@ -0,0 +1,207 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghrp_PerformancePeriod.cs +* +*功 能: N / A +* 类 名: Ghrp_PerformancePeriod +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2025/4/16 14:36:35 SimonHsiao 初版 +* +* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using SqlSugar; + +namespace Tiobon.Core.Model.Models +{ + + /// + /// 考核期间 (Model) + /// + [SugarTable("Ghrp_PerformancePeriod", "Ghrp_PerformancePeriod"), Entity(TableCnName = "考核期间", TableName = "Ghrp_PerformancePeriod")] + public class Ghrp_PerformancePeriod : BasePoco + { + + /// + /// 期间编号 + /// + [Display(Name = "PeriodNo"), Description("期间编号"), MaxLength(50, ErrorMessage = "期间编号 不能超过 50 个字符")] + public string PeriodNo { get; set; } + + /// + /// 期间名称 + /// + [Display(Name = "PeriodName"), Description("期间名称"), MaxLength(50, ErrorMessage = "期间名称 不能超过 50 个字符")] + public string PeriodName { get; set; } + + /// + /// 考核周期类别ID + /// + public long? PerformancePeriodTypeID { get; set; } + + /// + /// 考核周期类别 + /// + [Display(Name = "PeriodType"), Description("考核周期类别"), MaxLength(255, ErrorMessage = "考核周期类别 不能超过 255 个字符")] + public string PeriodType { get; set; } + + /// + /// 考核阶段数 + /// + [Display(Name = "Stage"), Description("考核阶段数"), MaxLength(255, ErrorMessage = "考核阶段数 不能超过 255 个字符")] + public string Stage { get; set; } + + /// + /// 阶段名称 + /// + [Display(Name = "StageItem"), Description("阶段名称"), MaxLength(255, ErrorMessage = "阶段名称 不能超过 255 个字符")] + public string StageItem { get; set; } + + /// + /// 当期类别 + /// + public int? PeriodNum { get; set; } + + /// + /// 当期是否启用 + /// + public int? IsUsing { get; set; } + + /// + /// 期间开始日 + /// + public DateTime? BeginDate { get; set; } + + /// + /// 期间结束日 + /// + public DateTime? EndDate { get; set; } + + /// + /// 员工填写开始日 + /// + public DateTime? StaffBeginDate { get; set; } + + /// + /// 员工填写结束日 + /// + public DateTime? StaffEndDate { get; set; } + + /// + /// 主管填写开始日 + /// + public DateTime? MGBeginDate { get; set; } + + /// + /// 主管填写结束日 + /// + public DateTime? MGEndDate { get; set; } + + /// + /// 人员状态基准日 + /// + public DateTime? OnJobBaseDate { get; set; } + + /// + /// 前置期间 + /// + public long? PrePerformancePeriodID { 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; } + + /// + /// 内置 + /// + public int? BuiltIn { get; set; } + } +} diff --git a/Tiobon.Core.Model/Models/Ghrp/Ghrp_PerformancePeriodType.cs b/Tiobon.Core.Model/Models/Ghrp/Ghrp_PerformancePeriodType.cs new file mode 100644 index 00000000..07168f9a --- /dev/null +++ b/Tiobon.Core.Model/Models/Ghrp/Ghrp_PerformancePeriodType.cs @@ -0,0 +1,157 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghrp_PerformancePeriodType.cs +* +*功 能: N / A +* 类 名: Ghrp_PerformancePeriodType +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2025/4/16 14:36:13 SimonHsiao 初版 +* +* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using SqlSugar; + +namespace Tiobon.Core.Model.Models +{ + + /// + /// 考核周期类别 (Model) + /// + [SugarTable("Ghrp_PerformancePeriodType", "Ghrp_PerformancePeriodType"), Entity(TableCnName = "考核周期类别", TableName = "Ghrp_PerformancePeriodType")] + public class Ghrp_PerformancePeriodType : BasePoco + { + + /// + /// 类别编号 + /// + [Display(Name = "PeriodTypeNo"), Description("类别编号"), MaxLength(32, ErrorMessage = "类别编号 不能超过 32 个字符")] + public string PeriodTypeNo { get; set; } + + /// + /// 类别名称 + /// + [Display(Name = "PeriodTypeName"), Description("类别名称"), MaxLength(32, ErrorMessage = "类别名称 不能超过 32 个字符")] + public string PeriodTypeName { get; set; } + + /// + /// 多语编号 + /// + [Display(Name = "MKey"), Description("多语编号"), MaxLength(255, ErrorMessage = "多语编号 不能超过 255 个字符")] + public string MKey { get; set; } + + /// + /// 考核阶段数 + /// + [Display(Name = "Stage"), Description("考核阶段数"), MaxLength(255, ErrorMessage = "考核阶段数 不能超过 255 个字符")] + public string Stage { get; set; } + + /// + /// 考核阶段名称 + /// + [Display(Name = "StageItems"), Description("考核阶段名称"), MaxLength(255, ErrorMessage = "考核阶段名称 不能超过 255 个字符")] + public string StageItems { get; set; } + + /// + /// 集团数据归属ID + /// + public int? DataBelongID { 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; } + + /// + /// 内置 + /// + public int? BuiltIn { get; set; } + } +} diff --git a/Tiobon.Core.Model/View/Ghrp/Ghrp_PerformancePeriod.Dto.View.cs b/Tiobon.Core.Model/View/Ghrp/Ghrp_PerformancePeriod.Dto.View.cs new file mode 100644 index 00000000..6219065e --- /dev/null +++ b/Tiobon.Core.Model/View/Ghrp/Ghrp_PerformancePeriod.Dto.View.cs @@ -0,0 +1,34 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghrp_PerformancePeriod.cs +* +*功 能: N / A +* 类 名: Ghrp_PerformancePeriod +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2025/4/16 14:36:35 SimonHsiao 初版 +* +* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models; + +/// +/// 考核期间(Dto.View1) +/// +public class Ghrp_PerformancePeriodDto : Ghrp_PerformancePeriod +{ +/// +/// 创建信息 +/// +public string CreateDataInfo { get; set; } + +/// +/// 修改信息 +/// +public string UpdateDataInfo { get; set; } +} diff --git a/Tiobon.Core.Model/View/Ghrp/Ghrp_PerformancePeriodType.Dto.View.cs b/Tiobon.Core.Model/View/Ghrp/Ghrp_PerformancePeriodType.Dto.View.cs new file mode 100644 index 00000000..f59cb3dd --- /dev/null +++ b/Tiobon.Core.Model/View/Ghrp/Ghrp_PerformancePeriodType.Dto.View.cs @@ -0,0 +1,34 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghrp_PerformancePeriodType.cs +* +*功 能: N / A +* 类 名: Ghrp_PerformancePeriodType +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2025/4/16 14:36:13 SimonHsiao 初版 +* +* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models; + +/// +/// 考核周期类别(Dto.View1) +/// +public class Ghrp_PerformancePeriodTypeDto : Ghrp_PerformancePeriodType +{ +/// +/// 创建信息 +/// +public string CreateDataInfo { get; set; } + +/// +/// 修改信息 +/// +public string UpdateDataInfo { get; set; } +} diff --git a/Tiobon.Core.Services/Ghrp/Ghrp_PerformancePeriodServices.cs b/Tiobon.Core.Services/Ghrp/Ghrp_PerformancePeriodServices.cs new file mode 100644 index 00000000..4799db9a --- /dev/null +++ b/Tiobon.Core.Services/Ghrp/Ghrp_PerformancePeriodServices.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 Ghrp_PerformancePeriodServices : BaseServices, IGhrp_PerformancePeriodServices + { + private readonly IBaseRepository _dal; + public Ghrp_PerformancePeriodServices(ICaching caching, IBaseRepository dal) + { + this._dal = dal; + base.BaseDal = dal; + base._caching = caching; + } + } +} \ No newline at end of file diff --git a/Tiobon.Core.Services/Ghrp/Ghrp_PerformancePeriodTypeServices.cs b/Tiobon.Core.Services/Ghrp/Ghrp_PerformancePeriodTypeServices.cs new file mode 100644 index 00000000..4fef3f25 --- /dev/null +++ b/Tiobon.Core.Services/Ghrp/Ghrp_PerformancePeriodTypeServices.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 Ghrp_PerformancePeriodTypeServices : BaseServices, IGhrp_PerformancePeriodTypeServices + { + private readonly IBaseRepository _dal; + public Ghrp_PerformancePeriodTypeServices(ICaching caching, IBaseRepository dal) + { + this._dal = dal; + base.BaseDal = dal; + base._caching = caching; + } + } +} \ No newline at end of file