예제 #1
0
        public ActionResult Index(int pageIndex, int pageSize, string keyWord)
        {
            var pageData = _kpiService.GetPage(pageIndex, pageSize, keyWord);
            var result   = new LayPadding <KPI_VIEWMODEL>()
            {
                result = true,
                msg    = "success",
                list   = pageData.Items,
                count  = pageData.TotalItems
            };
            var SD_ID            = ProjectProvider.Instance.Current.SD_ID;
            var sd               = _sdService.Get(r => r.SD_ID == SD_ID);
            var EKPI_CAT_PA_CODE = (sd == null) ? "" : sd.EKPI_CAT_PA_CODE;

            ViewBag.ItemType = _catconfService.GetSearchList(s => s.CAT_PA_CODE == EKPI_CAT_PA_CODE);
            return(Content(result.ToJson()));
        }