ATPMain.js.svn-base 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Ext.define('erp.view.pm.atp.ATPMain',{
  2. extend: 'Ext.Viewport',
  3. layout: 'fit',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. id:'ATPViewport',
  10. layout: 'anchor',
  11. items: [{
  12. xtype: 'erpFormPanel',
  13. anchor: '100% 48%',
  14. saveUrl: 'pm/atp/saveATPMain.action',
  15. deleteUrl: 'pm/atp/deleteATPMain.action',
  16. updateUrl: 'pm/atp/updateATPMain.action',
  17. auditUrl: 'pm/atp/auditATPMain.action',
  18. resAuditUrl: 'pm/atp/resAuditATPMain.action',
  19. submitUrl: 'pm/atp/submitATPMain.action',
  20. resSubmitUrl: 'pm/atp/resSubmitATPMain.action',
  21. executeOperation: 'pm/atp/executeOperation.action',
  22. getIdUrl: 'common/getId.action?seq=ATPMain_SEQ',
  23. keyField: 'am_id',
  24. codeField: 'am_code',
  25. statusField: 'am_status',
  26. statuscodeField: 'am_statuscode'
  27. },{
  28. xtype: 'erpGridPanel2',
  29. anchor: '100% 52%',
  30. detno: 'ad_detno',
  31. keyField: 'ad_id',
  32. mainField: 'ad_amid',
  33. necessaryField: 'ad_code'
  34. }]
  35. }]
  36. });
  37. me.callParent(arguments);
  38. }
  39. });