MainDetail.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Ext.define('erp.view.oa.custom.MainDetail',{
  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% 55%',
  13. saveUrl: 'custom/savePage.action?caller=' +caller,
  14. deleteUrl: 'custom/deletePage.action?caller=' +caller,
  15. updateUrl: 'custom/updatePage.action?caller=' +caller,
  16. auditUrl: 'custom/auditPage.action?caller=' +caller,
  17. resAuditUrl: 'custom/resAuditPage.action?caller=' +caller,
  18. submitUrl: 'custom/submitPage.action?caller=' +caller,
  19. bannedUrl: 'custom/bannedPage.action?caller='+caller,
  20. printUrl: 'custom/printPage.action?caller=' + caller,
  21. resBannedUrl: 'custom/resBannedPage.action?caller='+caller,
  22. resSubmitUrl: 'custom/resSubmitPage.action?caller=' +caller,
  23. onConfirmUrl : 'oa/custom/confirm.action?caller=' + caller,
  24. resConfirmUrl:'oa/custom/resConfirm.action?caller=' + caller,
  25. getIdUrl: 'common/getId.action?seq=CUSTOMTABLE_SEQ',
  26. keyField: 'CT_ID',
  27. codeField: 'CT_CODE',
  28. statusField: 'CT_STATUS'
  29. },{
  30. xtype: 'erpGridPanel2',
  31. anchor: '100% 45%',
  32. allowExtraButtons: true,
  33. detno: 'CD_DETNO',
  34. keyField: 'CD_ID',
  35. mainField: 'CD_CTID'
  36. }]
  37. }]
  38. });
  39. me.callParent(arguments);
  40. }
  41. });