YSReport.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Ext.define('erp.view.pm.mould.YSReport',{
  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:'YSReportViewport',
  10. layout: 'anchor',
  11. items: [{
  12. xtype: 'erpFormPanel',
  13. anchor: '100% 50%',
  14. saveUrl: 'common/saveCommon.action?caller=' +caller,
  15. deleteUrl: 'common/deleteCommon.action?caller=' +caller,
  16. updateUrl: 'common/updateCommon.action?caller=' +caller,
  17. auditUrl: 'common/auditCommon.action?caller=' +caller,
  18. printUrl: 'common/printCommon.action?caller=' +caller,
  19. resAuditUrl: 'common/resAuditCommon.action?caller=' +caller,
  20. submitUrl: 'common/submitCommon.action?caller=' +caller,
  21. resSubmitUrl: 'common/resSubmitCommon.action?caller=' +caller,
  22. postUrl: 'pm/mould/postYSReport.action',
  23. resPostUrl: 'pm/mould/resPostYSReport.action',
  24. getIdUrl: 'common/getCommonId.action?caller=' +caller,
  25. keyField: 'mo_id',
  26. codeField: 'mo_code',
  27. statusField: 'mo_statuscode'
  28. },{
  29. xtype: 'erpGridPanel2',
  30. anchor: '100% 50%',
  31. detno: 'yd_detno',
  32. necessaryField: 'yd_mjhtcod',
  33. keyField: 'yd_id',
  34. mainField: 'yd_moid'
  35. }]
  36. }]
  37. });
  38. me.callParent(arguments);
  39. }
  40. });