Exemple #1
0
        /// <summary>
        /// 警员归队
        /// </summary>
        /// <returns></returns>
        public ActionResult OverOperation(int id)
        {
            //获取登录人信息
            var seesi = HttpContext.Session.GetString("user");
            var user  = JsonConvert.DeserializeObject <UserAndRole>(seesi);

            var userid    = user.ID;
            var result    = _alarm.UptState(id);
            var resultTwo = _alarm.UptOverOperationState(userid);

            if (result > 0)
            {
                if (resultTwo > 0)
                {
                    return(Content("<script>alert('操作成功');location.href='/Alarm/ConstableOperation'</script>", "text/html;charset=utf-8"));
                }
            }
            return(Content("<script>alert('操作成功');location.href='/Alarm/ConstableOperation'</script>", "text/html;charset=utf-8"));
        }