添加项目文件。
This commit is contained in:
54
WPFWCSDemo/API/Task/StockIn/StockIn_Receive.cs
Normal file
54
WPFWCSDemo/API/Task/StockIn/StockIn_Receive.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.API.Task.StockIn
|
||||
{
|
||||
/// <summary>
|
||||
/// 接收WMS推送的*入库*任务
|
||||
/// </summary>
|
||||
public class StockIn_Receive
|
||||
{
|
||||
/// <summary>
|
||||
/// 流水号
|
||||
/// </summary>
|
||||
public string JobId { get; set; }
|
||||
/// <summary>
|
||||
/// 任务号
|
||||
/// </summary>
|
||||
public string TaskId { get; set; }
|
||||
/// <summary>
|
||||
/// 托盘编号
|
||||
/// </summary>
|
||||
public string PalletId { get; set; }
|
||||
/// <summary>
|
||||
/// 任务类型 1-入库 2-出库 3-移库
|
||||
/// </summary>
|
||||
public int TaskType { get; set; }
|
||||
/// <summary>
|
||||
/// 源站点
|
||||
/// </summary>
|
||||
public string SourceLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 目标站点
|
||||
/// </summary>
|
||||
public string TargetLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 优先级 1→3 高→低
|
||||
/// </summary>
|
||||
public int Priority { get; set; }
|
||||
/// <summary>
|
||||
/// 任务状态
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public string TaskCode { get; set; }
|
||||
/// <summary>
|
||||
/// 调度状态
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public string ScheduleCode { get; set; }
|
||||
}
|
||||
}
|
||||
27
WPFWCSDemo/API/Task/StockIn/StockIn_ReceiveResponse.cs
Normal file
27
WPFWCSDemo/API/Task/StockIn/StockIn_ReceiveResponse.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.API.Task.StockIn
|
||||
{
|
||||
/// <summary>
|
||||
/// 【接收*入库*推送后】向wms反馈消息
|
||||
/// </summary>
|
||||
public class StockIn_ReceiveResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 作业号
|
||||
/// </summary>
|
||||
public string JobId { get; set; }
|
||||
/// <summary>
|
||||
/// 反馈信息
|
||||
/// </summary>
|
||||
public string Message { get; set; }
|
||||
/// <summary>
|
||||
/// 返回结果 0-正常 1-异常
|
||||
/// </summary>
|
||||
public int Result { get; set; }
|
||||
}
|
||||
}
|
||||
42
WPFWCSDemo/API/Task/StockIn/StockIn_Request.cs
Normal file
42
WPFWCSDemo/API/Task/StockIn/StockIn_Request.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.API.Task.StockIn
|
||||
{
|
||||
/// <summary>
|
||||
/// wcs主动向wms请求*入库*任务
|
||||
/// </summary>
|
||||
public class StockIn_Request
|
||||
{
|
||||
/// <summary>
|
||||
/// 接口名称
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// 任务号
|
||||
/// </summary>
|
||||
public string TaskId { get; set; }
|
||||
/// <summary>
|
||||
/// 托盘号
|
||||
/// </summary>
|
||||
public string PalletId { get; set; }
|
||||
/// <summary>
|
||||
/// 任务类型
|
||||
/// </summary>
|
||||
public string TaskType { get; set; }
|
||||
/// <summary>
|
||||
/// 源站点
|
||||
/// </summary>
|
||||
public string SourceLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 发送结果
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public string Result { get; set; }
|
||||
}
|
||||
}
|
||||
27
WPFWCSDemo/API/Task/StockIn/StockIn_RequestResponse.cs
Normal file
27
WPFWCSDemo/API/Task/StockIn/StockIn_RequestResponse.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.API.Task.StockIn
|
||||
{
|
||||
/// <summary>
|
||||
/// 【向wms请求*入库*后】wms的返回消息
|
||||
/// </summary>
|
||||
public class StockIn_RequestResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 作业号
|
||||
/// </summary>
|
||||
public string JobId { get; set; }
|
||||
/// <summary>
|
||||
/// 反馈信息
|
||||
/// </summary>
|
||||
public string Message { get; set; }
|
||||
/// <summary>
|
||||
/// 返回结果 0-正常 1-异常
|
||||
/// </summary>
|
||||
public int Result { get; set; }
|
||||
}
|
||||
}
|
||||
54
WPFWCSDemo/API/Task/StockOut/StockOut_Receive.cs
Normal file
54
WPFWCSDemo/API/Task/StockOut/StockOut_Receive.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.API.Task.StockOut
|
||||
{
|
||||
/// <summary>
|
||||
/// 接收WMS推送的*出库*任务
|
||||
/// </summary>
|
||||
public class StockOut_Receive
|
||||
{
|
||||
/// <summary>
|
||||
/// 流水号
|
||||
/// </summary>
|
||||
public string JobId { get; set; }
|
||||
/// <summary>
|
||||
/// 任务号
|
||||
/// </summary>
|
||||
public string TaskId { get; set; }
|
||||
/// <summary>
|
||||
/// 托盘编号
|
||||
/// </summary>
|
||||
public string PalletId { get; set; }
|
||||
/// <summary>
|
||||
/// 任务类型 1-入库 2-出库 3-移库
|
||||
/// </summary>
|
||||
public int TaskType { get; set; }
|
||||
/// <summary>
|
||||
/// 源站点
|
||||
/// </summary>
|
||||
public string SourceLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 目标站点
|
||||
/// </summary>
|
||||
public string TargetLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 优先级 1→3 高→低
|
||||
/// </summary>
|
||||
public int Priority { get; set; }
|
||||
/// <summary>
|
||||
/// 任务状态
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public string TaskCode { get; set; }
|
||||
/// <summary>
|
||||
/// 调度状态
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public string ScheduleCode { get; set; }
|
||||
}
|
||||
}
|
||||
27
WPFWCSDemo/API/Task/StockOut/StockOut_ReceiveReponse.cs
Normal file
27
WPFWCSDemo/API/Task/StockOut/StockOut_ReceiveReponse.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.API.Task.StockOut
|
||||
{
|
||||
/// <summary>
|
||||
/// 【接收*出库*推送后】向wms反馈消息
|
||||
/// </summary>
|
||||
public class StockOut_ReceiveReponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 作业号
|
||||
/// </summary>
|
||||
public string JobId { get; set; }
|
||||
/// <summary>
|
||||
/// 反馈信息,可空
|
||||
/// </summary>
|
||||
public string Message { get; set; }
|
||||
/// <summary>
|
||||
/// 返回结果 0-正常 1-异常
|
||||
/// </summary>
|
||||
public int Result { get; set; }
|
||||
}
|
||||
}
|
||||
55
WPFWCSDemo/API/Task/Task_Receive.cs
Normal file
55
WPFWCSDemo/API/Task/Task_Receive.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.API.Task
|
||||
{
|
||||
/// <summary>
|
||||
/// 接收wms推送任务
|
||||
/// </summary>
|
||||
public class Task_Receive
|
||||
{
|
||||
/// <summary>
|
||||
/// 流水号
|
||||
/// </summary>
|
||||
public string? JobId { get; set; }
|
||||
/// <summary>
|
||||
/// 任务号
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public string? TaskId { get; set; }
|
||||
/// <summary>
|
||||
/// 托盘编号
|
||||
/// </summary>
|
||||
public string? PalletId { get; set; }
|
||||
/// <summary>
|
||||
/// 任务类型 1-入库 2-出库 3-移库
|
||||
/// </summary>
|
||||
public ushort TaskType { get; set; }
|
||||
/// <summary>
|
||||
/// 源站点
|
||||
/// </summary>
|
||||
public string? SourceLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 目标站点
|
||||
/// </summary>
|
||||
public string? TargetLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 优先级 1→3 高→低
|
||||
/// </summary>
|
||||
public int Priority { get; set; }
|
||||
/// <summary>
|
||||
/// 任务状态
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public string TaskState { get; set; }
|
||||
/// <summary>
|
||||
/// 调度状态
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public string ScheduleState { get; set; }
|
||||
}
|
||||
}
|
||||
27
WPFWCSDemo/API/Task/Task_Response.cs
Normal file
27
WPFWCSDemo/API/Task/Task_Response.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.API.Task
|
||||
{
|
||||
/// <summary>
|
||||
/// 【接收wms推送任务后】向wms反馈消息
|
||||
/// </summary>
|
||||
public class Task_Response
|
||||
{
|
||||
/// <summary>
|
||||
/// 作业号
|
||||
/// </summary>
|
||||
public string? JobId { get; set; }
|
||||
/// <summary>
|
||||
/// 反馈信息,可空
|
||||
/// </summary>
|
||||
public string? Message { get; set; }
|
||||
/// <summary>
|
||||
/// 返回结果 0-成功 1-失败
|
||||
/// </summary>
|
||||
public int Result { get; set; }
|
||||
}
|
||||
}
|
||||
28
WPFWCSDemo/API/Task/Task_StateRequest.cs
Normal file
28
WPFWCSDemo/API/Task/Task_StateRequest.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.API.Task
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据任务状态请求wms-向wms反馈执行结果
|
||||
/// </summary>
|
||||
public class Task_StateRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 作业号
|
||||
/// </summary>
|
||||
public string JobId { get; set; }
|
||||
/// <summary>
|
||||
/// 反馈信息
|
||||
/// </summary>
|
||||
public string Message { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态码 111-放货有货 121-取货无货 102-任务正常完成 103-任务人工完成 104-人工取消任务
|
||||
/// </summary>
|
||||
public string Code { get; set; }
|
||||
}
|
||||
}
|
||||
31
WPFWCSDemo/API/Task/Task_StateRequestResponse.cs
Normal file
31
WPFWCSDemo/API/Task/Task_StateRequestResponse.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.API.Task
|
||||
{
|
||||
/// <summary>
|
||||
/// 向wms反馈任务状态(执行结果)后(完成、重分等)返回的消息
|
||||
/// </summary>
|
||||
public class Task_StateRequestResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 作业号
|
||||
/// </summary>
|
||||
public string? JobId { get; set; }
|
||||
/// <summary>
|
||||
/// 【入库放货有货】重新分配的目标仓位
|
||||
/// </summary>
|
||||
public string? TargetLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 反馈信息
|
||||
/// </summary>
|
||||
public string? Message { get; set; }
|
||||
/// <summary>
|
||||
/// 返回码 0-正常 1-异常
|
||||
/// </summary>
|
||||
public int Result { get; set; }
|
||||
}
|
||||
}
|
||||
42
WPFWCSDemo/API/Task/Task_StockInRequest.cs
Normal file
42
WPFWCSDemo/API/Task/Task_StockInRequest.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.API.Task
|
||||
{
|
||||
/// <summary>
|
||||
/// wcs向wms请求入库
|
||||
/// </summary>
|
||||
public class Task_StockInRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 接口名称
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// 任务号
|
||||
/// </summary>
|
||||
public string TaskId { get; set; }
|
||||
/// <summary>
|
||||
/// 托盘号
|
||||
/// </summary>
|
||||
public string PalletId { get; set; }
|
||||
/// <summary>
|
||||
/// 任务类型
|
||||
/// </summary>
|
||||
public int TaskType { get; set; }
|
||||
/// <summary>
|
||||
/// 源站点
|
||||
/// </summary>
|
||||
public string SourceLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 发送结果 0-成功 1-失败
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public int Result { get; set; }
|
||||
}
|
||||
}
|
||||
31
WPFWCSDemo/API/Task/Task_StockInRequestResponse.cs
Normal file
31
WPFWCSDemo/API/Task/Task_StockInRequestResponse.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.API.Task
|
||||
{
|
||||
/// <summary>
|
||||
/// 【wcs向wms请求入库后】wms的返回消息
|
||||
/// </summary>
|
||||
public class Task_StockInRequestResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 流水号
|
||||
/// </summary>
|
||||
public string? JobId { get; set; }
|
||||
/// <summary>
|
||||
/// 目标站
|
||||
/// </summary>
|
||||
public string? TargetLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 反馈信息
|
||||
/// </summary>
|
||||
public string? Message { get; set; }
|
||||
/// <summary>
|
||||
/// 反馈结果
|
||||
/// </summary>
|
||||
public int Result { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user