Exemplo n.º 1
0
        public IActionResult GetUpLockResult(string id)
        {
            string sn = prefix + id;
            GroundLockTerminalInfo terminalInfo = terminalBLL.GetTerminalStatus(sn);

            if (terminalInfo.Status == ((int)ZTEnum.GroudLockStatus.LockUp_NoBooking).ToString() || terminalInfo.Status == ((int)ZTEnum.GroudLockStatus.LockUp_Booking).ToString())
            {
                return(Json("{\"success\":\"1\",\"msg\":\"操作成功\"}"));
            }
            else
            {
                return(Json("{\"success\":\"0\",\"msg\":\"正在执行\"}"));
            }
        }
Exemplo n.º 2
0
        public void   GetInfoTestAsync()
        {
            GroundLockTerminalBLL  terminalBLL  = new GroundLockTerminalBLL();
            GroundLockTerminalInfo terminalInfo = terminalBLL.GetTerminalStatus("ZZCWS0000002");

            Assert.Equal(1, terminalInfo.OnLine);
        }
Exemplo n.º 3
0
        public IActionResult GetLockStatus(string id)
        {
            string sn = prefix + id;
            GroundLockTerminalBLL  terminalBLL  = new GroundLockTerminalBLL();
            GroundLockTerminalInfo terminalInfo = terminalBLL.GetTerminalStatus(sn);

            return(Json(terminalInfo));
        }