PreRec.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Ext.define('erp.view.fa.ars.PreRec',{
  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/PreRecController/savePreRec.action',
  12. deleteUrl: 'fa/PreRecController/deletePreRec.action',
  13. updateUrl: 'fa/PreRecController/updatePreRec.action',
  14. auditUrl: 'fa/PreRecController/auditPreRec.action',
  15. resAuditUrl: 'fa/PreRecController/resAuditPreRec.action',
  16. submitUrl: 'fa/PreRecController/submitPreRec.action',
  17. resSubmitUrl: 'fa/PreRecController/resSubmitPreRec.action',
  18. postUrl: 'fa/PreRecController/postPreRec.action',
  19. resPostUrl: 'fa/PreRecController/resPostPreRec.action',
  20. getIdUrl: 'common/getId.action?seq=PreRec_SEQ',
  21. keyField: 'pr_id',
  22. codeField: 'pr_code',
  23. auditStatusCode:'pr_auditstatuscode',
  24. statusCode:'pr_statuscode',
  25. printStatusCode:'pr_printstatuscode',
  26. assCaller:'PreRecAss',
  27. voucherConfig: {
  28. voucherField: 'pr_vouchercode',
  29. vs_code: 'PreRec',
  30. yearmonth: 'pr_date',
  31. datas: 'pr_code',
  32. status: 'pr_statuscode',
  33. mode: 'single',
  34. kind: function(form){
  35. var f = form.down('#pr_kind');
  36. return f ? f.getValue() : null;
  37. },
  38. vomode: 'AR'
  39. }
  40. },{
  41. xtype: 'erpGridPanel2',
  42. anchor: '100% 50%',
  43. detno: 'prd_detno',
  44. keyField: 'prd_id',
  45. mainField: 'prd_prid',
  46. detailAssCaller:'PreRecDetailAss'
  47. }]
  48. });
  49. me.callParent(arguments);
  50. }
  51. });