using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Rhea.Common;
using Tiger.Model;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Tiger.Model.Minsun;
using Tiger.IBusiness;
namespace Tiger.Api.Controllers.WMS
{
public partial class WMSController : ControllerBase
{
///
/// T100调用WMS返回收货单信息
///
///
///
[HttpPost]
[Route("api/[controller]/[action]")]
public IActionResult GetReceiptInfoAsync([FromBody] iReceiptParam input)
{
ApiAction response = new();
try
{
response = response.GetResponse(_IReceiptInfo.GetReceiptInfo(input));
}
catch (System.Exception ex)
{
response = response.GetResponse().CatchExceptionWithLog(ex);
}
return Ok(response);
}
///
/// 到货单生成接口 清点系统 --> wms, 生成到新框架
///
///
///
[HttpPost]
[Route("api/[controller]/[action]")]
public async Task GenerateReceiptNewAsync(iReceiptInput dtls)
{
ApiAction response = new();
try
{
response = response.GetResponse(_IReceiptInfo.GenerateReceipt(dtls));
}
catch (System.Exception ex)
{
response = response.GetResponse().CatchExceptionWithLog(ex);
}
return Ok(response);
}
}
}