Browse Source

更新版本

master
学 赵 1 year ago
parent
commit
3b33d5eed3
  1. 74
      .drone.yml
  2. 1
      build/.gitignore
  3. 1
      build/build.cmd
  4. 1
      build/build.sh
  5. 2
      code/src/.editorconfig
  6. 2
      code/src/Modules/BaseService/BaseService.Application.Contracts/BaseData/BranchManagement/Dto/BranchDto.cs
  7. 2
      code/src/Modules/BaseService/BaseService.Application.Contracts/BaseData/BranchManagement/Dto/CreateOrUpdateBranchDto.cs
  8. 2
      code/src/Modules/BaseService/BaseService.Application.Contracts/BaseData/BranchManagement/Dto/GetBranchInputDto.cs
  9. 2
      code/src/Modules/BaseService/BaseService.Application.Contracts/BaseData/BranchManagement/IBranchAppService.cs
  10. 2
      code/src/Modules/BaseService/BaseService.Application.Contracts/BaseData/Permissions/Dto/ApplicationAuthes.cs
  11. 3
      code/src/Modules/BaseService/BaseService.Application.Contracts/BaseData/UserBranchRoleManagement/Dto/CreateOrUpdateUserBranchDto.cs
  12. 2
      code/src/Modules/BaseService/BaseService.Application.Contracts/BaseData/UserBranchRoleManagement/Dto/GetUserBranchInput.cs
  13. 4
      code/src/Modules/BaseService/BaseService.Application.Contracts/BaseData/UserBranchRoleManagement/Dto/UserBranchDto.cs
  14. 4
      code/src/Modules/BaseService/BaseService.Application.Contracts/BaseData/UserBranchRoleManagement/IUserBranchAppService.cs
  15. 2
      code/src/Modules/BaseService/BaseService.Application.Contracts/BaseServiceApplicationContractsModule.cs
  16. 5
      code/src/Modules/BaseService/BaseService.Application.Contracts/Permissions/BaseServicePermissionDefinitionProvider .cs
  17. 5
      code/src/Modules/BaseService/BaseService.Application.Contracts/Permissions/BaseServicePermissions.cs
  18. 2
      code/src/Modules/BaseService/BaseService.Application.Contracts/RelationData/Dto/BranchPermissionDto.cs
  19. 4
      code/src/Modules/BaseService/BaseService.Application.Contracts/RelationData/Dto/BranchRoleDto.cs
  20. 4
      code/src/Modules/BaseService/BaseService.Application.Contracts/RelationData/IBranchRelationAppService.cs
  21. 2
      code/src/Modules/BaseService/BaseService.Application.Contracts/Systems/AuditLoggingManagement/Dto/AuditLogActionDto.cs
  22. 2
      code/src/Modules/BaseService/BaseService.Application.Contracts/Systems/AuditLoggingManagement/Dto/AuditLogDto.cs
  23. 2
      code/src/Modules/BaseService/BaseService.Application.Contracts/Systems/AuditLoggingManagement/Dto/EntityChangeDto.cs
  24. 2
      code/src/Modules/BaseService/BaseService.Application.Contracts/Systems/AuditLoggingManagement/Dto/EntityPropertyChangeDto.cs
  25. 3
      code/src/Modules/BaseService/BaseService.Application.Contracts/Systems/AuditLoggingManagement/Dto/GetAuditLogsInput.cs
  26. 2
      code/src/Modules/BaseService/BaseService.Application.Contracts/Systems/AuditLoggingManagement/Dto/GetAverageExecutionDurationPerDayInput.cs
  27. 2
      code/src/Modules/BaseService/BaseService.Application.Contracts/Systems/AuditLoggingManagement/Dto/GetAverageExecutionDurationPerDayOutput.cs
  28. 4
      code/src/Modules/BaseService/BaseService.Application.Contracts/Systems/AuditLoggingManagement/IAuditLoggingAppService.cs
  29. 4
      code/src/Modules/BaseService/BaseService.Application.Contracts/Systems/UserManagement/IUserAppService.cs
  30. 8
      code/src/Modules/BaseService/BaseService.Application/BaseServiceApplicationAutoMapperProfile.cs
  31. 2
      code/src/Modules/BaseService/BaseService.Application/BaseServiceApplicationModule.cs
  32. 79
      code/src/Modules/BaseService/BaseService.Application/BranchManagement/BranchAppService.cs
  33. 8
      code/src/Modules/BaseService/BaseService.Application/UserManagement/TokenAppService.cs
  34. 69
      code/src/Modules/BaseService/BaseService.Application/UserManagement/UserAppService.cs
  35. 62
      code/src/Modules/BaseService/BaseService.Application/UserManagement/UserBranchAppService.cs
  36. 5
      code/src/Modules/BaseService/BaseService.Domain/BaseData/Branch.cs
  37. 8
      code/src/Modules/BaseService/BaseService.Domain/BaseData/UserBranch.cs
  38. 11
      code/src/Modules/BaseService/BaseService.Domain/BaseData/UserBranchRole.cs
  39. 2
      code/src/Modules/BaseService/BaseService.Domain/BaseServiceConsts.cs
  40. 2
      code/src/Modules/BaseService/BaseService.Domain/BaseServiceDomainModule.cs
  41. 2
      code/src/Modules/BaseService/BaseService.Domain/BaseServiceModuleExtensionConfigurator.cs
  42. 2
      code/src/Modules/BaseService/BaseService.Domain/Localization/BaseServiceResource.cs
  43. 6
      code/src/Modules/BaseService/BaseService.Domain/RelationBaseData/BranchRole.cs
  44. 3
      code/src/Modules/BaseService/BaseService.Domain/Users/AppUser.cs
  45. 6
      code/src/Modules/BaseService/BaseService.EntityFrameworkCore/EntityFrameworkCore/BaseDbContextModelCreatingExtensions.cs
  46. 6
      code/src/Modules/BaseService/BaseService.EntityFrameworkCore/EntityFrameworkCore/BaseEfCoreEntityExtensionMappings.cs
  47. 7
      code/src/Modules/BaseService/BaseService.EntityFrameworkCore/EntityFrameworkCore/BaseServiceDbContext.cs
  48. 2
      code/src/Modules/BaseService/BaseService.EntityFrameworkCore/EntityFrameworkCore/BaseServiceEntityFrameworkCoreModule.cs
  49. 2
      code/src/Modules/BaseService/BaseService.EntityFrameworkCore/Migrations/20230822033456_202308220001.cs
  50. 2
      code/src/Modules/BaseService/BaseService.EntityFrameworkCore/Migrations/20230822034321_2023082200001.cs
  51. 2
      code/src/Modules/BaseService/BaseService.HttpApi/BaseData/OrganizationController.cs
  52. 2
      code/src/Modules/BaseService/BaseService.HttpApi/BaseData/UserBranchRoleController.cs
  53. 2
      code/src/Modules/BaseService/BaseService.HttpApi/BaseServiceHttpApiModule.cs
  54. 2
      code/src/Modules/BaseService/BaseService.HttpApi/Controllers/BaseServiceController.cs
  55. 2
      code/src/Modules/BaseService/BaseService.HttpApi/Systems/UserController.cs
  56. 5
      code/src/Modules/SettleAccount/common.props
  57. 69
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/AuthServer/AuthServerDataSeeder.cs
  58. 7
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/AuthServer/AuthServerHostModule.cs
  59. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/AuthServer/EntityFrameworkCore/AuthServerDbContext.cs
  60. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/AuthServer/EntityFrameworkCore/AuthServerDbContextFactory.cs
  61. 70
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/BaseServiceHostModule.cs
  62. 10
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Exception.cs
  63. 7
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Program.cs
  64. 91
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/SettleAccountHttpApiHostModule.cs
  65. 7
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Startup.cs
  66. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Attributes/ExcelImporterHeadDescAttribute.cs
  67. 4
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Bases/RequestInputBase.cs
  68. 13
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/BBAC_CAN_SA_DTO.cs
  69. 14
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/BBAC_NOT_SA_DTO.cs
  70. 12
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/BBAC_PD_DTO.cs
  71. 77
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/BBAC_SA_DTO.cs
  72. 27
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/BBAC_SE_DETAIL_DTO.cs
  73. 7
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/BBAC_SE_EDI_DTO.cs
  74. 13
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/EdiSeCompareRequestDto.cs
  75. 20
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_CAN_SA_DTO.cs
  76. 12
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_NOT_SA_DTO.cs
  77. 7
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_PD_DTO.cs
  78. 85
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_SA_DTO.cs
  79. 25
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_SE_DETAIL_DTO.cs
  80. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_SE_EDI_DTO.cs
  81. 8
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/INVOICE_GRP_DTO.cs
  82. 43
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_ADJ_DETAIL_DTO.cs
  83. 33
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_CAN_SA_DTO.cs
  84. 22
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_NOT_SA_DTO.cs
  85. 8
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_PD_DTO.cs
  86. 151
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_SA_DTO.cs
  87. 37
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_SE_DETAIL_DTO.cs
  88. 37
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PURCHASE_PRICE_DTO.cs
  89. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/RequestDto.cs
  90. 13
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/SaSeCompareRequestDto.cs
  91. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/TB_RePartsRelationship_DTO.cs
  92. 16
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/IBBAC_BA_SERVICE.cs
  93. 8
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/IBBAC_CAN_SA_SERVICE.cs
  94. 4
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/IBBAC_NOT_SA_SERVICE.cs
  95. 14
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/IBBAC_PD_SERVICE.cs
  96. 6
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/IBBAC_SE_EDI_SERVICE.cs
  97. 6
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/IHBPO_BA_SERVICE.cs
  98. 12
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/IHBPO_CAN_SA_SERVICE.cs
  99. 4
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/IHBPO_NOT_SA_SERVICE.cs
  100. 6
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/IHBPO_PD_SERVICE.cs

74
.drone.yml

@ -0,0 +1,74 @@
---
kind: pipeline
type: docker
name: linux-amd64
platform:
arch: amd64
os: linux
steps:
- name: build
image: mcr.microsoft.com/dotnet/sdk:6.0
commands:
- cd ./build
- pwd
- ls
- chmod 755 ./build.sh
# - ./build.sh
- mkdir publish
- echo "${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}">./publish/version.txt
- ls publish
# - name: publish
# image: plugins/s3
# settings:
# endpoint: http://dev.ccwin-in.com:3008
# path_style: true
# bucket: default
# access_key: O222sbIaMKeGfeX18t8K
# secret_key: 0LEOWfXSDnaLbIYGZfdKUxyi2kYIayx4YvdLTgcR
# source: build/publish/**/*
# strip_prefix: build/publish/
# target: /jie-suan/bei-qi/${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}
- name: stop
image: appleboy/drone-ssh
settings:
host: dev.ccwin-in.com
port: 16085
username: Administrator
password: Microsoft@2022
command_timeout: 10m
script:
- cd /D D:/BQ-JS/publish
- stop.cmd
- cd ..
- rd/s/q "./publish"
- dir .
- name: deploy
image: appleboy/drone-scp
settings:
host: dev.ccwin-in.com
port: 16085
username: Administrator
password: Microsoft@2022
command_timeout: 10m
target: D:/BQ-JS/test
source: ./build/publish
overwrite: true
- name: start
image: appleboy/drone-ssh
settings:
host: dev.ccwin-in.com
port: 16085
username: Administrator
password: Microsoft@2022
command_timeout: 10m
script:
- d:
- cd D:\BQ-JS\publish
- start.cmd
- echo ok

1
build/.gitignore

@ -0,0 +1 @@
publish

1
build/build.cmd

@ -0,0 +1 @@
dotnet publish -c Release -r win-x64 ../code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host -o ./publish

1
build/build.sh

@ -0,0 +1 @@
dotnet publish -v diag -c Release -r win-x64 ../code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host -o ./publish

2
code/src/.editorconfig

@ -42,7 +42,7 @@ csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
# Namespace settings
csharp_style_namespace_declarations = file_scoped
csharp_style_namespace_declarations = block_scoped:warning
# Brace settings
csharp_prefer_braces = true # Prefer curly braces even for one line of code

2
code/src/Modules/BaseService/BaseService.Application.Contracts/BaseData/BranchManagement/Dto/BranchDto.cs

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using BaseService.RelationBaseData;
using Volo.Abp.Application.Dtos;

2
code/src/Modules/BaseService/BaseService.Application.Contracts/BaseData/BranchManagement/Dto/CreateOrUpdateBranchDto.cs

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using BaseService.RelationBaseData;

2
code/src/Modules/BaseService/BaseService.Application.Contracts/BaseData/BranchManagement/Dto/GetBranchInputDto.cs

@ -1,4 +1,4 @@
using System;
using System;
using Volo.Abp.Application.Dtos;
namespace BaseService.BaseData.BranchManagement.Dto

2
code/src/Modules/BaseService/BaseService.Application.Contracts/BaseData/BranchManagement/IBranchAppService.cs

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using BaseService.BaseData.BranchManagement.Dto;

2
code/src/Modules/BaseService/BaseService.Application.Contracts/BaseData/Permissions/Dto/ApplicationAuthes.cs

@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
namespace BaseService.BaseData.Permissions.Dto
{

3
code/src/Modules/BaseService/BaseService.Application.Contracts/BaseData/UserBranchRoleManagement/Dto/CreateOrUpdateUserBranchDto.cs

@ -1,7 +1,6 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Volo.Abp.Identity;
namespace BaseService.BaseData.UserBranchRoleManagement.Dto
{

2
code/src/Modules/BaseService/BaseService.Application.Contracts/BaseData/UserBranchRoleManagement/Dto/GetUserBranchInput.cs

@ -1,4 +1,4 @@
using System;
using System;
using Volo.Abp.Application.Dtos;
namespace BaseService.BaseData.UserBranchRoleManagement.Dto

4
code/src/Modules/BaseService/BaseService.Application.Contracts/BaseData/UserBranchRoleManagement/Dto/UserBranchDto.cs

@ -1,10 +1,8 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations.Schema;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Domain.Entities;
using Volo.Abp.MultiTenancy;
namespace BaseService.BaseData.UserBranchRoleManagement.Dto
{

4
code/src/Modules/BaseService/BaseService.Application.Contracts/BaseData/UserBranchRoleManagement/IUserBranchAppService.cs

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using BaseService.BaseData.Permissions.Dto;
@ -30,7 +30,7 @@ namespace BaseService.BaseData.UserBranchRoleManagement
Task<ApplicationAuthes> GetAuthConfigAsync(Guid branchId);
Task<List<UserBranchRole>> GetUserRolesAsync(Guid userId,Guid branchId);
Task<List<UserBranchRole>> GetUserRolesAsync(Guid userId, Guid branchId);
Task DeleteUnitAsync(Guid userId, Guid branchId);

2
code/src/Modules/BaseService/BaseService.Application.Contracts/BaseServiceApplicationContractsModule.cs

@ -1,4 +1,4 @@
using Volo.Abp.Application;
using Volo.Abp.Application;
using Volo.Abp.Modularity;
using Volo.Abp.PermissionManagement;

5
code/src/Modules/BaseService/BaseService.Application.Contracts/Permissions/BaseServicePermissionDefinitionProvider .cs

@ -1,4 +1,4 @@
using BaseService.Localization;
using BaseService.Localization;
using Volo.Abp.Authorization.Permissions;
using Volo.Abp.Localization;
using Volo.Abp.MultiTenancy;
@ -14,8 +14,7 @@ namespace BaseService.Permissions
var auditLogging = baseService.AddPermission(BaseServicePermissions.AuditLogging.Default, L("AuditLogging"));
var branch = baseService.AddPermission(BaseServicePermissions.Branch.Default,L("Branch"));
var branch = baseService.AddPermission(BaseServicePermissions.Branch.Default, L("Branch"));
branch.AddChild(BaseServicePermissions.Branch.Update, L("Edit"));
branch.AddChild(BaseServicePermissions.Branch.Delete, L("Delete"));
branch.AddChild(BaseServicePermissions.Branch.Create, L("Create"));

5
code/src/Modules/BaseService/BaseService.Application.Contracts/Permissions/BaseServicePermissions.cs

@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace BaseService.Permissions
{
public static class BaseServicePermissions
@ -21,7 +17,6 @@ namespace BaseService.Permissions
public const string Create = Default + ".Create";
}
public static class UserBranch
{
public const string Default = BaseService + ".UserBranch";

2
code/src/Modules/BaseService/BaseService.Application.Contracts/RelationData/Dto/BranchPermissionDto.cs

@ -1,4 +1,4 @@
using System;
using System;
namespace BaseService.RelationData.Dto
{

4
code/src/Modules/BaseService/BaseService.Application.Contracts/RelationData/Dto/BranchRoleDto.cs

@ -1,7 +1,5 @@
using System;
using System.ComponentModel.DataAnnotations.Schema;
using System;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
namespace BaseService.RelationData.Dto
{

4
code/src/Modules/BaseService/BaseService.Application.Contracts/RelationData/IBranchRelationAppService.cs

@ -1,11 +1,9 @@
using System;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using BaseService.BaseData.BranchManagement.Dto;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;
using Volo.Abp.Identity;
namespace BaseService.RelationData
{

2
code/src/Modules/BaseService/BaseService.Application.Contracts/Systems/AuditLoggingManagement/Dto/AuditLogActionDto.cs

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using Volo.Abp.Application.Dtos;

2
code/src/Modules/BaseService/BaseService.Application.Contracts/Systems/AuditLoggingManagement/Dto/AuditLogDto.cs

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Volo.Abp.Application.Dtos;

2
code/src/Modules/BaseService/BaseService.Application.Contracts/Systems/AuditLoggingManagement/Dto/EntityChangeDto.cs

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Volo.Abp.Application.Dtos;

2
code/src/Modules/BaseService/BaseService.Application.Contracts/Systems/AuditLoggingManagement/Dto/EntityPropertyChangeDto.cs

@ -1,4 +1,4 @@
using System;
using System;
using Volo.Abp.Application.Dtos;
namespace BaseService.Systems.AuditLoggingManagement.Dto

3
code/src/Modules/BaseService/BaseService.Application.Contracts/Systems/AuditLoggingManagement/Dto/GetAuditLogsInput.cs

@ -1,4 +1,4 @@
using System.Net;
using System.Net;
using Volo.Abp.Application.Dtos;
namespace BaseService.Systems.AuditLoggingManagement.Dto
@ -20,7 +20,6 @@ namespace BaseService.Systems.AuditLoggingManagement.Dto
public int? MaxExecutionDuration { get; set; }
public int? MinExecutionDuration { get; set; }
public bool HasException { get; set; }

2
code/src/Modules/BaseService/BaseService.Application.Contracts/Systems/AuditLoggingManagement/Dto/GetAverageExecutionDurationPerDayInput.cs

@ -1,4 +1,4 @@
using System;
using System;
namespace BaseService.Systems.AuditLoggingManagement.Dto
{

2
code/src/Modules/BaseService/BaseService.Application.Contracts/Systems/AuditLoggingManagement/Dto/GetAverageExecutionDurationPerDayOutput.cs

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
namespace BaseService.Systems.AuditLoggingManagement.Dto

4
code/src/Modules/BaseService/BaseService.Application.Contracts/Systems/AuditLoggingManagement/IAuditLoggingAppService.cs

@ -1,8 +1,6 @@
using BaseService.Systems.AuditLoggingManagement.Dto;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using BaseService.Systems.AuditLoggingManagement.Dto;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

4
code/src/Modules/BaseService/BaseService.Application.Contracts/Systems/UserManagement/IUserAppService.cs

@ -1,7 +1,7 @@
using BaseService.BaseData.Permissions.Dto;
using BaseService.RelationData.Dto;
using System;
using System.Threading.Tasks;
using BaseService.BaseData.Permissions.Dto;
using BaseService.RelationData.Dto;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;
using Volo.Abp.Identity;

8
code/src/Modules/BaseService/BaseService.Application/BaseServiceApplicationAutoMapperProfile.cs

@ -1,12 +1,8 @@
using AutoMapper;
using AutoMapper;
using BaseService.BaseData;
using BaseService.RelationBaseData;
using BaseService.Systems.AuditLoggingManagement.Dto;
using System;
using System.Collections.Generic;
using System.Text;
using BaseService.BaseData.BranchManagement.Dto;
using BaseService.BaseData.UserBranchRoleManagement.Dto;
using BaseService.RelationBaseData;
using BaseService.RelationData.Dto;
namespace BaseService

2
code/src/Modules/BaseService/BaseService.Application/BaseServiceApplicationModule.cs

@ -1,4 +1,4 @@
using Volo.Abp.AutoMapper;
using Volo.Abp.AutoMapper;
using Volo.Abp.Identity;
using Volo.Abp.Json;
using Volo.Abp.Modularity;

79
code/src/Modules/BaseService/BaseService.Application/BranchManagement/BranchAppService.cs

@ -4,9 +4,7 @@ using System.Linq;
using System.Linq.Dynamic.Core;
using System.Threading.Tasks;
using BaseService.BaseData.BranchManagement.Dto;
using BaseService.BaseData.UserBranchRoleManagement.Dto;
using BaseService.Permissions;
using BaseService.RelationBaseData;
using BaseService.RelationData.Dto;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
@ -44,8 +42,11 @@ namespace BaseService.BaseData.BranchManagement
[Authorize(BaseServicePermissions.Branch.Create)]
public virtual async Task<BranchDto> CreateAsync(CreateOrUpdateBranchDto input)
{
var exist = await _repository.FirstOrDefaultAsync(_ => _.Name == input.Name);
if (exist != null) throw new BusinessException("名称:" + input.Name + "机构已存在");
var exist = await _repository.FirstOrDefaultAsync(_ => _.Name == input.Name).ConfigureAwait(false);
if (exist != null)
{
throw new BusinessException("名称:" + input.Name + "机构已存在");
}
var branch = new Branch(GuidGenerator.Create(),
CurrentTenant.Id,
@ -57,12 +58,12 @@ namespace BaseService.BaseData.BranchManagement
true,
input.Enabled
);
var parent = await _repository.FirstOrDefaultAsync(_ => _.Id == input.Pid);
var parent = await _repository.FirstOrDefaultAsync(_ => _.Id == input.Pid).ConfigureAwait(false);
ChangeOrganizationModel(branch, parent);
await _repository.InsertAsync(branch);
await _repository.InsertAsync(branch).ConfigureAwait(false);
//create cache
await _cache.SetAsync(branch.Id.ToString(), branch, CacheStrategyConst.FIVE_MINUTES);
await _cache.SetAsync(branch.Id.ToString(), branch, CacheStrategyConst.FIVE_MINUTES).ConfigureAwait(false);
return ObjectMapper.Map<Branch, BranchDto>(branch);
}
@ -74,10 +75,10 @@ namespace BaseService.BaseData.BranchManagement
{
foreach (var id in ids)
{
var branch = await _repository.GetAsync(id);
await _repository.DeleteAsync(_ => _.CascadeId.Contains(branch.CascadeId));
await _cache.DeleteAsync(id.ToString());
await _repository.DeleteAsync(_ => _.Id == id);
var branch = await _repository.GetAsync(id).ConfigureAwait(false);
await _repository.DeleteAsync(_ => _.CascadeId.Contains(branch.CascadeId)).ConfigureAwait(false);
await _cache.DeleteAsync(id.ToString()).ConfigureAwait(false);
await _repository.DeleteAsync(_ => _.Id == id).ConfigureAwait(false);
}
}
[HttpGet]
@ -85,7 +86,7 @@ namespace BaseService.BaseData.BranchManagement
[AllowAnonymous]
public virtual async Task<BranchDto> GetAsync(Guid id)
{
var result = await GetFromCacheAsync(id);
var result = await GetFromCacheAsync(id).ConfigureAwait(false);
return ObjectMapper.Map<Branch, BranchDto>(result);
}
@ -93,15 +94,15 @@ namespace BaseService.BaseData.BranchManagement
{
var result = await _cache.GetOrAddAsync(
id.ToString(),
async () => await GetFromRepository(id),
CacheStrategyConst.FIVE_MINUTES);
async () => await GetFromRepository(id).ConfigureAwait(false),
CacheStrategyConst.FIVE_MINUTES).ConfigureAwait(false);
return result;
}
private async Task<Branch> GetFromRepository(Guid id)
{
return await _repository.GetAsync(id);
return await _repository.GetAsync(id).ConfigureAwait(false);
}
[HttpGet]
@ -113,15 +114,15 @@ namespace BaseService.BaseData.BranchManagement
.WhereIf(input.CategoryId.HasValue, _ => _.CategoryId == input.CategoryId);
if (input.Id.HasValue)
{
var org = await _repository.GetAsync(input.Id.Value);
var org = await _repository.GetAsync(input.Id.Value).ConfigureAwait(false);
query = query.Where(_ => _.CascadeId.Contains(org.CascadeId));
}
var items = await query.OrderBy(input.Sorting ?? "Sort")
.Skip(input.SkipCount)
.Take(input.MaxResultCount)
.ToListAsync();
var totalCount = await query.CountAsync();
.ToListAsync().ConfigureAwait(false);
var totalCount = await query.CountAsync().ConfigureAwait(false);
var dtos = ObjectMapper.Map<List<Branch>, List<BranchDto>>(items);
return new PagedResultDto<BranchDto>(totalCount, dtos);
@ -145,13 +146,13 @@ namespace BaseService.BaseData.BranchManagement
var items = new List<Branch>();
if (!string.IsNullOrWhiteSpace(filter))
{
items = await _repository.Where(_ => _.Name.Contains(filter)).ToListAsync();
items = await _repository.Where(_ => _.Name.Contains(filter)).ToListAsync().ConfigureAwait(false);
}
else
{
var query = id.HasValue ? _repository.Where(_ => _.Pid == id) :
_repository.Where(_ => _.Pid == null);
items = await query.ToListAsync();
items = await query.ToListAsync().ConfigureAwait(false);
}
var dtos = ObjectMapper.Map<List<Branch>, List<BranchDto>>(items);
@ -161,7 +162,7 @@ namespace BaseService.BaseData.BranchManagement
[Route("children")]
public virtual async Task<ListResultDto<BranchDto>> GetChildrenAsync()
{
var items = await _repository.GetListAsync();
var items = await _repository.GetListAsync().ConfigureAwait(false);
var dtos = ObjectMapper.Map<List<Branch>, List<BranchDto>>(items);
return new ListResultDto<BranchDto>(dtos);
@ -171,13 +172,17 @@ namespace BaseService.BaseData.BranchManagement
[Authorize(BaseServicePermissions.Branch.Update)]
public virtual async Task<BranchDto> UpdateAsync(Guid id, CreateOrUpdateBranchDto input)
{
if (input.Pid == id) throw new BusinessException("机构上级不能为当前机构!");
var branch = await _repository.FirstOrDefaultAsync(_ => _.Id == id);
if (input.Pid == id)
{
throw new BusinessException("机构上级不能为当前机构!");
}
var branch = await _repository.FirstOrDefaultAsync(_ => _.Id == id).ConfigureAwait(false);
if (branch.Pid != input.Pid)
{
var parent = await _repository.FirstOrDefaultAsync(_ => _.Id == input.Pid);
var parent = await _repository.FirstOrDefaultAsync(_ => _.Id == input.Pid).ConfigureAwait(false);
var orgs = await _repository.Where(_ => _.CascadeId.Contains(branch.CascadeId) && _.Id != branch.Id)
.OrderBy(_ => _.CascadeId).ToListAsync();
.OrderBy(_ => _.CascadeId).ToListAsync().ConfigureAwait(false);
branch.Pid = input.Pid;
ChangeOrganizationModel(branch, parent);
foreach (var org in orgs)
@ -197,7 +202,7 @@ namespace BaseService.BaseData.BranchManagement
branch.Sort = input.Sort;
branch.Enabled = input.Enabled;
await _cache.SetAsync(id.ToString(), branch, CacheStrategyConst.FIVE_MINUTES);
await _cache.SetAsync(id.ToString(), branch, CacheStrategyConst.FIVE_MINUTES).ConfigureAwait(false);
return ObjectMapper.Map<Branch, BranchDto>(branch);
}
@ -207,7 +212,11 @@ namespace BaseService.BaseData.BranchManagement
var cascadeId = org.CascadeId == null ? 1 : int.Parse(org.CascadeId.TrimEnd('.').Split('.').Last());
if (checkLevel)
{
if (parent != null && parent.Leaf) parent.Leaf = false;
if (parent != null && parent.Leaf)
{
parent.Leaf = false;
}
var lastLevel = _repository.Where(_ => _.Pid == org.Pid && _.Id != org.Id)
.OrderByDescending(_ => _.CascadeId)
.FirstOrDefault();
@ -216,7 +225,11 @@ namespace BaseService.BaseData.BranchManagement
if (org.Pid.HasValue)
{
if (parent == null) throw new BusinessException("上级机构查询错误!");
if (parent == null)
{
throw new BusinessException("上级机构查询错误!");
}
org.CascadeId = parent.CascadeId + cascadeId + ".";
org.FullName = parent.FullName + "/" + org.Name;
}
@ -228,7 +241,6 @@ namespace BaseService.BaseData.BranchManagement
}
/// <summary>
/// 根据分支ID,查找中间表branch-role
/// </summary>
@ -239,8 +251,8 @@ namespace BaseService.BaseData.BranchManagement
public virtual async Task<ListResultDto<BranchRoleDto>> GetRolesAsync(Guid branchId)
{
var dtos = new List<BranchRoleDto>();
var getRoleIds = await GetRolesByBranchIdAsync(branchId);
var roles = await RoleRepository.GetListAsync();
var getRoleIds = await GetRolesByBranchIdAsync(branchId).ConfigureAwait(false);
var roles = await RoleRepository.GetListAsync().ConfigureAwait(false);
if (getRoleIds != null)
{
foreach (var role in getRoleIds)
@ -253,12 +265,11 @@ namespace BaseService.BaseData.BranchManagement
protected virtual async Task<List<UserBranchRole>> GetRolesByBranchIdAsync(Guid branchId)
{
var userBranch = await _repositoryBranchRole.GetAsync(_ => _.BranchId == branchId);
var userBranch = await _repositoryBranchRole.GetAsync(_ => _.BranchId == branchId).ConfigureAwait(false);
var roles = userBranch.Roles.ToList();
return roles;
}
/// <summary>
/// 用于角色管理:分支和角色互动
/// </summary>
@ -277,7 +288,7 @@ namespace BaseService.BaseData.BranchManagement
}
else
{
var list = await RoleRepository.GetListAsync(input.Sorting, input.MaxResultCount, input.SkipCount);
var list = await RoleRepository.GetListAsync(input.Sorting, input.MaxResultCount, input.SkipCount).ConfigureAwait(false);
foreach (var roleid in getRoleIds)
{
var filterRole = list.FirstOrDefault(_ => _.Id == roleid.RoleId);

8
code/src/Modules/BaseService/BaseService.Application/UserManagement/TokenAppService.cs

@ -1,10 +1,10 @@
using IdentityModel.Client;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using System.ComponentModel.DataAnnotations;
using System.Net.Http;
using System.Threading.Tasks;
using IdentityModel.Client;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Volo.Abp.Application.Services;
namespace BaseService.UserManagement

69
code/src/Modules/BaseService/BaseService.Application/UserManagement/UserAppService.cs

@ -72,9 +72,9 @@ namespace BaseService.Systems.UserManagement
[Route("{id}")]
public async Task<IdentityUserUpdateDto> GetAsync(Guid id)
{
var user = await UserManager.GetByIdAsync(id);
var user = await UserManager.GetByIdAsync(id).ConfigureAwait(false);
var dto = Mapper.Map<IdentityUserUpdateDto>(user);
dto.RoleNames = (await UserRepository.GetRoleNamesAsync(id)).ToArray();
dto.RoleNames = (await UserRepository.GetRoleNamesAsync(id).ConfigureAwait(false)).ToArray();
return dto;
}
@ -88,7 +88,7 @@ namespace BaseService.Systems.UserManagement
public async Task<IdentityUserDto> GetCurrentUserAsync()
{
var id = CurrentUser.GetId();
var currentUser = await UserManager.GetByIdAsync(id);
var currentUser = await UserManager.GetByIdAsync(id).ConfigureAwait(false);
var dto = ObjectMapper.Map<IdentityUser, IdentityUserDto>(currentUser);
return dto;
@ -107,12 +107,12 @@ namespace BaseService.Systems.UserManagement
input.MapExtraPropertiesTo(user);
(await UserManager.CreateAsync(user, input.Password)).CheckErrors();
await UpdateAsync(user, input);
(await UserManager.CreateAsync(user, input.Password).ConfigureAwait(false)).CheckErrors();
await UpdateAsync(user, input).ConfigureAwait(false);
var dto = ObjectMapper.Map<IdentityUser, IdentityUserDto>(user);
await CurrentUnitOfWork.SaveChangesAsync();
await CurrentUnitOfWork.SaveChangesAsync().ConfigureAwait(false);
return dto;
}
@ -122,25 +122,25 @@ namespace BaseService.Systems.UserManagement
[Authorize(IdentityPermissions.Users.Update)]
public async Task<IdentityUserDto> UpdateAsync(Guid id, IdentityUserUpdateDto input)
{
var user = await UserManager.GetByIdAsync(id);
var user = await UserManager.GetByIdAsync(id).ConfigureAwait(false);
user.ConcurrencyStamp = input.ConcurrencyStamp;
(await UserManager.SetUserNameAsync(user, input.UserName)).CheckErrors();
(await UserManager.SetUserNameAsync(user, input.UserName).ConfigureAwait(false)).CheckErrors();
await UpdateAsync(user, input);
await UpdateAsync(user, input).ConfigureAwait(false);
input.MapExtraPropertiesTo(user);
(await UserManager.UpdateAsync(user)).CheckErrors();
(await UserManager.UpdateAsync(user).ConfigureAwait(false)).CheckErrors();
if (!input.Password.IsNullOrEmpty())
{
(await UserManager.RemovePasswordAsync(user)).CheckErrors();
(await UserManager.AddPasswordAsync(user, input.Password)).CheckErrors();
(await UserManager.RemovePasswordAsync(user).ConfigureAwait(false)).CheckErrors();
(await UserManager.AddPasswordAsync(user, input.Password).ConfigureAwait(false)).CheckErrors();
}
var dto = ObjectMapper.Map<IdentityUser, IdentityUserDto>(user);
await CurrentUnitOfWork.SaveChangesAsync();
await CurrentUnitOfWork.SaveChangesAsync().ConfigureAwait(false);
return dto;
}
@ -148,9 +148,9 @@ namespace BaseService.Systems.UserManagement
[HttpGet]
public async Task<PagedResultDto<IdentityUserDto>> GetAll(GetIdentityUsersInput input)
{
var totalCount = await UserRepository.GetCountAsync(input.Filter);
var totalCount = await UserRepository.GetCountAsync(input.Filter).ConfigureAwait(false);
var items = await UserRepository.GetListAsync(input.Sorting, input.MaxResultCount, input.SkipCount,
input.Filter);
input.Filter).ConfigureAwait(false);
var dtos = ObjectMapper.Map<List<IdentityUser>, List<IdentityUserDto>>(items);
@ -163,24 +163,24 @@ namespace BaseService.Systems.UserManagement
{
if (!string.Equals(user.Email, input.Email, StringComparison.InvariantCultureIgnoreCase))
{
(await UserManager.SetEmailAsync(user, input.Email)).CheckErrors();
(await UserManager.SetEmailAsync(user, input.Email).ConfigureAwait(false)).CheckErrors();
}
if (!string.Equals(user.PhoneNumber, input.PhoneNumber, StringComparison.InvariantCultureIgnoreCase))
{
(await UserManager.SetPhoneNumberAsync(user, input.PhoneNumber)).CheckErrors();
(await UserManager.SetPhoneNumberAsync(user, input.PhoneNumber).ConfigureAwait(false)).CheckErrors();
}
//说明:从3.1升级到3.3后,去掉了TwoFactorEnabled属性
//(await UserManager.SetTwoFactorEnabledAsync(user, input.TwoFactorEnabled)).CheckErrors();
(await UserManager.SetLockoutEnabledAsync(user, input.LockoutEnabled)).CheckErrors();
(await UserManager.SetLockoutEnabledAsync(user, input.LockoutEnabled).ConfigureAwait(false)).CheckErrors();
user.Name = input.Name;
user.Surname = input.Surname;
if (input.RoleNames != null)
{
(await UserManager.SetRolesAsync(user, input.RoleNames)).CheckErrors();
(await UserManager.SetRolesAsync(user, input.RoleNames).ConfigureAwait(false)).CheckErrors();
}
}
@ -195,7 +195,7 @@ namespace BaseService.Systems.UserManagement
{
var branchList = new List<BranchRoleDto>();
//获取用户的所有分支
var branchRoles = await GetUserBranchRolesAsync(CurrentUsers.GetId());
var branchRoles = await GetUserBranchRolesAsync(CurrentUsers.GetId()).ConfigureAwait(false);
var groupBranchRoles = branchRoles.GroupBy(x => x.BranchId)
.Select(y => new { xx = new { BranchId = y.Key }, items = y });
foreach (var group in groupBranchRoles
@ -204,7 +204,7 @@ namespace BaseService.Systems.UserManagement
var mybranchrole = new BranchRoleDto
{
BranchId = @group.xx.BranchId,
BranchName = (await _branchRepository.GetListAsync())
BranchName = (await _branchRepository.GetListAsync().ConfigureAwait(false))
.FirstOrDefault(_ => _.Id == @group.xx.BranchId)?.Name
};
branchList.Add(mybranchrole);
@ -224,7 +224,7 @@ namespace BaseService.Systems.UserManagement
{
var branchList = new List<BranchRoleDto>();
//获取用户的所有分支
var branchRoles = await GetUserBranchRolesAsync(userId);
var branchRoles = await GetUserBranchRolesAsync(userId).ConfigureAwait(false);
var groupBranchRoles = branchRoles.GroupBy(x => x.BranchId)
.Select(y => new { xx = new { BranchId = y.Key }, items = y });
foreach (var group in groupBranchRoles)
@ -232,7 +232,7 @@ namespace BaseService.Systems.UserManagement
var mybranchrole = new BranchRoleDto
{
BranchId = @group.xx.BranchId,
BranchName = (await _branchRepository.GetListAsync())
BranchName = (await _branchRepository.GetListAsync().ConfigureAwait(false))
.FirstOrDefault(_ => _.Id == @group.xx.BranchId)
.Name
};
@ -252,12 +252,12 @@ namespace BaseService.Systems.UserManagement
{
// var userRoleNames = (await AppService.GetRolesAsync(id)).Items.Select(r => r.Name).ToList();
var listPermiss = new List<PermissionGrant>();
var listRolesName = await UserRepository.GetRoleNamesAsync(userId);
var listRolesName = await UserRepository.GetRoleNamesAsync(userId).ConfigureAwait(false);
if (listRolesName != null)
{
foreach (var rolename in listRolesName)
{
var permissionGrantsInRole = await PermissionGrantRepository.GetListAsync(RolePermissionValueProvider.ProviderName, rolename);
var permissionGrantsInRole = await PermissionGrantRepository.GetListAsync(RolePermissionValueProvider.ProviderName, rolename).ConfigureAwait(false);
if (permissionGrantsInRole != null)
{
foreach (var permiss in permissionGrantsInRole)
@ -279,7 +279,7 @@ namespace BaseService.Systems.UserManagement
{
var branchList = new List<BranchRole>();
//获取当前用户的所有角色
var userRoles = await UserRepository.GetRolesAsync(userId);
var userRoles = await UserRepository.GetRolesAsync(userId).ConfigureAwait(false);
if (userRoles == null)
{
throw new BusinessException("当前登录用户没有任何角色信息,请找管理员进行维护!");
@ -287,7 +287,7 @@ namespace BaseService.Systems.UserManagement
else
{
//获取所有分支-角色的信息
var allBranchRoles = await _branchRoleRepository.GetListAsync();
var allBranchRoles = await _branchRoleRepository.GetListAsync().ConfigureAwait(false);
if (allBranchRoles != null)
{
foreach (var role in userRoles)
@ -296,7 +296,10 @@ namespace BaseService.Systems.UserManagement
foreach (var branch in branchRoles)
{
if (branch == null)
{
continue; //该用户没有角色-分支信息
}
var branchRole = new BranchRole(branch.BranchId, role.Id);
branchList.Add(branchRole);
}
@ -322,7 +325,7 @@ namespace BaseService.Systems.UserManagement
public async Task<ApplicationAuthes> GetAuthConfigAsync(Guid branchId)
{
var authConfig = new ApplicationAuthes();
var policyNames = await _abpAuthorizationPolicyProvider.GetPoliciesNamesAsync();
var policyNames = await _abpAuthorizationPolicyProvider.GetPoliciesNamesAsync().ConfigureAwait(false);
foreach (var policyName in policyNames)
{
authConfig.Policies[policyName] = true;
@ -335,9 +338,9 @@ namespace BaseService.Systems.UserManagement
var userId = CurrentUsers.GetId();
//获取当前用户的所有权限信息
var getUserPermissions = await GetUserGrantedPermissionsAsync(userId);
var getUserPermissions = await GetUserGrantedPermissionsAsync(userId).ConfigureAwait(false);
//获取当前用户的所有分支
var gerUserBranches = await GetUserBranchRolesAsync(userId);
var gerUserBranches = await GetUserBranchRolesAsync(userId).ConfigureAwait(false);
if (gerUserBranches == null)
{
throw new BusinessException("当前登录用户没有任何分支信息,请找管理员进行维护!");
@ -395,13 +398,13 @@ namespace BaseService.Systems.UserManagement
[Authorize(IdentityPermissions.Users.Update)]
public async Task<IdentityUserDto> ResetPasswordAsync(Guid userId)
{
var user = await UserManager.FindByIdAsync(userId.ToString());
var user = await UserManager.FindByIdAsync(userId.ToString()).ConfigureAwait(false);
//string token = await UserManager.GeneratePasswordResetTokenAsync(user);//err:No IUserTwoFactorTokenProvider<TUser> named 'Default' is registered.
//await UserManager.ResetPasswordAsync(user, token, "1q2w3E*");
await UserManager.RemovePasswordAsync(user);
await UserManager.RemovePasswordAsync(user).ConfigureAwait(false);
if (user.PasswordHash == null)
{
(await UserManager.AddPasswordAsync(user, "123456")).CheckErrors();
(await UserManager.AddPasswordAsync(user, "123456").ConfigureAwait(false)).CheckErrors();
}
var dto = ObjectMapper.Map<IdentityUser, IdentityUserDto>(user);

62
code/src/Modules/BaseService/BaseService.Application/UserManagement/UserBranchAppService.cs

@ -8,7 +8,6 @@ using BaseService.BaseData.Permissions.Dto;
using BaseService.BaseData.UserBranchRoleManagement;
using BaseService.BaseData.UserBranchRoleManagement.Dto;
using BaseService.Permissions;
using BaseService.RelationData.Dto;
using BaseService.Systems.UserManagement;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
@ -79,7 +78,7 @@ namespace BaseService.UserManagement
//[Authorize(BaseServicePermissions.UserBranch.Create)]
public virtual async Task CreateUpdateAsync(CreateOrUpdateUserBranchDto input)
{
var userBranch = await _repository.FirstOrDefaultAsync(_ => _.UserId == input.UserId && _.BranchId == input.BranchId);
var userBranch = await _repository.FirstOrDefaultAsync(_ => _.UserId == input.UserId && _.BranchId == input.BranchId).ConfigureAwait(false);
if (userBranch == null)
{
//执行添加操作
@ -93,7 +92,7 @@ namespace BaseService.UserManagement
{
createUserBranch.AddRole(role.RoleId);
}
await _repository.InsertAsync(createUserBranch);
await _repository.InsertAsync(createUserBranch).ConfigureAwait(false);
ObjectMapper.Map<UserBranch, UserBranchDto>(createUserBranch);
}
else
@ -121,17 +120,16 @@ namespace BaseService.UserManagement
}
if (input.Roles == null || input.Roles.Count == 0)
{
await _repository.UpdateAsync(userBranch);
await _repository.UpdateAsync(userBranch).ConfigureAwait(false);
}
else
{
await _repository.UpdateAsync(userBranch, true);
await _repository.UpdateAsync(userBranch, true).ConfigureAwait(false);
}
ObjectMapper.Map<UserBranch, UserBranchDto>(userBranch);
}
}
//public virtual async Task<UserBranchDto> CreateAsync(CreateOrUpdateUserBranchDto input)
//{
// var exist = await _repository.FirstOrDefaultAsync(_ => _.UserId == input.UserId && _.BranchId == input.BranchId);
@ -162,7 +160,7 @@ namespace BaseService.UserManagement
[Authorize(BaseServicePermissions.UserBranch.Delete)]
public virtual async Task DeleteUnitAsync(Guid userId, Guid branchId)
{
await _repository.DeleteAsync(p => p.UserId == userId && p.BranchId == branchId);
await _repository.DeleteAsync(p => p.UserId == userId && p.BranchId == branchId).ConfigureAwait(false);
}
/// <summary>
@ -175,10 +173,9 @@ namespace BaseService.UserManagement
[Authorize(BaseServicePermissions.UserBranch.Delete)]
public virtual async Task DeleteUnitAsync(Guid userId)
{
await _repository.DeleteAsync(p => p.UserId == userId);
await _repository.DeleteAsync(p => p.UserId == userId).ConfigureAwait(false);
}
/// <summary>
/// 批量删除
/// </summary>
@ -191,7 +188,7 @@ namespace BaseService.UserManagement
{
foreach (var id in ids)
{
await _repository.DeleteAsync(_ => _.Id == id);
await _repository.DeleteAsync(_ => _.Id == id).ConfigureAwait(false);
}
}
@ -206,7 +203,7 @@ namespace BaseService.UserManagement
[Authorize(BaseServicePermissions.UserBranch.Update)]
public virtual async Task<UserBranchDto> UpdateAsync(Guid id, CreateOrUpdateUserBranchDto input)
{
var userBranch = await _repository.FirstOrDefaultAsync(_ => _.UserId == input.UserId && _.BranchId == input.BranchId);
var userBranch = await _repository.FirstOrDefaultAsync(_ => _.UserId == input.UserId && _.BranchId == input.BranchId).ConfigureAwait(false);
userBranch.UserId = input.UserId;
userBranch.BranchId = input.BranchId;
//修改角色信息
@ -229,8 +226,6 @@ namespace BaseService.UserManagement
return ObjectMapper.Map<UserBranch, UserBranchDto>(userBranch);
}
/// <summary>
/// 查单条数据
/// </summary>
@ -240,7 +235,7 @@ namespace BaseService.UserManagement
[Route("{id}")]
public virtual async Task<UserBranchDto> GetAsync(Guid id)
{
var result = await _repository.GetAsync(id);
var result = await _repository.GetAsync(id).ConfigureAwait(false);
return ObjectMapper.Map<UserBranch, UserBranchDto>(result);
}
@ -258,8 +253,8 @@ namespace BaseService.UserManagement
var items = await query
.Skip(input.SkipCount)
.Take(input.MaxResultCount)
.ToListAsync();
var totalCount = await query.CountAsync();
.ToListAsync().ConfigureAwait(false);
var totalCount = await query.CountAsync().ConfigureAwait(false);
var dtos = ObjectMapper.Map<List<UserBranch>, List<UserBranchDto>>(items);
return new PagedResultDto<UserBranchDto>(totalCount, dtos);
@ -276,7 +271,7 @@ namespace BaseService.UserManagement
public virtual async Task<List<UserBranchDto>> GetUserBranchsAsync(Guid userId)
{
var dtos = new List<UserBranchDto>();
await GetBranchList(userId, dtos);
await GetBranchList(userId, dtos).ConfigureAwait(false);
return dtos;
}
@ -285,7 +280,7 @@ namespace BaseService.UserManagement
var userBranches = _repository.Where(_ => _.UserId == userId);
foreach (var query in userBranches)
{
var branch = await _branchAppService.GetAsync(query.BranchId);
var branch = await _branchAppService.GetAsync(query.BranchId).ConfigureAwait(false);
dtos.Add(new UserBranchDto()
{
BranchId = query.BranchId,
@ -294,7 +289,6 @@ namespace BaseService.UserManagement
}
}
/// <summary>
/// 分支列表(当前登录用户)
/// </summary>
@ -305,7 +299,7 @@ namespace BaseService.UserManagement
public virtual async Task<List<UserBranchDto>> GetCurrentUserBranchesAsync()
{
var dtos = new List<UserBranchDto>();
await GetBranchList(CurrentUser.GetId(), dtos);
await GetBranchList(CurrentUser.GetId(), dtos).ConfigureAwait(false);
return dtos;
}
@ -324,12 +318,11 @@ namespace BaseService.UserManagement
{
throw new BusinessException("当前登录用户不存在!");
}
var branch = await _branchAppService.GetAsync(userBranche.BranchId);
var branch = await _branchAppService.GetAsync(userBranche.BranchId).ConfigureAwait(false);
dto.BranchId = branch.Id;
return dto;
}
/// <summary>
/// 获取当前登录用户所在组织的所有权限信息
/// </summary>
@ -341,7 +334,7 @@ namespace BaseService.UserManagement
public virtual async Task<ApplicationAuthes> GetAuthConfigAsync(Guid branchId)
{
var authConfig = new ApplicationAuthes();
var policyNames = await _abpAuthorizationPolicyProvider.GetPoliciesNamesAsync();
var policyNames = await _abpAuthorizationPolicyProvider.GetPoliciesNamesAsync().ConfigureAwait(false);
foreach (var policyName in policyNames)
{
authConfig.Policies[policyName] = true;
@ -349,13 +342,13 @@ namespace BaseService.UserManagement
var userId = CurrentUser.GetId();
//获取当前用户的所有权限信息
var grantedPermuissions = await GetUserGrantedPermissionsAsync(userId, branchId);
var grantedPermuissions = await GetUserGrantedPermissionsAsync(userId, branchId).ConfigureAwait(false);
if (grantedPermuissions == null || grantedPermuissions.Count == 0)
{
throw new BusinessException("当前登录用户没有任何权限信息,请找管理员进行维护!");
}
//获取当前用户所在组织的所有角色名
var userRoleName = await GetUserRoleNamesAsync(userId, branchId);
var userRoleName = await GetUserRoleNamesAsync(userId, branchId).ConfigureAwait(false);
if (userRoleName == null)
{
throw new BusinessException("当前登录用户没有任何组织信息,请找管理员进行维护!");
@ -368,7 +361,10 @@ namespace BaseService.UserManagement
{
//GrantedPolicies的key键不能相同
if (authConfig.GrantedPolicies.ContainsKey(permission.Name))
{
continue;
}
authConfig.GrantedPolicies.Add(permission.Name, true);
}
}
@ -380,15 +376,15 @@ namespace BaseService.UserManagement
/// </summary>
/// <param name="userId"></param>
/// <returns></returns>
protected virtual async Task<List<PermissionGrant>> GetUserGrantedPermissionsAsync(Guid userId,Guid branchId)
protected virtual async Task<List<PermissionGrant>> GetUserGrantedPermissionsAsync(Guid userId, Guid branchId)
{
var permissionGrants = new List<PermissionGrant>();
var listRolesName = await GetUserRoleNamesAsync(userId, branchId);
var listRolesName = await GetUserRoleNamesAsync(userId, branchId).ConfigureAwait(false);
if (listRolesName != null)
{
foreach (var rolename in listRolesName)
{
var permissionGrantsInRole = await PermissionGrantRepository.GetListAsync(RolePermissionValueProvider.ProviderName, rolename);
var permissionGrantsInRole = await PermissionGrantRepository.GetListAsync(RolePermissionValueProvider.ProviderName, rolename).ConfigureAwait(false);
if (permissionGrantsInRole != null)
{
foreach (var permiss in permissionGrantsInRole)
@ -408,10 +404,10 @@ namespace BaseService.UserManagement
/// <returns></returns>
protected virtual async Task<List<string>> GetUserRoleNamesAsync(Guid userId, Guid branchId)
{
var userBranch = await _repository.GetAsync(_ => _.UserId == userId && _.BranchId == branchId);
var userBranch = await _repository.GetAsync(_ => _.UserId == userId && _.BranchId == branchId).ConfigureAwait(false);
var userRoles = userBranch.Roles.ToList();
//var userRoles = await GetUserRolesAsync(userId, branchId);
var roles = await IdentityRoleRepository.GetListAsync();
var roles = await IdentityRoleRepository.GetListAsync().ConfigureAwait(false);
return userRoles.Select(role => roles.FirstOrDefault(p => p.Id == role.RoleId)?.Name)
.Where(roleName => !string.IsNullOrWhiteSpace(roleName)).ToList();
}
@ -423,15 +419,15 @@ namespace BaseService.UserManagement
/// <returns></returns>
[HttpGet]
[Route("userRoles/{userId}/{branchId}")]
public virtual async Task<List<UserBranchRole>> GetUserRolesAsync(Guid userId,Guid branchId)
public virtual async Task<List<UserBranchRole>> GetUserRolesAsync(Guid userId, Guid branchId)
{
var roleList = new List<UserBranchRole>();
var isInRole = _repository.FirstOrDefault(_ => _.UserId == userId && _.BranchId == branchId);
if (isInRole != null)
{
var userBranch = await _repository.GetAsync(_ => _.UserId == userId && _.BranchId == branchId);
var userBranch = await _repository.GetAsync(_ => _.UserId == userId && _.BranchId == branchId).ConfigureAwait(false);
var roles = userBranch.Roles.ToList();
foreach(var role in roles)
foreach (var role in roles)
{
roleList.Add(new UserBranchRole() { RoleId = role.RoleId });
}

5
code/src/Modules/BaseService/BaseService.Domain/BaseData/Branch.cs

@ -1,12 +1,11 @@
using BaseService.RelationBaseData;
using JetBrains.Annotations;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using BaseService.RelationBaseData;
using JetBrains.Annotations;
using Volo.Abp;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
namespace BaseService.BaseData
{

8
code/src/Modules/BaseService/BaseService.Domain/BaseData/UserBranch.cs

@ -1,14 +1,9 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
namespace BaseService.BaseData
{
@ -48,7 +43,6 @@ namespace BaseService.BaseData
public virtual ICollection<UserBranchRole> Roles { get; set; }
public UserBranch(Guid id, Guid userId, Guid branchId) : base(id)
{
UserId = userId;

11
code/src/Modules/BaseService/BaseService.Domain/BaseData/UserBranchRole.cs

@ -1,13 +1,6 @@
using System;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Volo.Abp;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.Domain.Values;
using Volo.Abp.Identity;
using Volo.Abp.MultiTenancy;
namespace BaseService.BaseData
{
@ -21,8 +14,6 @@ namespace BaseService.BaseData
/// </summary>
public Guid RoleId { get; set; }
public UserBranchRole()
{

2
code/src/Modules/BaseService/BaseService.Domain/BaseServiceConsts.cs

@ -1,4 +1,4 @@
namespace BaseService
namespace BaseService
{
public static class BaseServiceConsts
{

2
code/src/Modules/BaseService/BaseService.Domain/BaseServiceDomainModule.cs

@ -1,4 +1,4 @@
using BaseService.Localization;
using BaseService.Localization;
using Volo.Abp.Localization;
using Volo.Abp.Modularity;
using Volo.Abp.PermissionManagement.Identity;

2
code/src/Modules/BaseService/BaseService.Domain/BaseServiceModuleExtensionConfigurator.cs

@ -1,4 +1,4 @@
using Volo.Abp.Threading;
using Volo.Abp.Threading;
namespace BaseService
{

2
code/src/Modules/BaseService/BaseService.Domain/Localization/BaseServiceResource.cs

@ -1,4 +1,4 @@
using Volo.Abp.Localization;
using Volo.Abp.Localization;
namespace BaseService.Localization
{

6
code/src/Modules/BaseService/BaseService.Domain/RelationBaseData/BranchRole.cs

@ -1,9 +1,5 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using System;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
namespace BaseService.RelationBaseData
{

3
code/src/Modules/BaseService/BaseService.Domain/Users/AppUser.cs

@ -1,4 +1,4 @@
using System;
using System;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.Users;
@ -32,7 +32,6 @@ namespace BaseService.Users
#endregion
//public Guid BranchId { get; set; }
//public bool Enable { get; set; }

6
code/src/Modules/BaseService/BaseService.EntityFrameworkCore/EntityFrameworkCore/BaseDbContextModelCreatingExtensions.cs

@ -1,4 +1,4 @@

using BaseService.BaseData;
using BaseService.RelationBaseData;
using Microsoft.EntityFrameworkCore;
@ -26,7 +26,6 @@ namespace BaseService.EntityFrameworkCore
b.HasIndex(q => q.Pid);
});
builder.Entity<UserBranch>(b =>
{
b.ToTable("base_user_branches");
@ -34,9 +33,6 @@ namespace BaseService.EntityFrameworkCore
b.OwnsMany(p => p.Roles).ToTable("base_user_branch_role");
});
//分支-角色
builder.Entity<BranchRole>(b =>
{

6
code/src/Modules/BaseService/BaseService.EntityFrameworkCore/EntityFrameworkCore/BaseEfCoreEntityExtensionMappings.cs

@ -1,15 +1,9 @@
using Microsoft.EntityFrameworkCore;
using System;
using Volo.Abp.Identity;
using Volo.Abp.ObjectExtending;
using Volo.Abp.Threading;
namespace BaseService.EntityFrameworkCore
{
public class BaseEfCoreEntityExtensionMappings
{
private static readonly OneTimeRunner OneTimeRunner = new OneTimeRunner();
public static void Configure()
{
BaseServiceModuleExtensionConfigurator.Configure();

7
code/src/Modules/BaseService/BaseService.EntityFrameworkCore/EntityFrameworkCore/BaseServiceDbContext.cs

@ -1,13 +1,9 @@

using BaseService.BaseData;
using BaseService.RelationBaseData;
using BaseService.Users;
using Microsoft.EntityFrameworkCore;
using Volo.Abp.Data;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore.Modeling;
using Volo.Abp.Identity;
using Volo.Abp.Users.EntityFrameworkCore;
namespace BaseService.EntityFrameworkCore
{
@ -42,7 +38,6 @@ namespace BaseService.EntityFrameworkCore
{
base.OnModelCreating(builder);
//builder.Entity<AppUser>(b =>
//{
// b.ToTable(AbpIdentityDbProperties.DbTablePrefix + "Users"); //Sharing the same table "AbpUsers" with the IdentityUser

2
code/src/Modules/BaseService/BaseService.EntityFrameworkCore/EntityFrameworkCore/BaseServiceEntityFrameworkCoreModule.cs

@ -1,4 +1,4 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore.SqlServer;
using Volo.Abp.Identity.EntityFrameworkCore;

2
code/src/Modules/BaseService/BaseService.EntityFrameworkCore/Migrations/20230822033456_202308220001.cs

@ -1,4 +1,4 @@
using System;
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace BaseService.Migrations

2
code/src/Modules/BaseService/BaseService.EntityFrameworkCore/Migrations/20230822034321_2023082200001.cs

@ -1,4 +1,4 @@
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Migrations;
namespace BaseService.Migrations
{

2
code/src/Modules/BaseService/BaseService.HttpApi/BaseData/OrganizationController.cs

@ -1 +1 @@


2
code/src/Modules/BaseService/BaseService.HttpApi/BaseData/UserBranchRoleController.cs

@ -1,4 +1,4 @@
//using BaseService.Controllers;
//using BaseService.Controllers;
//using Microsoft.AspNetCore.Mvc;
//using System;
//using System.Collections.Generic;

2
code/src/Modules/BaseService/BaseService.HttpApi/BaseServiceHttpApiModule.cs

@ -1,4 +1,4 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.AspNetCore.Mvc;
using Volo.Abp.Modularity;

2
code/src/Modules/BaseService/BaseService.HttpApi/Controllers/BaseServiceController.cs

@ -1,4 +1,4 @@
using BaseService.Localization;
using BaseService.Localization;
using Volo.Abp.AspNetCore.Mvc;
namespace BaseService.Controllers

2
code/src/Modules/BaseService/BaseService.HttpApi/Systems/UserController.cs

@ -1,4 +1,4 @@
//using BaseService.Controllers;
//using BaseService.Controllers;
//using BaseService.Systems.UserManagement;
//using Microsoft.AspNetCore.Mvc;
//using System;

5
code/src/Modules/SettleAccount/common.props

@ -5,9 +5,4 @@
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn>
<AbpProjectType>module</AbpProjectType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="SourceLink.Create.CommandLine" Version="2.8.3" PrivateAssets="All" />
</ItemGroup>
</Project>

69
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/AuthServer/AuthServerDataSeeder.cs

@ -1,7 +1,6 @@
using IdentityServer4.Models;
using System.Collections.Generic;
using System.Linq;
using System.Collections.Generic;
using System.Threading.Tasks;
using IdentityServer4.Models;
using Volo.Abp.Authorization.Permissions;
using Volo.Abp.Data;
using Volo.Abp.DependencyInjection;
@ -47,22 +46,22 @@ namespace AuthServer.Host
[UnitOfWork]
public virtual async Task SeedAsync(DataSeedContext context)
{
await _identityResourceDataSeeder.CreateStandardResourcesAsync();
await CreateApiResourcesAsync();
await CreateApiScopesAsync();
await CreateClientsAsync();
await _identityResourceDataSeeder.CreateStandardResourcesAsync().ConfigureAwait(false);
await CreateApiResourcesAsync().ConfigureAwait(false);
await CreateApiScopesAsync().ConfigureAwait(false);
await CreateClientsAsync().ConfigureAwait(false);
}
private async Task CreateApiScopesAsync()
{
await CreateApiScopeAsync("BaseService");
await CreateApiScopeAsync("InternalGateway");
await CreateApiScopeAsync("WebAppGateway");
await CreateApiScopeAsync("TenantService");
await CreateApiScopeAsync("BusinessService");
await CreateApiScopeAsync("FileStorageService");
await CreateApiScopeAsync("IdentityService");
await CreateApiScopeAsync("SettleAccount");
await CreateApiScopeAsync("BaseService").ConfigureAwait(false);
await CreateApiScopeAsync("InternalGateway").ConfigureAwait(false);
await CreateApiScopeAsync("WebAppGateway").ConfigureAwait(false);
await CreateApiScopeAsync("TenantService").ConfigureAwait(false);
await CreateApiScopeAsync("BusinessService").ConfigureAwait(false);
await CreateApiScopeAsync("FileStorageService").ConfigureAwait(false);
await CreateApiScopeAsync("IdentityService").ConfigureAwait(false);
await CreateApiScopeAsync("SettleAccount").ConfigureAwait(false);
}
private async Task CreateApiResourcesAsync()
@ -77,19 +76,19 @@ namespace AuthServer.Host
"phone_number_verified",
"role"
};
await CreateApiResourceAsync("IdentityService", commonApiUserClaims);
await CreateApiResourceAsync("BaseService", commonApiUserClaims);
await CreateApiResourceAsync("InternalGateway", commonApiUserClaims);
await CreateApiResourceAsync("WebAppGateway", commonApiUserClaims);
await CreateApiResourceAsync("TenantService", commonApiUserClaims);
await CreateApiResourceAsync("BusinessService", commonApiUserClaims);
await CreateApiResourceAsync("FileStorageService", commonApiUserClaims);
await CreateApiResourceAsync("SettleAccount", commonApiUserClaims);
await CreateApiResourceAsync("IdentityService", commonApiUserClaims).ConfigureAwait(false);
await CreateApiResourceAsync("BaseService", commonApiUserClaims).ConfigureAwait(false);
await CreateApiResourceAsync("InternalGateway", commonApiUserClaims).ConfigureAwait(false);
await CreateApiResourceAsync("WebAppGateway", commonApiUserClaims).ConfigureAwait(false);
await CreateApiResourceAsync("TenantService", commonApiUserClaims).ConfigureAwait(false);
await CreateApiResourceAsync("BusinessService", commonApiUserClaims).ConfigureAwait(false);
await CreateApiResourceAsync("FileStorageService", commonApiUserClaims).ConfigureAwait(false);
await CreateApiResourceAsync("SettleAccount", commonApiUserClaims).ConfigureAwait(false);
}
private async Task<ApiResource> CreateApiResourceAsync(string name, IEnumerable<string> claims)
{
var apiResource = await _apiResourceRepository.FindByNameAsync(name);
var apiResource = await _apiResourceRepository.FindByNameAsync(name).ConfigureAwait(false);
if (apiResource == null)
{
apiResource = await _apiResourceRepository.InsertAsync(
@ -99,7 +98,7 @@ namespace AuthServer.Host
name + " API"
),
autoSave: true
);
).ConfigureAwait(false);
}
foreach (var claim in claims)
@ -110,12 +109,12 @@ namespace AuthServer.Host
}
}
return await _apiResourceRepository.UpdateAsync(apiResource);
return await _apiResourceRepository.UpdateAsync(apiResource).ConfigureAwait(false);
}
private async Task<ApiScope> CreateApiScopeAsync(string name)
{
var apiScope = await _apiScopeRepository.GetByNameAsync(name);
var apiScope = await _apiScopeRepository.GetByNameAsync(name).ConfigureAwait(false);
if (apiScope == null)
{
apiScope = await _apiScopeRepository.InsertAsync(
@ -125,7 +124,7 @@ namespace AuthServer.Host
name + " API"
),
autoSave: true
);
).ConfigureAwait(false);
}
return apiScope;
@ -150,7 +149,7 @@ namespace AuthServer.Host
new[] { "IdentityService", "BaseService", "WebAppGateway", "FileStorageService", "TenantService", "BusinessService", "SettleAccount" },
new[] { "password" },
"1q2w3e*".Sha256()
);
).ConfigureAwait(false);
//BaseDataService
await CreateClientAsync(
@ -159,7 +158,7 @@ namespace AuthServer.Host
new[] { "client_credentials" },
"1q2w3e*".Sha256(),
permissions: new[] { IdentityPermissions.Users.Default }
);
).ConfigureAwait(false);
//FileStorge
await CreateClientAsync(
"file-app",
@ -167,7 +166,7 @@ namespace AuthServer.Host
new[] { "client_credentials" },
"1q2w3e*".Sha256(),
permissions: new[] { IdentityPermissions.Users.Default }
);
).ConfigureAwait(false);
}
private async Task<Client> CreateClientAsync(
@ -179,7 +178,7 @@ namespace AuthServer.Host
string postLogoutRedirectUri = null,
IEnumerable<string> permissions = null)
{
var client = await _clientRepository.FindByClientIdAsync(name);
var client = await _clientRepository.FindByClientIdAsync(name).ConfigureAwait(false);
if (client == null)
{
client = await _clientRepository.InsertAsync(
@ -200,7 +199,7 @@ namespace AuthServer.Host
RequireConsent = false
},
autoSave: true
);
).ConfigureAwait(false);
}
foreach (var scope in scopes)
@ -246,10 +245,10 @@ namespace AuthServer.Host
ClientPermissionValueProvider.ProviderName,
name,
permissions
);
).ConfigureAwait(false);
}
return await _clientRepository.UpdateAsync(client);
return await _clientRepository.UpdateAsync(client).ConfigureAwait(false);
}
}
}

7
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/AuthServer/AuthServerHostModule.cs

@ -1,11 +1,6 @@
using AuthServer.Host.EntityFrameworkCore;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.DataProtection;
using Microsoft.Extensions.DependencyInjection;
using StackExchange.Redis;
using System;
using System.Linq;
using Volo.Abp;
using Volo.Abp.Account;
using Volo.Abp.Account.Web;
@ -116,7 +111,7 @@ namespace AuthServer.Host
{
await scope.ServiceProvider
.GetRequiredService<IDataSeeder>()
.SeedAsync();
.SeedAsync().ConfigureAwait(false);
}
});
}

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/AuthServer/EntityFrameworkCore/AuthServerDbContext.cs

@ -1,4 +1,4 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.IdentityServer.EntityFrameworkCore;

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/AuthServer/EntityFrameworkCore/AuthServerDbContextFactory.cs

@ -1,4 +1,4 @@
using System.IO;
using System.IO;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
using Microsoft.Extensions.Configuration;

70
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/BaseServiceHostModule.cs

@ -1,17 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using BaseService.EntityFrameworkCore;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.DataProtection;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.OpenApi.Models;
using StackExchange.Redis;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using Volo.Abp;
using Volo.Abp.AspNetCore.MultiTenancy;
using Volo.Abp.AspNetCore.Mvc;
@ -112,28 +107,6 @@ namespace BaseService
});
}
private static void ConfigureCros(ServiceConfigurationContext context, IConfiguration configuration)
{
context.Services.AddCors(options =>
{
options.AddPolicy(DefaultCorsPolicyName, builder =>
{
builder
.WithOrigins(
configuration["App:CorsOrigins"]
.Split(",", StringSplitOptions.RemoveEmptyEntries)
.Select(o => o.RemovePostFix("/"))
.ToArray()
)
.WithAbpExposedHeaders()
.SetIsOriginAllowedToAllowWildcardSubdomains()
.AllowAnyHeader()
.AllowAnyMethod()
.AllowCredentials();
});
});
}
private void ConfigureAuditing()
{
Configure<AbpAuditingOptions>(options =>
@ -160,35 +133,6 @@ namespace BaseService
Configure<AbpDbContextOptions>(options => { options.UseSqlServer(); });
}
private static void ConfigureSwagger(ServiceConfigurationContext context)
{
context.Services.AddSwaggerGen(options =>
{
options.SwaggerDoc("v1", new OpenApiInfo { Title = "BaseService Service API", Version = "v1" });
options.DocInclusionPredicate((docName, description) => true);
options.CustomSchemaIds(type => type.FullName);
options.AddSecurityDefinition("Bearer", new OpenApiSecurityScheme
{
Description = "请输入 JWT Token",
Name = "Authorization",
In = ParameterLocation.Header,
Type = SecuritySchemeType.Http,
Scheme = "Bearer"
});
options.AddSecurityRequirement(new OpenApiSecurityRequirement()
{
{
new OpenApiSecurityScheme
{
Reference = new OpenApiReference {Type = ReferenceType.SecurityScheme, Id = "Bearer"}
},
new string[] { }
}
});
});
}
private static void ConfigureJwt(ServiceConfigurationContext context, IConfiguration configuration)
{
//context.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
@ -243,9 +187,9 @@ namespace BaseService
{ "email", AbpClaimTypes.Email },
{ "name", AbpClaimTypes.UserName },
};
var mapClaims = currentPrincipalAccessor.Principal.Claims.Where(p => map.Keys.Contains(p.Type)).ToList();
var mapClaims = currentPrincipalAccessor.Principal.Claims.Where(p => map.ContainsKey(p.Type)).ToList();
currentPrincipalAccessor.Principal.AddIdentity(new ClaimsIdentity(mapClaims.Select(p => new Claim(map[p.Type], p.Value, p.ValueType, p.Issuer))));
await next();
await next().ConfigureAwait(false);
});
app.UseAbpRequestLocalization();
@ -266,7 +210,7 @@ namespace BaseService
{
await scope.ServiceProvider
.GetRequiredService<IDataSeeder>()
.SeedAsync();
.SeedAsync().ConfigureAwait(false);
}
});
}

10
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Exception.cs

@ -1,14 +1,4 @@
using Microsoft.AspNetCore.Mvc.Filters;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.AspNetCore.Mvc.ExceptionHandling;
using Volo.Abp.Authorization;
using Volo.Abp.Validation;
namespace Win.Sfs.SettleAccount
{
}

7
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Program.cs

@ -4,10 +4,10 @@ using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Serilog;
namespace Win.Sfs.SettleAccount;
public class Program
namespace Win.Sfs.SettleAccount
{
public class Program
{
public static int Main(string[] args)
{
var configuration = new ConfigurationBuilder()
@ -56,4 +56,5 @@ public class Program
})
.UseAutofac()
.UseSerilog();
}
}

91
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/SettleAccountHttpApiHostModule.cs

@ -7,13 +7,11 @@ using BaseService;
using Hangfire;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.OpenApi.Models;
using Swashbuckle.AspNetCore.SwaggerUI;
@ -37,8 +35,6 @@ using Volo.Abp.MultiTenancy;
using Volo.Abp.PermissionManagement.EntityFrameworkCore;
using Volo.Abp.SettingManagement.EntityFrameworkCore;
using Volo.Abp.Threading;
using Volo.Abp.VirtualFileSystem;
using Win.Sfs.SettleAccount.ImportExcelCommon;
using Win.Sfs.Shared.Constant;
using Win.Utils;
@ -197,52 +193,6 @@ namespace Win.Sfs.SettleAccount
});
}
/// <summary>
/// 大众-存储二配实际输出表
/// </summary>
/// <param name="configPath"></param>
private void ConfigureBLOBSecSummaryServices(IConfiguration configPath)
{
Configure<AbpBlobStoringOptions>(options =>
{
options.Containers.Configure<SecSummaryFileConrainer>(configuration =>
{
configuration.UseFileSystem(fileSystem =>
{
var filestreampath = Environment.CurrentDirectory + @"\wwwroot\secsummary\files";
if (!Directory.Exists(filestreampath))
{
Directory.CreateDirectory(filestreampath);
}
fileSystem.BasePath = filestreampath;
});
});
});
}
/// <summary>
/// 奔腾-二配实际输出打印表的保存路径
/// </summary>
/// <param name="configPath"></param>
private void ConfigureBLOBTSecSummaryServices(IConfiguration configPath)
{
Configure<AbpBlobStoringOptions>(options =>
{
options.Containers.Configure<SecBTSummaryFileConrainer>(configuration =>
{
configuration.UseFileSystem(fileSystem =>
{
var filestreampath = Environment.CurrentDirectory + @"\wwwroot\btsecsummary\files";
if (!Directory.Exists(filestreampath))
{
Directory.CreateDirectory(filestreampath);
}
fileSystem.BasePath = filestreampath;
});
});
});
}
private static void ConfigureJson(ServiceConfigurationContext context)
{
//null: DTO的属性首字母保持大写
@ -299,21 +249,6 @@ namespace Win.Sfs.SettleAccount
});
}
private void ConfigureVirtualFileSystem(ServiceConfigurationContext context)
{
var hostingEnvironment = context.Services.GetHostingEnvironment();
if (hostingEnvironment.IsDevelopment())
{
Configure<AbpVirtualFileSystemOptions>(options =>
{
options.FileSets.ReplaceEmbeddedByPhysical<SettleAccountDomainModule>(Path.Combine(hostingEnvironment.ContentRootPath, $"..{Path.DirectorySeparatorChar}SettleAccount.Domain"));
options.FileSets.ReplaceEmbeddedByPhysical<SettleAccountApplicationContractsModule>(Path.Combine(hostingEnvironment.ContentRootPath, $"..{Path.DirectorySeparatorChar}SettleAccount.Application.Contracts"));
options.FileSets.ReplaceEmbeddedByPhysical<SettleAccountApplicationModule>(Path.Combine(hostingEnvironment.ContentRootPath, $"..{Path.DirectorySeparatorChar}SettleAccount.Application"));
});
}
}
private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration)
{
var isAlwaysAllowAuthorization = configuration.GetValue<bool>("AuthServer:AlwaysAllowAuthorization");
@ -381,7 +316,7 @@ namespace Win.Sfs.SettleAccount
{
Reference = new OpenApiReference {Type = ReferenceType.SecurityScheme, Id = "Bearer"}
},
new string[] { }
Array.Empty<string>()
}
});
});
@ -427,28 +362,6 @@ namespace Win.Sfs.SettleAccount
});
}
private void ConfigureCors(ServiceConfigurationContext context, IConfiguration configuration)
{
context.Services.AddCors(options =>
{
options.AddPolicy(DefaultCorsPolicyName, builder =>
{
builder
.WithOrigins(
configuration["App:CorsOrigins"]
.Split(",", StringSplitOptions.RemoveEmptyEntries)
.Select(o => o.RemovePostFix("/"))
.ToArray()
)
.WithAbpExposedHeaders()
.SetIsOriginAllowedToAllowWildcardSubdomains()
.AllowAnyHeader()
.AllowAnyMethod()
.AllowCredentials();
});
});
}
public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
var app = context.GetApplicationBuilder();
@ -482,7 +395,7 @@ namespace Win.Sfs.SettleAccount
{
await scope.ServiceProvider
.GetRequiredService<IDataSeeder>()
.SeedAsync();
.SeedAsync().ConfigureAwait(false);
}
});
}

7
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Startup.cs

@ -19,10 +19,10 @@ using Win.Sfs.SettleAccount.Entities.BQ;
using Win.Sfs.SettleAccount.Entities.BQ.Syncs;
using Win.Sfs.SettleAccount.ExcelImporter;
namespace Win.Sfs.SettleAccount;
public class Startup
namespace Win.Sfs.SettleAccount
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
@ -100,4 +100,5 @@ public class Startup
return Regex.Replace(str?.ToString(), "([a-z])([A-Z])", "$1-$2").ToLowerInvariant();
}
}
}
}

2
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Attributes/ExcelImporterHeadDescAttribute.cs

@ -1,4 +1,4 @@
using System;
using System;
namespace Win.Sfs.SettleAccount.Attributes
{

4
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Bases/RequestInputBase.cs

@ -1,11 +1,11 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Application.Dtos;
using Win.Sfs.Shared.Filter;
namespace Win.Sfs.SettleAccount.Bases
{
public class RequestInputBase: PagedAndSortedResultRequestDto
public class RequestInputBase : PagedAndSortedResultRequestDto
{
/// <summary>
/// 导出文件类型

13
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/BBAC_CAN_SA_DTO.cs

@ -1,13 +1,8 @@
using Magicodes.ExporterAndImporter.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Magicodes.ExporterAndImporter.Core;
using Volo.Abp.Application.Dtos;
using Win.Sfs.SettleAccount.Bases;
using Win.Sfs.Shared.Filter;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
{
@ -70,7 +65,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
[ExporterHeader(DisplayName = "SA号")]
public string ContractDocID { set; get; }
/// <summary>
/// 版本
/// </summary>
@ -92,7 +86,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
public class BBAC_CAN_SA_DETAIL_EXP_DTO
{
[ExporterHeader(DisplayName = "关联结算单号")] //全部业务都有显示
public string SettleBillNum { get; set; }
[ExporterHeader(DisplayName = "发票分组号")] //全部业务都显示 (默认)
@ -183,11 +176,9 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
public class BBAC_CAN_SA_DETAIL_REQ_DTO : RequestInputBase
{
//[Display(Name = "发票分组号")]
//public string BillNum { get; set; }
//[Display(Name = "LU")]
//public string LU { get; set; }
//[Display(Name = "生产码")]
@ -201,6 +192,4 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
}
}

14
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/BBAC_NOT_SA_DTO.cs

@ -1,13 +1,7 @@
using Magicodes.ExporterAndImporter.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Magicodes.ExporterAndImporter.Core;
using Volo.Abp.Application.Dtos;
using Win.Sfs.SettleAccount.Bases;
using Win.Sfs.Shared.Filter;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
{
@ -65,9 +59,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
/// </summary>
public string PartCode { get; set; }
}
public class BBAC_NOT_SA_DETAIL_EXP_DTO
{
@ -110,7 +101,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
[ExporterHeader(DisplayName = "物料描述")]
public string MaterialDesc { get; set; }
[ExporterHeader(DisplayName = "生产码")]
public string PN { get; set; }
public string KeyCode { get; set; }
@ -162,6 +152,4 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
}
}

12
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/BBAC_PD_DTO.cs

@ -1,10 +1,8 @@
using Magicodes.ExporterAndImporter.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Magicodes.ExporterAndImporter.Core;
using Volo.Abp.Application.Dtos;
using Win.Sfs.SettleAccount.Bases;
using Win.Sfs.Shared.Filter;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
{
@ -39,12 +37,9 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
[Display(Name = "地点")]
public string Site { get; set; }
[Display(Name="状态")]
[Display(Name = "状态")]
public EnumBillState State { set; get; }
}
public class BBAC_PD_EXP_DTO
{
@ -143,7 +138,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
/// </summary>
public string REPN { get; set; }
/// <summary>
/// 客户零件号
/// </summary>
@ -240,9 +234,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
/// </summary>
public string BillNum { get; set; }
}
}
}

77
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/BBAC_SA_DTO.cs

@ -1,19 +1,17 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using Magicodes.ExporterAndImporter.Core;
using Microsoft.AspNetCore.Http;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Domain.Entities.Auditing;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos;
/// <summary>
/// BBAC结算单
/// </summary>
public class BBAC_SA_DTO : EntityDto<Guid>
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
{
/// <summary>
/// BBAC结算单
/// </summary>
public class BBAC_SA_DTO : EntityDto<Guid>
{
/// <summary>
/// 期间
/// </summary>
@ -55,13 +53,13 @@ public class BBAC_SA_DTO : EntityDto<Guid>
/// </summary>
[Display(Name = "业务类型")]
public EnumBusinessType BusinessType { get; set; }
}
}
/// <summary>
/// BBAC结算明细
/// </summary>
public class BBAC_SA_DETAIL_DTO : AuditedAggregateRoot<Guid>
{
/// <summary>
/// BBAC结算明细
/// </summary>
public class BBAC_SA_DETAIL_DTO : AuditedAggregateRoot<Guid>
{
/// <summary>
/// 结算单
/// </summary>
@ -98,13 +96,13 @@ public class BBAC_SA_DETAIL_DTO : AuditedAggregateRoot<Guid>
/// 厂内物料号
/// </summary>
public string PartCode { get; set; }
}
}
/// <summary>
/// BBAC结算导入请求
/// </summary>
public class BBACSaImportRequestDto
{
/// <summary>
/// BBAC结算导入请求
/// </summary>
public class BBACSaImportRequestDto
{
/// <summary>
/// 文件
/// </summary>
@ -120,14 +118,14 @@ public class BBACSaImportRequestDto
[Display(Name = "地点")]
[Required(ErrorMessage = "{0}必须填写")]
public string Site { get; set; }
}
}
/// <summary>
/// BBAC结算明细导入
/// </summary>
[Importer(HeaderRowIndex = 3)]
public class BBAC_SA_DETAIL_IMPORT_DTO
{
/// <summary>
/// BBAC结算明细导入
/// </summary>
[Importer(HeaderRowIndex = 3)]
public class BBAC_SA_DETAIL_IMPORT_DTO
{
/// <summary>
/// 结算日期
/// </summary>
@ -175,26 +173,26 @@ public class BBAC_SA_DETAIL_IMPORT_DTO
[Display(Name = "Contract Doc ID")]
[ImporterHeader(Name = "Contract Doc ID")]
public string ContractDocID { get; set; }
}
}
/// <summary>
/// 结算明细导出请求
/// </summary>
public class BBAC_SA_DETAIL_EXPORT_REQUEST_DTO
{
/// <summary>
/// 结算明细导出请求
/// </summary>
public class BBAC_SA_DETAIL_EXPORT_REQUEST_DTO
{
/// <summary>
/// 结算单号
/// </summary>
[Display(Name = "结算单号")]
[Required(ErrorMessage = "{0}不能为空")]
public string BillNum { set; get; }
}
}
/// <summary>
/// 结算明细导出
/// </summary>
public class BBAC_SA_DETAIL_EXPORT_DTO
{
/// <summary>
/// 结算明细导出
/// </summary>
public class BBAC_SA_DETAIL_EXPORT_DTO
{
/// <summary>
/// 结算单号
/// </summary>
@ -236,4 +234,5 @@ public class BBAC_SA_DETAIL_EXPORT_DTO
[Display(Name = "结算分组")]
[ExporterHeader(DisplayName = "结算分组")]
public string GroupNum { get; set; }
}
}

27
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/BBAC_SE_DETAIL_DTO.cs

@ -1,17 +1,17 @@
using Magicodes.ExporterAndImporter.Core;
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Magicodes.ExporterAndImporter.Core;
using Volo.Abp.Application.Dtos;
using Win.Sfs.SettleAccount.Entities.BQ.Syncs;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos;
/// <summary>
/// BBAC发运
/// </summary>
public class BBAC_SE_DETAIL_DTO : EntityDto<Guid>
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
{
/// <summary>
/// BBAC发运
/// </summary>
public class BBAC_SE_DETAIL_DTO : EntityDto<Guid>
{
/// <summary>
/// 期间
/// </summary>
@ -245,13 +245,13 @@ public class BBAC_SE_DETAIL_DTO : EntityDto<Guid>
/// </summary>
[Display(Name = "是否有EDI数据")]
public bool IsHaveEdiData { get; set; }
}
}
/// <summary>
/// 导出
/// </summary>
public class BBAC_SE_DETAIL_EXPORT_DTO
{
/// <summary>
/// 导出
/// </summary>
public class BBAC_SE_DETAIL_EXPORT_DTO
{
/// <summary>
/// 发货单号
/// </summary>
@ -433,4 +433,5 @@ public class BBAC_SE_DETAIL_EXPORT_DTO
[Display(Name = "客户位置")]
[ExporterHeader(DisplayName = "客户位置")]
public string Position { get; set; }
}
}

7
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/BBAC_SE_EDI_DTO.cs

@ -1,6 +1,6 @@
using Magicodes.ExporterAndImporter.Core;
using System;
using System.ComponentModel.DataAnnotations;
using Magicodes.ExporterAndImporter.Core;
using Volo.Abp.Application.Dtos;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
@ -34,9 +34,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
[Display(Name = "生产码")]
public string PN { get; set; }
/// <summary>
/// 日顺序号
/// </summary>
@ -87,8 +84,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
[ExporterHeader(DisplayName = "期间")]
public int Version { get; set; }
[Display(Name = "原客户零件号")]
public string CustomerPartCodeNoSpace { set; get; }

13
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/EdiSeCompareRequestDto.cs

@ -1,13 +1,13 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos;
/// <summary>
/// Edi与发运对比请求Dto
/// </summary>
public class EdiSeCompareRequestDto
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
{
/// <summary>
/// Edi与发运对比请求Dto
/// </summary>
public class EdiSeCompareRequestDto
{
/// <summary>
/// 期间
/// </summary>
@ -38,4 +38,5 @@ public class EdiSeCompareRequestDto
/// 业务类型
/// </summary>
public EnumBusinessType BusinessType { get; set; }
}
}

20
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_CAN_SA_DTO.cs

@ -1,13 +1,8 @@
using Magicodes.ExporterAndImporter.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Magicodes.ExporterAndImporter.Core;
using Volo.Abp.Application.Dtos;
using Win.Sfs.SettleAccount.Bases;
using Win.Sfs.Shared.Filter;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
{
@ -95,21 +90,10 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
public decimal Amt { get; set; }
public string InvBillNum { get; set; }
public string PartCode { get; set; }
}
public class HBPO_CAN_SA_DETAIL_EXP_DTO
{
@ -214,6 +198,4 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
}
}

12
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_NOT_SA_DTO.cs

@ -1,13 +1,7 @@
using Magicodes.ExporterAndImporter.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Magicodes.ExporterAndImporter.Core;
using Volo.Abp.Application.Dtos;
using Win.Sfs.SettleAccount.Bases;
using Win.Sfs.Shared.Filter;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
{
@ -119,7 +113,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
[ExporterHeader(DisplayName = "厂内零件号")]
public string PartCode { get; set; }
}
public class HBPO_NOT_SA_DETAIL_REQ_DTO : RequestInputBase
{
@ -156,11 +149,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
//[Display(Name = "结算分组号")]
//public string GroupNum { get; set; }
//public string PartCode { get; set; }
}
}

7
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_PD_DTO.cs

@ -1,6 +1,6 @@
using Magicodes.ExporterAndImporter.Core;
using System;
using System.ComponentModel.DataAnnotations;
using Magicodes.ExporterAndImporter.Core;
using Volo.Abp.Application.Dtos;
using Win.Sfs.SettleAccount.Bases;
@ -35,8 +35,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
[Display(Name = "地点")]
public string Site { get; set; }
[Display(Name = "状态")]
public EnumBillState State { set; get; }
@ -215,7 +213,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
[ExporterHeader(DisplayName = "LU")]
public string LU { get; set; }
[ExporterHeader(DisplayName = "物料描述")]
public string MaterialDesc{ get; set; }
public string MaterialDesc { get; set; }
/// <summary>
/// 生产码
/// </summary>
@ -262,7 +260,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
/// </summary>
public string BillNum { get; set; }
}
}

85
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_SA_DTO.cs

@ -5,13 +5,13 @@ using Microsoft.AspNetCore.Http;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Domain.Entities.Auditing;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos;
/// <summary>
/// HBPO结算单
/// </summary>
public class HBPO_SA_DTO : EntityDto<Guid>
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
{
/// <summary>
/// HBPO结算单
/// </summary>
public class HBPO_SA_DTO : EntityDto<Guid>
{
/// <summary>
/// 期间
/// </summary>
@ -52,13 +52,13 @@ public class HBPO_SA_DTO : EntityDto<Guid>
/// </summary>
[Display(Name = "业务类型")]
public EnumBusinessType BusinessType { get; set; }
}
}
/// <summary>
/// HBPO结算明细
/// </summary>
public class HBPO_SA_DETAIL_DTO : AuditedAggregateRoot<Guid>
{
/// <summary>
/// HBPO结算明细
/// </summary>
public class HBPO_SA_DETAIL_DTO : AuditedAggregateRoot<Guid>
{
/// <summary>
/// 结算单
/// </summary>
@ -95,13 +95,13 @@ public class HBPO_SA_DETAIL_DTO : AuditedAggregateRoot<Guid>
/// 厂内物料号
/// </summary>
public string PartCode { get; set; }
}
}
/// <summary>
/// HBPO结算导入请求
/// </summary>
public class HBPOSaImportRequestDto
{
/// <summary>
/// HBPO结算导入请求
/// </summary>
public class HBPOSaImportRequestDto
{
/// <summary>
/// 文件
/// </summary>
@ -115,13 +115,13 @@ public class HBPOSaImportRequestDto
/// </summary>
[Display(Name = "期间")]
public int Version { get; set; }
}
}
/// <summary>
/// HBPO结算明细导入
/// </summary>
public class HBPO_SA_DETAIL_IMPORT_DTO
{
/// <summary>
/// HBPO结算明细导入
/// </summary>
public class HBPO_SA_DETAIL_IMPORT_DTO
{
/// <summary>
/// 结算日期
/// </summary>
@ -169,13 +169,13 @@ public class HBPO_SA_DETAIL_IMPORT_DTO
[Required(ErrorMessage = "{0}不能为空")]
[ImporterHeader(Name = "productionNumber")]
public string PN { get; set; }
}
}
/// <summary>
/// 买单件HBPO导入
/// </summary>
public class MaiDanJianHBPOImportDto
{
/// <summary>
/// 买单件HBPO导入
/// </summary>
public class MaiDanJianHBPOImportDto
{
/// <summary>
/// 结算日期
/// </summary>
@ -216,26 +216,26 @@ public class MaiDanJianHBPOImportDto
[ImporterHeader(Name = "地点")]
[Required(ErrorMessage = "{0}不能为空")]
public string Place { get; set; }
}
}
/// <summary>
/// 结算明细导出请求
/// </summary>
public class HBPO_SA_DETAIL_EXPORT_REQUEST_DTO
{
/// <summary>
/// 结算明细导出请求
/// </summary>
public class HBPO_SA_DETAIL_EXPORT_REQUEST_DTO
{
/// <summary>
/// 结算单号
/// </summary>
[Display(Name = "结算单号")]
[Required(ErrorMessage = "{0}不能为空")]
public string BillNum { set; get; }
}
}
/// <summary>
/// 结算明细导出
/// </summary>
public class HBPO_SA_DETAIL_EXPORT_DTO
{
/// <summary>
/// 结算明细导出
/// </summary>
public class HBPO_SA_DETAIL_EXPORT_DTO
{
/// <summary>
/// 结算单号
/// </summary>
@ -277,4 +277,5 @@ public class HBPO_SA_DETAIL_EXPORT_DTO
[Display(Name = "结算分组")]
[ExporterHeader(DisplayName = "结算分组")]
public string GroupNum { get; set; }
}
}

25
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_SE_DETAIL_DTO.cs

@ -5,13 +5,13 @@ using Magicodes.ExporterAndImporter.Core;
using Volo.Abp.Application.Dtos;
using Win.Sfs.SettleAccount.Entities.BQ.Syncs;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos;
/// <summary>
/// HBPO发运单
/// </summary>
public class HBPO_SE_DETAIL_DTO : EntityDto<Guid>
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
{
/// <summary>
/// HBPO发运单
/// </summary>
public class HBPO_SE_DETAIL_DTO : EntityDto<Guid>
{
/// <summary>
/// 期间
/// </summary>
@ -245,13 +245,13 @@ public class HBPO_SE_DETAIL_DTO : EntityDto<Guid>
/// </summary>
[Display(Name = "是否有EDI数据")]
public bool IsHaveEdiData { get; set; }
}
}
/// <summary>
/// 导出
/// </summary>
public class HBPO_SE_DETAIL_EXPORT_DTO
{
/// <summary>
/// 导出
/// </summary>
public class HBPO_SE_DETAIL_EXPORT_DTO
{
/// <summary>
/// 发货单号
/// </summary>
@ -433,4 +433,5 @@ public class HBPO_SE_DETAIL_EXPORT_DTO
[Display(Name = "客户位置")]
[ExporterHeader(DisplayName = "客户位置")]
public string Position { get; set; }
}
}

2
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_SE_EDI_DTO.cs

@ -1,6 +1,6 @@
using Magicodes.ExporterAndImporter.Core;
using System;
using System.ComponentModel.DataAnnotations;
using Magicodes.ExporterAndImporter.Core;
using Volo.Abp.Application.Dtos;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos

8
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/INVOICE_GRP_DTO.cs

@ -1,11 +1,7 @@
using Magicodes.ExporterAndImporter.Core;
using SettleAccount.Domain.BQ;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Magicodes.ExporterAndImporter.Core;
using Volo.Abp.Application.Dtos;
using Win.Sfs.SettleAccount.Bases;
using Win.Sfs.Shared.Constant;
@ -290,7 +286,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
}
public class JIT_UNSETTLED_DETAIL_DTO
{
[Display(Name ="结算分组号")]
[Display(Name = "结算分组号")]
public string GroupNum { set; get; }
[Display(Name = "零件号")]

43
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_ADJ_DETAIL_DTO.cs

@ -1,20 +1,13 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Magicodes.ExporterAndImporter.Core;
using Volo.Abp.Application.Dtos;
using Win.Sfs.SettleAccount.Bases;
using Win.Sfs.Shared.Filter;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos;
public class PUB_ADJ_DETAIL_DTO : EntityDto<Guid>
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
{
public class PUB_ADJ_DETAIL_DTO : EntityDto<Guid>
{
[Display(Name = "金税发票")]
public string RealInvBillNum { get; set; }
@ -50,11 +43,9 @@ public class PUB_ADJ_DETAIL_DTO : EntityDto<Guid>
[Display(Name = "价格")]
public decimal Price { get; set; }
}
public class PUB_ADJ_DETAIL_EXP_DTO
{
}
public class PUB_ADJ_DETAIL_EXP_DTO
{
/// <summary>
///发票号
/// </summary>
@ -77,12 +68,10 @@ public class PUB_ADJ_DETAIL_EXP_DTO
public string GroupNum { get; set; }
public string PartCode { get; set; }
}
}
public class PUB_ADJ_DETAIL_IMP_DTO
{
public class PUB_ADJ_DETAIL_IMP_DTO
{
/// <summary>
///发票号
/// </summary>
@ -103,12 +92,10 @@ public class PUB_ADJ_DETAIL_IMP_DTO
[ImporterHeader(Name = "结算分组号")]
public string GroupNum { get; set; }
}
}
public class PUB_ADJ_DETAIL_REQ_DTO : RequestInputBase
{
public class PUB_ADJ_DETAIL_REQ_DTO : RequestInputBase
{
/// <summary>
///发票号
@ -126,9 +113,5 @@ public class PUB_ADJ_DETAIL_REQ_DTO : RequestInputBase
[Display(Name = "结算分组号")]
public string GroupNum { get; set; }
}
}

33
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_CAN_SA_DTO.cs

@ -1,14 +1,8 @@
using Magicodes.ExporterAndImporter.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Magicodes.ExporterAndImporter.Core;
using Volo.Abp.Application.Dtos;
using Win.Sfs.SettleAccount.Bases;
using Win.Sfs.SettleAccount.Entities.Materials;
using Win.Sfs.Shared.Filter;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
{
@ -62,7 +56,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
[Display(Name = "发票分组号")]
public string InvGroupNum { get; set; }
}
public class PUB_CAN_SA_DETAIL_DTO : EntityDto<Guid>
{
@ -116,12 +109,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
[Display(Name = "行号")]
public int IndexNum { get; set; }
}
public class PUB_CAN_SA_DETAIL_EXP_DTO
{
@ -162,20 +151,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
[ExporterHeader(DisplayName = "物料描述")]
public string MaterialDesc { set; get; }
[ExporterHeader(DisplayName= "客户零件号")]
[ExporterHeader(DisplayName = "客户零件号")]
public string PartCode { get; set; }
}
public class PUB_CAN_SA_DETAIL_REQ_DTO : RequestInputBase
{
@ -210,16 +190,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
[Display(Name = "发货单号、交付单号")]
public string PN { get; set; }
}
}

22
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_NOT_SA_DTO.cs

@ -1,13 +1,7 @@
using Magicodes.ExporterAndImporter.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Win.Sfs.SettleAccount.Bases;
using Win.Sfs.Shared.Filter;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
{
@ -55,8 +49,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
}
public class PUB_NOT_SA_DETAIL_EXP_DTO
{
@ -103,12 +95,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
}
public class PUB_NOT_SA_DETAIL_REQ_DTO : RequestInputBase
{
@ -128,15 +114,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
//public string GroupNum { get; set; }
}
}

8
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_PD_DTO.cs

@ -1,6 +1,6 @@
using Magicodes.ExporterAndImporter.Core;
using System;
using System.ComponentModel.DataAnnotations;
using Magicodes.ExporterAndImporter.Core;
using Volo.Abp.Application.Dtos;
using Win.Sfs.SettleAccount.Bases;
@ -37,9 +37,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
[Display(Name = "业务类型")]
public EnumBusinessType BusinessType { get; set; }
[Display(Name = "状态")]
public EnumBillState State { set; get; }
@ -165,8 +162,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
}
public class PUB_PD_DETAIL_EXP_DTO
{
@ -264,7 +259,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
/// </summary>
public string BillNum { get; set; }
}
}

151
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_SA_DTO.cs

@ -5,13 +5,13 @@ using Microsoft.AspNetCore.Http;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Domain.Entities.Auditing;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos;
/// <summary>
/// PUB结算
/// </summary>
public class PUB_SA_DTO : EntityDto<Guid>
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
{
/// <summary>
/// PUB结算
/// </summary>
public class PUB_SA_DTO : EntityDto<Guid>
{
/// <summary>
/// 期间
/// </summary>
@ -37,24 +37,24 @@ public class PUB_SA_DTO : EntityDto<Guid>
/// </summary>
[Display(Name = "地点")]
public string Place { get; set; }
}
}
/// <summary>
/// 查询
/// </summary>
public class PUB_SARequestDto : RequestDto
{
/// <summary>
/// 查询
/// </summary>
public class PUB_SARequestDto : RequestDto
{
/// <summary>
/// 业务类别
/// </summary>
public EnumBusinessType BusinessType { get; set; }
}
}
/// <summary>
/// 导入请求
/// </summary>
public class PUB_SAImportRequestDto
{
/// <summary>
/// 导入请求
/// </summary>
public class PUB_SAImportRequestDto
{
/// <summary>
/// 文件
/// </summary>
@ -73,13 +73,13 @@ public class PUB_SAImportRequestDto
/// </summary>
[Display(Name = "地点")]
public string Site { get; set; }
}
}
/// <summary>
/// 直供件BBAC导入
/// </summary>
public class ZhiGongJianBBACImportDto
{
/// <summary>
/// 直供件BBAC导入
/// </summary>
public class ZhiGongJianBBACImportDto
{
/// <summary>
/// 结算日期
/// </summary>
@ -119,13 +119,13 @@ public class ZhiGongJianBBACImportDto
[Display(Name = "Vendor")]
[ImporterHeader(Name = "Vendor")]
public string Vendor { get; set; }
}
}
/// <summary>
/// 直供件HBPO导入
/// </summary>
public class ZhiGongJianHBPOImportDto
{
/// <summary>
/// 直供件HBPO导入
/// </summary>
public class ZhiGongJianHBPOImportDto
{
/// <summary>
/// 结算日期
/// </summary>
@ -166,13 +166,13 @@ public class ZhiGongJianHBPOImportDto
[ImporterHeader(Name = "地点")]
[Required(ErrorMessage = "{0}不能为空")]
public string Place { get; set; }
}
}
/// <summary>
/// 备件导入
/// </summary>
public class BeiJianImportDto : BeiJianExtraImportDto
{
/// <summary>
/// 备件导入
/// </summary>
public class BeiJianImportDto : BeiJianExtraImportDto
{
/// <summary>
/// 结算日期
/// </summary>
@ -217,13 +217,13 @@ public class BeiJianImportDto : BeiJianExtraImportDto
[Display(Name = "采购订单号")]
[ImporterHeader(Name = "采购订单号")]
public string Extend3 { get; set; }
}
}
/// <summary>
/// 备件扩展
/// </summary>
public class BeiJianExtraImportDto
{
/// <summary>
/// 备件扩展
/// </summary>
public class BeiJianExtraImportDto
{
/// <summary>
/// 交货号
/// </summary>
@ -321,13 +321,13 @@ public class BeiJianExtraImportDto
[Display(Name = "商品组")]
[ImporterHeader(Name = "商品组")]
public string CommodityGroup { set; get; }
}
}
/// <summary>
/// 印度件导入
/// </summary>
public class YinDuJianImportDto
{
/// <summary>
/// 印度件导入
/// </summary>
public class YinDuJianImportDto
{
/// <summary>
/// 结算日期
/// </summary>
@ -372,13 +372,13 @@ public class YinDuJianImportDto
[Display(Name = "Supplier")]
[ImporterHeader(Name = "Supplier")]
public string Supplier { get; set; }
}
}
/// <summary>
/// PUB结算明细
/// </summary>
public class PUB_SA_DETAIL_DTO : AuditedAggregateRoot<Guid>
{
/// <summary>
/// PUB结算明细
/// </summary>
public class PUB_SA_DETAIL_DTO : AuditedAggregateRoot<Guid>
{
/// <summary>
/// 结算单
/// </summary>
@ -415,26 +415,26 @@ public class PUB_SA_DETAIL_DTO : AuditedAggregateRoot<Guid>
/// 厂内物料号
/// </summary>
public string PartCode { get; set; }
}
}
/// <summary>
/// 结算明细导出请求
/// </summary>
public class PUB_SA_DETAIL_EXPORT_REQUEST_DTO
{
/// <summary>
/// 结算明细导出请求
/// </summary>
public class PUB_SA_DETAIL_EXPORT_REQUEST_DTO
{
/// <summary>
/// 结算单号
/// </summary>
[Display(Name = "结算单号")]
[Required(ErrorMessage = "{0}不能为空")]
public string BillNum { set; get; }
}
}
/// <summary>
/// 结算明细导出
/// </summary>
public class PUB_SA_DETAIL_EXPORT_DTO
{
/// <summary>
/// 结算明细导出
/// </summary>
public class PUB_SA_DETAIL_EXPORT_DTO
{
/// <summary>
/// 结算单号
/// </summary>
@ -476,13 +476,13 @@ public class PUB_SA_DETAIL_EXPORT_DTO
[Display(Name = "结算分组")]
[ExporterHeader(DisplayName = "Delivery")]
public string GroupNum { get; set; }
}
}
/// <summary>
/// Pub结算与发运对比请求
/// </summary>
public class PubSaSeCompareRequestDto
{
/// <summary>
/// Pub结算与发运对比请求
/// </summary>
public class PubSaSeCompareRequestDto
{
/// <summary>
/// 期间
/// </summary>
@ -516,10 +516,10 @@ public class PubSaSeCompareRequestDto
/// 发运结束时间
/// </summary>
public DateTime? SeEndDateTime { get; set; }
}
}
public class JobRequestDto
{
public class JobRequestDto
{
/// <summary>
/// 业务类别
/// </summary>
@ -530,4 +530,5 @@ public class JobRequestDto
//public List<string> ExportName { get; set; }
//public List<CustomCondition> Propert { get; set; }
}
}

37
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_SE_DETAIL_DTO.cs

@ -5,13 +5,13 @@ using Magicodes.ExporterAndImporter.Core;
using Volo.Abp.Application.Dtos;
using Win.Sfs.SettleAccount.Entities.BQ.Syncs;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos;
/// <summary>
/// PUB发运数据
/// </summary>
public class PUB_SE_DETAIL_DTO : EntityDto<Guid>
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
{
/// <summary>
/// PUB发运数据
/// </summary>
public class PUB_SE_DETAIL_DTO : EntityDto<Guid>
{
/// <summary>
/// 期间
/// </summary>
@ -190,24 +190,24 @@ public class PUB_SE_DETAIL_DTO : EntityDto<Guid>
/// </summary>
[Display(Name = "创建时间")]
public DateTime CreateTime { get; set; }
}
}
/// <summary>
/// 查询
/// </summary>
public class PUB_SE_DETAIL_RequestDto : RequestDto
{
/// <summary>
/// 查询
/// </summary>
public class PUB_SE_DETAIL_RequestDto : RequestDto
{
/// <summary>
/// 业务类别
/// </summary>
public EnumBusinessType BusinessType { get; set; }
}
}
/// <summary>
/// 导出
/// </summary>
public class PUB_SE_DETAIL_EXPORT_DTO
{
/// <summary>
/// 导出
/// </summary>
public class PUB_SE_DETAIL_EXPORT_DTO
{
/// <summary>
/// 期间
/// </summary>
@ -386,4 +386,5 @@ public class PUB_SE_DETAIL_EXPORT_DTO
[Display(Name = "创建时间")]
[ExporterHeader(DisplayName = "创建时间")]
public DateTime CreateTime { get; set; }
}
}

37
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PURCHASE_PRICE_DTO.cs

@ -3,13 +3,13 @@ using System.ComponentModel.DataAnnotations;
using Magicodes.ExporterAndImporter.Core;
using Volo.Abp.Application.Dtos;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos;
/// <summary>
/// 采购价格单
/// </summary>
public class PURCHASE_PRICE_DTO : EntityDto<Guid>
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
{
/// <summary>
/// 采购价格单
/// </summary>
public class PURCHASE_PRICE_DTO : EntityDto<Guid>
{
/// <summary>
/// 零件号
/// </summary>
@ -21,13 +21,13 @@ public class PURCHASE_PRICE_DTO : EntityDto<Guid>
/// </summary>
[Display(Name = "价格")]
public decimal Price { get; set; }
}
}
/// <summary>
/// 导入
/// </summary>
public class PURCHASE_PRICE_IMPORT_DTO
{
/// <summary>
/// 导入
/// </summary>
public class PURCHASE_PRICE_IMPORT_DTO
{
/// <summary>
/// 零件号
/// </summary>
@ -42,13 +42,13 @@ public class PURCHASE_PRICE_IMPORT_DTO
[Display(Name = "价格")]
[ImporterHeader(Name = "价格")]
public decimal Price { get; set; }
}
}
/// <summary>
/// 导出
/// </summary>
public class PURCHASE_PRICE_EXPORT_DTO
{
/// <summary>
/// 导出
/// </summary>
public class PURCHASE_PRICE_EXPORT_DTO
{
/// <summary>
/// 零件号
/// </summary>
@ -62,4 +62,5 @@ public class PURCHASE_PRICE_EXPORT_DTO
[Display(Name = "价格")]
[ExporterHeader(DisplayName = "价格")]
public decimal Price { get; set; }
}
}

2
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/RequestDto.cs

@ -1,4 +1,4 @@
using Win.Sfs.Shared.DtoBase;
using Win.Sfs.Shared.DtoBase;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
{

13
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/SaSeCompareRequestDto.cs

@ -1,13 +1,13 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace Win.Sfs.SettleAccount.Entities.BQ;
/// <summary>
/// 结算与发运对比请求Dto
/// </summary>
public class SaSeCompareRequestDto
namespace Win.Sfs.SettleAccount.Entities.BQ
{
/// <summary>
/// 结算与发运对比请求Dto
/// </summary>
public class SaSeCompareRequestDto
{
/// <summary>
/// 期间
/// </summary>
@ -48,4 +48,5 @@ public class SaSeCompareRequestDto
/// 业务类型
/// </summary>
public EnumBusinessType BusinessType { get; set; }
}
}

2
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/TB_RePartsRelationship_DTO.cs

@ -1,6 +1,6 @@
using Magicodes.ExporterAndImporter.Core;
using System;
using System.ComponentModel.DataAnnotations;
using Magicodes.ExporterAndImporter.Core;
using Volo.Abp.Application.Dtos;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos

16
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/IBBAC_BA_SERVICE.cs

@ -1,10 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Win.Sfs.SettleAccount.Boms;
using Win.Sfs.SettleAccount.Entities.BQ.Dtos;
namespace Win.Sfs.SettleAccount.Entities.BQ
@ -12,7 +7,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
public interface IBBAC_BA_SERVICE
{
Task<bool> GenerateInvoice(INVOICE_GRP_REQ_DTO input);
Task<PagedResultDto<INVOICE_GRP_DTO>> MainQueryAsync(INVOICE_GRP_REQ_DTO input);
@ -21,15 +15,5 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
Task<bool> RejectAsync(INVOICE_GRP_REQ_DTO input);
}
}

8
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/IBBAC_CAN_SA_SERVICE.cs

@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.DependencyInjection;
@ -9,14 +5,12 @@ using Win.Sfs.SettleAccount.Entities.BQ.Dtos;
namespace Win.Sfs.SettleAccount.Entities.BQ
{
public interface IBBAC_CAN_SA_SERVICE:ITransientDependency
public interface IBBAC_CAN_SA_SERVICE : ITransientDependency
{
Task<bool> GenerateInvoice(BBAC_CAN_SA_REQ_DTO input);
Task<PagedResultDto<BBAC_CAN_SA_DTO>> MainQueryAsync(BBAC_CAN_SA_REQ_DTO input);
Task<PagedResultDto<BBAC_CAN_SA_DETAIL_DTO>> DetailQueryAsync(BBAC_CAN_SA_DETAIL_REQ_DTO input);
Task<string> ExportAsync(BBAC_CAN_SA_REQ_DTO input);
}
}

4
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/IBBAC_NOT_SA_SERVICE.cs

@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Win.Sfs.SettleAccount.Entities.BQ.Dtos;

14
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/IBBAC_PD_SERVICE.cs

@ -1,17 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Win.Sfs.SettleAccount.Entities.BQ.Dtos;
namespace Win.Sfs.SettleAccount.Entities.BQ
{
public interface IBBAC_PD_SERVICE
{
//Task<bool> GenerateInvoice(BBAC_CAN_SA_REQ_DTO input);
//Task<PagedResultDto<BBAC_CAN_SA_DTO>> MainQueryAsync(BBAC_CAN_SA_REQ_DTO input);
//Task<PagedResultDto<BBAC_CAN_SA_DETAIL_DTO>> DetailQueryAsync(BBAC_CAN_SA_DETAIL_REQ_DTO input);
@ -20,10 +11,5 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
//Task<string> ExportAsync(BBAC_CAN_SA_REQ_DTO input);
}
}

6
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/IBBAC_SE_EDI_SERVICE.cs

@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Win.Sfs.SettleAccount.Entities.BQ
{
public interface IBBAC_SE_EDI_SERVICE

6
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/IHBPO_BA_SERVICE.cs

@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Win.Sfs.SettleAccount.Entities.BQ
{
public interface IHBPO_BA_SERVICE

12
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/IHBPO_CAN_SA_SERVICE.cs

@ -1,12 +1,7 @@
using SettleAccount.Bases;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SettleAccount.Bases;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Domain.Entities;
using Win.Sfs.SettleAccount.Bases;
using Win.Sfs.SettleAccount.Entities.BQ.Dtos;
namespace Win.Sfs.SettleAccount.Entities.BQ
@ -25,14 +20,9 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
Task<PagedResultDto<TEntityDetailDto>> DetailQueryAsync(TRequestDetailInput input);
Task<string> ExportAsync(TRequestMainInput input);
// List<ErrorData> ISettlementOrderCheckRule<TEntity>(List<TEntity> p_list, Configuation config) where TEntity : ISABASE
//bList<ErrorData> ISettlementOrderCheckState<TEntity>(List<TEntity> p_list) where TEntity:ISABASE
}
public interface IHBPO_CAN_SA_SERVICE

4
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/IHBPO_NOT_SA_SERVICE.cs

@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Win.Sfs.SettleAccount.Entities.BQ.Dtos;

6
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/IHBPO_PD_SERVICE.cs

@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Win.Sfs.SettleAccount.Entities.BQ
{
public interface IHBPO_PD_SERVICE

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save