Customer.js 1014 B

123456789101112131415161718192021222324252627282930313233343536
  1. Ext.define('erp.view.crm.chance.Customer',{
  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% 70%',
  13. saveUrl: 'crm/chance/saveCustomer.action',
  14. deleteUrl: 'crm/chance/deleteCustomer.action',
  15. updateUrl: 'crm/chance/updateCustomer.action',
  16. auditUrl: 'crm/chance/auditCustomer.action',
  17. resAuditUrl: 'crm/chance/resAuditCustomer.action',
  18. submitUrl: 'crm/chance/submitCustomer.action',
  19. resSubmitUrl: 'crm/chance/resSubmitCustomer.action',
  20. getIdUrl: 'common/getId.action?seq=PRECUSTOMER_SEQ',
  21. keyField: 'cu_id',
  22. codeField: 'cu_code',
  23. statusField: 'cu_status'
  24. },{
  25. xtype: 'erpGridPanel2',
  26. anchor: '100% 30%',
  27. detno: 'ct_detno',
  28. necessaryField: 'ct_name',
  29. keyField: 'ct_id',
  30. mainField: 'ct_cuid'
  31. }]
  32. }]
  33. });
  34. me.callParent(arguments);
  35. }
  36. });