ReportFilesFG.js 919 B

123456789101112131415161718192021222324252627282930
  1. Ext.define('erp.view.fa.fp.ReportFilesFG',{
  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% 30%',
  13. saveUrl: 'fa/fp/saveReportFilesFG.action',
  14. deleteUrl: 'fa/fp/deleteReportFilesFG.action',
  15. updateUrl: 'fa/fp/updateReportFilesFG.action',
  16. getIdUrl: 'common/getId.action?seq=ReportFiles_SEQ',
  17. keyField: 'fo_id',
  18. formCondition: getUrlParam('formCondition')?"fo_caller='"+getUrlParam('formCondition').split('fo_callerIS')[1]+"'":''
  19. },{
  20. xtype: 'erpGridPanel2',
  21. anchor: '100% 70%',
  22. keyField: 'id',
  23. gridCondition : getUrlParam('gridCondition')?"caller='"+getUrlParam('gridCondition').split('callerIS')[1]+"'":'',
  24. mainField: 'foid'
  25. }]
  26. }]
  27. });
  28. me.callParent(arguments);
  29. }
  30. });