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.
Aucma.Scada/HighWayIot.Repository/service/IRealTaskInfoService.cs

131 lines
4.5 KiB
C#

using Aucma.Scada.Model.domain;
using System.Collections.Generic;
namespace HighWayIot.Repository.service
{
public interface IRealTaskInfoService
{
/// <summary>
/// 泡后库入库根据货道号查找所有执行中的任务
/// </summary>
/// <param name="taskInfo"></param>
/// <summary>
List<RealTaskInfo> GetAllInstoreTaskByStoreCode(string storeCode, string spaceCode, int taskType, int status);
/// <summary>
/// 泡后库出库删除所有任务信息
/// </summary>
/// <param name="taskInfo"></param>
/// <summary>
bool DeleteAllTaskByStoreCode(string storeCode, int taskType);
/// <summary>
/// 泡后库出库删除任务信息,根据时间删除第一条
/// </summary>
/// <param name="taskInfo"></param>
/// <summary>
bool DeleteFirstTaskByStoreCode(string storeCode, int taskType);
/// <summary>
/// 根据条码获取该型号出库任务按照时间排序第一条信息
/// </summary>
/// <param name="taskCode"></param>
/// <returns></returns>
RealTaskInfo GetTaskInfoByTaskCode(string materialType, string storeCode, int taskType);
/// <summary>
/// 泡后库出库根据条码型号删除任务信息
/// </summary>
/// <param name="taskInfo"></param>
bool DeleteTaskInfoByCode(RealTaskInfo taskInfo);
/// <summary>
/// 添加任务信息
/// </summary>
/// <param name="taskInfo"></param>
/// <returns></returns>
bool AddTaskInfo(RealTaskInfo taskInfo);
/// <summary>
/// 更新任务信息
/// </summary>
/// <param name="taskInfo"></param>
/// <returns></returns>
bool UpdateTaskInfo(RealTaskInfo taskInfo);
/// <summary>
/// 批量修改任务信息
/// </summary>
/// <param name="taskInfos"></param>
/// <returns></returns>
bool UpdateRangeTaskInfo(List<RealTaskInfo> taskInfos);
/// <summary>
/// 删除任务信息
/// </summary>
/// <param name="taskInfo"></param>
bool DeleteTaskInfo(string taskCode, string storeCode = null);
/// <summary>
/// 通过任务编号更新任务状态
/// </summary>
/// <param name="taskCode"></param>
/// <param name="taskStatus"></param>
/// <returns></returns>
bool UpdateTaskStatusByTaskCode(string taskCode, int taskStatus);
/// <summary>
/// 通过仓库编号获取待执行的任务信息,根据时间依次获取
/// </summary>
/// <param name="storeCode"></param>
/// <returns></returns>
RealTaskInfo GetTaskInfoByStoreCode(string storeCode, int taskType);
/// <summary>
/// 通过仓库编号获取所有待执行的任务信息
/// </summary>
/// <param name="storeCode"></param>
/// <returns></returns>
List<RealTaskInfo> GetAllTaskInfoByStoreCode(string storeCode, int taskType);
/// <summary>
/// 通过任务号获取任务信息
/// </summary>
/// <param name="taskCode"></param>
/// <returns></returns>
RealTaskInfo GetTaskInfoByTaskCode(string taskCode, string storeCode);
/// <summary>
/// 通过仓库编号获取任务
/// </summary>
/// <param name="storeCode"></param>
/// <param name="taskType"></param>
/// <returns></returns>
List<RealTaskInfo> GetTaskInfosByStoreCode(string[] storeCode, int taskType);
/// <summary>
/// 获取指定状态的任务列表
/// </summary>
/// <param name="storeCode"></param>
/// <param name="taskType"></param>
/// <param name="taskStatus">0返回所有状态1-待执行2-执行中3-已完成</param>
/// <returns></returns>
List<RealTaskInfo> GetTaskInfosByTaskStatus(string[] storeCode, int taskType, int taskStatus);
/// <summary>
/// 获取指定状态的货道去重的按时间排序任务列表
/// </summary>
/// <param name="storeCode"></param>
/// <param name="taskType"></param>
/// <param name="taskStatus"></param>
/// <returns></returns>
List<RealTaskInfo> GetTaskInfosForInstore(string storeCode, int taskType, int taskStatus);
8 months ago
List<RealTaskInfo> GetTaskInfosByTaskCode(string taskCode);
bool DeleteTaskInfoById(int id);
}
}