zhao
2021-07-07 2fdf959ac739edd6de84aa8053b8b9683dce8e8b
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
using HH.WMS.Common;
using HH.WMS.WebUI.Controllers;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
 
namespace HH.WMS.WebUI.Areas.External.Controllers
{
    [AllowAnonymous]
    [MvcMenuFilter(false)]
    public class NTSDController : BaseController
    {
        //
        // GET: /External/NTSD/
 
        public ActionResult PoundManage()
        {
            return View();
        }
 
        /// <summary>
        /// 车辆预约历史记录
        /// </summary>
        /// <returns></returns>
        public ActionResult CarAppointHistory()
        {
            return View();
        }
 
        /// <summary>
        /// 南通看板
        /// </summary>
        /// <returns></returns>
        public ActionResult Screen()
        {
            return View();
        }
 
        #region 南通车辆预约历史记录
 
        public string GetCarAppointHistory(int pageIndex, int pageSize, string valueDate, string carNo, string businessType)
        {
            string[] dates = new string[2];
            if (!string.IsNullOrEmpty(valueDate))
                dates = JsonConvert.DeserializeObject<string[]>(valueDate);
            var searchModel = new
            {
                TokenId = ViewConstants.TokenId,
                pageIndex = pageIndex,
                pageSize = pageSize,
                carNo,
                businessType,
                CN_T_START = !string.IsNullOrEmpty(valueDate) ? dates[0] : "",
                CN_T_END = !string.IsNullOrEmpty(valueDate) ? dates[1] : "",
            };
            var result = WebApiManager.HttpTms_Post("api/CarInfo/GetHistory", JsonConvert.SerializeObject(searchModel));
            return result;
        }
 
        #endregion
 
        #region 南通看板
 
        public string StockList()
        {
            return HttpWMS_Get("api/NtApi/StockList");
        }
 
        public string AreaList(string stockCode)
        {
            return HttpWMS_Get("api/NtApi/GetArea?stockCode=" + stockCode + "&include=" + 4);
        }
 
        public string GetRowsList(string stockCode, string areaCode)
        {
            string returnValue = WebApiManager.HttpWMS_Get("Api/NtApi/GetRowsList?stockCode=" + stockCode + "&areaCode=" + areaCode);
            return returnValue;
        }
 
        public string GetTunnelLocations(string stockCode, string areaCode)
        {
            var returnValue = WebApiManager.HttpWMS_Get("Api/NtApi/GetTunnelLocations?stockCode=" + stockCode + "&areaCode=" + areaCode);
            return returnValue;
        }
 
        public string GetAllAgvStatus()
        {
            string returnValue = WebApiManager.HttpWMS_Get("Api/NtApi/GetAllAgvStatus");
            return returnValue;
        }
 
        public string GetMongoTaskStatus()
        {
            string returnValue = WebApiManager.HttpWMS_Get("Api/NtApi/GetMongoTaskStatus");
            return returnValue;
        }
 
        #endregion
 
    }
}