Browse Source

添加 导出自定义

master
boxu.zheng 1 year ago
parent
commit
803d539978
  1. 6
      Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Application/AppBase/ZbxBase.cs
  2. 16
      Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Domain/AppBusiness/ExportCustomUser/ExportCustomUser.cs

6
Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Application/AppBase/ZbxBase.cs

@ -61,8 +61,6 @@ public class ZbxBase<TEntity, TEntityDto, TKey, TPagedAndSortedResultRequestDto,
public async Task<PagedResultDto<TEntityDto>> GetPageListByFilterAsync(SfsRequestInputBase sfsRequestInputBase, public async Task<PagedResultDto<TEntityDto>> GetPageListByFilterAsync(SfsRequestInputBase sfsRequestInputBase,
bool includeDetails = false, CancellationToken cancellationToken = default) bool includeDetails = false, CancellationToken cancellationToken = default)
{ {
//await TestSqlAsync();
var expression = sfsRequestInputBase.Condition.Filters?.Count > 0 var expression = sfsRequestInputBase.Condition.Filters?.Count > 0
? sfsRequestInputBase.Condition.Filters.ToLambda<TEntity>() ? sfsRequestInputBase.Condition.Filters.ToLambda<TEntity>()
: p => true; : p => true;
@ -297,8 +295,8 @@ public class ZbxBase<TEntity, TEntityDto, TKey, TPagedAndSortedResultRequestDto,
{ {
var englishName=mainProperties[i].Name; var englishName=mainProperties[i].Name;
//本地化 //本地化
//var localizerName = _localizer[englishName]; var localizerName = _localizer[typeof(TEntityDto).Name.Replace("Dto","") + englishName];
headerRow.CreateCell(i).SetCellValue(englishName); headerRow.CreateCell(i).SetCellValue(localizerName);
} }
// 获取从表的属性 创建从表 表头 // 获取从表的属性 创建从表 表头

16
Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Domain/AppBusiness/ExportCustomUser/ExportCustomUser.cs

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
namespace Faster.Zheng.Winin.AppBusiness.AppExportUser
{
public class ExportCustomUser
{
public string ExportUserId { get; set; }
public string ExportColumnName { get; set; }
public string ExportTableName { get; set; }
}
}
Loading…
Cancel
Save