{
 "hidden": false,
 "children": [{
  "configs": {"itemId": "module"},
  "expanded": true,
  "children": [{
   "configs": {
    "layout": "border",
    "itemId": "viewport1"
   },
   "expanded": true,
   "children": [
    {
     "configs": {
      "layout": "fit",
      "border": "true",
      "itemId": "panelWest",
      "split": "true",
      "width": "510",
      "region": "west"
     },
     "expanded": true,
     "children": [{
      "configs": {
       "border": "false",
       "itemId": "gridMain",
       "selType": "checkboxmodel",
       "editable": "true"
      },
      "expanded": true,
      "children": [
       {
        "configs": {
         "itemId": "store",
         "url": "m?xwl=log/operLogData/selectMain"
        },
        "expanded": false,
        "children": [],
        "type": "store",
        "events": {"success": "\
app.gridMain.getSelectionModel().select(0);\
var record = app.gridMain.getSelection()[0];\
if(!Wb.isEmpty(record)){\
  app.queryBtn.fireEvent('click');\
}\
"}
       },
       {
        "configs": {"itemId": "tbar"},
        "expanded": true,
        "children": [
         {
          "configs": {
           "itemId": "keyword",
           "labelAlign": "right",
           "fieldLabel": "关键字",
           "width": "200",
           "labelWidth": "40"
          },
          "expanded": false,
          "children": [],
          "type": "text"
         },
         {
          "configs": {
           "itemId": "biz_type",
           "labelAlign": "right",
           "fieldLabel": "业务类型",
           "width": "200",
           "labelWidth": "40"
          },
          "expanded": false,
          "children": [],
          "type": "text"
         },
         {
          "configs": {
           "itemId": "findBtn",
           "text": "查询",
           "iconCls": "search_icon",
           "height": "22"
          },
          "expanded": false,
          "children": [],
          "type": "button",
          "events": {"click": "app.gridMain.store.load({\
  params:{\
    keyword:app.keyword.getValue(), \
    biz_type:app.biz_type.getValue() \
  }\
});"}
         }
        ],
        "type": "toolbar"
       },
       {
        "configs": {"itemId": "columns"},
        "expanded": true,
        "children": [
         {
          "configs": {
           "itemId": "row",
           "xtype": "rownumberer",
           "text": "序号",
           "titleAlign": "center"
          },
          "expanded": true,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "IDCol",
           "hidden": "true",
           "dataIndex": "ID",
           "text": "主键",
           "titleAlign": "center"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "col_SOURCE_TYPE",
           "dataIndex": "SOURCE_TYPE",
           "width": "60",
           "text": "来源",
           "titleAlign": "center"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "col_BIZ_TYPE",
           "dataIndex": "BIZ_TYPE",
           "width": "80",
           "text": "业务类型",
           "align": "left",
           "titleAlign": "center"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "col_KEYWORD",
           "dataIndex": "KEYWORD",
           "width": "80",
           "text": "关键字",
           "align": "left",
           "titleAlign": "center"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "col_IP",
           "dataIndex": "IP",
           "width": "100",
           "text": "客户端IP",
           "align": "left",
           "titleAlign": "center"
          },
          "expanded": true,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "col_CREATED_BY",
           "dataIndex": "CREATED_BY",
           "width": "80",
           "text": "操作人",
           "align": "left",
           "titleAlign": "center"
          },
          "expanded": true,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "col_CREATED_ON",
           "dataIndex": "CREATED_ON",
           "width": "120",
           "text": "操作时间",
           "align": "right",
           "titleAlign": "center"
          },
          "expanded": true,
          "children": [],
          "type": "column"
         }
        ],
        "type": "array"
       }
      ],
      "type": "grid",
      "events": {"itemclick": "app.gridDetail.store.load(\
  {\
   params:{MAIN_ID:record.data.ID}\
  }\
);"}
     }],
     "type": "panel"
    },
    {
     "configs": {
      "layout": "fit",
      "border": "true",
      "itemId": "panelEast",
      "split": "true",
      "region": "center",
      "height": "300"
     },
     "expanded": true,
     "children": [{
      "configs": {
       "border": "false",
       "itemId": "gridDetail",
       "selType": "checkboxmodel",
       "region": "center"
      },
      "expanded": true,
      "children": [
       {
        "configs": {
         "itemId": "store",
         "url": "m?xwl=log/operLogData/selectDetail"
        },
        "expanded": true,
        "children": [],
        "type": "store"
       },
       {
        "configs": {"itemId": "tbar"},
        "expanded": true,
        "children": [
         {
          "configs": {
           "itemId": "baseCode",
           "labelAlign": "right",
           "fieldLabel": "代码",
           "width": "200",
           "isUpperCase": "true",
           "labelWidth": "40"
          },
          "expanded": false,
          "children": [],
          "type": "text"
         },
         {
          "configs": {
           "itemId": "queryBtn",
           "text": "查询",
           "iconCls": "search_icon",
           "height": "22"
          },
          "expanded": false,
          "children": [],
          "type": "button",
          "events": {"click": "\
var rec = app.gridMain.getSelection()[0];\
if (!rec) {\
  Wb.warn('请选择 1 条需要查询的记录');\
  return;\
}\
app.gridDetail.store.load({params : {MAIN_ID : rec.data.ID}});\
\
"}
         }
        ],
        "type": "toolbar"
       },
       {
        "configs": {"itemId": "columns"},
        "expanded": true,
        "children": [
         {
          "configs": {
           "itemId": "row",
           "xtype": "rownumberer",
           "text": "序号",
           "titleAlign": "center"
          },
          "expanded": true,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "IDCol",
           "hidden": "true",
           "dataIndex": "ID",
           "text": "主键",
           "titleAlign": "center"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "col_MAIN_ID",
           "hidden": "true",
           "dataIndex": "MAIN_ID",
           "text": "外键",
           "titleAlign": "center"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "col_CUD_TYPE",
           "renderer": "if(value=='C'){\
  return '新增';\
}\
if(value=='U'){\
  return '修改';\
}\
if(value=='D'){\
  return '删除';\
}",
           "dataIndex": "CUD_TYPE",
           "width": "60",
           "text": "操作类型",
           "titleAlign": "center"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "col_BIZ_ID",
           "dataIndex": "BIZ_ID",
           "width": "80",
           "text": "业务id",
           "titleAlign": "center"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "col_CHANGE_KEY",
           "renderer": "return '<a method=\"hrefMethod\" onclick=\"Wb.invoke(this,' + rowIndex + ');\" href=\"javascript:void(0);\">'+value+'<\/a>';",
           "dataIndex": "CHANGE_KEY",
           "width": "500",
           "text": "变更信息(KEY)",
           "titleAlign": "center"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         },
         {
          "configs": {
           "itemId": "col_CHANGE_VAL",
           "renderer": "return '<a method=\"hrefMethod\" onclick=\"Wb.invoke(this,' + rowIndex + ');\" href=\"javascript:void(0);\">'+value+'<\/a>';",
           "dataIndex": "CHANGE_VAL",
           "width": "500",
           "text": "变更信息(VAL)",
           "titleAlign": "center"
          },
          "expanded": false,
          "children": [],
          "type": "column"
         }
        ],
        "type": "array"
       }
      ],
      "type": "grid"
     }],
     "type": "panel"
    }
   ],
   "type": "viewport"
  }],
  "type": "module",
  "events": {
   "finalize": "app.findBtn.fireEvent('click');\
\
/*\
Wb.request({\
  url: 'm?xwl=feeManage/baseDictData/selectBaseKVBufferList', \
  success: function(resp) {\
    \
    var data = Wb.decode(resp.responseText);\
    Wb.addEdit(app.gridBaseKVBuffer, data);\
  }\
});*/",
   "initialize": "app.hrefMethod = function(rowIndex) {\
  Wb.info(app.gridDetail.store.getAt(rowIndex).data.CHANGE_KEY);\
};"
  }
 }],
 "roles": {"default": 1},
 "title": "数据修改日志",
 "iconCls": "",
 "inframe": false,
 "pageLink": ""
}