Craft.js 986 B

12345678910111213141516171819202122232425262728293031323334353637
  1. Ext.define('erp.view.pm.craft.Craft',{
  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:'CraftViewport',
  10. layout: 'anchor',
  11. items: [{
  12. xtype: 'erpFormPanel',
  13. anchor: '100% 50%',
  14. saveUrl: 'pm/mes/saveCraft.action',
  15. deleteUrl: 'pm/mes/deleteCraft.action',
  16. updateUrl: 'pm/mes/updateCraft.action',
  17. auditUrl: 'pm/mes/auditCraft.action',
  18. resAuditUrl: 'pm/mes/resAuditCraft.action',
  19. submitUrl: 'pm/mes/submitCraft.action',
  20. resSubmitUrl: 'pm/mes/resSubmitCraft.action',
  21. getIdUrl: 'common/getId.action?seq=CRAFT_SEQ',
  22. keyField: 'cr_id',
  23. codeField: 'cr_code',
  24. statusField: 'cr_statuscode'
  25. },{
  26. xtype: 'erpGridPanel2',
  27. anchor: '100% 50%',
  28. detno: 'cd_detno',
  29. keyField: 'cd_id',
  30. mainField: 'cd_crid',
  31. necessaryField: 'cd_stepcode'
  32. }]
  33. }]
  34. });
  35. me.callParent(arguments);
  36. }
  37. });