generated from wenjy/SlnMesnac
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.
51 lines
1.4 KiB
C#
51 lines
1.4 KiB
C#
using SlnMesnac.Model.AirportApiEntity;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace SlnMesnac.Business.@base
|
|
{
|
|
public class BaseAGVBusiness
|
|
{
|
|
/// <summary>
|
|
/// 向AGV小车下发任务
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public bool DownloadTask(string taskID, string jobID)
|
|
{
|
|
AGVRequestAddTaskEntity aGVRequestAddTaskEntity = new AGVRequestAddTaskEntity()
|
|
{
|
|
businessOrderId = taskID,
|
|
priority = 0,
|
|
RobotType = "S800",
|
|
robotId = "",
|
|
group = "",
|
|
taskSource = "Mesnac",
|
|
taskType = 3,
|
|
verifyStatus = 0,
|
|
enableSplitCar = 0,
|
|
load = new List<LoadsEntity>()
|
|
{
|
|
new LoadsEntity()
|
|
{
|
|
jobid = jobID,
|
|
location = "",
|
|
param = new List<ParamEntity>()
|
|
{
|
|
new ParamEntity()
|
|
{
|
|
paramname = "",
|
|
paramvalue = "",
|
|
}
|
|
},
|
|
robotPort = ""
|
|
}
|
|
},
|
|
};
|
|
|
|
return true;
|
|
|
|
}
|
|
}
|
|
}
|