新增绩效考核期间

master
孤兰 2 months ago
parent 9559bcffcd
commit 65fc07505e
  1. 14
      Tiobon.Core.Api/Controllers/Ghrp/Ghrp_PerformancePeriodController.cs
  2. 14
      Tiobon.Core.Api/Controllers/Ghrp/Ghrp_PerformancePeriodTypeController.cs
  3. 12
      Tiobon.Core.IServices/Ghrp/IGhrp_PerformancePeriodServices.cs
  4. 12
      Tiobon.Core.IServices/Ghrp/IGhrp_PerformancePeriodTypeServices.cs
  5. 205
      Tiobon.Core.Model/Base/Ghrp/Ghrp_PerformancePeriod.Dto.Base.cs
  6. 155
      Tiobon.Core.Model/Base/Ghrp/Ghrp_PerformancePeriodType.Dto.Base.cs
  7. 27
      Tiobon.Core.Model/Edit/Ghrp/Ghrp_PerformancePeriod.Dto.EditInput.cs
  8. 27
      Tiobon.Core.Model/Edit/Ghrp/Ghrp_PerformancePeriodType.Dto.EditInput.cs
  9. 27
      Tiobon.Core.Model/Insert/Ghrp/Ghrp_PerformancePeriod.Dto.InsertInput.cs
  10. 27
      Tiobon.Core.Model/Insert/Ghrp/Ghrp_PerformancePeriodType.Dto.InsertInput.cs
  11. 207
      Tiobon.Core.Model/Models/Ghrp/Ghrp_PerformancePeriod.cs
  12. 157
      Tiobon.Core.Model/Models/Ghrp/Ghrp_PerformancePeriodType.cs
  13. 34
      Tiobon.Core.Model/View/Ghrp/Ghrp_PerformancePeriod.Dto.View.cs
  14. 34
      Tiobon.Core.Model/View/Ghrp/Ghrp_PerformancePeriodType.Dto.View.cs
  15. 23
      Tiobon.Core.Services/Ghrp/Ghrp_PerformancePeriodServices.cs
  16. 23
      Tiobon.Core.Services/Ghrp/Ghrp_PerformancePeriodTypeServices.cs

@ -0,0 +1,14 @@
namespace Tiobon.Core.Api.Controllers;
/// <summary>
/// 考核期间(Controller)
/// </summary>
[Route("api/[controller]")]
[ApiController, GlobalActionFilter]
[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghrp)]
public class Ghrp_PerformancePeriodController : BaseController<IGhrp_PerformancePeriodServices, Ghrp_PerformancePeriod, Ghrp_PerformancePeriodDto, InsertGhrp_PerformancePeriodInput, EditGhrp_PerformancePeriodInput>
{
public Ghrp_PerformancePeriodController(IGhrp_PerformancePeriodServices service) : base(service)
{
}
}

@ -0,0 +1,14 @@
namespace Tiobon.Core.Api.Controllers;
/// <summary>
/// 考核周期类别(Controller)
/// </summary>
[Route("api/[controller]")]
[ApiController, GlobalActionFilter]
[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghrp)]
public class Ghrp_PerformancePeriodTypeController : BaseController<IGhrp_PerformancePeriodTypeServices, Ghrp_PerformancePeriodType, Ghrp_PerformancePeriodTypeDto, InsertGhrp_PerformancePeriodTypeInput, EditGhrp_PerformancePeriodTypeInput>
{
public Ghrp_PerformancePeriodTypeController(IGhrp_PerformancePeriodTypeServices service) : base(service)
{
}
}

@ -0,0 +1,12 @@
using Tiobon.Core.IServices.BASE;
using Tiobon.Core.Model.Models;
namespace Tiobon.Core.IServices
{
/// <summary>
/// 考核期间(自定义服务接口)
/// </summary>
public interface IGhrp_PerformancePeriodServices :IBaseServices<Ghrp_PerformancePeriod, Ghrp_PerformancePeriodDto, InsertGhrp_PerformancePeriodInput, EditGhrp_PerformancePeriodInput>
{
}
}

@ -0,0 +1,12 @@
using Tiobon.Core.IServices.BASE;
using Tiobon.Core.Model.Models;
namespace Tiobon.Core.IServices
{
/// <summary>
/// 考核周期类别(自定义服务接口)
/// </summary>
public interface IGhrp_PerformancePeriodTypeServices :IBaseServices<Ghrp_PerformancePeriodType, Ghrp_PerformancePeriodTypeDto, InsertGhrp_PerformancePeriodTypeInput, EditGhrp_PerformancePeriodTypeInput>
{
}
}

@ -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
{
/// <summary>
/// 考核期间 (Dto.Base)
/// </summary>
public class Ghrp_PerformancePeriodBase
{
/// <summary>
/// 期间编号
/// </summary>
[Display(Name = "PeriodNo"), Description("期间编号"), MaxLength(50, ErrorMessage = "期间编号 不能超过 50 个字符")]
public string PeriodNo { get; set; }
/// <summary>
/// 期间名称
/// </summary>
[Display(Name = "PeriodName"), Description("期间名称"), MaxLength(50, ErrorMessage = "期间名称 不能超过 50 个字符")]
public string PeriodName { get; set; }
/// <summary>
/// 考核周期类别ID
/// </summary>
public long? PerformancePeriodTypeID { get; set; }
/// <summary>
/// 考核周期类别
/// </summary>
[Display(Name = "PeriodType"), Description("考核周期类别"), MaxLength(255, ErrorMessage = "考核周期类别 不能超过 255 个字符")]
public string PeriodType { get; set; }
/// <summary>
/// 考核阶段数
/// </summary>
[Display(Name = "Stage"), Description("考核阶段数"), MaxLength(255, ErrorMessage = "考核阶段数 不能超过 255 个字符")]
public string Stage { get; set; }
/// <summary>
/// 阶段名称
/// </summary>
[Display(Name = "StageItem"), Description("阶段名称"), MaxLength(255, ErrorMessage = "阶段名称 不能超过 255 个字符")]
public string StageItem { get; set; }
/// <summary>
/// 当期类别
/// </summary>
public int? PeriodNum { get; set; }
/// <summary>
/// 当期是否启用
/// </summary>
public int? IsUsing { get; set; }
/// <summary>
/// 期间开始日
/// </summary>
public DateTime? BeginDate { get; set; }
/// <summary>
/// 期间结束日
/// </summary>
public DateTime? EndDate { get; set; }
/// <summary>
/// 员工填写开始日
/// </summary>
public DateTime? StaffBeginDate { get; set; }
/// <summary>
/// 员工填写结束日
/// </summary>
public DateTime? StaffEndDate { get; set; }
/// <summary>
/// 主管填写开始日
/// </summary>
public DateTime? MGBeginDate { get; set; }
/// <summary>
/// 主管填写结束日
/// </summary>
public DateTime? MGEndDate { get; set; }
/// <summary>
/// 人员状态基准日
/// </summary>
public DateTime? OnJobBaseDate { get; set; }
/// <summary>
/// 前置期间
/// </summary>
public long? PrePerformancePeriodID { get; set; }
/// <summary>
/// 备注
/// </summary>
[Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")]
public string RemarkSz { get; set; }
/// <summary>
/// 排序
/// </summary>
public int? SortNo { 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; }
/// <summary>
/// 内置
/// </summary>
public int? BuiltIn { get; set; }
}
}

@ -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
{
/// <summary>
/// 考核周期类别 (Dto.Base)
/// </summary>
public class Ghrp_PerformancePeriodTypeBase
{
/// <summary>
/// 类别编号
/// </summary>
[Display(Name = "PeriodTypeNo"), Description("类别编号"), MaxLength(32, ErrorMessage = "类别编号 不能超过 32 个字符")]
public string PeriodTypeNo { get; set; }
/// <summary>
/// 类别名称
/// </summary>
[Display(Name = "PeriodTypeName"), Description("类别名称"), MaxLength(32, ErrorMessage = "类别名称 不能超过 32 个字符")]
public string PeriodTypeName { get; set; }
/// <summary>
/// 多语编号
/// </summary>
[Display(Name = "MKey"), Description("多语编号"), MaxLength(255, ErrorMessage = "多语编号 不能超过 255 个字符")]
public string MKey { get; set; }
/// <summary>
/// 考核阶段数
/// </summary>
[Display(Name = "Stage"), Description("考核阶段数"), MaxLength(255, ErrorMessage = "考核阶段数 不能超过 255 个字符")]
public string Stage { get; set; }
/// <summary>
/// 考核阶段名称
/// </summary>
[Display(Name = "StageItems"), Description("考核阶段名称"), MaxLength(255, ErrorMessage = "考核阶段名称 不能超过 255 个字符")]
public string StageItems { get; set; }
/// <summary>
/// 集团数据归属ID
/// </summary>
public int? DataBelongID { get; set; }
/// <summary>
/// 备注
/// </summary>
[Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")]
public string RemarkSz { get; set; }
/// <summary>
/// 排序
/// </summary>
public int? SortNo { 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; }
/// <summary>
/// 内置
/// </summary>
public int? BuiltIn { get; set; }
}
}

@ -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
{
/// <summary>
/// 考核期间 (Dto.EditInput)
/// </summary>
public class EditGhrp_PerformancePeriodInput : Ghrp_PerformancePeriodBase
{
}
}

@ -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
{
/// <summary>
/// 考核周期类别 (Dto.EditInput)
/// </summary>
public class EditGhrp_PerformancePeriodTypeInput : Ghrp_PerformancePeriodTypeBase
{
}
}

@ -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
{
/// <summary>
/// 考核期间 (Dto.InsertInput)
/// </summary>
public class InsertGhrp_PerformancePeriodInput : Ghrp_PerformancePeriodBase
{
}
}

@ -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
{
/// <summary>
/// 考核周期类别 (Dto.InsertInput)
/// </summary>
public class InsertGhrp_PerformancePeriodTypeInput : Ghrp_PerformancePeriodTypeBase
{
}
}

@ -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
{
/// <summary>
/// 考核期间 (Model)
/// </summary>
[SugarTable("Ghrp_PerformancePeriod", "Ghrp_PerformancePeriod"), Entity(TableCnName = "考核期间", TableName = "Ghrp_PerformancePeriod")]
public class Ghrp_PerformancePeriod : BasePoco
{
/// <summary>
/// 期间编号
/// </summary>
[Display(Name = "PeriodNo"), Description("期间编号"), MaxLength(50, ErrorMessage = "期间编号 不能超过 50 个字符")]
public string PeriodNo { get; set; }
/// <summary>
/// 期间名称
/// </summary>
[Display(Name = "PeriodName"), Description("期间名称"), MaxLength(50, ErrorMessage = "期间名称 不能超过 50 个字符")]
public string PeriodName { get; set; }
/// <summary>
/// 考核周期类别ID
/// </summary>
public long? PerformancePeriodTypeID { get; set; }
/// <summary>
/// 考核周期类别
/// </summary>
[Display(Name = "PeriodType"), Description("考核周期类别"), MaxLength(255, ErrorMessage = "考核周期类别 不能超过 255 个字符")]
public string PeriodType { get; set; }
/// <summary>
/// 考核阶段数
/// </summary>
[Display(Name = "Stage"), Description("考核阶段数"), MaxLength(255, ErrorMessage = "考核阶段数 不能超过 255 个字符")]
public string Stage { get; set; }
/// <summary>
/// 阶段名称
/// </summary>
[Display(Name = "StageItem"), Description("阶段名称"), MaxLength(255, ErrorMessage = "阶段名称 不能超过 255 个字符")]
public string StageItem { get; set; }
/// <summary>
/// 当期类别
/// </summary>
public int? PeriodNum { get; set; }
/// <summary>
/// 当期是否启用
/// </summary>
public int? IsUsing { get; set; }
/// <summary>
/// 期间开始日
/// </summary>
public DateTime? BeginDate { get; set; }
/// <summary>
/// 期间结束日
/// </summary>
public DateTime? EndDate { get; set; }
/// <summary>
/// 员工填写开始日
/// </summary>
public DateTime? StaffBeginDate { get; set; }
/// <summary>
/// 员工填写结束日
/// </summary>
public DateTime? StaffEndDate { get; set; }
/// <summary>
/// 主管填写开始日
/// </summary>
public DateTime? MGBeginDate { get; set; }
/// <summary>
/// 主管填写结束日
/// </summary>
public DateTime? MGEndDate { get; set; }
/// <summary>
/// 人员状态基准日
/// </summary>
public DateTime? OnJobBaseDate { get; set; }
/// <summary>
/// 前置期间
/// </summary>
public long? PrePerformancePeriodID { get; set; }
/// <summary>
/// 备注
/// </summary>
[Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")]
public string RemarkSz { get; set; }
/// <summary>
/// 排序
/// </summary>
public int? SortNo { 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; }
/// <summary>
/// 内置
/// </summary>
public int? BuiltIn { get; set; }
}
}

@ -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
{
/// <summary>
/// 考核周期类别 (Model)
/// </summary>
[SugarTable("Ghrp_PerformancePeriodType", "Ghrp_PerformancePeriodType"), Entity(TableCnName = "考核周期类别", TableName = "Ghrp_PerformancePeriodType")]
public class Ghrp_PerformancePeriodType : BasePoco
{
/// <summary>
/// 类别编号
/// </summary>
[Display(Name = "PeriodTypeNo"), Description("类别编号"), MaxLength(32, ErrorMessage = "类别编号 不能超过 32 个字符")]
public string PeriodTypeNo { get; set; }
/// <summary>
/// 类别名称
/// </summary>
[Display(Name = "PeriodTypeName"), Description("类别名称"), MaxLength(32, ErrorMessage = "类别名称 不能超过 32 个字符")]
public string PeriodTypeName { get; set; }
/// <summary>
/// 多语编号
/// </summary>
[Display(Name = "MKey"), Description("多语编号"), MaxLength(255, ErrorMessage = "多语编号 不能超过 255 个字符")]
public string MKey { get; set; }
/// <summary>
/// 考核阶段数
/// </summary>
[Display(Name = "Stage"), Description("考核阶段数"), MaxLength(255, ErrorMessage = "考核阶段数 不能超过 255 个字符")]
public string Stage { get; set; }
/// <summary>
/// 考核阶段名称
/// </summary>
[Display(Name = "StageItems"), Description("考核阶段名称"), MaxLength(255, ErrorMessage = "考核阶段名称 不能超过 255 个字符")]
public string StageItems { get; set; }
/// <summary>
/// 集团数据归属ID
/// </summary>
public int? DataBelongID { get; set; }
/// <summary>
/// 备注
/// </summary>
[Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")]
public string RemarkSz { get; set; }
/// <summary>
/// 排序
/// </summary>
public int? SortNo { 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; }
/// <summary>
/// 内置
/// </summary>
public int? BuiltIn { get; set; }
}
}

@ -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;
/// <summary>
/// 考核期间(Dto.View1)
/// </summary>
public class Ghrp_PerformancePeriodDto : Ghrp_PerformancePeriod
{
/// <summary>
/// 创建信息
/// </summary>
public string CreateDataInfo { get; set; }
/// <summary>
/// 修改信息
/// </summary>
public string UpdateDataInfo { get; set; }
}

@ -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;
/// <summary>
/// 考核周期类别(Dto.View1)
/// </summary>
public class Ghrp_PerformancePeriodTypeDto : Ghrp_PerformancePeriodType
{
/// <summary>
/// 创建信息
/// </summary>
public string CreateDataInfo { get; set; }
/// <summary>
/// 修改信息
/// </summary>
public string UpdateDataInfo { get; set; }
}

@ -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
{
/// <summary>
/// 考核期间 (服务)
/// </summary>
public class Ghrp_PerformancePeriodServices : BaseServices<Ghrp_PerformancePeriod, Ghrp_PerformancePeriodDto, InsertGhrp_PerformancePeriodInput, EditGhrp_PerformancePeriodInput>, IGhrp_PerformancePeriodServices
{
private readonly IBaseRepository<Ghrp_PerformancePeriod> _dal;
public Ghrp_PerformancePeriodServices(ICaching caching, IBaseRepository<Ghrp_PerformancePeriod> dal)
{
this._dal = dal;
base.BaseDal = dal;
base._caching = caching;
}
}
}

@ -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
{
/// <summary>
/// 考核周期类别 (服务)
/// </summary>
public class Ghrp_PerformancePeriodTypeServices : BaseServices<Ghrp_PerformancePeriodType, Ghrp_PerformancePeriodTypeDto, InsertGhrp_PerformancePeriodTypeInput, EditGhrp_PerformancePeriodTypeInput>, IGhrp_PerformancePeriodTypeServices
{
private readonly IBaseRepository<Ghrp_PerformancePeriodType> _dal;
public Ghrp_PerformancePeriodTypeServices(ICaching caching, IBaseRepository<Ghrp_PerformancePeriodType> dal)
{
this._dal = dal;
base.BaseDal = dal;
base._caching = caching;
}
}
}
Loading…
Cancel
Save