Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
 public static ExtGridReturnObject BuildSuccess(PageResult data)
 {
     return new ExtGridReturnObject(true, ReturnObject.CODE_SUCCESS, null, data);
 }