using Azure.Storage.Blobs.Models;
using DS.Module.Core;
using DS.Module.Core.Attributes;
using DS.Module.Core.Data;
using DS.Module.DjyServiceStatus;
using DS.WMS.Core.Op.Dtos;
using DS.WMS.Core.Op.Interface;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Owin.Security.Provider;
using Org.BouncyCastle.Crypto;
using SqlSugar;
namespace DS.WMS.OpApi.Controllers
{
///
/// 提单管理
///
public class BLIssueManageController : ApiController
{
private readonly IBLIssueManageService _BLIssueManageService;
public BLIssueManageController(IBLIssueManageService BLIssueManageService)
{
_BLIssueManageService = BLIssueManageService;
}
#region 提单管理台账查询
///
/// 提单管理台账查询
///
/// 查询条件
/// 返回回执
[HttpPost]
[Route("GetPage")]
public async Task>> GetPageAsync([FromBody] PageRequest querySearch)
{
return await _BLIssueManageService.GetPageAsync(querySearch);
}
#endregion
#region 获取导出数据列表
///
/// 获取导出数据列表
///
/// 查询条件
/// 返回回执
[HttpPost]
[Route("GetExportList")]
public async Task>> GetExportList(PageRequest querySearch)
{
return await _BLIssueManageService.GetExportList(querySearch);
}
#endregion
#region 打印
///
/// 打印
///
/// 提单管理主键
/// 返回回执
[HttpGet]
[Route("Print")]
public async Task> Print([FromQuery] long id)
{
return await _BLIssueManageService.Print(id);
}
#endregion
#region 提单签入
///
/// 提单签入
///
/// 提单签入请求
/// 返回回执
[HttpPost]
[Route("BLCheckIn")]
public async Task BLCheckIn([FromBody] BLCheckInOutDto model)
{
return await _BLIssueManageService.BLCheckIn(model);
}
#endregion
#region 取消提单签入
///
/// 取消提单签入
///
/// 取消提单签入请求
/// 返回回执
[HttpPost]
[Route("BLCheckInCancel")]
public async Task BLCheckInCancel([FromBody] BLCheckInOutDto model)
{
return await _BLIssueManageService.BLCheckInCancel(model);
}
#endregion
#region 提单签出
///
/// 提单签出
///
/// 提单签入请求
/// 返回回执
[HttpPost]
[Route("BLCheckOut")]
public async Task BLCheckOut([FromBody] BLCheckInOutDto model)
{
return await _BLIssueManageService.BLCheckOut(model);
}
#endregion
#region 取消提单签出
///
/// 取消提单签出
///
/// 取消提单签入请求
/// 返回回执
[HttpPost]
[Route("BLCheckOutCancel")]
public async Task BLCheckOutCancel([FromBody] BLCheckInOutDto model)
{
return await _BLIssueManageService.BLCheckOutCancel(model);
}
#endregion
#region 船证签入
///
/// 船证签入
///
/// 船证签入请求
/// 返回回执
[HttpPost]
[Route("ShipCertCheckIn")]
public async Task ShipCertCheckIn([FromBody] ShipCertCheckInOutDto model)
{
return await _BLIssueManageService.ShipCertCheckIn(model);
}
#endregion
#region 取消船证签入
///
/// 取消船证签入
///
/// 取消船证签入请求
/// 返回回执
[HttpPost]
[Route("ShipCertCheckInCancel")]
public async Task ShipCertCheckInCancel([FromBody] ShipCertCheckInOutDto model)
{
return await _BLIssueManageService.ShipCertCheckInCancel(model);
}
#endregion
#region 船证签出
///
/// 船证签出
///
/// 船证签出请求
/// 返回回执
[HttpPost]
[Route("ShipCertCheckOut")]
public async Task ShipCertCheckOut([FromBody] ShipCertCheckInOutDto model)
{
return await _BLIssueManageService.ShipCertCheckOut(model);
}
#endregion
#region 取消船证签出
///
/// 取消船证签出
///
/// 取消船证签出请求
/// 返回回执
[HttpPost]
[Route("ShipCertCheckOutCancel")]
public async Task ShipCertCheckOutCancel([FromBody] ShipCertCheckInOutDto model)
{
return await _BLIssueManageService.ShipCertCheckOutCancel(model);
}
#endregion
#region 提单换签(背书)
///
/// 提单换签(背书)
///
/// 提单换签(背书)请求
/// 返回回执
[HttpPost]
[Route("BLCheckChangeEndorse")]
public async Task BLCheckChangeEndorse([FromBody] BLCheckInOutDto model)
{
return await _BLIssueManageService.BLCheckChangeEndorse(model);
}
#endregion
#region 取消提单换签(背书)
///
/// 取消提单换签(背书)
///
/// 取消提单换签(背书)请求
/// 返回回执
[HttpPost]
[Route("BLCheckChangeEndorseCancel")]
public async Task BLCheckChangeEndorseCancel([FromBody] BLCheckInOutDto model)
{
return await _BLIssueManageService.BLCheckChangeEndorseCancel(model);
}
#endregion
#region 驳回放单通知
///
/// 驳回放单通知
///
/// 驳回放单通知请求
/// 返回回执
[HttpPost]
[Route("BLRejectReleaseNotice")]
public async Task BLRejectReleaseNotice([FromBody] BLCheckInOutDto model)
{
return await _BLIssueManageService.BLRejectReleaseNotice(model);
}
#endregion
#region 更改提单(其他)
///
/// 更改提单(其他)
///
/// 更改提单请求
/// 返回回执
[HttpPost]
[Route("BLModify")]
public async Task BLModify([FromBody] BLCheckInOutDto model)
{
return await _BLIssueManageService.BLModify(model);
}
#endregion
#region 状态更改
///
/// 状态更改
///
/// 状态更改请求
/// 返回回执
[HttpPost]
[Route("BLModifyStatus")]
public async Task BLModifyStatus([FromBody] BLCheckInOutDto model)
{
return await _BLIssueManageService.BLModifyStatus(model);
}
#endregion
#region 查询单票的提单管理日志
///
/// 查询单票的提单管理日志
///
/// 提单管理主键
/// 返回日志列表
[HttpGet]
[Route("GetLogs")]
public async Task>> GetLogs(long id)
{
return await _BLIssueManageService.GetLogs(id);
}
#endregion
#region 获取相关信息
///
/// 获取相关信息
///
/// 提单管理主键
/// 返回相关信息
[HttpGet]
[Route("GetRelateInfo")]
public async Task> GetRelateInfo(long id)
{
return await _BLIssueManageService.GetRelateInfo(id);
}
#endregion
#region 获取欠费详情列表
///
/// 获取欠费详情列表
///
/// 提单管理主键
/// 返回列表
[HttpGet]
[Route("GetOverdueFeeList")]
public async Task>> GetOverdueFeeList(long id)
{
return await _BLIssueManageService.GetOverdueFeeList(id);
}
#endregion
}
}