You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
using Microsoft.Extensions.Options;
|
|
|
|
using Volo.Abp.AspNetCore.Mvc;
|
|
|
|
using Volo.Abp.Json;
|
|
|
|
using Win_in.Sfs.Basedata.Application.Contracts;
|
|
|
|
using Win_in.Sfs.Basedata.Domain;
|
|
|
|
|
|
|
|
namespace Win_in.Sfs.Wms.Pda.Controllers.BaseDatas;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 字典控制器
|
|
|
|
/// </summary>
|
|
|
|
[ApiController]
|
|
|
|
[Route($"{PdaHostConst.ROOT_ROUTE}split-packing-rec")]
|
|
|
|
public class SplitPackingRecController : AbpController
|
|
|
|
{
|
|
|
|
private readonly ISplitPackingRecAppService _splitPackingRecApp;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
///
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="splitPackingRecApp"></param>
|
|
|
|
public SplitPackingRecController(ISplitPackingRecAppService splitPackingRecApp, IOptions<AbpJsonOptions> options)
|
|
|
|
{
|
|
|
|
_splitPackingRecApp = splitPackingRecApp;
|
|
|
|
var str = options.Value.DefaultDateTimeFormat;
|
|
|
|
Console.WriteLine(str);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 取拆分记录列表
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="input"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost("get-all")]
|
|
|
|
public virtual async Task<List<SplitPackingRecDTO>> GetAllListByFilterAsync(SfsBaseDataRequestInputBase input)
|
|
|
|
{
|
|
|
|
return await _splitPackingRecApp.GetAllListByFilterAsync(input).ConfigureAwait(false);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取拆箱记录
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="toPackingCode">目标箱码列表</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpGet("get-split-packing-code")]
|
|
|
|
public async Task<SplitPackingRecDTO> GetSplitPackingCode(string toPackingCode)
|
|
|
|
{
|
|
|
|
return await _splitPackingRecApp.GetSplitPackingCode(toPackingCode).ConfigureAwait(false);
|
|
|
|
}
|
|
|
|
}
|