{
 "hidden": false,
 "children": [{
  "configs": {
   "itemId": "module",
   "serverScript": "var data=app.get();\
var sql = '',limitSql ='';\
if(!Wb.isEmpty(data.categray)){\
  sql+=\" and SYS_CATEGORY like CONCAT('%',{?categray?},'%')\";\
}\
for(var i=0;;i++){\
  var filterField =\"filter[\"+i+\"][field]\";\
  var filterType =\"filter[\"+i+\"][type]\";\
  var filterValue =\"filter[\"+i+\"][value]\";\
  if(data[filterField]===undefined){\
    break;\
  }\
  sql+=\" and \"+data[filterField]+\" like CONCAT('%','\"+data[filterValue]+\"','%')\";\
}\
limitSql+=\" limit \"+Number((data.page-1)*data.size)+\",\"+data.size;\
request.setAttribute(\"sql\",sql);\
request.setAttribute(\"limitSql\",limitSql);"
  },
  "expanded": true,
  "children": [{
   "configs": {
    "itemId": "dataprovider1",
    "totalSql": "SELECT count(1)\
FROM s_code\
WHERE 1=1 {#sql#}",
    "sql": "SELECT ID,\
SYS_CATEGORY,\
SYS_KEY,\
SYS_VALUE,\
SYS_SEQ,\
TO_CHAR(UPDATED_ON,'yyyy-MM-dd HH:mm:ss')  AS UPDATED_ON,\
TO_CHAR(CREATED_ON,'yyyy-MM-dd HH:mm:ss') AS CREATED_ON,\
CREATED_BY,\
UPDATED_BY\
FROM s_code\
WHERE 1=1 {#sql#} {#limitSql#}"
   },
   "expanded": false,
   "children": [],
   "type": "dataprovider"
  }],
  "type": "module"
 }],
 "roles": {"default": 1},
 "title": "远程分页sql",
 "iconCls": "",
 "inframe": false,
 "pageLink": ""
}