DS7_JinGang
hanxuntao 2 years ago
parent 9257d51a29
commit 5c3e1931fc

@ -14,7 +14,7 @@ Ext.extend(DsTruck.MsCustTruckFeeTemplateIndex, Ext.Panel, {
//需求编号SR2017061200005-3 //需求编号SR2017061200005-3
initUIComponents: function () { initUIComponents: function () {
this.AuditEdit = false; this.AuditEdit = false;
_this = this;
//定义数据集 //定义数据集
this.storeList = Ext.create('Ext.data.Store', { this.storeList = Ext.create('Ext.data.Store', {
model: 'MsCustTruckFeeTemplate', model: 'MsCustTruckFeeTemplate',
@ -127,7 +127,15 @@ Ext.extend(DsTruck.MsCustTruckFeeTemplateIndex, Ext.Panel, {
lazyRender: false, lazyRender: false,
name: 'CUSTOMERNAME', name: 'CUSTOMERNAME',
valueField: 'CustName', valueField: 'CustName',
displayField: 'CodeAndName' displayField: 'CodeAndName',
enableKeyEvents: true,
listeners: {
keyup: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
}); });
this.storeListGoodName = Ext.create('Ext.data.Store', { this.storeListGoodName = Ext.create('Ext.data.Store', {
@ -168,7 +176,15 @@ Ext.extend(DsTruck.MsCustTruckFeeTemplateIndex, Ext.Panel, {
fieldLabel: '商品名称', //'费用类型', fieldLabel: '商品名称', //'费用类型',
valueField: 'GOODNAME', valueField: 'GOODNAME',
displayField: 'CODEANDNAME', displayField: 'CODEANDNAME',
name: 'GOODNAME' name: 'GOODNAME',
enableKeyEvents: true,
listeners: {
keyup: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
}); });
this.storeTransType = Ext.create('Ext.data.Store', { this.storeTransType = Ext.create('Ext.data.Store', {
@ -183,7 +199,15 @@ Ext.extend(DsTruck.MsCustTruckFeeTemplateIndex, Ext.Panel, {
valueField: 'DC', valueField: 'DC',
displayField: 'NAME', displayField: 'NAME',
forceSelection: true, forceSelection: true,
name: 'TRANTYPE' name: 'TRANTYPE',
enableKeyEvents: true,
listeners: {
keyup: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
}); });
@ -200,7 +224,15 @@ Ext.extend(DsTruck.MsCustTruckFeeTemplateIndex, Ext.Panel, {
valueField: 'DC', valueField: 'DC',
displayField: 'NAME', displayField: 'NAME',
forceSelection: true, forceSelection: true,
name: 'BSSTATUS' name: 'BSSTATUS',
enableKeyEvents: true,
listeners: {
keyup: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
}); });
@ -232,7 +264,15 @@ Ext.extend(DsTruck.MsCustTruckFeeTemplateIndex, Ext.Panel, {
valueField: 'PORT', valueField: 'PORT',
displayField: 'CODEANDNAME', displayField: 'CODEANDNAME',
forceSelection: true, forceSelection: true,
name: 'LOADPORT' name: 'LOADPORT',
enableKeyEvents: true,
listeners: {
keyup: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
}); });
this.storeListTruckDistPort = Ext.create('Ext.data.Store', { this.storeListTruckDistPort = Ext.create('Ext.data.Store', {
@ -265,7 +305,15 @@ Ext.extend(DsTruck.MsCustTruckFeeTemplateIndex, Ext.Panel, {
valueField: 'PORT', valueField: 'PORT',
displayField: 'CODEANDNAME', displayField: 'CODEANDNAME',
forceSelection: true, forceSelection: true,
name: 'DISTPORT' name: 'DISTPORT',
enableKeyEvents: true,
listeners: {
keyup: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
}); });
@ -296,7 +344,15 @@ Ext.extend(DsTruck.MsCustTruckFeeTemplateIndex, Ext.Panel, {
items: [this.comboxTransStatus,{ items: [this.comboxTransStatus,{
fieldLabel: '计费方案名称', //'模板名称', fieldLabel: '计费方案名称', //'模板名称',
labelWidth: 80, labelWidth: 80,
name: 'TEMPLATENAME' name: 'TEMPLATENAME',
enableKeyEvents: true,
listeners: {
specialkey: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
},this.comboxCustomerNameRef, this.comboxGoodCode,this.comboxTransType },this.comboxCustomerNameRef, this.comboxGoodCode,this.comboxTransType
] ]
}, { }, {
@ -305,7 +361,15 @@ Ext.extend(DsTruck.MsCustTruckFeeTemplateIndex, Ext.Panel, {
defaultType: 'textfield', defaultType: 'textfield',
items: [{ items: [{
fieldLabel: '合同号', //'模板名称', fieldLabel: '合同号', //'模板名称',
name: 'CONTRACTNO' name: 'CONTRACTNO',
enableKeyEvents: true,
listeners: {
specialkey: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
}, this.comboxLoadPort, this.comboxDistPort, { xtype: 'hiddenfield' }, { xtype: 'hiddenfield' } }, this.comboxLoadPort, this.comboxDistPort, { xtype: 'hiddenfield' }, { xtype: 'hiddenfield' }
] ]
} }
@ -467,7 +531,7 @@ Ext.extend(DsTruck.MsCustTruckFeeTemplateIndex, Ext.Panel, {
sql = sql + getAndConSql(sql, GOODNAME, "GOODNAME='" + GOODNAME + "'"); sql = sql + getAndConSql(sql, GOODNAME, "GOODNAME='" + GOODNAME + "'");
var TEMPLATENAME = form.findField('TEMPLATENAME').getValue(); var TEMPLATENAME = form.findField('TEMPLATENAME').getValue();
sql = sql + getAndConSql(sql, TEMPLATENAME, "TEMPLATENAME='" + TEMPLATENAME + "'"); sql = sql + getAndConSql(sql, TEMPLATENAME, "TEMPLATENAME like '%" + TEMPLATENAME + "%'");
var LOADPORT = form.findField('LOADPORT').getValue(); var LOADPORT = form.findField('LOADPORT').getValue();
var DISTPORT = form.findField('DISTPORT').getValue(); var DISTPORT = form.findField('DISTPORT').getValue();

Loading…
Cancel
Save