刘磊
2025-06-09 dabbcafc629ef87d11ba55ef8cc1cdc776c047d8
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
using Microsoft.AspNetCore.Mvc;
using System;
using System.CodeDom;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core;
using WIDESEA_Core.Enums;
using WIDESEA_DTO;
using WIDESEA_DTO.WMS;
using WIDESEA_Model.Models;
namespace WIDESEA_StoragIntegrationServices
{
    public partial class WCSService
    {
        public async Task<WebResponseContent> CallPalletCodeAsync(RequestTaskDto json)
        {
            WebResponseContent content = new WebResponseContent();
            try
            {
                // stockInfo = _pa.QueryFirst(X => X.Wheels_Type == "x");
                //if (stockInfo == null) throw new Exception("库内无满足条件的库存可出库");
 
                // 创建新任务实例
                //var task = new Dt_Task
                //{
                //    CurrentAddress = stockInfo.LocationInfo.RoadwayNo,
                //    Grade = 1,
                //    Roadway = stockInfo.LocationInfo.RoadwayNo,
                //    TargetAddress = ToAddress,
                //    Dispatchertime = DateTime.Now,
                //    MaterialNo = "",
                //    NextAddress = ToAddress,
                //    OrderNo = null,
                //    PalletCode = input.PalletCode,
                //    SourceAddress = input.Position,
                //    TaskState = (int)TaskOutStatusEnum.OutNew,
                //    TaskType = (int)TaskOutboundTypeEnum.Outbound,
                //    TaskNum = await _taskRepository.GetTaskNo(),
                //    Creater = "Systeam"
                //};
 
 
                WMSTaskDTO taskDTO = new WMSTaskDTO()
                {
 
                };
 
 
                return content.OK();
            }
            catch (Exception ex)
            {
                return content.Error($"失败:{ex.Message}");
            }
        }
    }
}