public ActionResult GetEventSource()
 {
     try
     {
         EventInfoBLL bll    = new EventInfoBLL();
         var          result = new object();
         //增加缓存
         lock (m_SyncRoot)
         {
             result = CacheHelper.GetCache("GetEventSource");
             if (result == null)
             {
                 result = bll.GetEventSourceList();
                 CacheHelper.SetCache("GetEventSource", result);
             }
         }
         return(Json(result));
     }
     catch (Exception)
     {
         return(this.Json(""));
     }
 }
        public ActionResult DataLoad()
        {
            //获取页容量
            int pageSize = int.Parse(Request.Form["rows"]);
            //获取请求的页码
            int pageIndex = int.Parse(Request.Form["page"]);
            //获取查询条件
            DateTime start             = Convert.ToDateTime(Request.Form["start"]);
            DateTime end               = Convert.ToDateTime(Request.Form["end"]);
            string   mainSuit          = Request.Form["mainSuit"];
            string   telephoneNumber   = Request.Form["telephoneNumber"];
            string   localAddress      = Request.Form["localAddress"];
            string   patientName       = Request.Form["patientName"];
            string   sendAddress       = Request.Form["sendAddress"];
            string   dispatcher        = Request.Form["dispatcher"];
            string   driver            = Request.Form["driver"];
            string   doctor            = Request.Form["doctor"];
            string   nurse             = Request.Form["nurse"];
            string   stretcher         = Request.Form["stretcher"];
            string   eventType         = Request.Form["eventType"];
            string   illnessJudgment   = Request.Form["illnessState"];
            string   eventCode         = Request.Form["eventCode"];
            string   station           = Request.Form["station"];
            string   carCode           = Request.Form["ambulanceCode"];
            string   eventSource       = Request.Form["eventSource"];
            E_StatisticsPermisson em   = UserOperateContext.Current.getMaxPerForStatistics();
            string       selfWorkCode  = UserOperateContext.Current.Session_UsrInfo.WorkCode;
            string       selfCenterID  = UserOperateContext.Current.Session_UsrInfo.P_Department.DispatchSubCenterID;
            string       selfStationID = UserOperateContext.Current.Session_UsrInfo.P_Department.DispatchSationID;
            EventInfoBLL bll           = new EventInfoBLL();
            var          list          = bll.GetEventInfoList(pageSize, pageIndex, start, end, mainSuit, telephoneNumber, localAddress, patientName, sendAddress, dispatcher,
                                                              driver, doctor, nurse, stretcher, eventType, illnessJudgment, eventCode, station, carCode, eventSource,
                                                              em, selfWorkCode, selfCenterID, selfStationID);
            JsonResult j = this.Json(list, "appliction/json", JsonRequestBehavior.AllowGet);

            return(j);
        }