|
|
@ -2,6 +2,7 @@ |
|
|
|
using DocumentFormat.OpenXml.Bibliography; |
|
|
|
using DocumentFormat.OpenXml.Drawing.Charts; |
|
|
|
using DocumentFormat.OpenXml.Office2010.Excel; |
|
|
|
using EFCore.BulkExtensions; |
|
|
|
using Magicodes.ExporterAndImporter.Core; |
|
|
|
using Magicodes.ExporterAndImporter.Csv; |
|
|
|
using Magicodes.ExporterAndImporter.Excel; |
|
|
@ -19,7 +20,9 @@ using System.Text; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using TaskJob.EventArgs; |
|
|
|
using TaskJob.Services; |
|
|
|
using Volo.Abp; |
|
|
|
using Volo.Abp.Application.Dtos; |
|
|
|
using Volo.Abp.Uow; |
|
|
|
using Win.Abp.Snowflakes; |
|
|
|
using Win.Sfs.BaseData.ImportExcelCommon; |
|
|
|
using Win.Sfs.SettleAccount.CommonManagers; |
|
|
@ -28,6 +31,7 @@ using Win.Sfs.SettleAccount.Entities.BQ; |
|
|
|
using Win.Sfs.SettleAccount.Entities.BQ.Dtos; |
|
|
|
using Win.Sfs.SettleAccount.Entities.BQ.Syncs; |
|
|
|
using Win.Sfs.SettleAccount.Entities.BQ.Vmi; |
|
|
|
using Win.Sfs.SettleAccount.Entities.TaskJobs; |
|
|
|
using Win.Sfs.SettleAccount.ExcelImporter; |
|
|
|
using Win.Sfs.SettleAccount.ExportReports; |
|
|
|
using Win.Sfs.Shared.RepositoryBase; |
|
|
@ -50,7 +54,7 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
protected readonly INormalEfCoreRepository<BBAC_SEC_DETAIL, Guid> _bbacSecRepository; |
|
|
|
protected readonly INormalEfCoreRepository<HBPO_SEC_DETAIL, Guid> _hbpoSecRepository; |
|
|
|
protected readonly INormalEfCoreRepository<PUB_SEC_DETAIL, Guid> _pubSecRepository; |
|
|
|
|
|
|
|
private readonly TaskJobService _service; |
|
|
|
public PD_SERVICE( |
|
|
|
|
|
|
|
INormalEfCoreRepository<BBAC_SEC_DETAIL, Guid> bbacSecRepository, |
|
|
@ -61,9 +65,11 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
ICommonManager commonManager, |
|
|
|
INormalEfCoreRepository<TEntity, Guid> repository, |
|
|
|
VmiAppService vimservice, |
|
|
|
INormalEfCoreRepository<TEntityDetail, Guid> detailRepository |
|
|
|
INormalEfCoreRepository<TEntityDetail, Guid> detailRepository, |
|
|
|
TaskJobService service |
|
|
|
) : base(excelImportService, snowflakeIdGenerator, commonManager) |
|
|
|
{ |
|
|
|
_service = service; |
|
|
|
_vimservice = vimservice; |
|
|
|
_repository = repository; |
|
|
|
_detailRepository = detailRepository; |
|
|
@ -127,18 +133,17 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
return _fileName; |
|
|
|
} |
|
|
|
[HttpPost] |
|
|
|
//[Route("generateinvoice")]
|
|
|
|
[UnitOfWork(false)] |
|
|
|
public virtual async Task<string> ApprovalPassed(List<string> p_list) |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ApplicationConsts.SuccessStr; |
|
|
|
return await InvokePD(p_list, _service, false); |
|
|
|
} |
|
|
|
[HttpPost] |
|
|
|
[UnitOfWork(false)] |
|
|
|
public virtual async Task<string> RejectAsync(List<string> p_list) |
|
|
|
{ |
|
|
|
return await InvokePD(p_list, _service, true); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected async Task<string> InvokePD(List<string> p_list, TaskJobService p_service, bool isback=false) |
|
|
@ -214,16 +219,7 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
var dtos = ObjectMapper.Map<List<TEntity>, List<TEntityDto>>(entitys); |
|
|
|
return new PagedResultDto<TEntityDto>(totalCount, dtos); |
|
|
|
} |
|
|
|
/// <summary>
|
|
|
|
/// 退回
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="input"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost] |
|
|
|
public virtual async Task<string> RejectAsync(List<string> p_list) |
|
|
|
{ |
|
|
|
return ApplicationConsts.SuccessStr; |
|
|
|
} |
|
|
|
|
|
|
|
protected virtual async Task<TEntity> GetMainAsync([FromBody] string billNum) |
|
|
|
{ |
|
|
|
return await _repository.Where(p => p.InvGroupNum == billNum).FirstOrDefaultAsync().ConfigureAwait(false); |
|
|
|