コード例 #1
0
        public ActionResult GetReportDetailData(SearchAssignmentStatusByUser search, int LevelIdentifier)
        {
            try
            {
                JsonResult jr = new JsonResult();
                ValidateSearchCriteria(search);

                List <AssignmentStatusByUser_EPData> DetailData = new List <AssignmentStatusByUser_EPData>();
                DetailData = AssignmentService.GetAssignmentStatusByUser_EPData(search);

                jr = Json(DetailData, JsonRequestBehavior.AllowGet);

                jr.MaxJsonLength  = Int32.MaxValue;
                jr.RecursionLimit = 100;
                return(jr);
            }

            catch (Exception ex)
            {
                ExceptionLog exceptionLog = new ExceptionLog
                {
                    ExceptionText = "Reports: " + ex.Message,
                    PageName      = "AssignmentStatusByUser",
                    MethodName    = "GetReportData",
                    UserID        = Convert.ToInt32(AppSession.UserID),
                    SiteId        = Convert.ToInt32(AppSession.SelectedSiteId),
                    TransSQL      = "",
                    HttpReferrer  = null
                };
                exceptionService.LogException(exceptionLog);

                return(RedirectToAction("Error", "Transfer"));
            }
        }