|
|
@ -11,6 +11,7 @@ using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using System.Text; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Volo.Abp; |
|
|
|
using Volo.Abp.Application.Dtos; |
|
|
|
using Volo.Abp.Caching; |
|
|
|
using Volo.Abp.Domain.Repositories; |
|
|
@ -272,6 +273,11 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
|
[UnitOfWork(false)] |
|
|
|
public async Task<bool> WmsHQMKanbanOutPutPass(WmsJitRequestDto input) |
|
|
|
{ |
|
|
|
if (DateTime.Now.ToString("yyyyMM") != input.AccountDate.ToString("yyyyMM")) |
|
|
|
{ |
|
|
|
throw new BusinessException("8989", "填写过账日期应该为当月!"); |
|
|
|
|
|
|
|
} |
|
|
|
var sql = "DECLARE @return_value int\n" + |
|
|
|
"EXEC @return_value = [dbo].[p_wms_output]\n" + |
|
|
|
" @billnum = N'{0}',\n" + |
|
|
@ -297,6 +303,11 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
|
[Route("WmsHQMKanbanOutPut-Cancel")] |
|
|
|
public async Task<bool> WmsHQMKanbanOutPutCancel(WmsJitRequestDto input) |
|
|
|
{ |
|
|
|
if (DateTime.Now.ToString("yyyyMM") != input.AccountDate.ToString("yyyyMM")) |
|
|
|
{ |
|
|
|
throw new BusinessException("8989", "填写过账日期应该为当月!"); |
|
|
|
|
|
|
|
} |
|
|
|
if (input.Guids != null && input.Guids.Count() > 0) |
|
|
|
{ |
|
|
|
List<string> _ls = new List<string>(); |
|
|
|