RelativeSearch.js.svn-base 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Ext.define('erp.view.ma.RelativeSearch',{
  2. extend: 'Ext.Viewport',
  3. hideBorders: true,
  4. initComponent : function(){
  5. var me = this;
  6. Ext.apply(me, {
  7. layout: 'anchor',
  8. items: [{
  9. xtype: 'erpFormPanel',
  10. saveUrl: 'ma/saveRelativeSearch.action',
  11. updateUrl: 'ma/updateRelativeSearch.action',
  12. getIdUrl: 'common/getId.action?seq=RelativeSearch_SEQ',
  13. keyField: 'rs_id',
  14. anchor: '100% 30%'
  15. },{
  16. xtype:'tabpanel',
  17. anchor: '100% 70%',
  18. items:[{
  19. xtype: 'erpGridPanel2',
  20. title:'查询Form显示',
  21. detno: 'rsf_detno',
  22. keyField: 'rsf_id',
  23. necessaryField: 'rsf_field',
  24. mainField: 'rsf_rsid'
  25. },{
  26. id: 'relativesearchgrid',
  27. title:'查询Grid显示',
  28. xtype: 'relativesearchgrid',
  29. keyField: 'rsg_id',
  30. mainField: 'rsg_rsid',
  31. necessaryField: 'rsg_field',
  32. detno: 'rsg_detno',
  33. listeners:{
  34. activate:function(panel){
  35. panel.ownerCt.items.items[0].down('erpToolbar').down('erpDeleteDetailButton').grid=panel;
  36. }
  37. }
  38. }]
  39. }]
  40. });
  41. me.callParent(arguments);
  42. }
  43. });