MultiGrid.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Ext.define('erp.view.ma.MultiGrid',{
  2. extend: 'Ext.Viewport',
  3. layout: 'fit',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. layout: 'anchor',
  10. items: [{
  11. xtype: 'tabpanel',
  12. anchor: '100% 95%',
  13. id: 'mytab',
  14. items: [{
  15. title: '从表',
  16. id: 'detailtab',
  17. iconCls: 'formset-grid',
  18. layout: 'anchor',
  19. items: [{
  20. xtype: 'mydetail',
  21. anchor: '100% 100%',
  22. detno: 'dg_sequence',
  23. necessaryField: 'dg_field',
  24. keyField: 'dg_id'
  25. }]
  26. }]
  27. },{
  28. xtype: 'toolbar',
  29. anchor: '100% 5%',
  30. items: ['->',{
  31. xtype: 'erpUUListenerButton'
  32. },'-',{
  33. iconCls: 'x-button-icon-preview',
  34. name: 'preview',
  35. cls: 'x-btn-gray',
  36. text: $I18N.common.button.erpPreviewButton
  37. },'-',{
  38. iconCls: 'tree-save',
  39. name: 'save',
  40. cls: 'x-btn-gray',
  41. text: $I18N.common.button.erpSaveButton
  42. },'-',{
  43. iconCls: 'tree-delete',
  44. name: 'delete',
  45. cls: 'x-btn-gray',
  46. text: $I18N.common.button.erpDeleteButton
  47. },'-',{
  48. text: '关联查询设置'
  49. },'-',{
  50. text: '业务逻辑设置'
  51. },'-',{
  52. iconCls: 'tree-close',
  53. name: 'close',
  54. cls: 'x-btn-gray',
  55. text: $I18N.common.button.erpCloseButton
  56. },'->']
  57. }]
  58. }]
  59. });
  60. me.callParent(arguments);
  61. }
  62. });