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; 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); /// /// 保存(新增或修改)放舱 /// /// 放舱详情 /// 返回放舱主键 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); 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> SearchShipSailingSchedule(QueryShipSailingScheduleDto model); /// /// 发送马士基订舱请求 /// /// 请求订舱详情 /// 返回检索结果 Task SendMSKBooking(MSKBookingDto model); /// /// 检索商品名称 /// /// 请求详情 /// 返回检索结果 Task> SearchCommodities(QueryCommoditiesDto model); /// /// 检索始发地、目的港口信息 /// /// 请求详情 /// 返回检索结果 Task> SearchLocations(QueryLocationsDto model); } }