NouYouLocationMonitor_ERP.cs 1.5 KB
using Infrastructure;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using WebApp;
using WebRepository;

namespace WebMvc
{
    /// <summary>
	/// 堆垛机监控
	/// </summary>
    [Area("monitor")]
    public class NouYouLocationMonitor_ERP : Controller
    {
        private readonly NouYouLocationMonitorApp _app;

        public NouYouLocationMonitor_ERP(NouYouLocationMonitorApp app)
        {
            _app = app;
        }

        #region 视图功能
        /// <summary>
        /// 默认视图Action
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            return View();
        }
        #endregion

        #region 自定义方法
        [HttpPost]
        public string GetRoadway(int roadway, int line)
        {
            return JsonHelper.Instance.Serialize(_app.GetRoadwayApp(roadway, line));
        }
        [HttpPost]
        public string GetLine(int Roadway)
        {
            return JsonHelper.Instance.Serialize(_app.GetLineApp(Roadway));
        }
        [HttpPost]
        public string GetInve(string code, string type, string roadway)
        {
            return JsonHelper.Instance.Serialize(_app.GetInveApp(code, type, roadway));
        }

        [HttpPost]
        public string GetLocData(int roadway, int line)
        {
            return JsonHelper.Instance.Serialize(_app.GetLocDataApp(roadway, line));
        }
        #endregion
    }
}