Test.EIImageViewer
parent
b937ddbe51
commit
136414848a
|
@ -92,9 +92,9 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
{
|
{
|
||||||
|
|
||||||
var QCQuestionQueryable = _qcQuestionRepository
|
var QCQuestionQueryable = _qcQuestionRepository
|
||||||
|
.Where(x=>x.IsEnable)
|
||||||
.WhereIf(!string.IsNullOrWhiteSpace(queryQCQuestionConfigure.QuestionName), t => t.QuestionName.Contains(queryQCQuestionConfigure.QuestionName))
|
.WhereIf(!string.IsNullOrWhiteSpace(queryQCQuestionConfigure.QuestionName), t => t.QuestionName.Contains(queryQCQuestionConfigure.QuestionName))
|
||||||
.WhereIf(!string.IsNullOrWhiteSpace(queryQCQuestionConfigure.Type), t => t.Type.Contains(queryQCQuestionConfigure.Type))
|
.WhereIf(!string.IsNullOrWhiteSpace(queryQCQuestionConfigure.Type), t => t.Type.Contains(queryQCQuestionConfigure.Type))
|
||||||
.WhereIf(queryQCQuestionConfigure.IsEnable != null, t => t.IsEnable == queryQCQuestionConfigure.IsEnable)
|
|
||||||
.ProjectTo<QCQuestionConfigureView>(_mapper.ConfigurationProvider);
|
.ProjectTo<QCQuestionConfigureView>(_mapper.ConfigurationProvider);
|
||||||
|
|
||||||
return await QCQuestionQueryable.ToListAsync();
|
return await QCQuestionQueryable.ToListAsync();
|
||||||
|
|
|
@ -0,0 +1,55 @@
|
||||||
|
//--------------------------------------------------------------------
|
||||||
|
// 此代码由T4模板自动生成 byzhouhang 20210918
|
||||||
|
// 生成时间 2022-08-12 14:07:12
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
||||||
|
//--------------------------------------------------------------------
|
||||||
|
using System;
|
||||||
|
using IRaCIS.Core.Domain.Share;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
namespace IRaCIS.Core.Application.ViewModel
|
||||||
|
{
|
||||||
|
/// <summary> OrganInfoView 列表视图模型 </summary>
|
||||||
|
public class OrganInfoView
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; }
|
||||||
|
public string Part { get; set; }
|
||||||
|
public string TULOC { get; set; }
|
||||||
|
public string TULAT { get; set; }
|
||||||
|
public string TypeName { get; set; }
|
||||||
|
public DateTime CreateTime { get; set; }
|
||||||
|
public Guid CreateUserId { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
///<summary>OrganInfoQuery 列表查询参数模型</summary>
|
||||||
|
public class OrganInfoQuery
|
||||||
|
{
|
||||||
|
///<summary> 部位</summary>
|
||||||
|
public string Part { get; set; }
|
||||||
|
|
||||||
|
///<summary> TULOC</summary>
|
||||||
|
public string TULOC { get; set; }
|
||||||
|
|
||||||
|
///<summary> 位置</summary>
|
||||||
|
public string TULAT { get; set; }
|
||||||
|
|
||||||
|
///<summary> 类型名称</summary>
|
||||||
|
public string TypeName { get; set; }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
///<summary> OrganInfoAddOrEdit 列表查询参数模型</summary>
|
||||||
|
public class OrganInfoAddOrEdit
|
||||||
|
{
|
||||||
|
public Guid? Id { get; set; }
|
||||||
|
public string Part { get; set; }
|
||||||
|
public string TULOC { get; set; }
|
||||||
|
public string TULAT { get; set; }
|
||||||
|
public string TypeName { get; set; }
|
||||||
|
public DateTime CreateTime { get; set; }
|
||||||
|
public Guid CreateUserId { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
//--------------------------------------------------------------------
|
||||||
|
// 此代码由T4模板自动生成 byzhouhang 20210918
|
||||||
|
// 生成时间 2022-08-12 14:07:43
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
||||||
|
//--------------------------------------------------------------------
|
||||||
|
|
||||||
|
using IRaCIS.Core.Application.ViewModel;
|
||||||
|
namespace IRaCIS.Core.Application.Interfaces
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// IOrganInfoService
|
||||||
|
/// </summary>
|
||||||
|
public interface IOrganInfoService
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
Task<List<OrganInfoView>> GetOrganInfoList(OrganInfoQuery inQuery);
|
||||||
|
|
||||||
|
Task<IResponseOutput> AddOrUpdateOrganInfo(OrganInfoAddOrEdit addOrEditOrganInfo);
|
||||||
|
|
||||||
|
Task<IResponseOutput> DeleteOrganInfo(Guid organInfoId);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,58 @@
|
||||||
|
//--------------------------------------------------------------------
|
||||||
|
// 此代码由T4模板自动生成 byzhouhang 20210918
|
||||||
|
// 生成时间 2022-08-12 14:07:20
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
||||||
|
//--------------------------------------------------------------------
|
||||||
|
|
||||||
|
using IRaCIS.Core.Domain.Models;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using IRaCIS.Core.Application.Interfaces;
|
||||||
|
using IRaCIS.Core.Application.ViewModel;
|
||||||
|
namespace IRaCIS.Core.Application.Service
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// OrganInfoService
|
||||||
|
/// </summary>
|
||||||
|
[ ApiExplorerSettings(GroupName = "Test")]
|
||||||
|
public class OrganInfoService: BaseService, IOrganInfoService
|
||||||
|
{
|
||||||
|
|
||||||
|
private readonly IRepository<OrganInfo> _organInfoRepository;
|
||||||
|
|
||||||
|
public OrganInfoService(IRepository<OrganInfo> organInfoRepository)
|
||||||
|
{
|
||||||
|
_organInfoRepository = organInfoRepository;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public async Task<List<OrganInfoView>> GetOrganInfoList(OrganInfoQuery inQuery)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
var organInfoQueryable = _organInfoRepository
|
||||||
|
.ProjectTo<OrganInfoView>(_mapper.ConfigurationProvider);
|
||||||
|
|
||||||
|
return await organInfoQueryable.ToListAsync();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public async Task<IResponseOutput> AddOrUpdateOrganInfo(OrganInfoAddOrEdit addOrEditOrganInfo)
|
||||||
|
{
|
||||||
|
|
||||||
|
var entity = await _organInfoRepository.InsertOrUpdateAsync(addOrEditOrganInfo, true);
|
||||||
|
|
||||||
|
return ResponseOutput.Ok(entity.Id.ToString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[HttpDelete("{organInfoId:guid}")]
|
||||||
|
public async Task<IResponseOutput> DeleteOrganInfo(Guid organInfoId)
|
||||||
|
{
|
||||||
|
var success = await _organInfoRepository.DeleteFromQueryAsync(t => t.Id == organInfoId,true);
|
||||||
|
return ResponseOutput.Ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -119,10 +119,14 @@ namespace IRaCIS.Core.Application.Service
|
||||||
|
|
||||||
CreateMap<ReadingMedicalReviewDialog, GetMedicalReviewDialogOutDto>()
|
CreateMap<ReadingMedicalReviewDialog, GetMedicalReviewDialogOutDto>()
|
||||||
.ForMember(x => x.CreateUserName, y => y.MapFrom(n => n.CreateUser.UserName));
|
.ForMember(x => x.CreateUserName, y => y.MapFrom(n => n.CreateUser.UserName));
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region 阅片部位
|
||||||
|
|
||||||
|
CreateMap<OrganInfoAddOrEdit, OrganInfo>();
|
||||||
|
CreateMap<OrganInfo, OrganInfoView>();
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,53 @@
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------
|
||||||
|
// 此代码由T4模板自动生成 byzhouhang 20210918
|
||||||
|
// 生成时间 2022-08-12 13:58:25
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
||||||
|
using System;
|
||||||
|
using IRaCIS.Core.Domain.Share;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
namespace IRaCIS.Core.Domain.Models
|
||||||
|
{
|
||||||
|
///<summary>
|
||||||
|
///OrganInfo
|
||||||
|
///</summary>
|
||||||
|
[Table("OrganInfo")]
|
||||||
|
public class OrganInfo : Entity, IAuditAdd
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 部位
|
||||||
|
/// </summary>
|
||||||
|
public string Part { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// TULOC
|
||||||
|
/// </summary>
|
||||||
|
public string TULOC { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 位置
|
||||||
|
/// </summary>
|
||||||
|
public string TULAT { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 类型名称
|
||||||
|
/// </summary>
|
||||||
|
public string TypeName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 创建时间
|
||||||
|
/// </summary>
|
||||||
|
public DateTime CreateTime { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 创建人
|
||||||
|
/// </summary>
|
||||||
|
public Guid CreateUserId { get; set; }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -202,7 +202,7 @@ namespace IRaCIS.Core.Infra.EFCore
|
||||||
|
|
||||||
|
|
||||||
#region Reading
|
#region Reading
|
||||||
|
public virtual DbSet<OrganInfo> OrganInfo { get; set; }
|
||||||
public virtual DbSet<ReadingTableQuestionSystem> ReadingTableQuestionSystem { get; set; }
|
public virtual DbSet<ReadingTableQuestionSystem> ReadingTableQuestionSystem { get; set; }
|
||||||
public virtual DbSet<ReadingPeriodSet> ReadingPeriodSet { get; set; }
|
public virtual DbSet<ReadingPeriodSet> ReadingPeriodSet { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
public static readonly string ConnectionString = "Server=123.56.94.154,1433\\MSSQLSERVER;Database=IRaCIS_New_Tet;User ID=sa;Password=dev123456DEV;TrustServerCertificate=true";
|
public static readonly string ConnectionString = "Server=123.56.94.154,1433\\MSSQLSERVER;Database=IRaCIS_New_Tet;User ID=sa;Password=dev123456DEV;TrustServerCertificate=true";
|
||||||
public static readonly string DbDatabase = "IRaCIS_New_Tet";
|
public static readonly string DbDatabase = "IRaCIS_New_Tet";
|
||||||
//表名称用字符串,拼接
|
//表名称用字符串,拼接
|
||||||
public static readonly string TableName = "ReadingTableQuestionSystem";
|
public static readonly string TableName = "OrganInfo";
|
||||||
//具体文件里面 例如service 可以配置是否分页
|
//具体文件里面 例如service 可以配置是否分页
|
||||||
}
|
}
|
||||||
#>
|
#>
|
||||||
|
|
Loading…
Reference in New Issue