{"title":"字典对话框编辑","inframe":false,"hidden":false,"roles":{"demo":1,"dev":1},"pageLink":"","children":[{"configs":{"itemId":"module"},"children":[{"configs":{"layout":"fit","itemId":"viewport1"},"children":[{"configs":{"tagConfigs":"{\n  //如果表格存在此方法，二进制字段自动生成下载链接并指向此方法，如果存在多个二进制字段可通过ifDownloadBlob方法控制哪个字段提供下载\n  downloadBlob: function(fieldName, rowIndex) {\n    var grid = this;\n    //在文件列表中按ctrl+双击文件名可添加url地址\n    Wb.download('m?xwl=examples/crud/crud-db-access/download-blob', {\n      ID_FIELD: grid.store.getAt(rowIndex).data.ID_FIELD\n    });\n  }\n}","multiSelect":"true","itemId":"grid1"},"events":{"itemdblclick":"app.editBtn.fireEvent('click');"},"children":[{"configs":{"autoLoad":"true","itemId":"store","url":"m?xwl=examples/crud/crud-db-access/select"},"children":[],"type":"store","expanded":false},{"configs":{"itemId":"tbar"},"children":[{"configs":{"text":"添加","itemId":"newBtn","iconCls":"record_add_icon","tooltip":"添加新的记录"},"events":{"click":"Wb.insert(app.grid1, {\n  url: 'm?xwl=examples/crud/crud-db-access/insert'\n    //title: '添加',\n    //iconCls: 'record_add_icon',\n    //windowName: 'sys.example.crud.dictDialogEdit', //可选单例模式，关闭时隐藏\n    //destroyOn: app.viewport1, //在viewport1销毁时销毁该窗口\n    //resetScrollbar: true,\n    //把上述3行代码注释取消，对话框将只在首次创建，后续使用hide/show。不建议过多使用单例模式，因为未销毁窗口将占用系统资源。\n    //params: {} //可选参数\n});"},"children":[],"type":"item","expanded":false},{"configs":{"text":"修改","itemId":"editBtn","iconCls":"record_edit_icon","tooltip":"修改选择的记录"},"events":{"click":"Wb.edit(app.grid1, {\n  url: 'm?xwl=examples/crud/crud-db-access/update',\n  titleField: 'STRING_FIELD'\n    //defaultFocus: null, //不设置焦点，方便还原上次滚动条状态\n    // windowName: 'sys.example.crud.dictDialogEdit', //单例模式，关闭时隐藏\n    // destroyOn: app.viewport1, //在viewport1销毁时销毁该窗口\n});"},"children":[],"type":"item","expanded":false},{"configs":{"text":"删除","itemId":"delBtn","iconCls":"record_delete_icon","tooltip":"删除选择的记录"},"events":{"click":"Wb.del(app.grid1, {\n  url: 'm?xwl=examples/crud/crud-db-access/delete',\n  titleField: 'STRING_FIELD'\n});"},"children":[],"type":"item","expanded":false}],"type":"toolbar","expanded":true}],"type":"grid","expanded":true}],"type":"viewport","expanded":true}],"type":"module","expanded":true}],"iconCls":""}