using Newtonsoft.Json;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Net;
|
using System.Text;
|
using System.Threading.Tasks;
|
using WIDESEAWCS_Core.Helper;
|
using WIDESEAWCS_DTO;
|
|
namespace WIDESEAWCS_Tasks.ConveyorLineJob
|
{
|
internal class WMSApiInvoke
|
{
|
public static string GetAllLocationGroups(string pallentno)
|
{
|
|
string url = AppSettings.Configuration.GetSection("WMSApi").Value+ "LocationInfo//GetEmptyLocation";
|
string response = "";
|
try
|
{
|
response = HttpManager.HttpPostAsync(url, "SC01").Result;
|
return response;
|
}
|
catch (Exception ex)
|
{
|
return null;
|
}
|
}
|
|
public static string SyncLabMaster()
|
{
|
|
string url = AppSettings.Configuration.GetSection("WMS").Value.Replace("PDA", "Sys_Job") + "Sys_Job/SyncLabMaster";
|
string response = "";
|
try
|
{
|
response = HttpManager.HttpPostAsync(url, "SC01").Result;
|
|
return response;
|
}
|
catch (Exception ex)
|
{
|
|
return null;
|
}
|
}
|
|
|
}
|
}
|