{
 "hidden": false,
 "children": [{
  "configs": {"itemId": "module"},
  "expanded": true,
  "children": [{
   "configs": {
    "layout": "fit",
    "itemId": "viewport1"
   },
   "expanded": true,
   "children": [{
    "configs": {
     "itemId": "grid1",
     "syncStateId": "uarb",
     "editable": "true",
     "plugins": "[{\
  ptype: 'gridfilters'\
}]",
     "multiSelect": "true"
    },
    "expanded": true,
    "children": [
     {
      "configs": {
       "itemId": "store",
       "autoLoad": "true",
       "url": "m?xwl=examples/crud/crud-db-access/basic-select"
      },
      "expanded": false,
      "children": [],
      "type": "store"
     },
     {
      "configs": {"itemId": "tbar"},
      "expanded": true,
      "children": [
       {
        "configs": {
         "itemId": "item1",
         "text": "test",
         "iconCls": "accept_icon"
        },
        "expanded": false,
        "children": [],
        "type": "item",
        "events": {"click": "// var stats = app.grid1.getState();\
// var dataArray=[];\
// var moduleurl = app.contextOwner.title;\
// for (var i = 0; i < stats.columns.length; i++) {\
//   for (var a = 0; a < stats.columns.length; a++) {\
//     if (app.grid1.columns[a].headerId == stats.columns[i].id) {\
//       dataArray.push(\"序号：\" + i + \"====列名：\" + app.grid1.columns[a].text + \"===数据索引：\" + app.grid1.columns[a].dataIndex + \"==是否隐藏：\" + stats.columns[i].hidden + \"==宽度：\" + stats.columns[i].width);\
//     }\
//   }\
// }\
\
//窗口每次动态生成,方法在窗口销毁时自动销毁\
console.log(Wb.getModified(app.grid1));\
// Wb.requestAg({\
//   params: {\
//     datatable: [Wb.getModified(app.gridFee)],\
//     className: \"com.ag.secp.cargo.business.finance.pojo.FaVbillFee\",\
//     insertSql: \"resources/cargo/finance.FaVbillFeeMapper.insert\",\
//     deleteSql: \"resources/cargo/finance.FaVbillFeeMapper.deleteByPrimaryKey\",\
//     updateSql: \"resources/cargo/finance.FaVbillFeeMapper.updateByPrimaryKeySelective\",\
//     bean: \"psamatheComBean\",\
//     method: \"saveGrid\" //业务方法名 \
//   },\
//   success: function(resp) {\
//     Wb.tip('保存成功');\
//     app.gridFee.store.load({\
//       params: {\
//         id: mid\
//       }\
//     });\
//     app.getMoney(mid);\
//   }\
// });"}
       },
       {
        "configs": {
         "itemId": "item11",
         "text": "test33",
         "iconCls": "accept_icon"
        },
        "expanded": false,
        "children": [],
        "type": "item",
        "events": {"click": "console.info(app);"}
       }
      ],
      "type": "toolbar"
     },
     {
      "configs": {"itemId": "columns"},
      "expanded": true,
      "children": [
       {
        "configs": {
         "itemId": "rownumbererCol",
         "xtype": "rownumberer"
        },
        "expanded": false,
        "children": [],
        "type": "column"
       },
       {
        "configs": {
         "itemId": "ID_FIELDCol",
         "dataIndex": "ID_FIELD",
         "width": "130",
         "text": "主键"
        },
        "expanded": false,
        "children": [{
         "configs": {
          "itemId": "editor",
          "allowBlank": "false",
          "maxLength": "13"
         },
         "expanded": false,
         "children": [],
         "type": "text"
        }],
        "type": "column"
       },
       {
        "configs": {
         "itemId": "STRING_FIELDCol",
         "dataIndex": "STRING_FIELD",
         "width": "180",
         "text": "字符字段"
        },
        "expanded": true,
        "children": [{
         "configs": {"itemId": "editor"},
         "expanded": false,
         "children": [],
         "type": "combo"
        }],
        "type": "column"
       },
       {
        "configs": {
         "itemId": "INT_FIELDCol",
         "dataIndex": "INT_FIELD",
         "width": "120",
         "text": "整型字段",
         "align": "right"
        },
        "expanded": true,
        "children": [{
         "configs": {
          "itemId": "editor",
          "decimalPrecision": "0"
         },
         "expanded": false,
         "children": [],
         "type": "number"
        }],
        "type": "column"
       },
       {
        "configs": {
         "itemId": "DOUBLE_FIELDCol",
         "dataIndex": "DOUBLE_FIELD",
         "width": "150",
         "text": "数字字段",
         "align": "right"
        },
        "expanded": false,
        "children": [{
         "configs": {
          "itemId": "editor",
          "decimalPrecision": "2"
         },
         "expanded": false,
         "children": [],
         "type": "number"
        }],
        "type": "column"
       }
      ],
      "type": "array"
     }
    ],
    "type": "grid"
   }],
   "type": "viewport"
  }],
  "type": "module"
 }],
 "roles": {"demo": 1},
 "title": "基本可编辑表格",
 "iconCls": "",
 "inframe": false,
 "pageLink": ""
}