Extjs Ext.Window对象
AccountPeriodLimitWindow = new Ext.Window({
title:"批量修改账期额度",
width:300,
height:200,
closeAction:'hide',
plain:true,
items:[
new Byerp.object.ComboBox({name:'customerSelect',
id:'customerSelectId',
fieldLabel : "选择修改类型",
data:[['0','按客户级别修改'],['1','按客户类型修改']],
value:'0' ,
listeners: {'select':
function(combo,record,opts){
if(combo.getValue()=='0'){
//AccountPeriodLimitWindow.items.items[2].clearValue();
AccountPeriodLimitWindow.items.items[1].setVisible(true);
AccountPeriodLimitWindow.items.items[2].setVisible(false);
} else {
//AccountPeriodLimitWindow.items.items[1].clearValue();
AccountPeriodLimitWindow.items.items[2].setVisible(true);
AccountPeriodLimitWindow.items.items[1].setVisible(false);
}
}
},
emptyText:'请选择修改类型...',
width:280}),
new Byerp.object.ComboBox({name:'customerLevel',id:'customerLevelId',fieldLabel : "客户级别",data:khjbData,emptyText:'请选择需要修改的客户级别...',width:280}),
new Byerp.object.ComboBox({name:'customerType',id:'customerTypeId',fieldLabel : "客户类型",data:khlxData,emptyText:'请选择需要修改的客户类型...',width:280,hidden:true}),//00010
new Byerp.object.TextField({name:'accountPeriodBefore',id:'accountPeriodBeforeId',fieldLabel : "修改前账期",emptyText:'请输入修改前账期...',width:280}),
new Byerp.object.TextField({name:'accountPeriodAfter',id:'accountPeriodAfterId',fieldLabel : "修改后账期",emptyText:'请输入修改后账期...',width:280}),
new Byerp.object.TextField({name:'accountLimitBefore',id:'accountLimitBeforeId',fieldLabel : "修改前额度",emptyText:'请输入修改前额度...',width:280}),
new Byerp.object.TextField({name:'accountLimitAfter',id:'accountLimitAfterId',fieldLabel : "修改后额度",emptyText:'请输入修改后额度...',width:280})
],
buttons:[
{
text:"修改账期",
handler: this.onBtnChangePeriod},
{
text:"修改额度",
handler: this.onBtnChangeLimit},
{
text:"取消",
handler: function() {
AccountPeriodLimitWindow.hide();
}}
]
});
浙公网安备 33010602011771号