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#

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);
2 years ago
/// <summary>
/// 派车
/// </summary>
/// <param name="info">派车详情</param>
2 years ago
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> SendDispatch(TaskTruckDto info);
2 years ago
/// <summary>
/// 批量派车
/// </summary>
/// <param name="pkIds">派车主键组</param>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> SendDispatchBatch(string[] pkIds);
2 years ago
/// <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);
2 years ago
/// <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);
}
}