Bitzsoft.Integrations.Finance.All 1.0.0-alpha.10

This is a prerelease version of Bitzsoft.Integrations.Finance.All.
dotnet add package Bitzsoft.Integrations.Finance.All --version 1.0.0-alpha.10
                    
NuGet\Install-Package Bitzsoft.Integrations.Finance.All -Version 1.0.0-alpha.10
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Bitzsoft.Integrations.Finance.All" Version="1.0.0-alpha.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bitzsoft.Integrations.Finance.All" Version="1.0.0-alpha.10" />
                    
Directory.Packages.props
<PackageReference Include="Bitzsoft.Integrations.Finance.All" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Bitzsoft.Integrations.Finance.All --version 1.0.0-alpha.10
                    
#r "nuget: Bitzsoft.Integrations.Finance.All, 1.0.0-alpha.10"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Bitzsoft.Integrations.Finance.All@1.0.0-alpha.10
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Bitzsoft.Integrations.Finance.All&version=1.0.0-alpha.10&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Bitzsoft.Integrations.Finance.All&version=1.0.0-alpha.10&prerelease
                    
Install as a Cake Tool

Bitzsoft.Integrations.Finance.All

财税管理集成全量聚合包 -- 一次性注册所有财税子模块的供应商实现。

功能特性

  • 一键全量注册AddBitzsoftFinanceAll 自动按配置注册发票、薪酬社保、税务全部子模块
  • 按需激活:仅注册配置中存在的模块与供应商,未配置的自动跳过,不产生多余注册
  • 统一配置根:所有子模块配置统一位于 Finance 节下,与各模块聚合包的配置节完全一致
  • 传递自定义配置节:支持通过 sectionKey 参数指定非默认的配置根名称

安装

.NET CLI

dotnet add package Bitzsoft.Integrations.Finance.All

PackageReference

<PackageReference Include="Bitzsoft.Integrations.Finance.All" Version="1.0.0" />

配置

appsettings.json

{
  "Finance": {
    "Invoice": {
      "Nuonuo": {
        "AppKey": "诺诺提供的 AppKey",
        "AppSecret": "双方约定的 AppSecret",
        "TaxNumber": "企业税号"
      },
      "Baiwang": {
        "GatewayKey": "百旺提供的网关密钥标识",
        "Secret": "双方约定的网关密钥",
        "TaxNumber": "企业税号"
      }
    },
    "Payroll": {
      "Xft": {
        "AppKey": "薪福通提供的 AppKey",
        "AppSecret": "双方约定的 AppSecret"
      }
    },
    "Tax": {
      "QiXiangYun": {
        "AppId": "企享云提供的 AppId",
        "AppSecret": "双方约定的 AppSecret"
      }
    }
  }
}

各供应商的具体配置字段以实现包的 Options 类为准。未配置的模块(如未出现 Finance:Tax 节)将被跳过。

注册服务

从 IConfiguration 绑定(推荐)

using Bitzsoft.Integrations.Finance.All;

// 默认读取 "Finance" 配置节
builder.Services.AddBitzsoftFinanceAll(builder.Configuration);

// 或指定自定义配置根
builder.Services.AddBitzsoftFinanceAll(builder.Configuration, "MyFinance");

聚合包内部按顺序调用子模块聚合包:

  • 检测到 Finance:Invoice 节 → 调用 AddBitzsoftInvoiceAll
  • 检测到 Finance:Payroll 节 → 调用 AddBitzsoftPayrollAll
  • 税务模块通过直接引用 Bitzsoft.Integrations.Finance.Tax.QiXiangYun 注册

使用示例

注册完成后,按抽象接口注入对应供应商实现:

using Bitzsoft.Integrations.Finance.Invoice.Interfaces;
using Bitzsoft.Integrations.Finance.Tax.Interfaces;
using Bitzsoft.Integrations.Finance.Payroll.Interfaces;

public class FinanceFacade
{
    public FinanceFacade(
        IInvoiceProvider invoice,
        ITaxInvoiceProvider taxInvoice,
        IPayrollProvider payroll)
    {
        // 各接口解析为配置中启用的供应商实现
    }
}

核心类型一览

类型 说明
ServiceCollectionExtensions.AddBitzsoftFinanceAll 全量注册扩展方法(IConfiguration + 可选 sectionKey,默认 "Finance"

支持的子模块

子模块 配置节 说明
Invoice Finance:Invoice 发票管理(诺诺 / 百旺 / 金蝶)
Payroll Finance:Payroll 薪酬社保(待具体供应商实现)
Tax Finance:Tax 税务管理(企享云)

依赖

说明
Bitzsoft.Integrations.Finance 财税管理公共基础
Bitzsoft.Integrations.Finance.Invoice.All 发票管理聚合包
Bitzsoft.Integrations.Finance.Payroll.All 薪酬社保聚合包
Bitzsoft.Integrations.Finance.Tax.QiXiangYun 企享云税务实现(税务模块当前仅有此供应商,直接引用)
Microsoft.Extensions.Configuration.Abstractions 配置抽象

相关包

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-alpha.10 34 7/26/2026
1.0.0-alpha.9 53 7/12/2026
1.0.0-alpha.8 53 7/1/2026
1.0.0-alpha.7 67 6/16/2026
1.0.0-alpha.6 71 6/16/2026
1.0.0-alpha.5 61 6/14/2026