Craft.js 878 B

1234567891011121314151617181920212223242526272829303132
  1. Ext.define('erp.view.pm.mes.Craft',{
  2. extend: 'Ext.Viewport',
  3. layout: 'anchor',
  4. initComponent : function(){
  5. var me = this;
  6. Ext.apply(me, {
  7. items: [{
  8. xtype: 'erpFormPanel',
  9. anchor: '100% 30%',
  10. saveUrl: 'pm/mes/saveCraft.action',
  11. deleteUrl: 'pm/mes/deleteCraft.action',
  12. updateUrl: 'pm/mes/updateCraft.action',
  13. getIdUrl: 'common/getId.action?seq=Craft_SEQ',
  14. submitUrl: 'pm/mes/submitCraft.action',
  15. auditUrl: 'pm/mes/auditCraft.action',
  16. resAuditUrl: 'pm/mes/resAuditCraft.action',
  17. resSubmitUrl: 'pm/mes/resSubmitCraft.action',
  18. keyField: 'cr_id',
  19. codeField: 'cr_code',
  20. statusField: 'cr_status',
  21. statuscodeField: 'cr_statuscode'
  22. },{
  23. xtype: 'erpGridPanel2',
  24. anchor: '100% 70%',
  25. detno: 'cd_detno',
  26. keyField: 'cd_id',
  27. mainField: 'cd_crid'
  28. }]
  29. });
  30. me.callParent(arguments);
  31. }
  32. });