using Myshipping.Core; using Microsoft.AspNetCore.Mvc; using System.Threading.Tasks; using Myshipping.Application.Entity; using Myshipping.Application.Service.BookingOrder.Dto; using Microsoft.AspNetCore.Http; using System.Collections.Generic; using Myshipping.Application.Service.BookingSlot.Dto; namespace Myshipping.Application { public interface IBookingOrderService { Task Delete(string Ids); Task Get(long Id); Task> GetLog(long Id); Task Download(long id); Task> GetRemark(long Id); Task AddRemark(BookingRemarkDto dto); Task AddFile(IFormFile file, [FromForm] BookingFileDto dto); Task> GetFile(long Id); Task> GetBookingStatusLog(long Id); /// /// 发送订舱、截单EDI /// /// 订舱、截单EDI请求 /// 返回回执 Task SendBookingOrClosingEDI(BookingOrClosingEDIOrderDto model); Task BachUpdate(BatchUpdate dto); Task InnerBookingOrClosingEDI(BookingOrClosingEDIOrderDto model); /// /// 推送东胜 /// /// /// /// /// Task SendBookingOrder(long[] ids, BookingOrderSyncTypeEnum? syncTypeEnum = null, string oddCode = ""); /// /// 保存(新增或修改)放舱 /// /// 放舱详情 /// 返回放舱主键 Task LetteryardSave(UpdateBookingLetteryardInput input); /// /// 放舱发送 /// /// 订舱ID /// 放舱选择模板 /// Task SendLetterYard(long bookingId, long templateId); /// /// 设置货物状态完成 /// /// /// /// Task SetGoodsStatus(string code, long bookingId); /// /// 记录日志 /// /// /// /// 日志操作来源 /// 明确的被修改的字段 /// Task SaveLog(BookingOrder newOrder, BookingOrder oldOrder, string fromFunc, List updateFields = null); Task AutoYardData(long bookId); /// /// 推送服务状态 /// /// 服务状态代码 /// 订舱ID /// 是否默认同步东胜 true-自动同步 false-不自动同步 /// Task SetGoodsStatusPush(string code, long bookingId, bool isAutoSyncDS = false); /// /// 取消服务状态 /// /// 服务状态代码 /// 订舱编号 /// 是否默认同步东胜 true-自动同步 false-不自动同步 /// Task SetGoodsStatusCancel(string code, long bookingId, bool isAutoSyncDS = false); /// /// 设定保存订舱的货物状态并同步东胜 /// /// /// 是否默认同步东胜 true-自动同步 false-不自动同步 /// 调用方模块名 /// Task SetBookingGoodsStatus(long bookingId, bool isAutoSyncDS = false, string fromFunc = null); /// /// 检查是否VOLTA并返回初始数据 /// /// 请求参数 /// 返回回执 dynamic CheckAndInitVOLTAEdi(BookingOrClosingEDIOrderDto model); /// /// 发送VOLTA截单请求 /// /// 请求截单详情 /// 返回回执 Task SendVOLTAEdiSI(VOLTAEDIBaseModel model); /// /// 下载VOLTA截单请求报文 /// /// 请求截单详情 /// 返回回执 Task DownloadVOLTAEdiSI(VOLTAEDIBaseModel model); /// /// 生成VOLTA报文(内部方法) /// /// 请求截单详情 /// 是否直接发送VOLTA申报截单 /// 返回回执 Task InnerVOLTAEDI(VOLTAEDIBaseModel model, bool isSend = false); /// /// 订舱保存 /// /// 订舱请求详情 /// 返回回执 Task Save(SaveBookingOrderInput input); /// /// 批量更新订舱的详情 /// /// 请求参数 /// Task BatchUpdateOrder(BatchUpdate dto); /// /// 获取舱位拆票或者合票后新单号结果 /// /// 舱位拆票或者合票请求 /// 返回舱位拆票或者合票结果 Task GetBookingSlotMergeOrSplitResult(BookingSlotMergeOrSplitRequestDto model); /// /// 检索订单信息(如果当前为拆、合票,内包含分票信息) /// /// 提单号 /// Task SearchOrderInfo(string mblNo); } }