Quotation.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Ext.define('erp.view.scm.sale.Quotation',{
  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:'QuotationViewport',
  10. layout: 'anchor',
  11. items: [{
  12. xtype: 'erpFormPanel',
  13. anchor: '100% 50%',
  14. saveUrl: 'scm/sale/saveQuotation.action',
  15. deleteUrl: 'scm/sale/deleteQuotation.action',
  16. updateUrl: 'scm/sale/updateQuotation.action',
  17. auditUrl: 'scm/sale/auditQuotation.action',
  18. printUrl: 'scm/sale/printQuotation.action',
  19. resAuditUrl: 'scm/sale/resAuditQuotation.action',
  20. submitUrl: 'scm/sale/submitQuotation.action',
  21. resSubmitUrl: 'scm/sale/resSubmitQuotation.action',
  22. bannedUrl: 'scm/sale/bannedQuotation.action',
  23. resBannedUrl: 'scm/sale/resBannedQuotation.action',
  24. getIdUrl: 'common/getId.action?seq=QUOTATION_SEQ',
  25. keyField: 'qu_id',
  26. codeField: 'qu_code',
  27. statusField: 'qu_statuscode'
  28. },{
  29. xtype: 'erpGridPanel2',
  30. anchor: '100% 50%',
  31. detno: 'qd_detno',
  32. necessaryField: 'qd_prodcode',
  33. keyField: 'qd_id',
  34. mainField: 'qd_quid'
  35. }]
  36. }]
  37. });
  38. me.callParent(arguments);
  39. }
  40. });