using HH.WCS.Hexafluo.process;
using HH.WCS.Hexafluo.util;
using HH.WCS.Hexafluo.wms;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace HH.WCS.Hexafluo.dispatch
{
///
/// 天目系统任务下达
///
public class TmToAGV
{
private static readonly HttpHelper apiHelper = new HttpHelper();
private static readonly string baseUrl = Settings.TmHelperList;
public static TmResult GetIO(WMSTask mst, int start, int end)
{
if (string.IsNullOrEmpty(baseUrl))
{
LogHelper.Info("未获取到配置文件中天目系统端口地址");
}
string Start = start.ToString();
int at = start.ToString().Length;
if (start.ToString().Length < 4)
{
for (int i = 0; i < 4 - at; i++)
{
Start = "0" + Start;
}
}
string End = end.ToString();
int ct = End.ToString().Length;
if (End.ToString().Length < 4)
{
for (int i = 0; i < 4 - ct; i++)
{
End = "0" + End;
}
}
var interactInfo = new
{
//orderNo = mst.S_TASK_NO.Trim(),
//priority = mst.N_PRIORITY,
//orderType = 2,
// circulation=1,
orderSequence = new List