public ActionResult Save(DeviceEditModel model)
        {
            if (model.id == 0)
            {
                bool flag = _saService.AddDevice(model.quantity, model.apply_reason, model.comment, new long?(model.poi_id));
                return(Json(new { success = flag }));
            }
            bool flag1 = _saService.UpdateDevice(model.device_id, model.uuid, model.major, model.minor, model.comment, model.poi_id);

            return(Json(new { success = flag1 }));
        }
        public ActionResult DeviceBindLocatoin(DeviceEditModel model)
        {
            bool flag = _saService.DeviceBindLocatoin(model.device_id, model.uuid, model.major, model.minor, model.poi_id);

            return(Json(new { success = flag }));
        }