コード例 #1
0
        public ActionResult GetUsers(string fullName, string phone, int memberLevelVal, int orderby, int page = 1, int rows = 10)
        {
            int           count     = 0;
            var           customers = _customersService.GetCustomers(fullName, phone, memberLevelVal, orderby, out count, page, rows);
            GridJsonModel djson     = new GridJsonModel(count, customers);

            return(Json(djson));
        }
コード例 #2
0
        public ActionResult QueryData(Product product, int page = 1, int rows = 20)
        {
            var pageInfo = new PageInfo()
            {
                Page = page, Rows = rows
            };
            var           result = svc.FilterProduct(product, UserCache.CurrentUser.Id, out totalCount, pageInfo);
            GridJsonModel djson  = new GridJsonModel(totalCount, result);

            return(Json(djson));
        }
コード例 #3
0
        public ActionResult GetProductActivityPaging(int page = 1, int rows = 20)
        {
            int totalCount = 0;
            var pageInfo   = new PageInfo()
            {
                Page = page, Rows = rows
            };
            var           result = _productActivityService.GetProductActivityPaging(out totalCount, pageInfo);
            GridJsonModel djson  = new GridJsonModel(totalCount, result);

            return(Json(djson));
        }
コード例 #4
0
        public ActionResult QueryDictionary(DictionaryType dictionary, int page = 1, int rows = 20)
        {
            var pageInfo = new PageInfo()
            {
                Page = page, Rows = rows
            };
            int           totalCount = 0;
            var           result     = svc.FilterDictionary(dictionary, out totalCount, pageInfo);
            GridJsonModel djson      = new GridJsonModel(totalCount, result);

            return(Json(djson));
        }
コード例 #5
0
        public ActionResult GetDictionaryDataGrid(string dicCode, int page = 1, int rows = 20)
        {
            var totalCount = 0;
            var pageInfo   = new PageInfo()
            {
                Page = page, Rows = rows
            };
            var           result = svc.GetDictionaryDataByDicCode(dicCode, out totalCount, pageInfo);
            GridJsonModel djson  = new GridJsonModel(totalCount, result);

            return(Json(djson));
        }
コード例 #6
0
        public ActionResult QueryData(int page = 1, int rows = 20)
        {
            var info       = base.GetQueryInfo();
            int totalCount = 0;
            var pageInfo   = new PageInfo()
            {
                Page = page, Rows = rows
            };
            var           result = svc.GetUserDataBySearchInfo(info, pageInfo, out totalCount);
            GridJsonModel djson  = new GridJsonModel(totalCount, result.Data);

            return(Json(djson));
        }
コード例 #7
0
 public async Task <IActionResult> Create(GridJsonModel <CreateExcelFileRequest> gridJsonModel)
 {
     //CreateOrUpdate is running, this is just for enable create button on the page
     // This is manipulated in JS with function named function fileonValueChanged(e)
     return(Json(null));
 }