public ExtGridReturnObject(bool succ, int code, string message, PageResult page) { this.success = succ; this.code = code; this.message = message; if (page != null) { this.data = page.Data; this.totalRows = page.TotalCount; this.pageSize = page.Limit; this.totalPages = (long)page.TotalCount / (long)page.Limit + 1; } }
public static ExtGridReturnObject BuildSuccess(PageResult data) { return new ExtGridReturnObject(true, ReturnObject.CODE_SUCCESS, null, data); }