|
|
@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
using NPOI.SS.Formula.Functions; |
|
|
|
using SettleAccount.Domain.BQ; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
@ -9,7 +10,10 @@ using System.Text; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Volo.Abp.Application.Dtos; |
|
|
|
using Volo.Abp.Application.Services; |
|
|
|
using Win.Sfs.BaseData.ImportExcelCommon; |
|
|
|
using Win.Sfs.SettleAccount.Bases; |
|
|
|
using Win.Sfs.SettleAccount.Entities.BQ.Dtos; |
|
|
|
using Win.Sfs.Shared.RepositoryBase; |
|
|
|
|
|
|
|
namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
{ |
|
|
@ -17,23 +21,25 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
|
|
|
|
[AllowAnonymous] |
|
|
|
[Route("api/settleaccount/[controller]/[action]")]
|
|
|
|
public class BBAC_CAN_SA_SERVICE : ApplicationService, IBBAC_CAN_SA_SERVICE |
|
|
|
public class BBAC_CAN_SA_SERVICE : CAN_SA_SERVICE |
|
|
|
< |
|
|
|
BBAC_CAN_SA, |
|
|
|
BBAC_CAN_SA_DTO, |
|
|
|
BBAC_CAN_SA_DETAIL, |
|
|
|
BBAC_CAN_SA_DETAIL_DTO, |
|
|
|
BBAC_CAN_SA_REQ_DTO, |
|
|
|
BBAC_CAN_SA_DETAIL_REQ_DTO, |
|
|
|
BBAC_CAN_SA_DETAIL_EXP_DTO |
|
|
|
> |
|
|
|
{ |
|
|
|
[HttpPost] |
|
|
|
//[Route("detailquery")]
|
|
|
|
public Task<PagedResultDto<BBAC_CAN_SA_DETAIL_DTO>> DetailQueryAsync(BBAC_CAN_SA_DETAIL_REQ_DTO input) |
|
|
|
{ |
|
|
|
throw new NotImplementedException(); |
|
|
|
} |
|
|
|
[HttpPost] |
|
|
|
[Route("export")] |
|
|
|
public Task<string> ExportAsync(BBAC_CAN_SA_REQ_DTO input) |
|
|
|
protected BBAC_CAN_SA_SERVICE(INormalEfCoreRepository<BBAC_CAN_SA, Guid> repository, IExcelImportAppService excelImportService, INormalEfCoreRepository<BBAC_CAN_SA_DETAIL, Guid> detailRepository) : base(repository, excelImportService, detailRepository) |
|
|
|
{ |
|
|
|
throw new NotImplementedException(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[HttpPost] |
|
|
|
//[Route("generateinvoice")]
|
|
|
|
public Task<bool> GenerateInvoice(BBAC_CAN_SA_REQ_DTO input) |
|
|
|
public async override Task<bool> GenerateInvoice(BBAC_CAN_SA_REQ_DTO input) |
|
|
|
{ |
|
|
|
List<BBAC_CAN_SA_DETAIL_DTO> _ls = new List<BBAC_CAN_SA_DETAIL_DTO>(); |
|
|
|
var _query= _ls.GroupBy(p => new { p.GroupNum }).Select(p =>new {GroupNum=p.Key.GroupNum, Qty=p.Sum(itm=>itm.Price)}); |
|
|
@ -85,11 +91,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
// return true;
|
|
|
|
|
|
|
|
} |
|
|
|
[HttpPost] |
|
|
|
//[Route("mainquery")]
|
|
|
|
public Task<PagedResultDto<BBAC_CAN_SA_DTO>> MainQueryAsync(BBAC_CAN_SA_REQ_DTO input) |
|
|
|
{ |
|
|
|
throw new NotImplementedException(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|