You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

114 lines
4.2 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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="pkId">派车主键</param>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> SendDispatch(string pkId);
/// <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">类型1pdf、2xlsx、3docx</param>
/// <param name="printType">打印类型10FastReport、20Excel模板</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">打印分类10FastReport、20Excel模板</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);
}
}