Browse Source

Merge branch 'master' of http://dev.ccwin-in.com:3000/BoXu.Zheng/BeiJinSettleAccount

master
mahao 1 year ago
parent
commit
432e8ff05a
  1. 45
      .drone.yml
  2. 2
      build/build.cmd
  3. 2
      build/build.sh
  4. 14
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json
  5. 20
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/INVOICE_GRP_DTO.cs
  6. 7
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/BA_SERVICE.cs
  7. 4
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/CAN_SA_SERVICE.cs
  8. 11
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/PD_SERVICE.cs
  9. 6
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_BA_SERVICE.cs
  10. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_CAN_SA_SERVICE.cs
  11. 6
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_BA_SERVICE.cs
  12. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_CAN_SA_SERVICE.cs
  13. 74
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs
  14. 10
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_BA_SERVICE.cs
  15. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_CAN_SA_SERVICE.cs
  16. 7
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/PendingDeductionService.cs
  17. 6
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/SecMatch/SecMatchAppService.cs
  18. 8
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/TaskJobs/JobAppService.cs
  19. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Jobs/TaskJobService.cs
  20. 10
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Reports/ReportServices/ReportMakeService.cs
  21. 32
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG.cs
  22. 4
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG_EXT.cs
  23. 5
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/ExChangeCenterDbContext.cs
  24. 2
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/UnInterfaceDapperRepository.cs
  25. 2
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/Report/UnSettleAccountDiffReportDapperRepository.cs
  26. 2
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/PendingDeduction/PendingDeductionDapperRepository.cs
  27. 4
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/HQHSettledDetailDapperRepository.cs
  28. 2
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/WmsJitOutput/WmsJitOutputDapperRepository.cs
  29. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/PD_SERVICE.cs
  30. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/FisOutputService.cs
  31. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/HQHSettledDetailDiffExportService.cs
  32. 4
      code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/SyncFisService.cs
  33. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/UnSettledSumService.cs

45
.drone.yml

@ -7,17 +7,25 @@ platform:
arch: amd64 arch: amd64
os: linux os: linux
volumes:
- name: cache
host:
path: /root/cache
steps: steps:
- name: build - name: build
image: mcr.microsoft.com/dotnet/sdk:6.0 image: mcr.microsoft.com/dotnet/sdk:6.0
volumes:
- name: cache
host:
path: /root/.nuget/packages
commands: commands:
- cd ./build - cd ./build
- chmod 755 ./build.sh - chmod 755 ./build.sh
- ./build.sh - ./build.sh
# - mkdir publish
- echo "${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}\n">./publish/version.txt - echo "${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}\n">./publish/version.txt
- echo ${DRONE_COMMIT_MESSAGE}>./publish/version.txt - echo ${DRONE_COMMIT_MESSAGE}>./publish/version.txt
- ls publish - dotnet nuget locals global-packages --list
- name: publish - name: publish
image: plugins/s3 image: plugins/s3
@ -47,44 +55,27 @@ steps:
- rm -rf publish - rm -rf publish
- mkdir publish - mkdir publish
- name: deploy - name: deploy-scp
image: appleboy/drone-scp image: appleboy/drone-scp
settings: settings:
host: dev.ccwin-in.com host: dev.ccwin-in.com
port: 16085 port: 16085
username: Administrator username: Administrator
password: Microsoft@2022 password: Microsoft@2022
command_timeout: 30m
target: /d/BQ-JS/publish
source: build/publish source: build/publish
target: /d/BQ-JS/publish
timeout: 1800s
command_timeout: 30m
# - name: deploy # - name: deploy-sftp
# image: appleboy/drone-scp # image: axute/drone-sftp
# settings: # settings:
# host: dev.ccwin-in.com # host: dev.ccwin-in.com
# port: 16085 # port: 16085
# username: Administrator # username: Administrator
# password: Microsoft@2022 # password: Microsoft@2022
# timeout: "30m"
# command_timeout: "30m"
# target: /d/BQ-JS/publish
# source: build/publish # source: build/publish
# strip_components: 2 # target: /d/BQ-JS/publish
# - name: deploy
# image: atmoz/sftp
# volumes:
# - ./build/publish:/home/foo/upload
# ports:
# - 16085:22
# command: Administrator@Microsoft@2022:::upload
# settings:
# host: dev.ccwin-in.com
# port: 16085
# username: Administrator
# password: Microsoft@2022
# source: build/publish
# target: /d/BQ-JS/publish
- name: start - name: start
image: appleboy/drone-ssh image: appleboy/drone-ssh
@ -95,6 +86,6 @@ steps:
password: Microsoft@2022 password: Microsoft@2022
command_timeout: 10m command_timeout: 10m
script: script:
- cd D:/BQ-JS/publish - cd /d/BQ-JS/publish
- ./start.cmd - ./start.cmd
- echo ok - echo ok

2
build/build.cmd

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

2
build/build.sh

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

14
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json

@ -5,6 +5,7 @@
"ConnectionStrings": { "ConnectionStrings": {
"Default": "Server=dev.ccwin-in.com,13326;Database=BJABP;User ID=ccwin-in;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True", "Default": "Server=dev.ccwin-in.com,13326;Database=BJABP;User ID=ccwin-in;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True",
"SettleAccountService": "Server=dev.ccwin-in.com,13326;Database=BQ_SA;User ID=ccwin-in;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True;", "SettleAccountService": "Server=dev.ccwin-in.com,13326;Database=BQ_SA;User ID=ccwin-in;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True;",
"ExChangeCenterService": "Server=dev.ccwin-in.com,13326;Database=BQ_SA;User ID=ccwin-in;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True;",
"WMSBJBMPT": "Server=dev.ccwin-in.com,6208;Database=WMS_BJBMPT_2;User ID=sa;Password=ChangkeTec@2021;Trusted_Connection=False;TrustServerCertificate=True;", "WMSBJBMPT": "Server=dev.ccwin-in.com,6208;Database=WMS_BJBMPT_2;User ID=sa;Password=ChangkeTec@2021;Trusted_Connection=False;TrustServerCertificate=True;",
"questdb": "host=dev.ccwin-in.com;port=10580;username=admin;password=quest;database=vmi;ServerCompatibilityMode=NoTypeLoading;" "questdb": "host=dev.ccwin-in.com;port=10580;username=admin;password=quest;database=vmi;ServerCompatibilityMode=NoTypeLoading;"
}, },
@ -74,13 +75,22 @@
} }
}, },
"AuthServer": { "AuthServer": {
"Authority": "http://dev.ccwin-in.com:16082", //"Authority": "http://dev.ccwin-in.com:10580",
"Authority": "http://localhost:44378",
"ClientId": "basic-web", "ClientId": "basic-web",
"ClientSecret": "1q2w3e*" "ClientSecret": "1q2w3e*"
}, },
//"AuthServer": {
// "Authority": "http://dev.ccwin-in.com:16082",
// "ClientId": "basic-web",
// "ClientSecret": "1q2w3e*"
//},
"Redis": { "Redis": {
"Configuration": "127.0.0.1" "Configuration": "127.0.0.1"
}, },

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

@ -356,7 +356,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
[Display(Name = "零件号")] [Display(Name = "零件号")]
public string PartCode { get; set; } public string PartCode { get; set; }
[Display(Name = "零件名称")] [Display(Name = "零件名称")]
public string PartName { get; set; } public string PartDesc { get; set; }
/// <summary> /// <summary>
///发票分组号 ///发票分组号
/// </summary> /// </summary>
@ -367,9 +367,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
/// </summary> /// </summary>
[Display(Name = "客户零件号")] [Display(Name = "客户零件号")]
public string LU { get; set; } public string LU { get; set; }
[Display(Name = "零件描述")]
public string PartDesc { get; set; }
/// <summary> /// <summary>
///单价 ///单价
/// </summary> /// </summary>
@ -385,9 +382,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
/// </summary> /// </summary>
[Display(Name = "金额")] [Display(Name = "金额")]
public decimal Amt { get; set; } public decimal Amt { get; set; }
/// <summary>
///业务分类
/// </summary>
/// <summary> /// <summary>
///扩展字段3 ///扩展字段3
@ -408,18 +402,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
} }
// DeliveryNumber = inv1.GetProperty("DeliveryNumber", ""),//交货号
// InvoiceNumber = inv1.GetProperty("InvoiceNumber", ""),//发票号
// VendorCode = inv1.GetProperty("VendorCode", ""),//供应商代码
// VendorName = inv1.GetProperty("VendorName", ""),//供应商名称
// PurchaseOrderNumber = inv1.GetProperty("PurchaseOrderNumber", ""),//采购订单号
// DeliveryIndexNumber = inv1.GetProperty("DeliveryIndexNumber", ""),//交付索引号
// PartName = inv1.GetProperty("PartName", ""),//零件名称
public class INVOICE_WAIT_DETAIL_BBAC_DTO public class INVOICE_WAIT_DETAIL_BBAC_DTO
{ {

7
code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/BA_SERVICE.cs

@ -178,7 +178,6 @@ namespace Win.Sfs.SettleAccount.Bases
bj.LU = itm.LU; bj.LU = itm.LU;
bj.PartCode = itm.PartCode; bj.PartCode = itm.PartCode;
bj.PRICE = itm.PRICE; bj.PRICE = itm.PRICE;
bj.InvGroupNum = itm.InvGroupNum; bj.InvGroupNum = itm.InvGroupNum;
bj.DeliveryNumber = itm.ExtraProperties["DeliveryIndexNumber"].ToSqlValue(); bj.DeliveryNumber = itm.ExtraProperties["DeliveryIndexNumber"].ToSqlValue();
@ -519,7 +518,7 @@ namespace Win.Sfs.SettleAccount.Bases
throw new BusinessException("8989", "生成失败,请检查调发票整表和旧发票内容"); throw new BusinessException("8989", "生成失败,请检查调发票整表和旧发票内容");
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
/// <summary> /// <summary>
/// 第一次开票 /// 第一次开票
/// </summary> /// </summary>
@ -539,7 +538,7 @@ namespace Win.Sfs.SettleAccount.Bases
} }
throw new BusinessException("8989", "生成失败,请检查调整表和旧发票内容"); throw new BusinessException("8989", "生成失败,请检查调整表和旧发票内容");
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
/// <summary> /// <summary>
/// hbpo、jit、备件等 /// hbpo、jit、备件等
/// </summary> /// </summary>
@ -558,7 +557,7 @@ namespace Win.Sfs.SettleAccount.Bases
throw new BusinessException("8989", "生成失败,请检查调发票整表和旧发票内容"); throw new BusinessException("8989", "生成失败,请检查调发票整表和旧发票内容");
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
/// <summary> /// <summary>
/// 第一次开票 /// 第一次开票
/// </summary> /// </summary>

4
code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/CAN_SA_SERVICE.cs

@ -142,7 +142,7 @@ namespace Win.Sfs.SettleAccount.Bases
var dtos = ObjectMapper.Map<List<TEntity>, List<TEntityDto>>(entitys); var dtos = ObjectMapper.Map<List<TEntity>, List<TEntityDto>>(entitys);
return new PagedResultDto<TEntityDto>(totalCount, dtos); return new PagedResultDto<TEntityDto>(totalCount, dtos);
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
/// <summary> /// <summary>
/// hbpo、jit、备件等 /// hbpo、jit、备件等
/// </summary> /// </summary>
@ -190,7 +190,7 @@ namespace Win.Sfs.SettleAccount.Bases
throw new BusinessException("8989", "生成失败,请检可结算单明细数据是否结算分组存在"); throw new BusinessException("8989", "生成失败,请检可结算单明细数据是否结算分组存在");
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
/// <summary> /// <summary>
/// 第一次开票 /// 第一次开票
/// </summary> /// </summary>

11
code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/PD_SERVICE.cs

@ -133,13 +133,13 @@ namespace Win.Sfs.SettleAccount.Bases
return _fileName; return _fileName;
} }
[HttpPost] [HttpPost]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public virtual async Task<string> ApprovalPassed(List<string> p_list) public virtual async Task<string> ApprovalPassed(List<string> p_list)
{ {
return await InvokePD(p_list, _service, false); return await InvokePD(p_list, _service, false);
} }
[HttpPost] [HttpPost]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public virtual async Task<string> RejectAsync(List<string> p_list) public virtual async Task<string> RejectAsync(List<string> p_list)
{ {
return await InvokePD(p_list, _service, true); return await InvokePD(p_list, _service, true);
@ -198,13 +198,6 @@ namespace Win.Sfs.SettleAccount.Bases
return _taskid; return _taskid;
} }
/// <summary> /// <summary>
/// 查询主表 /// 查询主表
/// </summary> /// </summary>

6
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_BA_SERVICE.cs

@ -195,7 +195,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
} }
[HttpPost] [HttpPost]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
/// <summary> /// <summary>
/// 发票重开 /// 发票重开
/// </summary> /// </summary>
@ -323,7 +323,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
} }
[HttpPost] [HttpPost]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
/// <summary> /// <summary>
/// 发票重开列表 /// 发票重开列表
/// </summary> /// </summary>
@ -458,7 +458,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
} }
[HttpPost] [HttpPost]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
/// <summary> /// <summary>
/// 发票重开列表 /// 发票重开列表
/// </summary> /// </summary>

2
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_CAN_SA_SERVICE.cs

@ -68,7 +68,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
/// </summary> /// </summary>
/// <param name="input"></param> /// <param name="input"></param>
/// <returns></returns> /// <returns></returns>
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
[HttpPost] [HttpPost]
public async Task<IActionResult> GenerateInvoice([FromBody] string invbillNum) public async Task<IActionResult> GenerateInvoice([FromBody] string invbillNum)

6
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_BA_SERVICE.cs

@ -160,7 +160,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
} }
[HttpPost] [HttpPost]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
/// <summary> /// <summary>
/// 发票重开 /// 发票重开
@ -291,7 +291,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
[HttpPost] [HttpPost]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
/// 发票重开列表 /// 发票重开列表
/// </summary> /// </summary>
/// <param name="input"></param> /// <param name="input"></param>
@ -428,7 +428,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
[HttpPost] [HttpPost]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
/// 发票重开列表 /// 发票重开列表
/// </summary> /// </summary>
/// <param name="input"></param> /// <param name="input"></param>

2
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_CAN_SA_SERVICE.cs

@ -65,7 +65,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
/// <returns></returns> /// <returns></returns>
[HttpPost] [HttpPost]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
//[Route("generateinvoice")] //[Route("generateinvoice")]
public async Task<IActionResult> GenerateInvoice([FromBody] string invbillnum) public async Task<IActionResult> GenerateInvoice([FromBody] string invbillnum)
{ {

74
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs

@ -1,4 +1,4 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.Linq; using System.Linq;
@ -82,7 +82,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
/// <param name="input"></param> /// <param name="input"></param>
/// <returns></returns> /// <returns></returns>
[HttpPost] [HttpPost]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public virtual async Task<IActionResult> ApprovalPassed(List<string> p_invs) public virtual async Task<IActionResult> ApprovalPassed(List<string> p_invs)
{ {
List<ERR_EXP_DTO> errors = new List<ERR_EXP_DTO>(); List<ERR_EXP_DTO> errors = new List<ERR_EXP_DTO>();
@ -189,9 +189,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
else if (invs.FirstOrDefault().BusinessType == EnumBusinessType.BeiJian) else if (invs.FirstOrDefault().BusinessType == EnumBusinessType.BeiJian)
{ {
var B = await _wRepository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, input.SkipCount).ConfigureAwait(false); var B = await _wRepository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, input.SkipCount).ConfigureAwait(false);
B.OrderBy(p => p.LineCode); B.OrderBy(p => p.LineCode);
List<INVOICE_WAIT_DETAIL_BJ_DTO> BMap = new List<INVOICE_WAIT_DETAIL_BJ_DTO>(); List<INVOICE_WAIT_DETAIL_BJ_DTO> BMap = new List<INVOICE_WAIT_DETAIL_BJ_DTO>();
foreach (var itm in B) foreach (var itm in B)
{ {
@ -201,7 +199,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
bj.PRICE = itm.PRICE; bj.PRICE = itm.PRICE;
bj.InvbillNum = itm.InvbillNum; bj.InvbillNum = itm.InvbillNum;
bj.InvGroupNum = itm.InvGroupNum; bj.InvGroupNum = itm.InvGroupNum;
bj.DeliveryNumber =itm.ExtraProperties["DeliveryIndexNumber"].ToSqlValue(); bj.DeliveryIndexNumber =itm.ExtraProperties["DeliveryIndexNumber"].ToSqlValue();
bj.Qty = itm.Qty; bj.Qty = itm.Qty;
bj.PRICE = itm.PRICE; bj.PRICE = itm.PRICE;
bj.Amt = Math.Round(itm.PRICE * itm.Qty, 2); bj.Amt = Math.Round(itm.PRICE * itm.Qty, 2);
@ -209,6 +207,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
bj.VendorCode = itm.ExtraProperties["VendorCode"].ToSqlValue();//供应商代码 bj.VendorCode = itm.ExtraProperties["VendorCode"].ToSqlValue();//供应商代码
bj.VendorName = itm.ExtraProperties["VendorName"].ToSqlValue();//供应商名称 bj.VendorName = itm.ExtraProperties["VendorName"].ToSqlValue();//供应商名称
bj.DeliveryNumber = itm.ExtraProperties["DeliveryNumber"].ToSqlValue();//交货号; bj.DeliveryNumber = itm.ExtraProperties["DeliveryNumber"].ToSqlValue();//交货号;
bj.BeginDate=itm.BeginDate;
bj.EndDate = itm.EndDate;
//bj.DeliveryNumber = itm.GetProperty("DeliveryNumber", "");//交货号 //bj.DeliveryNumber = itm.GetProperty("DeliveryNumber", "");//交货号
//bj.InvbillNum = itm.GetProperty("InvoiceNumber", "");//发票号 //bj.InvbillNum = itm.GetProperty("InvoiceNumber", "");//发票号
@ -223,32 +223,32 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
//var BMap = ObjectMapper.Map<List<INVOICE_WAIT_DETAIL>, List<INVOICE_WAIT_DETAIL_BJ_DTO>>(B); //var BMap = ObjectMapper.Map<List<INVOICE_WAIT_DETAIL>, List<INVOICE_WAIT_DETAIL_BJ_DTO>>(B);
var bjquery = from itm in BMap var bjquery = from itm in BMap
join itm1 in invs on itm.InvbillNum equals itm1.InvbillNum join itm1 in invs on itm.InvbillNum equals itm1.InvbillNum
join itm2 in materialList on itm.LU equals itm2.SettleMaterialCode into temp join itm2 in materialList on itm.LU equals itm2.SettleMaterialCode into temp
from tm in temp.DefaultIfEmpty() from tm in temp.DefaultIfEmpty()
select select
new INVOICE_WAIT_DETAIL_BJ_DTO() new INVOICE_WAIT_DETAIL_BJ_DTO()
{ {
PartDesc = tm == null ? string.Empty : itm.PartDesc, PartDesc = tm == null ? string.Empty : itm.PartDesc,
InvDate = itm1.CreationTime, InvDate = itm1.CreationTime,
RealInvbillNum = string.IsNullOrEmpty(itm1.RealnvBillNum) ? string.Empty : itm1.RealnvBillNum, RealInvbillNum = string.IsNullOrEmpty(itm1.RealnvBillNum) ? string.Empty : itm1.RealnvBillNum,
//Version = itm.Version, //Version = itm.Version,
InvbillNum = itm.InvbillNum, InvbillNum = itm.InvbillNum,
InvGroupNum = itm.InvGroupNum, InvGroupNum = itm.InvGroupNum,
LU = itm.LU, LU = itm.LU,
PartCode = itm.PartCode, PartCode = itm.PartCode,
PRICE = itm.PRICE, PRICE = itm.PRICE,
Qty = itm.Qty, Qty = itm.Qty,
Amt = itm.Amt, Amt = itm.Amt,
DeliveryNumber = itm.DeliveryNumber , DeliveryNumber = itm.DeliveryNumber,
VendorCode = itm.VendorCode , VendorCode = itm.VendorCode,
VendorName = itm.VendorName , VendorName = itm.VendorName,
// PurchaseOrderNumber = itm.PurchaseOrderNumber, // PurchaseOrderNumber = itm.PurchaseOrderNumber,
DeliveryIndexNumber =itm.DeliveryIndexNumber , DeliveryIndexNumber = itm.DeliveryIndexNumber,
Extend1 = itm.Extend1, Extend1 = itm.Extend1,
BeginDate = itm.BeginDate, BeginDate = itm.BeginDate,
EndDate = itm.EndDate, EndDate = itm.EndDate,
}; };
entity.INVOICE_WAIT_DETAIL_BJ = bjquery.ToList(); entity.INVOICE_WAIT_DETAIL_BJ = bjquery.ToList();
} }
else else
@ -350,8 +350,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
.Select(p => new JIT_UNSETTLED_DETAIL_DTO { LU = p.Key.LU, GroupNum = p.Key.SettleGroupNum, Qty = p.Sum(itm => itm.Qty.Value) }); .Select(p => new JIT_UNSETTLED_DETAIL_DTO { LU = p.Key.LU, GroupNum = p.Key.SettleGroupNum, Qty = p.Sum(itm => itm.Qty.Value) });
entity.JIT_UNSETTLED_DETAIL = unsettledList.ToList().OrderBy(p => p.GroupNum).ThenBy(p => p.LU).ToList(); entity.JIT_UNSETTLED_DETAIL = unsettledList.ToList().OrderBy(p => p.GroupNum).ThenBy(p => p.LU).ToList();
} }
if (first.BusinessType == EnumBusinessType.JisHBPO || first.BusinessType == EnumBusinessType.JisBBAC) if (first.BusinessType == EnumBusinessType.JisHBPO || first.BusinessType == EnumBusinessType.JisBBAC)
{ {
entity.INVOICE_MAP_GROUP = lscompare.ToList().OrderBy(p => p.SettleGroupNum).ToList();//包含不可结结算分组号 entity.INVOICE_MAP_GROUP = lscompare.ToList().OrderBy(p => p.SettleGroupNum).ToList();//包含不可结结算分组号
@ -384,7 +382,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
}); });
} }
entity.MAIDAN_HBPO_UNSETTLED_DETAIL = unsettle; entity.MAIDAN_HBPO_UNSETTLED_DETAIL = unsettle;
} }
entity.ADJ_DETAIL = adjQuery.ToList().OrderBy(p=>p.GroupNum).ThenBy(p=>p.LU).ToList(); entity.ADJ_DETAIL = adjQuery.ToList().OrderBy(p=>p.GroupNum).ThenBy(p=>p.LU).ToList();
@ -495,6 +492,15 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
_excel.Append(hbpounsettle, "未结零件汇总"); _excel.Append(hbpounsettle, "未结零件汇总");
} }
} }
if (first.BusinessType == EnumBusinessType.ZhiGongJianBBAC)
{
if (jitunsettle != null)
{
_excel.Append(jitunsettle, "未结零件汇总");
}
}
//jis业务,发票分组对应关系,未结数据,调整数据 //jis业务,发票分组对应关系,未结数据,调整数据
if (first.BusinessType == EnumBusinessType.JisBBAC || first.BusinessType == EnumBusinessType.JisHBPO) if (first.BusinessType == EnumBusinessType.JisBBAC || first.BusinessType == EnumBusinessType.JisHBPO)

10
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_BA_SERVICE.cs

@ -1,4 +1,4 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.LinqAsync; using System.LinqAsync;
@ -54,7 +54,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
/// <exception cref="UserFriendlyException"></exception> /// <exception cref="UserFriendlyException"></exception>
/// <exception cref="BusinessException"></exception> /// <exception cref="BusinessException"></exception>
[HttpPost] [HttpPost]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public virtual async Task<IActionResult> ReissueInvoiceExtend(List<PUB_ADJ_DETAIL_DTO> p_list) public virtual async Task<IActionResult> ReissueInvoiceExtend(List<PUB_ADJ_DETAIL_DTO> p_list)
{ {
var errorlist = await CheckRepeat(p_list).ConfigureAwait(false); var errorlist = await CheckRepeat(p_list).ConfigureAwait(false);
@ -200,7 +200,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
/// <param name="input"></param> /// <param name="input"></param>
/// <returns></returns> /// <returns></returns>
[HttpPost] [HttpPost]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public override async Task<IActionResult> ReissueInvoice([FromBody] string p_invbillnum) public override async Task<IActionResult> ReissueInvoice([FromBody] string p_invbillnum)
{ {
//var mappingList = await GetMapGroupAsync(p_invbillnum);//发票对应结算分组 //var mappingList = await GetMapGroupAsync(p_invbillnum);//发票对应结算分组
@ -314,7 +314,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
return new JsonResult(new { Code = 200, Message = "发票重开成功" }); ; return new JsonResult(new { Code = 200, Message = "发票重开成功" }); ;
} }
[HttpPost] [HttpPost]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
/// 发票重开列表 /// 发票重开列表
/// </summary> /// </summary>
/// <param name="input"></param> /// <param name="input"></param>
@ -489,7 +489,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
[HttpPost] [HttpPost]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public virtual async Task<IActionResult> ReissueInvoiceList(List<PUB_ADJ_DETAIL_DTO> p_list) public virtual async Task<IActionResult> ReissueInvoiceList(List<PUB_ADJ_DETAIL_DTO> p_list)
{ {
var result = await _adjservice.CheckImport(p_list).ConfigureAwait(false); var result = await _adjservice.CheckImport(p_list).ConfigureAwait(false);

2
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_CAN_SA_SERVICE.cs

@ -63,7 +63,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
_notRepository = notRepository; _notRepository = notRepository;
} }
[HttpPost] [HttpPost]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public async Task<IActionResult> GenerateInvoice([FromBody] string billnum) public async Task<IActionResult> GenerateInvoice([FromBody] string billnum)
{ {
var main = await _pubMng.GetMainAsync(billnum).ConfigureAwait(false); var main = await _pubMng.GetMainAsync(billnum).ConfigureAwait(false);

7
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/PendingDeductionService.cs

@ -1,4 +1,4 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using EFCore.BulkExtensions; using EFCore.BulkExtensions;
@ -31,7 +31,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
_dbcontext = dbcontext; _dbcontext = dbcontext;
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public string ExportFile(Guid id, List<string> exportName, List<CustomCondition> property) public string ExportFile(Guid id, List<string> exportName, List<CustomCondition> property)
{ {
@ -151,6 +151,9 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
} }
Sync(detailist, EnumDeliverBjBmpBillType.JIT直供件, email, isout == "out" ? true : false); Sync(detailist, EnumDeliverBjBmpBillType.JIT直供件, email, isout == "out" ? true : false);
} }
return id.ToString(); return id.ToString();
} }
//public List<T> GetPagedData<T>(List<T> dataList, int pageNumber, int pageSize) //public List<T> GetPagedData<T>(List<T> dataList, int pageNumber, int pageSize)

6
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/SecMatch/SecMatchAppService.cs

@ -285,7 +285,7 @@ namespace Win.Sfs.SettleAccount.Entities.SecMatch
/// <returns></returns> /// <returns></returns>
[HttpPost] [HttpPost]
[Route("Export")] [Route("Export")]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public virtual async Task<string> ExportAsync(SecMatchBaseRequestDto input) public virtual async Task<string> ExportAsync(SecMatchBaseRequestDto input)
{ {
List<string> fileList = new List<string>(); List<string> fileList = new List<string>();
@ -493,7 +493,7 @@ namespace Win.Sfs.SettleAccount.Entities.SecMatch
///// <returns></returns> ///// <returns></returns>
//[HttpPost] //[HttpPost]
//[Route("ExportSupplier")] //[Route("ExportSupplier")]
//[UnitOfWork(false)] //[UnitOfWork(IsDisabled = false)]
//virtual public async Task<string> ExportSupplierAsync(SecMatchBaseRequestDto input) //virtual public async Task<string> ExportSupplierAsync(SecMatchBaseRequestDto input)
//{ //{
// List<string> fileList = new List<string>(); // List<string> fileList = new List<string>();
@ -514,7 +514,7 @@ namespace Win.Sfs.SettleAccount.Entities.SecMatch
/// <returns></returns> /// <returns></returns>
[HttpPost] [HttpPost]
[Route("ExportSummary")] [Route("ExportSummary")]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public virtual async Task<string> ExportSummaryAsync(SecMatchBaseRequestDto input) public virtual async Task<string> ExportSummaryAsync(SecMatchBaseRequestDto input)
{ {

8
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/TaskJobs/JobAppService.cs

@ -26,7 +26,7 @@ namespace Win.Sfs.SettleAccount.Entities.TaskJobs
/// <remarks> /// <remarks>
[HttpPost] [HttpPost]
[Route("listold")] [Route("listold")]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public virtual async Task<List<JobDto>> GetListOldAsync(JobRequestDto input) public virtual async Task<List<JobDto>> GetListOldAsync(JobRequestDto input)
{ {
return await _service.GetListAsync(input).ConfigureAwait(false); return await _service.GetListAsync(input).ConfigureAwait(false);
@ -37,7 +37,7 @@ namespace Win.Sfs.SettleAccount.Entities.TaskJobs
/// </summary> /// </summary>
[HttpPost] [HttpPost]
[Route("list")] [Route("list")]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public virtual async Task<PagedResultDto<JobDto>> GetListAsync(JobRequestDto input) public virtual async Task<PagedResultDto<JobDto>> GetListAsync(JobRequestDto input)
{ {
var lists = await _service.GetListAsync(input).ConfigureAwait(false); var lists = await _service.GetListAsync(input).ConfigureAwait(false);
@ -48,7 +48,7 @@ namespace Win.Sfs.SettleAccount.Entities.TaskJobs
[Route("{id}")] [Route("{id}")]
//[Authorize(SettleAccountPermissions.Materials.Default)] //[Authorize(SettleAccountPermissions.Materials.Default)]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public virtual async Task<List<string>> GetUploadListAsync(string id) public virtual async Task<List<string>> GetUploadListAsync(string id)
{ {
return await _service.GetUpFileListAsync(id).ConfigureAwait(false); return await _service.GetUpFileListAsync(id).ConfigureAwait(false);
@ -58,7 +58,7 @@ namespace Win.Sfs.SettleAccount.Entities.TaskJobs
[HttpPost] [HttpPost]
[Route("versionlist")] [Route("versionlist")]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public virtual async Task<List<string>> GetVersionListAsync() public virtual async Task<List<string>> GetVersionListAsync()
{ {
return await _service.GetVersionListAsync().ConfigureAwait(false); return await _service.GetVersionListAsync().ConfigureAwait(false);

2
code/src/Modules/SettleAccount/src/SettleAccount.Application/Jobs/TaskJobService.cs

@ -69,7 +69,7 @@ namespace Win.Sfs.SettleAccount.Entities.TaskJobs
return await _mng.UpdateAsync(p_id, remark).ConfigureAwait(false); return await _mng.UpdateAsync(p_id, remark).ConfigureAwait(false);
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public virtual async Task<List<JobDto>> GetListAsync(JobRequestDto input) public virtual async Task<List<JobDto>> GetListAsync(JobRequestDto input)
{ {

10
code/src/Modules/SettleAccount/src/SettleAccount.Application/Reports/ReportServices/ReportMakeService.cs

@ -462,7 +462,7 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
[HttpPost] [HttpPost]
[Route("InvoiceSettledDetailDiff-Make")] [Route("InvoiceSettledDetailDiff-Make")]
[DisableRequestSizeLimit] [DisableRequestSizeLimit]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public async Task<string> InvoiceSettledDetailDiffMake( public async Task<string> InvoiceSettledDetailDiffMake(
BaseRequestDto request BaseRequestDto request
) )
@ -494,7 +494,7 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
[HttpPost] [HttpPost]
[Route("UnInvoiceSettledDetailDiff-Make")] [Route("UnInvoiceSettledDetailDiff-Make")]
[DisableRequestSizeLimit] [DisableRequestSizeLimit]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public async Task<string> UnInvoiceSettledDetailDiffMake( public async Task<string> UnInvoiceSettledDetailDiffMake(
BaseRequestDto request BaseRequestDto request
) )
@ -524,7 +524,7 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
[HttpPost] [HttpPost]
[Route("UnsettledDetailReportService-Make")] [Route("UnsettledDetailReportService-Make")]
[DisableRequestSizeLimit] [DisableRequestSizeLimit]
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public async Task<string> UnsettledDetailReportServiceMake( public async Task<string> UnsettledDetailReportServiceMake(
BaseRequestDto input BaseRequestDto input
@ -675,7 +675,7 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
//[HttpPost] //[HttpPost]
//[Route("HQHSettledDetailDiffExportService")] //[Route("HQHSettledDetailDiffExportService")]
//[DisableRequestSizeLimit] //[DisableRequestSizeLimit]
//[UnitOfWork(false)] //[UnitOfWork(IsDisabled = false)]
//public async Task<string> HQHSettledDetailDiffExportServiceMake( //public async Task<string> HQHSettledDetailDiffExportServiceMake(
// HQKanbanRequestDto input // HQKanbanRequestDto input
// ) // )
@ -815,7 +815,7 @@ namespace Win.Sfs.SettleAccount.Reports.ReportServices
//[HttpPost] //[HttpPost]
//[Route("UnSettledSum-Make")] //[Route("UnSettledSum-Make")]
//[DisableRequestSizeLimit] //[DisableRequestSizeLimit]
//[UnitOfWork(false)] //[UnitOfWork(IsDisabled = false)]
//public async Task<string> UnSettledSumServiceMake( //public async Task<string> UnSettledSumServiceMake(
// BaseRequestDto input // BaseRequestDto input

32
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG.cs

@ -115,7 +115,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
/// <param name="p_State"></param> /// <param name="p_State"></param>
/// <returns></returns> /// <returns></returns>
/// <exception cref="BusinessException"></exception> /// <exception cref="BusinessException"></exception>
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public virtual async Task<bool> SetForwardState(List<string> p_invs, SettleBillState p_State) public virtual async Task<bool> SetForwardState(List<string> p_invs, SettleBillState p_State)
{ {
List<string> errors = new List<string>(); List<string> errors = new List<string>();
@ -940,7 +940,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
/// <param name="p_version">版本号</param> /// <param name="p_version">版本号</param>
/// <param name="p_InvGroupNum">发票分组</param> /// <param name="p_InvGroupNum">发票分组</param>
/// <param name="p_parentInvBillNum">原发票号</param> /// <param name="p_parentInvBillNum">原发票号</param>
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public async Task<List<string>> SecInvoice<TDetail>(List<TDetail> p_list, List<PUB_ADJ_DETAIL> p_ajdlist, List<TEMP_CAN_SA_DETAIL> dtos, int p_version, string p_InvGroupNum, string p_parentInvBillNum, EnumBusinessType businessType) public async Task<List<string>> SecInvoice<TDetail>(List<TDetail> p_list, List<PUB_ADJ_DETAIL> p_ajdlist, List<TEMP_CAN_SA_DETAIL> dtos, int p_version, string p_InvGroupNum, string p_parentInvBillNum, EnumBusinessType businessType)
where TDetail : SA_CAN_BASE where TDetail : SA_CAN_BASE
{ {
@ -1180,7 +1180,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
return _invls; return _invls;
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public async Task<List<string>> FirstInvoice<TDetail>(List<TDetail> p_list, List<PUB_ADJ_DETAIL> p_adjlist, List<TEMP_CAN_SA_DETAIL> dtos, List<TEMP_NOT_SA_DETAIL> p_notlist, int p_version, string p_InvGroupNum, string p_parentInvBillNum, EnumBusinessType businessType) public async Task<List<string>> FirstInvoice<TDetail>(List<TDetail> p_list, List<PUB_ADJ_DETAIL> p_adjlist, List<TEMP_CAN_SA_DETAIL> dtos, List<TEMP_NOT_SA_DETAIL> p_notlist, int p_version, string p_InvGroupNum, string p_parentInvBillNum, EnumBusinessType businessType)
where TDetail : SA_CAN_BASE where TDetail : SA_CAN_BASE
{ {
@ -1403,7 +1403,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
); );
string site = dtos.Where(p => !string.IsNullOrEmpty(p.Site)).FirstOrDefault().Site; string site = dtos.Where(p => !string.IsNullOrEmpty(p.Site)).FirstOrDefault().Site;
string clientCode = string.Empty; string clientCode = string.Empty;
switch (site) switch (site)
{ {
case "1040": case "1040":
@ -1434,7 +1433,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
await _repository.DbContext.BulkInsertAsync(invlist).ConfigureAwait(false); await _repository.DbContext.BulkInsertAsync(invlist).ConfigureAwait(false);
await _repository.DbContext.BulkInsertAsync(groupList).ConfigureAwait(false); await _repository.DbContext.BulkInsertAsync(groupList).ConfigureAwait(false);
await _repository.DbContext.BulkInsertAsync(detailList).ConfigureAwait(false); await _repository.DbContext.BulkInsertAsync(detailList).ConfigureAwait(false);
if (adjlist.Count > 0) if (adjlist.Count > 0)
{ {
await _repository.DbContext.BulkUpdateAsync(adjlist).ConfigureAwait(false); await _repository.DbContext.BulkUpdateAsync(adjlist).ConfigureAwait(false);
@ -1673,7 +1671,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
{ {
detailList.AddRange(_entityDetailList); detailList.AddRange(_entityDetailList);
} }
if (p_first == true) if (p_first == true)
{ {
var notsettle = _nothbpoRepository.Where(p => p.SettleBillNum == p_InvGroupNum);//一次开票时查找不可结数据,追加需求 var notsettle = _nothbpoRepository.Where(p => p.SettleBillNum == p_InvGroupNum);//一次开票时查找不可结数据,追加需求
@ -1981,7 +1978,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
return _invls; return _invls;
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
/// <summary> /// <summary>
/// 重开一次开票 /// 重开一次开票
/// </summary> /// </summary>
@ -2035,9 +2032,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
case EnumBusinessType.YinDuJian: case EnumBusinessType.YinDuJian:
invlist = await JITInvoice(p_list, p_adjlist, dtos, new List<TEMP_NOT_SA_DETAIL>(), p_version, inv.InvGroupNum, inv.InvbillNum, inv.BusinessType, true).ConfigureAwait(false);//重开可以变多张发票 invlist = await JITInvoice(p_list, p_adjlist, dtos, new List<TEMP_NOT_SA_DETAIL>(), p_version, inv.InvGroupNum, inv.InvbillNum, inv.BusinessType, true).ConfigureAwait(false);//重开可以变多张发票
break; break;
} }
if (invlist.Count == 0) if (invlist.Count == 0)
{ {
return false; return false;
@ -2206,10 +2201,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
groupList.AddRange(mapList); groupList.AddRange(mapList);
} }
List<INVOICE_WAIT_DETAIL> _entityDetailList = new List<INVOICE_WAIT_DETAIL>(); List<INVOICE_WAIT_DETAIL> _entityDetailList = new List<INVOICE_WAIT_DETAIL>();
foreach (var detail in query.ToList()) foreach (var detail in query.ToList())
{ {
var entity = new INVOICE_WAIT_DETAIL( var entity = new INVOICE_WAIT_DETAIL(
guid: GuidGenerator.Create(), guid: GuidGenerator.Create(),
version: p_version, version: p_version,
@ -2225,14 +2218,13 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
beginDate: detail.BeginDate, beginDate: detail.BeginDate,
endDate: detail.EndDate, endDate: detail.EndDate,
partcode: detail.PartCode); partcode: detail.PartCode);
entity.LineCode = detail.LineCode; entity.LineCode = detail.LineCode;
entity.SetProperty("DeliveryNumber", detail.DeliveryIndexNumber);//交货号 entity.SetProperty("DeliveryNumber", detail.DeliveryNumber);//交货号
entity.SetProperty("VendorCode", detail.VendorCode);//供应商代码 entity.SetProperty("VendorCode", detail.VendorCode);//供应商代码
entity.SetProperty("VendorName", detail.VendorName);//供应商名称 entity.SetProperty("VendorName", detail.VendorName);//供应商名称
entity.SetProperty("PurchaseOrderNumber", "");//采购订单号 entity.SetProperty("PurchaseOrderNumber", "");//采购订单号
entity.SetProperty("DeliveryIndexNumber", "");//交付索引号 entity.SetProperty("DeliveryIndexNumber", detail.DeliveryIndexNumber);//交付索引号
entity.SetProperty("PartName", "");//零件名称 entity.SetProperty("PartName", detail.PartName);//零件名称
_entityDetailList.Add(entity); _entityDetailList.Add(entity);
} }
if (_entityDetailList.Count > 0) if (_entityDetailList.Count > 0)
@ -2255,7 +2247,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
preTaxDiff: 0, preTaxDiff: 0,
taxDiff: 0, taxDiff: 0,
clientCode: string.Empty, clientCode: string.Empty,
realAmt: 0 realAmt: readAmt
); );
invbill.CreationTime = DateTime.Now; invbill.CreationTime = DateTime.Now;
invbill.ClientCode = "C001"; invbill.ClientCode = "C001";

4
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG_EXT.cs

@ -231,7 +231,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
return detailList; return detailList;
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public async Task<List<INVOICE_WAIT_DETAIL>> FirstInvoiceExtend<TDetail>(List<TDetail> p_list, List<PUB_ADJ_DETAIL> p_adjlist, List<TEMP_CAN_SA_DETAIL> dtos, List<TEMP_NOT_SA_DETAIL> p_notlist, int p_version, string p_InvGroupNum, string p_parentInvBillNum, EnumBusinessType businessType) public async Task<List<INVOICE_WAIT_DETAIL>> FirstInvoiceExtend<TDetail>(List<TDetail> p_list, List<PUB_ADJ_DETAIL> p_adjlist, List<TEMP_CAN_SA_DETAIL> dtos, List<TEMP_NOT_SA_DETAIL> p_notlist, int p_version, string p_InvGroupNum, string p_parentInvBillNum, EnumBusinessType businessType)
where TDetail : SA_CAN_BASE where TDetail : SA_CAN_BASE
{ {
@ -552,7 +552,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
} }
return detailList; return detailList;
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
/// <summary> /// <summary>
/// 第一次开票 /// 第一次开票
/// </summary> /// </summary>

5
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/ExChangeCenterDbContext.cs

@ -5,14 +5,15 @@ using Win.Sfs.SettleAccount.Entities.BQ;
namespace Win.Sfs.SettleAccount.EntityFrameworkCore namespace Win.Sfs.SettleAccount.EntityFrameworkCore
{ {
[ConnectionStringName("WMSBJBMPT")] [ConnectionStringName("ExChangeCenterService")]
public class ExChangeCenterDbContext : DbContext public class ExChangeCenterDbContext : DbContext
{ {
public DbSet<TED_SA_INV> TED_SA_INV { set; get; } public DbSet<TED_SA_INV> TED_SA_INV { set; get; }
public ExChangeCenterDbContext(DbContextOptions<WMSBJBMPTDbContext> options) : base(options) public ExChangeCenterDbContext(DbContextOptions<WMSBJBMPTDbContext> options) : base(options)
{ {
} }
protected override void OnModelCreating(ModelBuilder modelBuilder) protected override void OnModelCreating(ModelBuilder modelBuilder)

2
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/UnInterfaceDapperRepository.cs

@ -19,7 +19,7 @@ namespace Win.Sfs.SettleAccount
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public virtual bool Execute(string billnum, string date) public virtual bool Execute(string billnum, string date)
{ {
string sqlString = string sqlString =

2
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/Report/UnSettleAccountDiffReportDapperRepository.cs

@ -16,7 +16,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccount.Report
: base(dbContextProvider) : base(dbContextProvider)
{ {
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public virtual async Task<List<DiffUnsetttleReport>> GetDiffUnSettleReport(string year, string customcode) public virtual async Task<List<DiffUnsetttleReport>> GetDiffUnSettleReport(string year, string customcode)
{ {

2
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/PendingDeduction/PendingDeductionDapperRepository.cs

@ -21,7 +21,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
{ {
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
/// <summary> /// <summary>
/// BBAC生成待扣减 /// BBAC生成待扣减
/// </summary> /// </summary>

4
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/HQHSettledDetailDapperRepository.cs

@ -70,7 +70,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
/// <param name="end"></param> /// <param name="end"></param>
/// <param name="materialGroup"></param> /// <param name="materialGroup"></param>
/// <returns></returns> /// <returns></returns>
//[UnitOfWork(false)] //[UnitOfWork(IsDisabled = false)]
//public virtual List<HQHSettledDetailDiff> GetInvoiceSettledDetailDiffReportList(string version, string materialCode, string begin, string end, string materialGroup) //public virtual List<HQHSettledDetailDiff> GetInvoiceSettledDetailDiffReportList(string version, string materialCode, string begin, string end, string materialGroup)
//{ //{
@ -465,7 +465,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
//} //}
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public virtual List<HQHSettledDetailDiff> GetInvoiceSettledDetailDiffReportList(string version, string materialCode, string begin, string end, string materialGroup) public virtual List<HQHSettledDetailDiff> GetInvoiceSettledDetailDiffReportList(string version, string materialCode, string begin, string end, string materialGroup)
{ {

2
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/WmsJitOutput/WmsJitOutputDapperRepository.cs

@ -17,7 +17,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob
: base(dbContextProvider) : base(dbContextProvider)
{ {
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public virtual bool Execute(string billnum, string date) public virtual bool Execute(string billnum, string date)
{ {
string sqlString = string sqlString =

2
code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/PD_SERVICE.cs

@ -30,7 +30,7 @@ namespace SettleAccount.Job.Services
_dapper = dapper; _dapper = dapper;
//_pdmng=pdmng; //_pdmng=pdmng;
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
/// <summary> /// <summary>
/// 执行发票待开任务 /// 执行发票待开任务
/// </summary> /// </summary>

2
code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/FisOutputService.cs

@ -32,7 +32,7 @@ namespace SettleAccount.Job.Services
_versionRepository = versionRepository; _versionRepository = versionRepository;
_dapperRepository = dapperRepository; _dapperRepository = dapperRepository;
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public string ExportFile(Guid id, List<string> exportName, List<CustomCondition> p_list) public string ExportFile(Guid id, List<string> exportName, List<CustomCondition> p_list)
{ {
var billnum = p_list.Where(p => p.Name == "BillNum").FirstOrDefault().Value; var billnum = p_list.Where(p => p.Name == "BillNum").FirstOrDefault().Value;

2
code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/HQHSettledDetailDiffExportService.cs

@ -47,7 +47,7 @@ namespace SettleAccount.Job.Services.Report
_errorListRepository = errorListRepository; _errorListRepository = errorListRepository;
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public string ExportFile(Guid id, List<string> exportName, List<CustomCondition> p_list) public string ExportFile(Guid id, List<string> exportName, List<CustomCondition> p_list)
{ {
var _filename = exportName.FirstOrDefault(); var _filename = exportName.FirstOrDefault();

4
code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/SyncFisService.cs

@ -43,14 +43,14 @@ namespace SettleAccount.Job.Services.Report
_fileContainer = fileContainer; _fileContainer = fileContainer;
_erpdapperRepository = erpdapperRepository; _erpdapperRepository = erpdapperRepository;
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public string ExportFile(Guid id, List<string> exportName, List<CustomCondition> p_list) public string ExportFile(Guid id, List<string> exportName, List<CustomCondition> p_list)
{ {
return id.ToString(); return id.ToString();
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public List<UnSettledSum> GetFisSum(Guid id, List<string> exportName, List<CustomCondition> p_list) public List<UnSettledSum> GetFisSum(Guid id, List<string> exportName, List<CustomCondition> p_list)
{ {
var _first = exportName.FirstOrDefault(); var _first = exportName.FirstOrDefault();

2
code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/UnSettledSumService.cs

@ -72,7 +72,7 @@ namespace SettleAccount.Job.Services.Report
_fileContainer = fileContainer; _fileContainer = fileContainer;
} }
[UnitOfWork(false)] [UnitOfWork(IsDisabled = false)]
public List<UnSettledSum> GetFisSum(Guid id, List<string> exportName, List<CustomCondition> p_list) public List<UnSettledSum> GetFisSum(Guid id, List<string> exportName, List<CustomCondition> p_list)
{ {
var _first = exportName.FirstOrDefault(); var _first = exportName.FirstOrDefault();

Loading…
Cancel
Save