diff --git a/ds-wms-service/DS.WMS.Core/Op/Dtos/BLIssueManage/BLCheckInOutDto.cs b/ds-wms-service/DS.WMS.Core/Op/Dtos/BLIssueManage/BLCheckInOutDto.cs new file mode 100644 index 00000000..943799c9 --- /dev/null +++ b/ds-wms-service/DS.WMS.Core/Op/Dtos/BLIssueManage/BLCheckInOutDto.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DS.WMS.Core.Op.Dtos +{ + /// + /// 提单签入签出请求 + /// + public class BLCheckInOutDto + { + /// + /// 订舱编号 + /// + public long[] bookids { get; set; } + + /// + /// 签入或签出时间 + /// + public Nullable CheckDate { get; set; } + + /// + /// 签入或签出备注 + /// + public string Notes { get; set; } + + } +} diff --git a/ds-wms-service/DS.WMS.Core/Op/Dtos/BLIssueManage/ShipCertCheckInOutDto.cs b/ds-wms-service/DS.WMS.Core/Op/Dtos/BLIssueManage/ShipCertCheckInOutDto.cs new file mode 100644 index 00000000..4765b5bf --- /dev/null +++ b/ds-wms-service/DS.WMS.Core/Op/Dtos/BLIssueManage/ShipCertCheckInOutDto.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DS.WMS.Core.Op.Dtos +{ + /// + /// 船证签入签出请求 + /// + public class ShipCertCheckInOutDto + { + /// + /// 订舱编号 + /// + public long[] bookids { get; set; } + + /// + /// 签入或签出时间 + /// + public Nullable CheckDate { get; set; } + + /// + /// 签入或签出备注 + /// + public string Notes { get; set; } + } +} diff --git a/ds-wms-service/DS.WMS.Core/Op/Interface/BLIssueManage/IBLIssueManageService.cs b/ds-wms-service/DS.WMS.Core/Op/Interface/BLIssueManage/IBLIssueManageService.cs new file mode 100644 index 00000000..9881094a --- /dev/null +++ b/ds-wms-service/DS.WMS.Core/Op/Interface/BLIssueManage/IBLIssueManageService.cs @@ -0,0 +1,129 @@ +using DS.Module.Core; +using DS.WMS.Core.Op.Dtos; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DS.WMS.Core.Op.Interface +{ + /// + /// 提单管理 + /// + public interface IBLIssueManageService + { + /// + /// 提单管理台账查询 + /// + /// 查询条件 + /// 返回回执 + Task>> GetPageAsync(PageRequest querySearch); + + /// + /// 导出 + /// + /// 查询条件 + /// 返回回执 + Task> Export(PageRequest querySearch); + + /// + /// 打印 + /// + /// 提单管理主键 + /// 返回回执 + Task> Print(long id); + + /// + /// 提单签入 + /// + /// 提单签入请求 + /// 返回回执 + Task BLCheckIn(BLCheckInOutDto model); + + /// + /// 取消提单签入 + /// + /// 取消提单签入请求 + /// 返回回执 + Task BLCheckInCancel(BLCheckInOutDto model); + + /// + /// 提单签出 + /// + /// 提单签入请求 + /// 返回回执 + Task BLCheckOut(BLCheckInOutDto model); + + /// + /// 取消提单签出 + /// + /// 取消提单签入请求 + /// 返回回执 + Task BLCheckOutCancel(BLCheckInOutDto model); + + /// + /// 船证签入 + /// + /// 船证签入请求 + /// 返回回执 + Task ShipCertCheckIn(ShipCertCheckInOutDto model); + + /// + /// 取消船证签入 + /// + /// 取消船证签入请求 + /// 返回回执 + Task ShipCertCheckInCancel(ShipCertCheckInOutDto model); + + /// + /// 船证签出 + /// + /// 船证签出请求 + /// 返回回执 + Task ShipCertCheckOut(ShipCertCheckInOutDto model); + + /// + /// 取消船证签出 + /// + /// 取消船证签出请求 + /// 返回回执 + Task ShipCertCheckOutCancel(ShipCertCheckInOutDto model); + + /// + /// 提单换签(背书) + /// + /// 提单换签(背书)请求 + /// 返回回执 + Task BLCheckChangeEndorse(BLCheckInOutDto model); + + /// + /// 取消提单换签(背书) + /// + /// 取消提单换签(背书)请求 + /// 返回回执 + Task BLCheckChangeEndorseCancel(BLCheckInOutDto model); + + /// + /// 驳回放单通知 + /// + /// 驳回放单通知请求 + /// 返回回执 + Task BLRejectReleaseNotice(BLCheckInOutDto model); + + /// + /// 更改提单(其他) + /// + /// 更改提单请求 + /// 返回回执 + Task BLModify(BLCheckInOutDto model); + + /// + /// 状态更改 + /// + /// 状态更改请求 + /// 返回回执 + Task BLModifyStatus(BLCheckInOutDto model); + + } +} diff --git a/ds-wms-service/DS.WMS.Core/Op/Method/BLIssueManage/BLIssueManageService.cs b/ds-wms-service/DS.WMS.Core/Op/Method/BLIssueManage/BLIssueManageService.cs new file mode 100644 index 00000000..ac43a7bb --- /dev/null +++ b/ds-wms-service/DS.WMS.Core/Op/Method/BLIssueManage/BLIssueManageService.cs @@ -0,0 +1,288 @@ +using Amazon.Runtime.Internal.Util; +using DS.Module.Core; +using DS.Module.Core.Log; +using DS.Module.SqlSugar; +using DS.Module.UserModule; +using DS.WMS.Core.Op.Dtos; +using DS.WMS.Core.Op.Entity; +using Microsoft.AspNetCore.Identity; +using Microsoft.Extensions.DependencyInjection; +using SqlSugar; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Mapster; +using Microsoft.AspNetCore.Mvc; +using DS.WMS.Core.Op.Interface; +using SqlSugar.IOC; +using Newtonsoft.Json; +using NLog; +using DS.WMS.Core.Sys.Interface; +using Microsoft.AspNetCore.Http; +using LanguageExt.Common; +using DS.Module.Core.Helpers; +using NPOI.SS.Formula.Functions; +using System.Text.RegularExpressions; +using DS.WMS.Core.Sys.Method; +using DS.WMS.Core.Map.Dtos; +using Org.BouncyCastle.Ocsp; +using DS.WMS.Core.Code.Entity; +using DS.WMS.Core.Map.Entity; +using DS.WMS.Core.Code.Dtos; +using System.Net.Http.Headers; +using DS.Module.DjyServiceStatus; +using NPOI.SS.UserModel; +using DS.WMS.Core.Info.Interface; +using Microsoft.Extensions.FileSystemGlobbing; +using DS.WMS.Core.Info.Entity; +using DS.WMS.Core.Info.Dtos; +using Microsoft.AspNetCore.Hosting; +using Microsoft.Extensions.Hosting; +using AngleSharp.Dom.Events; +using Microsoft.AspNetCore.Authorization; +using DS.WMS.Core.Map.Interface; +using DS.WMS.Core.Code.Interface; +using DS.WMS.Core.Code.Method; +using DS.WMS.Core.Map.Method; +using DS.Module.Core.Extensions; +using DS.Module.Core.Constants; +using DS.Module.Core.Data; +using DS.WMS.Core.TaskPlat.Dtos; +using NPOI.XSSF.UserModel; +using AngleSharp.Dom; +using DS.WMS.Core.TaskPlat.Entity; +using Microsoft.VisualBasic.FileIO; +using Microsoft.Extensions.Logging; +using AnyDiff.Extensions; +using DS.WMS.Core.Sys.Entity; +using LanguageExt; +using Masuit.Tools.Models; +using System.ComponentModel; +using Masuit.Tools.Systems; +using System.Threading; +using NPOI.OpenXmlFormats.Wordprocessing; +using DS.WMS.Core.Invoice.Dtos; + +namespace DS.WMS.Core.Op.Method +{ + /// + /// + /// + public class BLIssueManageService: IBLIssueManageService + { + private readonly IServiceProvider _serviceProvider; + private readonly ISqlSugarClient db; + private readonly IUser user; + private readonly ISaasDbService saasService; + private readonly ISeaExportService _seaExportService; + + private static readonly NLog.Logger Logger = LogManager.GetCurrentClassLogger(); + + public BLIssueManageService(IServiceProvider serviceProvider) + { + _serviceProvider = serviceProvider; + db = _serviceProvider.GetRequiredService(); + user = _serviceProvider.GetRequiredService(); + saasService = _serviceProvider.GetRequiredService(); + _seaExportService = _serviceProvider.GetRequiredService(); + } + + #region 提单管理台账查询 + /// + /// 提单管理台账查询 + /// + /// 查询条件 + /// 返回回执 + public async Task>> GetPageAsync(PageRequest querySearch) + { + return null; + } + #endregion + + #region 导出 + /// + /// 导出 + /// + /// 查询条件 + /// 返回回执 + public async Task> Export(PageRequest querySearch) + { + return null; + } + #endregion + + #region 打印 + /// + /// 打印 + /// + /// 提单管理主键 + /// 返回回执 + public async Task> Print(long id) + { + return null; + } + #endregion + + #region 提单签入 + /// + /// 提单签入 + /// + /// 提单签入请求 + /// 返回回执 + public Task BLCheckIn(BLCheckInOutDto model) + { + /* + 1、判断是否已签入,已签入的不能重复签入 + */ + + return null; + } + #endregion + + #region 取消提单签入 + /// + /// 取消提单签入 + /// + /// 取消提单签入请求 + /// 返回回执 + public async Task BLCheckInCancel(BLCheckInOutDto model) + { + return null; + } + #endregion + + #region 提单签出 + /// + /// 提单签出 + /// + /// 提单签入请求 + /// 返回回执 + public async Task BLCheckOut(BLCheckInOutDto model) + { + return null; + } + #endregion + + #region 取消提单签出 + /// + /// 取消提单签出 + /// + /// 取消提单签入请求 + /// 返回回执 + public async Task BLCheckOutCancel(BLCheckInOutDto model) + { + return null; + } + #endregion + + #region 船证签入 + /// + /// 船证签入 + /// + /// 船证签入请求 + /// 返回回执 + public async Task ShipCertCheckIn(ShipCertCheckInOutDto model) + { + return null; + } + #endregion + + #region 取消船证签入 + /// + /// 取消船证签入 + /// + /// 取消船证签入请求 + /// 返回回执 + public async Task ShipCertCheckInCancel(ShipCertCheckInOutDto model) + { + return null; + } + #endregion + + #region 船证签出 + /// + /// 船证签出 + /// + /// 船证签出请求 + /// 返回回执 + public async Task ShipCertCheckOut(ShipCertCheckInOutDto model) + { + return null; + } + #endregion + + #region 取消船证签出 + /// + /// 取消船证签出 + /// + /// 取消船证签出请求 + /// 返回回执 + public async Task ShipCertCheckOutCancel(ShipCertCheckInOutDto model) + { + return null; + } + #endregion + + #region 提单换签(背书) + /// + /// 提单换签(背书) + /// + /// 提单换签(背书)请求 + /// 返回回执 + public async Task BLCheckChangeEndorse(BLCheckInOutDto model) + { + return null; + } + #endregion + + #region 取消提单换签(背书) + /// + /// 取消提单换签(背书) + /// + /// 取消提单换签(背书)请求 + /// 返回回执 + public async Task BLCheckChangeEndorseCancel(BLCheckInOutDto model) + { + return null; + } + #endregion + + #region 驳回放单通知 + /// + /// 驳回放单通知 + /// + /// 驳回放单通知请求 + /// 返回回执 + public async Task BLRejectReleaseNotice(BLCheckInOutDto model) + { + return null; + } + #endregion + + #region 更改提单(其他) + /// + /// 更改提单(其他) + /// + /// 更改提单请求 + /// 返回回执 + public async Task BLModify(BLCheckInOutDto model) + { + return null; + } + #endregion + + #region 状态更改 + /// + /// 状态更改 + /// + /// 状态更改请求 + /// 返回回执 + public async Task BLModifyStatus(BLCheckInOutDto model) + { + return null; + } + #endregion + } +}