Evaluation.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Ext.define('erp.view.scm.sale.Evaluation', {
  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% 44%',
  11. saveUrl : 'scm/sale/saveEvaluation.action',
  12. deleteUrl : 'scm/sale/deleteEvaluation.action',
  13. updateUrl : 'scm/sale/updateEvaluation.action',
  14. auditUrl : 'scm/sale/auditEvaluation.action',
  15. resAuditUrl : 'scm/sale/resAuditEvaluation.action',
  16. submitUrl : 'scm/sale/submitEvaluation.action',
  17. resSubmitUrl : 'scm/sale/resSubmitEvaluation.action',
  18. bannedUrl : 'scm/sale/bannedEvaluation.action',
  19. resBannedUrl : 'scm/sale/resBannedEvaluation.action',
  20. printUrl : 'scm/sale/printEvaluation.action',
  21. getIdUrl : 'common/getId.action?seq=EVALUATION_SEQ',
  22. keyField : 'ev_id',
  23. codeField : 'ev_code',
  24. statusField : 'ev_checkstatuscode'
  25. }, {
  26. xtype : 'erpGridPanel2',
  27. anchor : '100% 56%',
  28. detno : 'evd_detno',
  29. necessaryField : 'evd_prodcode',
  30. keyField : 'evd_id',
  31. mainField : 'evd_evid',
  32. cls : 'custom-grid',
  33. viewConfig : {
  34. getRowClass : function(record) {
  35. return record.get('evd_id') > 0 && record.get('evd_doubleprice') == 0 ? 'rep' : '';
  36. }
  37. }
  38. } ]
  39. });
  40. me.callParent(arguments);
  41. }
  42. });