{"hidden":false,"children":[{"configs":{"itemId":"module"},"expanded":true,"children":[{"configs":{"layout":"fit","itemId":"viewport1"},"expanded":true,"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}","itemId":"grid1","multiSelect":"true"},"expanded":true,"children":[{"configs":{"itemId":"store","autoLoad":"true","url":"m?xwl=examples/crud/crud-db-access/select"},"expanded":false,"children":[],"type":"store"},{"configs":{"itemId":"tbar"},"expanded":true,"children":[{"configs":{"itemId":"newBtn","tooltip":"添加新的记录","text":"添加","iconCls":"record_add_icon"},"expanded":false,"children":[],"type":"item","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});"}},{"configs":{"itemId":"editBtn","tooltip":"修改选择的记录","text":"默认修改","iconCls":"record_edit_icon"},"expanded":false,"children":[],"type":"item","events":{"click":"Wb.edit(app.grid1, {\n  url: 'm?xwl=examples/crud/crud-db-access/update',\n  titleField: 'STRING_FIELD'\n    // focusControl: null, //不设置焦点，方便还原上次滚动条状态\n    // windowName: 'sys.example.crud.dictDialogEdit', //单例模式，关闭时隐藏\n    // destroyOn: app.viewport1 //在viewport1销毁时销毁该窗口\n});"}},{"configs":{"itemId":"customEditBtn","tooltip":"使用自定义布局界面修改选择的记录","text":"自定义修改","iconCls":"record_edit_icon"},"expanded":false,"children":[],"type":"item","events":{"click":"var dateEditor = Wb.getColumn(app.grid1, 'DATETIME_FIELD').editor,\n  clobEditor = Wb.getColumn(app.grid1, 'CLOB_FIELD').editor;\ndateEditor.colspan = 2;\nWb.apply(clobEditor, {\n  colspan: 2,\n  width: 740\n});\nWb.edit(app.grid1, {\n  url: 'm?xwl=examples/crud/crud-db-access/update',\n  layout: {\n    type: 'table',\n    columns: 2\n  },\n  labelWidth: 50,\n  width: 780,\n  maximizable: false,\n  defaults: {\n    width: 370\n  },\n  titleField: 'STRING_FIELD'\n    // focusControl: null, //不设置焦点，方便还原上次滚动条状态\n    // windowName: 'sys.example.crud.dictDialogEdit', //单例模式，关闭时隐藏\n    // destroyOn: app.viewport1, //在viewport1销毁时销毁该窗口\n});"}},{"configs":{"itemId":"delBtn","tooltip":"删除选择的记录","text":"删除","iconCls":"record_delete_icon"},"expanded":false,"children":[],"type":"item","events":{"click":"Wb.del(app.grid1, {\n  url: 'm?xwl=examples/crud/crud-db-access/delete',\n  titleField: 'STRING_FIELD'\n});"}}],"type":"toolbar"}],"type":"grid","events":{"itemdblclick":"app.editBtn.fireEvent('click');"}}],"type":"viewport"}],"type":"module"}],"roles":{"demo":1},"title":"字典对话框编辑","iconCls":"","inframe":false,"pageLink":""}