|
|
|
@ -0,0 +1,246 @@
|
|
|
|
|
using DS.Module.Core;
|
|
|
|
|
using DS.WMS.Core.Op.Dtos;
|
|
|
|
|
using DS.WMS.Core.Op.Interface;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using static iText.StyledXmlParser.Jsoup.Select.Evaluator;
|
|
|
|
|
|
|
|
|
|
namespace DS.WMS.OpApi.Controllers
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 提单管理
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class BLIssueManageController : ApiController
|
|
|
|
|
{
|
|
|
|
|
private readonly IBLIssueManageService _BLIssueManageService;
|
|
|
|
|
|
|
|
|
|
public BLIssueManageController(IBLIssueManageService BLIssueManageService)
|
|
|
|
|
{
|
|
|
|
|
_BLIssueManageService = BLIssueManageService;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 提单管理台账查询
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 提单管理台账查询
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="querySearch">查询条件</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("GetPage")]
|
|
|
|
|
public async Task<DataResult<List<BookingSlotBaseDto>>> GetPageAsync([FromBody] PageRequest querySearch)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.GetPageAsync(querySearch);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 导出
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 导出
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="querySearch">查询条件</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("Export")]
|
|
|
|
|
public async Task<DataResult<string>> Export([FromBody] PageRequest querySearch)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.Export(querySearch);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 打印
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 打印
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">提单管理主键</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("Print")]
|
|
|
|
|
public async Task<DataResult<string>> Print([FromQuery] long id)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.Print(id);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 提单签入
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 提单签入
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">提单签入请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("BLCheckIn")]
|
|
|
|
|
public async Task<DataResult> BLCheckIn([FromBody] BLCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.BLCheckIn(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 取消提单签入
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 取消提单签入
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">取消提单签入请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("BLCheckInCancel")]
|
|
|
|
|
public async Task<DataResult> BLCheckInCancel([FromBody] BLCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.BLCheckInCancel(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 提单签出
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 提单签出
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">提单签入请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("BLCheckOut")]
|
|
|
|
|
public async Task<DataResult> BLCheckOut([FromBody] BLCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.BLCheckOut(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 取消提单签出
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 取消提单签出
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">取消提单签入请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("BLCheckOutCancel")]
|
|
|
|
|
public async Task<DataResult> BLCheckOutCancel([FromBody] BLCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.BLCheckOutCancel(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 船证签入
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 船证签入
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">船证签入请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("ShipCertCheckIn")]
|
|
|
|
|
public async Task<DataResult> ShipCertCheckIn([FromBody] ShipCertCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.ShipCertCheckIn(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 取消船证签入
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 取消船证签入
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">取消船证签入请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("ShipCertCheckInCancel")]
|
|
|
|
|
public async Task<DataResult> ShipCertCheckInCancel([FromBody] ShipCertCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.ShipCertCheckInCancel(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 船证签出
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 船证签出
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">船证签出请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("ShipCertCheckOut")]
|
|
|
|
|
public async Task<DataResult> ShipCertCheckOut([FromBody] ShipCertCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.ShipCertCheckOut(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 取消船证签出
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 取消船证签出
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">取消船证签出请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("ShipCertCheckOutCancel")]
|
|
|
|
|
public async Task<DataResult> ShipCertCheckOutCancel([FromBody] ShipCertCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.ShipCertCheckOutCancel(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 提单换签(背书)
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 提单换签(背书)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">提单换签(背书)请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("BLCheckChangeEndorse")]
|
|
|
|
|
public async Task<DataResult> BLCheckChangeEndorse([FromBody] BLCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.BLCheckChangeEndorse(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 取消提单换签(背书)
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 取消提单换签(背书)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">取消提单换签(背书)请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("BLCheckChangeEndorseCancel")]
|
|
|
|
|
public async Task<DataResult> BLCheckChangeEndorseCancel([FromBody] BLCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.BLCheckChangeEndorse(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 驳回放单通知
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 驳回放单通知
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">驳回放单通知请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("BLRejectReleaseNotice")]
|
|
|
|
|
public async Task<DataResult> BLRejectReleaseNotice([FromBody] BLCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.BLRejectReleaseNotice(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 更改提单(其他)
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 更改提单(其他)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">更改提单请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("BLModify")]
|
|
|
|
|
public async Task<DataResult> BLModify([FromBody] BLCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.BLModify(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 状态更改
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 状态更改
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">状态更改请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("BLModifyStatus")]
|
|
|
|
|
public async Task<DataResult> BLModifyStatus([FromBody] BLCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.BLModify(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|