/// <summary>
        /// 获取所有的设备
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        private string getMachine(HttpContext context)
        {
            Json      jsonResult = new Json();
            string    address    = context.Request["address"];
            string    machineNum = context.Request["machineNum"];
            string    limit      = context.Request["limit"];
            string    page       = context.Request["page"];
            DataTable dt         = ms.getMachine(machineNum, address, limit, page);
            int       count      = ms.getMachineNum(machineNum, address);

            if (dt == null)
            {
                jsonResult.Success = false;
                jsonResult.count   = count;
                jsonResult.code    = 400;
            }
            else
            {
                jsonResult.Success = true;
                jsonResult.data    = dt;
                jsonResult.count   = count;
                jsonResult.code    = 0;
            }

            string strJson = JsonConvert.SerializeObject(jsonResult);

            return(strJson);
        }
        /// <summary>
        /// 获取所有的设备
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        private string getMachine(HttpContext context)
        {
            Json      jsonResult = new Json();
            string    address    = context.Request["address"];
            string    machineNum = context.Request["machineNum"];
            DataTable dt         = ms.getMachine(machineNum, address);

            if (dt == null)
            {
                jsonResult.Success = false;
            }
            else
            {
                jsonResult.Success = true;
                jsonResult.Result  = dt;
            }
            string strJson = JsonConvert.SerializeObject(jsonResult);

            return(strJson);
        }