MpsMain.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. Ext.define('erp.view.pm.mps.MpsMain',{
  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: 'pm/mps/saveMPS.action',
  14. deleteUrl: 'pm/mps/deleteMPS.action',
  15. updateUrl: 'pm/mps/updateMPS.action',
  16. submitUrl:'pm/mps/submitMPS.action',
  17. resSubmitUrl:'pm/mps/resSubmitMPS.action',
  18. auditUrl:'pm/mps/aduitMPS.action',
  19. resAuditUrl:'pm/mps/resAuditMPS.action',
  20. deleteAllDetailsUrl:'pm/mps/deleteAllDetails.action',
  21. getIdUrl: 'common/getId.action?seq=MPSMAIN_SEQ',
  22. keyField: 'mm_id',
  23. codeField:'mm_code'
  24. },
  25. {
  26. xtype: 'erpGridPanel2',
  27. anchor: '100% 70%',
  28. detno: 'md_detno',
  29. keyField: 'md_id',
  30. mainField: 'md_mainid',
  31. headerCt: Ext.create("Ext.grid.header.Container",{
  32. forceFit: false,
  33. sortable: true,
  34. enableColumnMove:true,
  35. enableColumnResize:true,
  36. enableColumnHide: true
  37. }),
  38. invalidateScrollerOnRefresh: false,
  39. viewConfig: {
  40. trackOver: false
  41. },
  42. buffered: true,
  43. sync: true
  44. }]
  45. }]
  46. });
  47. me.callParent(arguments);
  48. }
  49. });