123456789101112131415161718192021222324252627282930313233343536373839404142 |
- Ext.define('erp.view.scm.sale.Evaluation', {
- extend : 'Ext.Viewport',
- layout : 'anchor',
- hideBorders : true,
- initComponent : function() {
- var me = this;
- Ext.apply(me, {
- items : [ {
- xtype : 'erpFormPanel',
- anchor : '100% 44%',
- saveUrl : 'scm/sale/saveEvaluation.action',
- deleteUrl : 'scm/sale/deleteEvaluation.action',
- updateUrl : 'scm/sale/updateEvaluation.action',
- auditUrl : 'scm/sale/auditEvaluation.action',
- resAuditUrl : 'scm/sale/resAuditEvaluation.action',
- submitUrl : 'scm/sale/submitEvaluation.action',
- resSubmitUrl : 'scm/sale/resSubmitEvaluation.action',
- bannedUrl : 'scm/sale/bannedEvaluation.action',
- resBannedUrl : 'scm/sale/resBannedEvaluation.action',
- printUrl : 'scm/sale/printEvaluation.action',
- getIdUrl : 'common/getId.action?seq=EVALUATION_SEQ',
- keyField : 'ev_id',
- codeField : 'ev_code',
- statusField : 'ev_checkstatuscode'
- }, {
- xtype : 'erpGridPanel2',
- anchor : '100% 56%',
- detno : 'evd_detno',
- necessaryField : 'evd_prodcode',
- keyField : 'evd_id',
- mainField : 'evd_evid',
- cls : 'custom-grid',
- viewConfig : {
- getRowClass : function(record) {
- return record.get('evd_id') > 0 && record.get('evd_doubleprice') == 0 ? 'rep' : '';
- }
- }
- } ]
- });
- me.callParent(arguments);
- }
- });
|