ProjectTG.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. Ext.define('erp.view.plm.project.ProjectTG',{
  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% 50%',
  13. saveUrl: 'plm/project/saveProjectTG.action?caller='+caller,
  14. // deleteUrl: 'common/deleteCommon.action?caller='+caller,
  15. deleteUrl: 'plm/project/deleteProjectTG.action?caller='+caller,
  16. updateUrl: 'plm/project/updateProjectTG.action?caller='+caller,
  17. auditUrl: 'plm/project/auditProjectTG.action?caller='+caller,
  18. resAuditUrl: 'plm/project/resAuditProjectTG.action?caller='+caller,
  19. submitUrl: 'common/submitCommon.action?caller='+caller,
  20. resSubmitUrl: 'common/resSubmitCommon.action?caller='+caller,
  21. getIdUrl: 'common/getId.action?seq=Project_SEQ',
  22. keyField: 'prj_id',
  23. codeField: 'prj_code',
  24. statusField: 'prj_status'
  25. },{
  26. xtype: 'erpGridPanel2',
  27. anchor: '100% 50%',
  28. detno: 'prd_detno',
  29. //necessaryField: '',
  30. keyField: 'prd_id',
  31. mainField: 'prd_prjid'
  32. }]
  33. }]
  34. });
  35. me.callParent(arguments);
  36. }
  37. });