diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj b/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj
index 1373e9fb4..55bd3da97 100644
--- a/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj
+++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj
@@ -27,7 +27,8 @@
-
+
+
diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
index f84b34e11..01a90a333 100644
--- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
+++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
@@ -478,6 +478,190 @@
是否有 入组评估确认
+
+ FrontAuditConfigView 列表视图模型
+
+
+ FrontAuditConfigQuery 列表查询参数模型
+
+
+ Value
+
+
+ ValueCN
+
+
+ Description
+
+
+ Code
+
+
+ OptTypeId
+
+
+ ChildrenTypeId
+
+
+ FrontAuditConfigAddOrEdit 列表查询参数模型
+
+
+ SystemAnonymizationView 列表视图模型
+
+
+ SystemAnonymizationQuery 列表查询参数模型
+
+
+ SystemAnonymizationAddOrEdit 列表查询参数模型
+
+
+ TrialExternalUserView 列表视图模型
+
+
+ TrialExternalUserQuery 列表查询参数模型
+
+
+ TrialExternalUserAddOrEdit 列表查询参数模型
+
+
+ TrialUserPreparation View 列表视图模型
+
+
+ TrialUserPreparation Query 列表查询参数模型
+
+
+ TrialUserPreparation AddOrEdit 列表查询参数模型
+
+
+
+ FrontAuditConfigService
+
+
+
+ 指定资源Id,渲染Dicom检查的Jpeg预览图像
+ Dicom检查的Id
+
+
+
+ 获取某个检查的关联检查列表(该受试者在这个想项目下的所有检查)
+ 点击检查检查列表中的一个检查获取对应的序列列表(调用之前的接口:/series/list/,根据StudyId,获取访视的序列列表)
+
+
+
+
+ 指定资源Id,获取Dicom检查信息
+ Dicom检查的Id
+
+
+
+ 批量验证 检查是否可以上传 并告知原因
+
+
+
+
+ SystemAnonymizationService
+
+
+
+
+ 项目外部人员 录入流程相关
+
+
+
+
+ 验证 在系统中是否存在该类型的账户 返回true 表示 不存在 可以添加和更新|存在但是信息一致,false 需要提示不一致项(前端 可以直接用我返回的错误信息,或者根据返回的用户信息实体,自己设置格式显示)
+
+
+
+
+
+
+ 添加和更新接口 已验证邮箱和账户类型不允许添加重复项
+
+
+
+
+
+
+ 勾选用户 批量发送邮件
+
+
+
+
+
+ 不带Token 访问 用户选择 参与 不参与 Id: TrialExternalUserId
+
+
+
+
+
+
+ 不带Token 访问 Site调研用户 加入项目 Id: TrialSiteSurveyUserId
+
+
+
+
+
+
+ 不带Token 访问 页面获取项目基本信息 和参与情况 (已经确认了 就不允许再次确认) Id: TrialExternalUserId/TrialSiteSurveyUserId
+
+
+
+
+
+
+ 加入项目
+
+
+
+
+
+
+
+ TrialUserPreparation Service
+
+
+
+
+ 项目下 人员邀请 加入列表
+
+
+
+
+
+
+ 不带Token访问 加入项目 记录 同意与否
+
+
+
+
+
+
+ 用户加入项目
+
+
+
+
+
+
+ IFrontAuditConfigService
+
+
+
+
+ ISystemAnonymizationService
+
+
+
+
+ ITrialExternalUserService
+
+
+
+
+ ITrialUserPreparation Service
+
+
SystemBasicDataService
@@ -674,153 +858,6 @@
-
- 指定资源Id,渲染Dicom检查的Jpeg预览图像
- Dicom检查的Id
-
-
-
- 获取某个检查的关联检查列表(该受试者在这个想项目下的所有检查)
- 点击检查检查列表中的一个检查获取对应的序列列表(调用之前的接口:/series/list/,根据StudyId,获取访视的序列列表)
-
-
-
-
- 指定资源Id,获取Dicom检查信息
- Dicom检查的Id
-
-
-
- 批量验证 检查是否可以上传 并告知原因
-
-
-
-
- SystemAnonymizationService
-
-
-
-
- 项目外部人员 录入流程相关
-
-
-
-
- 验证 在系统中是否存在该类型的账户 返回true 表示 不存在 可以添加和更新|存在但是信息一致,false 需要提示不一致项(前端 可以直接用我返回的错误信息,或者根据返回的用户信息实体,自己设置格式显示)
-
-
-
-
-
-
- 添加和更新接口 已验证邮箱和账户类型不允许添加重复项
-
-
-
-
-
-
- 勾选用户 批量发送邮件
-
-
-
-
-
- 不带Token 访问 用户选择 参与 不参与 Id: TrialExternalUserId
-
-
-
-
-
-
- 不带Token 访问 Site调研用户 加入项目 Id: TrialSiteSurveyUserId
-
-
-
-
-
-
- 不带Token 访问 页面获取项目基本信息 和参与情况 (已经确认了 就不允许再次确认) Id: TrialExternalUserId/TrialSiteSurveyUserId
-
-
-
-
-
-
- 加入项目
-
-
-
-
-
-
-
- TrialUserPreparation Service
-
-
-
-
- 项目下 人员邀请 加入列表
-
-
-
-
-
-
- 不带Token访问 加入项目 记录 同意与否
-
-
-
-
-
-
- 用户加入项目
-
-
-
-
-
- SystemAnonymizationView 列表视图模型
-
-
- SystemAnonymizationQuery 列表查询参数模型
-
-
- SystemAnonymizationAddOrEdit 列表查询参数模型
-
-
- TrialExternalUserView 列表视图模型
-
-
- TrialExternalUserQuery 列表查询参数模型
-
-
- TrialExternalUserAddOrEdit 列表查询参数模型
-
-
- TrialUserPreparation View 列表视图模型
-
-
- TrialUserPreparation Query 列表查询参数模型
-
-
- TrialUserPreparation AddOrEdit 列表查询参数模型
-
-
-
- ISystemAnonymizationService
-
-
-
-
- ITrialExternalUserService
-
-
-
-
- ITrialUserPreparation Service
-
-
CRC 访视上传列表
diff --git a/IRaCIS.Core.Application/Service/Common/DTO/FrontAuditConfigViewModel.cs b/IRaCIS.Core.Application/Service/Common/DTO/FrontAuditConfigViewModel.cs
new file mode 100644
index 000000000..a7f2ebd80
--- /dev/null
+++ b/IRaCIS.Core.Application/Service/Common/DTO/FrontAuditConfigViewModel.cs
@@ -0,0 +1,77 @@
+//--------------------------------------------------------------------
+// 此代码由T4模板自动生成 byzhouhang 20210918
+// 生成时间 2022-03-28 16:43:52
+// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
+//--------------------------------------------------------------------
+using System;
+using IRaCIS.Core.Domain.Share;
+using System.Collections.Generic;
+namespace IRaCIS.Core.Application.ViewModel
+{
+ /// FrontAuditConfigView 列表视图模型
+ public class FrontAuditConfigView
+ {
+ public Guid Id { get; set; }
+ public string Value { get; set; }
+ public string ValueCN { get; set; }
+ public string Description { get; set; }
+ public DateTime CreateTime { get; set; }
+ public Guid CreateUserId { get; set; }
+ public DateTime UpdateTime { get; set; }
+ public Guid UpdateUserId { get; set; }
+ public string Code { get; set; }
+ public Guid? ParentId { get; set; }
+ public bool IsEnable { get; set; }
+ public bool IsConfig { get; set; }
+ public int? ModuleTypeId { get; set; }
+ public string OptTypeId { get; set; }
+ public string ChildrenTypeId { get; set; }
+ }
+
+ ///FrontAuditConfigQuery 列表查询参数模型
+ public class FrontAuditConfigQuery
+ {
+ /// Value
+ public string Value { get; set; }
+
+ /// ValueCN
+ public string ValueCN { get; set; }
+
+ /// Description
+ public string Description { get; set; }
+
+ /// Code
+ public string Code { get; set; }
+
+ /// OptTypeId
+ public string OptTypeId { get; set; }
+
+ /// ChildrenTypeId
+ public string ChildrenTypeId { get; set; }
+
+ }
+
+ /// FrontAuditConfigAddOrEdit 列表查询参数模型
+ public class FrontAuditConfigAddOrEdit
+ {
+ public Guid Id { get; set; }
+ public string Value { get; set; }
+ public string ValueCN { get; set; }
+ public string Description { get; set; }
+ public DateTime CreateTime { get; set; }
+ public Guid CreateUserId { get; set; }
+ public DateTime UpdateTime { get; set; }
+ public Guid UpdateUserId { get; set; }
+ public string Code { get; set; }
+ public Guid? ParentId { get; set; }
+ public bool IsEnable { get; set; }
+ public bool IsConfig { get; set; }
+ public int? ModuleTypeId { get; set; }
+ public string OptTypeId { get; set; }
+ public string ChildrenTypeId { get; set; }
+ }
+
+
+}
+
+
diff --git a/IRaCIS.Core.Application/Service/Common/FrontAuditConfigService.cs b/IRaCIS.Core.Application/Service/Common/FrontAuditConfigService.cs
new file mode 100644
index 000000000..4d04a096e
--- /dev/null
+++ b/IRaCIS.Core.Application/Service/Common/FrontAuditConfigService.cs
@@ -0,0 +1,66 @@
+//--------------------------------------------------------------------
+// 此代码由T4模板自动生成 byzhouhang 20210918
+// 生成时间 2022-03-28 16:46:23
+// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
+//--------------------------------------------------------------------
+
+using IRaCIS.Core.Domain.Models;
+using Microsoft.AspNetCore.Mvc;
+using IRaCIS.Core.Application.Interfaces;
+using IRaCIS.Core.Application.ViewModel;
+
+
+namespace IRaCIS.Core.Application.Service
+{
+ ///
+ /// FrontAuditConfigService
+ ///
+ [ApiExplorerSettings(GroupName = "Test")]
+ public class FrontAuditConfigService : BaseService, IFrontAuditConfigService
+ {
+
+ private readonly IRepository _frontAuditConfigRepository;
+
+ public FrontAuditConfigService(IRepository frontAuditConfigRepository)
+ {
+ _frontAuditConfigRepository = frontAuditConfigRepository;
+ }
+
+
+ public async Task> GetFrontAuditConfigList(FrontAuditConfigQuery queryFrontAuditConfig)
+ {
+
+
+ var frontAuditConfigQueryable = _repository.GetQueryable()
+ .ProjectTo(_mapper.ConfigurationProvider);
+
+ return await frontAuditConfigQueryable.ToListAsync();
+ }
+
+
+ public async Task AddOrUpdateFrontAuditConfig(FrontAuditConfigAddOrEdit addOrEditFrontAuditConfig)
+ {
+ // 在此处拷贝automapper 映射
+
+ //CreateMap();
+
+ // CreateMap< FrontAuditConfig,FrontAuditConfigAddOrEdit>().ReverseMap();
+
+
+ var entity = await _repository.InsertOrUpdateAsync(addOrEditFrontAuditConfig, true);
+
+ return ResponseOutput.Ok(entity.Id.ToString());
+
+ }
+
+
+ [HttpDelete("{frontAuditConfigId:guid}")]
+ public async Task DeleteFrontAuditConfig(Guid frontAuditConfigId)
+ {
+ var success = await _repository.DeleteFromQueryAsync(t => t.Id == frontAuditConfigId);
+ return ResponseOutput.Result(success);
+ }
+
+
+ }
+}
diff --git a/IRaCIS.Core.Application/Service/Common/Interface/IFrontAuditConfigService.cs b/IRaCIS.Core.Application/Service/Common/Interface/IFrontAuditConfigService.cs
new file mode 100644
index 000000000..b8c0cabab
--- /dev/null
+++ b/IRaCIS.Core.Application/Service/Common/Interface/IFrontAuditConfigService.cs
@@ -0,0 +1,25 @@
+//--------------------------------------------------------------------
+// 此代码由T4模板自动生成 byzhouhang 20210918
+// 生成时间 2022-03-28 16:46:20
+// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
+//--------------------------------------------------------------------
+
+using IRaCIS.Core.Application.ViewModel;
+namespace IRaCIS.Core.Application.Interfaces
+{
+ ///
+ /// IFrontAuditConfigService
+ ///
+ public interface IFrontAuditConfigService
+ {
+
+
+ Task> GetFrontAuditConfigList(FrontAuditConfigQuery queryFrontAuditConfig);
+
+ Task AddOrUpdateFrontAuditConfig(FrontAuditConfigAddOrEdit addOrEditFrontAuditConfig);
+
+ Task DeleteFrontAuditConfig(Guid frontAuditConfigId);
+
+
+ }
+}
diff --git a/IRaCIS.Core.Domain/Common/FrontAuditConfig.cs b/IRaCIS.Core.Domain/Common/FrontAuditConfig.cs
new file mode 100644
index 000000000..5c55e2ce5
--- /dev/null
+++ b/IRaCIS.Core.Domain/Common/FrontAuditConfig.cs
@@ -0,0 +1,103 @@
+
+//--------------------------------------------------------------------
+// 此代码由T4模板自动生成 byzhouhang 20210918
+// 生成时间 2022-03-28 16:43:12
+// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
+using System;
+using IRaCIS.Core.Domain.Share;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+namespace IRaCIS.Core.Domain.Models
+{
+ ///
+ ///FrontAuditConfig
+ ///
+ [Table("FrontAuditConfig")]
+ public class FrontAuditConfig : Entity, IAuditUpdate, IAuditAdd
+ {
+
+
+
+ ///
+ /// Value
+ ///
+ [Required]
+ public string Value { get; set; }
+
+ ///
+ /// ValueCN
+ ///
+ [Required]
+ public string ValueCN { get; set; }
+
+ ///
+ /// Description
+ ///
+ [Required]
+ public string Description { get; set; }
+
+ ///
+ /// CreateTime
+ ///
+ [Required]
+ public DateTime CreateTime { get; set; }
+
+ ///
+ /// CreateUserId
+ ///
+ [Required]
+ public Guid CreateUserId { get; set; }
+
+ ///
+ /// UpdateTime
+ ///
+ [Required]
+ public DateTime UpdateTime { get; set; }
+
+ ///
+ /// UpdateUserId
+ ///
+ [Required]
+ public Guid UpdateUserId { get; set; }
+
+ ///
+ /// Code
+ ///
+ [Required]
+ public string Code { get; set; }
+
+ ///
+ /// ParentId
+ ///
+ public Guid? ParentId { get; set; }
+
+ ///
+ /// IsEnable
+ ///
+ [Required]
+ public bool IsEnable { get; set; }
+
+ ///
+ /// IsConfig
+ ///
+ [Required]
+ public bool IsConfig { get; set; }
+
+ ///
+ /// ModuleTypeId
+ ///
+ public int? ModuleTypeId { get; set; }
+
+ ///
+ /// OptTypeId
+ ///
+ public string OptTypeId { get; set; }
+
+ ///
+ /// ChildrenTypeId
+ ///
+ public string ChildrenTypeId { get; set; }
+
+ }
+
+}
diff --git a/IRaCIS.Core.Infra.EFCore/Context/IRaCISDBContext.cs b/IRaCIS.Core.Infra.EFCore/Context/IRaCISDBContext.cs
index 5d3383d10..4e238decd 100644
--- a/IRaCIS.Core.Infra.EFCore/Context/IRaCISDBContext.cs
+++ b/IRaCIS.Core.Infra.EFCore/Context/IRaCISDBContext.cs
@@ -262,6 +262,9 @@ namespace IRaCIS.Core.Infra.EFCore
public virtual DbSet TrialUserPreparation { get; set; }
+ public virtual DbSet FrontAuditConfig { get; set; }
+
+
public override int SaveChanges()
{
diff --git a/IRaCIS.Core.Test/DbHelper.ttinclude b/IRaCIS.Core.Test/DbHelper.ttinclude
index a42c0749d..4f92609a6 100644
--- a/IRaCIS.Core.Test/DbHelper.ttinclude
+++ b/IRaCIS.Core.Test/DbHelper.ttinclude
@@ -4,7 +4,7 @@
public static readonly string ConnectionString = "Server=123.56.181.144,14333\\MSSQLExpress14;Database=IRaCIS_New;User ID=sa;Password=dev123456DEV;";
public static readonly string DbDatabase = "IRaCIS_New";
//ַ,ƴ
- public static readonly string TableName = "TrialUserPreparation";
+ public static readonly string TableName = "FrontAuditConfig";
//ļ service Ƿҳ
}
#>
diff --git a/IRaCIS.Core.Test/TT_Template/IRaCIS .Core.ServiceAsync.tt b/IRaCIS.Core.Test/TT_Template/IRaCIS .Core.ServiceAsync.tt
index 0afb51b56..ebbf257bb 100644
--- a/IRaCIS.Core.Test/TT_Template/IRaCIS .Core.ServiceAsync.tt
+++ b/IRaCIS.Core.Test/TT_Template/IRaCIS .Core.ServiceAsync.tt
@@ -57,7 +57,12 @@ namespace IRaCIS.Core.Application.Service
public class <#=tableName#>Service: BaseService, I<#=tableName#>Service
{
+ private readonly IRepository<<#=tableName#>> _<#=char.ToLower(tableName[0]) + tableName.Substring(1)#>Repository;
+ public <#=tableName#>Service(IRepository<<#=tableName#>> <#=char.ToLower(tableName[0]) + tableName.Substring(1)#>Repository)
+ {
+ _<#=char.ToLower(tableName[0]) + tableName.Substring(1)#>Repository = <#=char.ToLower(tableName[0]) + tableName.Substring(1)#>Repository;
+ }
<# if(isPage){#>
public async TaskView>> Get<#=tableName#>List(<#=tableName#>Query query<#=tableName#>)