|
|
using Myshipping.Core;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
namespace Myshipping.Application
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 服务流程
|
|
|
/// </summary>
|
|
|
public interface IServiceWorkFlowBaseService
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 保存
|
|
|
/// </summary>
|
|
|
/// <param name="info">服务流程详情</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> Save(ServiceWorkFlowBaseDto info);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 保存并启用
|
|
|
/// </summary>
|
|
|
/// <param name="info">服务流程详情</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> SaveAndEnable(ServiceWorkFlowBaseDto info);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 启用
|
|
|
/// </summary>
|
|
|
/// <param name="pkIds">服务流程主键数组</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> SetEnable(string[] pkIds);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 取消启用
|
|
|
/// </summary>
|
|
|
/// <param name="pkIds">服务流程主键数组</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> SetUnEnable(string[] pkIds);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 删除
|
|
|
/// </summary>
|
|
|
/// <param name="pkIds">服务流程主键数组</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> Delete(string[] pkIds);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 复制
|
|
|
/// </summary>
|
|
|
/// <param name="pkId">服务流程主键</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> Copy(string pkId);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 获取服务流程详情
|
|
|
/// </summary>
|
|
|
/// <param name="pkId">服务流程主键</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> GetInfo(string pkId);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 检索服务流程列表
|
|
|
/// </summary>
|
|
|
/// <param name="queryItem">检索值</param>
|
|
|
/// <param name="topNum">最大返回行数(默认15)</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> QueryList(string queryItem, int topNum = 15);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 服务流程台账查询
|
|
|
/// </summary>
|
|
|
/// <param name="QuerySearch">服务流程台账查询请求</param>
|
|
|
/// <returns>返回结果</returns>
|
|
|
Task<SqlSugarPagedList<ServiceWorkFlowBasePageDto>> GetPageAsync(QueryServiceWorkFlowBaseDto QuerySearch);
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 发布服务流程
|
|
|
/// </summary>
|
|
|
/// <param name="pkIds">服务流程主键数组</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> PublishRelease(string[] pkIds);
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 获取展示服务流程时间轴列表
|
|
|
/// </summary>
|
|
|
/// <param name="pkId">服务流程主键</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> GetShowTimeLine(string pkId);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 保存服务流程活动
|
|
|
/// </summary>
|
|
|
/// <param name="info">保存服务流程活动详情</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> SaveWFActivities(ServiceWorkFlowActivitiesDto info);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 通过服务活动主键获取所有相关服务流程列表
|
|
|
/// </summary>
|
|
|
/// <param name="activitiesArgs">服务活动主键数组</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> GetServiceWorkFlowListByActivities(string[] activitiesArgs);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 检索服务流程活动列表
|
|
|
/// </summary>
|
|
|
/// <param name="queryItem">检索值</param>
|
|
|
/// <param name="topNum">最大返回行数(默认15)</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> QueryActivitiesList(string queryItem, int topNum = 15);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 检索可用的服务项目列表
|
|
|
/// </summary>
|
|
|
/// <param name="tenantId">租户ID</param>
|
|
|
/// <param name="isAvoidCache">是否不从缓存取值</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<List<ServiceProjectBaseDto>> GetEnableProjectList(string tenantId, bool isAvoidCache = false);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 检索可用的服务项目和状态列表
|
|
|
/// </summary>
|
|
|
/// <param name="tenantId">租户ID</param>
|
|
|
/// <param name="isAvoidCache">是否不从缓存取值</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<List<ServiceProjectWithStatusDto>> GetEnableProjectWithStatusList(string tenantId, bool isAvoidCache = false);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
}
|