示例#1
0
        //
        // GET: /Mobile/Lawyer/

        /// <summary>
        /// 根据接待室唯一标识获取律师案件
        /// </summary>
        /// <param name="iRoomOrder"></param>
        /// <returns></returns>
        public ActionResult Detail(int iRoomOrder)
        {
            ViewBag.XUNIMULU = C_Config.ReadAppSetting("XUNIMULU");
            LawyerCaseManage manage = new LawyerCaseManage();

            return(View(manage.GetLayerCaseByiRoomOrder(iRoomOrder)));
        }
示例#2
0
        /// <summary>
        /// 在Action之后调用
        /// 主要处理返回的数据
        /// </summary>
        /// <param name="filterContext"></param>
        protected override void OnActionExecuted(ActionExecutedContext filterContext)
        {
            var request      = filterContext.HttpContext.Request;
            var actionMethod = filterContext.Controller
                               .GetType()
                               .GetMethod(filterContext.ActionDescriptor.ActionName);//获取访问方法

            if (actionMethod.ReturnType.Name.ToString() == "Void" && request.IsAjaxRequest() && request.HttpMethod.ToUpper() == "POST")
            {                                                    //POST的返回结果处理
                filterContext.Result = Content(result.toJson()); /**统一处理ajax的返回结果**/
            }
            filterContext.Controller.ViewData["Mulu"] = C_Config.ReadAppSetting("XUNIMULU");
        }