Admin
2026-01-18 b593c2d4ada3244f4a256ca18a23c3fef609f234
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#region << 版 本 注 释 >>
/*----------------------------------------------------------------
 * 命名空间:WIDESEA_ITaskInfoService
 * 创建者:胡童庆
 * 创建时间:2024/8/2 16:13:36
 * 版本:V1.0.0
 * 描述:
 *
 * ----------------------------------------------------------------
 * 修改人:
 * 修改时间:
 * 版本:V1.0.1
 * 修改说明:
 * 
 *----------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
 
using Autofac.Core;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Common.CommonEnum;
using WIDESEA_Core;
using WIDESEA_Core.BaseRepository;
using WIDESEA_Core.BaseServices;
using WIDESEA_Core.Enums;
using WIDESEA_DTO;
using WIDESEA_DTO.Inbound;
using WIDESEA_DTO.Stock;
using WIDESEA_DTO.Task;
using WIDESEA_Model.Models;
 
namespace WIDESEA_ITaskInfoService
{
    public interface ITaskService : IService<Dt_Task>
    {
        IRepository<Dt_Task> Repository { get; }
 
        //任务反馈
        WebResponseContent TaskCompleted(WCSTaskDTO wCSTask);
        //WCS入库获取
        WebResponseContent PalletInboundTask(WCSTaskDTO wCSTask);
 
        #region WCS任务模块
 
        //下发WCS输送线任务
        WCSginseng PLC_IssueTasks(int TaskId, int AreaNo, string TransNo, string ContainerNo, int ContainerType, string FromPoint, string ToPoint, string ToStation);
        //下发WCS堆垛机任务
        WCSginseng SC_IssueTasks(int TaskId, int AreaNo, string TransNo, string ContainerNo, int ContainerType, string FromPoint, string ToPoint, string ToStation);
 
 
        #endregion
 
 
        #region MES任务模块
        //空盘回库,入库任务
        ApiResponse AddInStoreDoc(MES_InTask mES_In);
 
        //出库接口
        ApiResponse AddOutStoreDoc(MES_InTask mES_In);
 
        //库位调拨接口
        ApiResponse GetLocationByContainer(MES_InTask mES_In);
 
        //任务查询
        ApiResponse GetTaskInfo([FromBody] MES_InTask mES_In);
 
        //任务取消接口
        ApiResponse CancelTask([FromBody] MES_InTask mES_In);
 
 
 
        //入库任务反馈接口
        MES_parameter InStoreDocCallback(string TransNo, string Result, string ResultMsg, string ContainerNo, string LocationCode);
        //出库任务反馈接口
        MES_parameter OutStoreDocCallback(string TransNo, string Result, string ResultMsg);
 
        //储位异动申请
        MES_parameter ApplicationChangeStorageLocation(string ContainerNo, string OriginalLocationCode, string NewLocationCode);
        //储位异动
        MES_parameter AbnormalStorageLocation(string ContainerNo, string OriginalLocationCode, string NewLocationCode);
        /// 任务异常
        MES_parameter ToMES_TaskException(string TransNo, string EquipmentType, string EquipmentNumber, string ErrorInfo);
        #endregion
    }
}