{
	"hidden": false,
	"children": [{
		"configs": {
			"itemId": "module"
		},
		"expanded": true,
		"children": [{
			"configs": {
				"layout": "fit",
				"itemId": "viewport1"
			},
			"expanded": true,
			"children": [{
				"configs": {
					"itemId": "grid1",
					"editable": "true"
				},
				"expanded": true,
				"children": [{
					"configs": {
						"itemId": "store",
						"autoLoad": "true",
						"url": "#{table_store_url}"
					},
					"expanded": false,
					"children": [],
					"type": "store"
				}, {
					"configs": {
						"itemId": "tbar"
					},
					"expanded": true,
					"children": [{
						"configs": {
							"itemId": "name",
							"labelAlign": "right",
							"fieldLabel": "代码/名称",
							"labelWidth": "80"
						},
						"expanded": false,
						"children": [],
						"type": "text"
					}, {
						"configs": {
							"itemId": "seekBtn",
							"textAlign": "center",
							"text": "查询",
							"iconCls": "seek_icon"
						},
						"expanded": false,
						"children": [],
						"type": "item",
						"events": {
							"click": "app.grid1.store.load({\nparams:{\nname:app.name.getValue()\n}\n});"
						}
					}, {
						"configs": {
							"itemId": "addBtn",
							"textAlign": "center",
							"text": "增加",
							"iconCls": "application_add_icon"
						},
						"expanded": false,
						"children": [],
						"type": "item",
						"events": {
							"click": "Wb.add(app.grid1, {\n    ID: Wb.getUuid(),\n    UPDATED_ON: new Date(),\n    CREATED_ON: new Date(),\n    UPDATED_BY: '{#sys.username#}',\n    CREATED_BY: '{#sys.username#}'\n  },\n  \"last\", 1, false);"
						}
					}, {
						"configs": {
							"itemId": "delBtn",
							"textAlign": "center",
							"text": "删除",
							"iconCls": "application_delete_icon"
						},
						"expanded": false,
						"children": [],
						"type": "item",
						"events": {
							"click": "Wb.remove(app.grid1);\n"
						}
					}, {
						"configs": {
							"itemId": "saveBtn",
							"textAlign": "center",
							"text": "保存",
							"iconCls": "save_icon"
						},
						"expanded": false,
						"children": [],
						"type": "item",
						"events": {
							"click": "if(!Wb.verifyGrid(app.grid1)){\n Wb.warn('有必填项为空');\n  return;\n}\n  Wb.requestAg({\n    params: {\n      datatable: [Wb.getModified(app.grid1)],\n      //表格一数据\n      className: \"#{entityname}\",\n      // bean: \"countryDataDomainc\",\n      bean: \"comBean\",\n    beanName:\"#{servicebean}bean\",      //spring中的bean名字\n      method: \"saveGridplus\" //业务方法名 \n    },\n    success: function(resp) {\n      var data = Wb.decode(resp.responseText);\n      Wb.syncCreate(app.grid1, data);\n  Wb.tip(\"保存成功\");  }\n  });"
						}
					}],
					"type": "toolbar"
				}],
				"type": "grid"
			}],
			"type": "viewport"
		}],
		"type": "module",
		"events": {
			"finalize": "app.name.addListener(\"specialkey\",function(field, e){\n  if (e.getKey() == e.ENTER){\n    app.seekBtn.fireEvent('click');\n  }\n});"
		}
	}],
	"roles": {
		"default": 1
	},
	"title": "EDI用户代码",
	"iconCls": "",
	"inframe": false,
	"pageLink": ""
}