{"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":"m?xwl=AGIlogBaseData/ediXwlSql/ediUserQuery"},"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: \"com.ag.ilog.shipagency.pojo.code.CediUser\",\n      // bean: \"countryDataDomainc\",\n      bean: \"comBean\",\n      insertSql: \"resources/scode.CediUserMapper.insertSelective\",\n      deleteSql: \"resources/scode.CediUserMapper.deleteByPrimaryKey\",\n      updateSql: \"resources/scode.CediUserMapper.updateByPrimaryKeySelective\",\n      //spring中的bean名字\n      method: \"saveGrid\" //业务方法名 \n    },\n    success: function(resp) {\n      var data = Wb.decode(resp.responseText);\n      Wb.syncCreate(app.grid1, data);\n    }\n  });"}}],"type":"toolbar"},{"configs":{"itemId":"columns"},"expanded":true,"children":[{"configs":{"itemId":"seq","xtype":"rownumberer","width":"50","text":"序号","titleAlign":"center"},"expanded":false,"children":[],"type":"column"},{"configs":{"itemId":"ediCode","dataIndex":"EDI_CODE","width":"150","text":"<span style='color:red'>*EDI代码<\/span>","titleAlign":"center"},"expanded":true,"children":[{"configs":{"itemId":"editor","maxLength":"30"},"expanded":false,"children":[],"type":"text"}],"type":"column"},{"configs":{"itemId":"ediName","dataIndex":"EDI_NAME","width":"210","text":"<span style='color:red'>*EDI单位名称<\/span>","titleAlign":"center"},"expanded":true,"children":[{"configs":{"itemId":"editor","maxLength":"100"},"expanded":false,"children":[],"type":"text"}],"type":"column"},{"configs":{"itemId":"notes","dataIndex":"NOTES","width":"240","text":"备注","titleAlign":"center"},"expanded":true,"children":[{"configs":{"itemId":"editor"},"expanded":false,"children":[],"type":"text"}],"type":"column"},{"configs":{"itemId":"createdBy","dataIndex":"CREATED_BY","width":"130","text":"创建人","titleAlign":"center"},"expanded":false,"children":[],"type":"column"},{"configs":{"itemId":"createdOn","renderer":"var previous = Wb.format(value, 'Y-m-d H:i');\n\n  return previous;","dataIndex":"CREATED_ON","width":"130","text":"创建时间","titleAlign":"center"},"expanded":false,"children":[],"type":"column"},{"configs":{"itemId":"updatedBy","dataIndex":"UPDATED_BY","width":"130","text":"修改人","titleAlign":"center"},"expanded":false,"children":[],"type":"column"},{"configs":{"itemId":"updatedOn","renderer":"var previous = Wb.format(value, 'Y-m-d H:i');\n\n  return previous;","dataIndex":"UPDATED_ON","width":"130","text":"修改时间","titleAlign":"center"},"expanded":false,"children":[],"type":"column"}],"type":"array"}],"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":""}