From 969c4f1fd3865442034701362e41630d908e8811 Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Sat, 10 May 2025 00:06:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=9F=A5=E8=AF=A2=E8=AF=81?= =?UTF-8?q?=E4=B9=A6=E8=AE=BE=E8=AE=A1=E6=8E=A7=E4=BB=B6=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Ghre/Ghre_CertificateController.cs | 6 + .../Ghre/IGhre_CertificateServices.cs | 4 +- .../Extend/Ghre_CertificateControl.cs | 14 ++ .../Ghre/Ghre_CertificateServices.cs | 138 ++++++++++++++++++ 4 files changed, 160 insertions(+), 2 deletions(-) create mode 100644 Tiobon.Core.Model/ViewModels/Extend/Ghre_CertificateControl.cs diff --git a/Tiobon.Core.Api/Controllers/Ghre/Ghre_CertificateController.cs b/Tiobon.Core.Api/Controllers/Ghre/Ghre_CertificateController.cs index feab0844..6baaf17e 100644 --- a/Tiobon.Core.Api/Controllers/Ghre/Ghre_CertificateController.cs +++ b/Tiobon.Core.Api/Controllers/Ghre/Ghre_CertificateController.cs @@ -11,4 +11,10 @@ public class Ghre_CertificateController : BaseController> QueryControl() + { + return _service.QueryControl(); + } } \ No newline at end of file diff --git a/Tiobon.Core.IServices/Ghre/IGhre_CertificateServices.cs b/Tiobon.Core.IServices/Ghre/IGhre_CertificateServices.cs index f32a291d..f36a038c 100644 --- a/Tiobon.Core.IServices/Ghre/IGhre_CertificateServices.cs +++ b/Tiobon.Core.IServices/Ghre/IGhre_CertificateServices.cs @@ -1,5 +1,4 @@ -using Tiobon.Core.IServices.BASE; -using Tiobon.Core.Model.Models; +using Tiobon.Core.Model; namespace Tiobon.Core.IServices; @@ -8,4 +7,5 @@ namespace Tiobon.Core.IServices; /// public interface IGhre_CertificateServices : IBaseServices { + ServiceResult> QueryControl(); } \ No newline at end of file diff --git a/Tiobon.Core.Model/ViewModels/Extend/Ghre_CertificateControl.cs b/Tiobon.Core.Model/ViewModels/Extend/Ghre_CertificateControl.cs new file mode 100644 index 00000000..b7b1ef35 --- /dev/null +++ b/Tiobon.Core.Model/ViewModels/Extend/Ghre_CertificateControl.cs @@ -0,0 +1,14 @@ +namespace Tiobon.Core.Model; + +public class Ghre_CertificateControl +{ + public string groupName { get; set; } + public List groupList { get; set; } = new List(); +} + +public class Ghre_CertificateControlItem +{ + public string label { get; set; } + public string field { get; set; } + public string type { get; set; } +} \ No newline at end of file diff --git a/Tiobon.Core.Services/Ghre/Ghre_CertificateServices.cs b/Tiobon.Core.Services/Ghre/Ghre_CertificateServices.cs index ce325274..d073f989 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_CertificateServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_CertificateServices.cs @@ -240,5 +240,143 @@ public class Ghre_CertificateServices : BaseServices.OprateSuccess("导入成功!", data); } + + + public ServiceResult> QueryControl() + { + var list = new List + { + new Ghre_CertificateControl() + { + groupName="证书信息", + groupList = { + new Ghre_CertificateControlItem() + { + label="证书编号", + field="CertificateNo'", + type= "fieldText" + }, + new Ghre_CertificateControlItem() + { + label="发证日期", + field="AwardDate'", + type= "fieldText" + }, + new Ghre_CertificateControlItem() + { + label="颁发机构", + field="CertificationBody'", + type= "fieldText" + }, + new Ghre_CertificateControlItem() + { + label="有效期至", + field="ValidityPeriod'", + type= "fieldText" + }, + new Ghre_CertificateControlItem() + { + label="电子章", + field="ElectronicSealUrl'", + type= "image" + } + } + } + ,new Ghre_CertificateControl() + { + groupName="学员信息", + groupList = { + new Ghre_CertificateControlItem() + { + label="员工姓名", + field="StaffName'", + type= "fieldText" + }, + new Ghre_CertificateControlItem() + { + label="部门", + field="DeptName'", + type= "fieldText" + }, + new Ghre_CertificateControlItem() + { + label="岗位", + field="TitleName'", + type= "fieldText" + }, + new Ghre_CertificateControlItem() + { + label="照片", + field="PhotoUrl'", + type= "fieldText" + } + } + + } + ,new Ghre_CertificateControl() + { + groupName="课程信息", + groupList = { + new Ghre_CertificateControlItem() + { + label="课程名称", + field="CourseName'", + type= "fieldText" + }, + new Ghre_CertificateControlItem() + { + label="课程场景", + field="CourseSceneName'", + type= "fieldText" + }, + new Ghre_CertificateControlItem() + { + label="学习时间", + field="StudyTime'", + type= "fieldText" + } + } + + } + ,new Ghre_CertificateControl() + { + groupName="考试信息", + groupList = { + new Ghre_CertificateControlItem() + { + label="考试名称", + field="ExamName'", + type= "fieldText" + }, + new Ghre_CertificateControlItem() + { + label="考试编号", + field="ExamNo'", + type= "fieldText" + }, + new Ghre_CertificateControlItem() + { + label="考试分数", + field="ExamScore'", + type= "fieldText" + }, + new Ghre_CertificateControlItem() + { + label="考试结果", + field="ExamResult'", + type= "fieldText" + }, + new Ghre_CertificateControlItem() + { + label="考试评语", + field="ExamComment'", + type= "fieldText" + } + } + + } + }; + return ServiceResult>.OprateSuccess("查询成功!", list); + } #endregion } \ No newline at end of file