CustomForm.js 695 B

123456789101112131415161718192021222324252627282930
  1. Ext.define('erp.view.oa.custom.CustomForm',{
  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: 'erpFormPanel',
  12. anchor: '100% 40%',
  13. saveUrl: 'ma/saveForm.action',
  14. deleteUrl: 'ma/deleteForm.action',
  15. updateUrl: 'ma/updateForm.action',
  16. getIdUrl: 'common/getId.action?seq=FORM_SEQ',
  17. keyField: 'fo_id'
  18. },{
  19. xtype: 'customgrid',
  20. anchor: '100% 60%',
  21. detno: 'fd_detno',
  22. necessaryField: 'fd_field',
  23. keyField: 'fd_id',
  24. mainField: 'fd_foid'
  25. }]
  26. }]
  27. });
  28. me.callParent(arguments);
  29. }
  30. });