var ywCombox = util.dictionary.SimpleDicFactory.createDic(dic);
ywCombox.on('select', function(combo, record, index) {
var mzlbDataStore = new Ext.data.JsonStore({
fields : [ 'value', 'text' ],
data : []
});
chs.script.rmi.jsonRequest({
serviceId : "chs.simpleQuery",
method : "execute",
pageSize : 100,
schema : "chs.application.ebgl.schemas.EB_JCXM",
cnd:['eq',['$','a.K_XMLB'],['s',this.ywCombox.getValue()]]
}, function(code, msg, json) {
debugger
var mzlbAllObj = json.body;
var mzlbData = [];
for ( var i = 0; i < mzlbAllObj.length; i++) {
var mzlbObj = {
value:mzlbAllObj[i].K_JCXM,
text:mzlbAllObj[i].P_XMMC
};
mzlbData.push(mzlbObj);
}
this.xms.store.loadData(mzlbData, false);
}, this);
}, this);
this.ywCombox = ywCombox;
var xmLabel = new Ext.form.Label({
html : " 项目:"
});
var xms = new Ext.form.ComboBox({
editable:false,
width:100,
name : 'LX',
store : new Ext.data.JsonStore({
fields : [ 'value', 'text' ],
data : []
}),
valueField : "value",
displayField : "text",
mode : 'local',
triggerAction : 'all',
emptyText : "",
selectOnFocus : true,
forceSelection : true
});
this.xms = xms;
希望能对大家有所帮助,有问题可以在下方评论,我会一一回复。
来源:CSDN
作者:Harry May
链接:https://blog.csdn.net/m0_37558768/article/details/103970889