Voucher.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Ext.define('erp.view.fa.ars.Voucher',{
  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. anchor: '100% 26%',
  12. xtype: 'erpFormPanel',
  13. saveUrl: 'fa/ars/saveVoucher.action',
  14. deleteUrl: 'fa/ars/deleteVoucher.action',
  15. updateUrl: 'fa/ars/updateVoucher.action',
  16. submitUrl: 'fa/ars/submitVoucher.action',
  17. auditUrl: 'fa/ars/auditVoucher.action',
  18. printUrl: 'fa/ars/printVoucher.action',
  19. resAuditUrl: 'fa/ars/resAuditVoucher.action',
  20. resSubmitUrl: 'fa/ars/resSubmitVoucher.action',
  21. getIdUrl: 'common/getId.action?seq=VOUCHER_SEQ',
  22. keyField: 'vo_id',
  23. statusField: 'vo_statuscode',
  24. codeField: 'vo_code'
  25. },{
  26. anchor: '100% 56%',
  27. xtype: 'erpGridPanel2',
  28. autoSetSequence: true,
  29. viewConfig: {
  30. getRowClass: function(record) {
  31. return record.get('isass') ? 'custom-ass' : '';
  32. }
  33. }
  34. },{
  35. anchor: '100% 18%',
  36. xtype: 'erpFormPanel',
  37. id: 'form_disable',
  38. caller: 'Voucher!Disable',
  39. _noc: 1,
  40. enableTools: false
  41. }]
  42. }]
  43. });
  44. me.callParent(arguments);
  45. }
  46. });