duyongjia
2025-01-07 48091350d466941e7d1a6a9c803ad4205d8c3d86
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
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;
            }
        }
 
 
    }
}