PrePay.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. Ext.define('erp.view.fa.arp.PrePay',{
  2. extend: 'Ext.Viewport',
  3. layout: 'anchor',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. xtype: 'erpFormPanel',
  10. anchor: '100% 50%',
  11. saveUrl: 'fa/PrePayController/savePrePay.action',
  12. deleteUrl: 'fa/PrePayController/deletePrePay.action',
  13. updateUrl: 'fa/PrePayController/updatePrePay.action',
  14. auditUrl: 'fa/PrePayController/auditPrePay.action',
  15. printUrl: 'fa/PrePayController/printPrePay.action',
  16. resAuditUrl: 'fa/PrePayController/resAuditPrePay.action',
  17. submitUrl: 'fa/PrePayController/submitPrePay.action',
  18. resSubmitUrl: 'fa/PrePayController/resSubmitPrePay.action',
  19. postUrl: 'fa/PrePayController/postPrePay.action',
  20. resPostUrl:'fa/PrePayController/resPostPrePay.action',
  21. getIdUrl: 'common/getId.action?seq=PrePay_SEQ',
  22. keyField: 'pp_id',
  23. codeField: 'pp_code',
  24. auditStatusCode:'pp_auditstatuscode',
  25. statusCode:'pp_statuscode',
  26. printStatusCode:'pp_printstatuscode',
  27. assCaller:'PrePayAss',
  28. voucherConfig: {
  29. voucherField: 'pp_vouchercode',
  30. vs_code: 'PrePay',
  31. yearmonth: 'pp_date',
  32. datas: 'pp_code',
  33. status: 'pp_statuscode',
  34. mode: 'single',
  35. kind: function(form){
  36. var f = form.down('#pp_type');
  37. return f ? f.getValue() : null;
  38. },
  39. vomode: 'AP'
  40. }
  41. },{
  42. xtype: 'erpGridPanel2',
  43. anchor: '100% 50%',
  44. detno: 'ppd_detno',
  45. keyField: 'ppd_id',
  46. mainField: 'ppd_ppid',
  47. detailAssCaller:'PrePayDetailAss'
  48. }]
  49. });
  50. me.callParent(arguments);
  51. }
  52. });