|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
namespace Myshipping.Application
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 派车任务
|
|
|
/// </summary>
|
|
|
public interface ITaskManageTruckService
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 保存派车
|
|
|
/// </summary>
|
|
|
/// <param name="info">派车信息</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> Save(TaskTruckDto info);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 获取派车详情
|
|
|
/// </summary>
|
|
|
/// <param name="pkId">派车主键</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> GetInfo(string pkId);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 通过任务主键获取派车详情
|
|
|
/// </summary>
|
|
|
/// <param name="taskPkId">派车主键</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> GetInfoByTaskId(string taskPkId);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 派车
|
|
|
/// </summary>
|
|
|
/// <param name="info">派车详情</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> SendDispatch(TaskTruckDto info);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 批量派车
|
|
|
/// </summary>
|
|
|
/// <param name="pkIds">派车主键组</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> SendDispatchBatch(string[] pkIds);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 批量派车通过任务ID
|
|
|
/// </summary>
|
|
|
/// <param name="taskPkIds">Task任务主键组</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> SendDispatchBatchByTask(string[] taskPkIds);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 取消派车
|
|
|
/// </summary>
|
|
|
/// <param name="pkId">派车主键</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> CancelDispatch(string pkId);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 批量取消派车
|
|
|
/// </summary>
|
|
|
/// <param name="pkIds">派车主键组</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> CancelDispatchBatch(string[] pkIds);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 批量取消派车通过任务ID
|
|
|
/// </summary>
|
|
|
/// <param name="taskPkIds">Task任务主键组</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> CancelDispatchBatchByTask(string[] taskPkIds);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 打印派车
|
|
|
/// </summary>
|
|
|
/// <param name="taskPKId">派车主键</param>
|
|
|
/// <param name="templateId">打印模板ID</param>
|
|
|
/// <param name="cateCode">分类代码(使用字典【booking_template_category】中的代码)</param>
|
|
|
/// <param name="printFileType">类型,1:pdf、2:xlsx、3:docx</param>
|
|
|
/// <param name="printType">打印类型,10:FastReport、20:Excel模板</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<string> Print(string taskPKId, long templateId, string cateCode, PrintFileTypeEnum printFileType = PrintFileTypeEnum.PDF,
|
|
|
BookingPrintTemplateType printType = BookingPrintTemplateType.FastReport);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 获取订舱打印模板列表(带有当前用户打印历史排序)
|
|
|
/// </summary>
|
|
|
/// <param name="cateCode">分类代码(使用字典【booking_template_category】中的代码)</param>
|
|
|
/// <param name="printType">打印分类,10:FastReport、20:Excel模板</param>
|
|
|
/// <returns></returns>
|
|
|
Task<dynamic> PrintTemplateWithHistoryList(string cateCode, BookingPrintTemplateType printType);
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 获取场站数据
|
|
|
/// </summary>
|
|
|
/// <param name="pkId">派车任务主键</param>
|
|
|
/// <param name="isWeb"></param>
|
|
|
/// <returns>返回场站详情</returns>
|
|
|
Task<string> GetYardData(string pkId, bool isWeb = false);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 派车任务台账保存
|
|
|
/// </summary>
|
|
|
/// <param name="model">请求详情</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> SaveTruckByPage(TruckPageDto model);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 发送完派车后手工同步东胜
|
|
|
/// </summary>
|
|
|
/// <param name="info">派车详情</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> SendTruckAfterDispatch(TaskTruckDto info);
|
|
|
}
|
|
|
}
|