|
楼主 |
发表于 2018-5-2 19:34:44
|
显示全部楼层
修改代码如下:
Model.prototype.mainItemsOnOptionFilter = function(event){
var inputFilterValue = event.inputFilterValue;
var data = this.comp("itemsData");
if (inputFilterValue !== null){
if (inputFilterValue !== '') {
data.setFilter("mainItemsFilter", "T_Items.fLCode like '%" + inputFilterValue + "%'");
}
else
{
data.setFilter("mainItemsFilter", "");
}
data.refreshData();
if (data.count() > 1)
{
var rows = [];
data.each(function(param) {
rows.push(param.row);
});
event.datas = rows;
}
else
{
this.comp("mainData").setValue("fAttributeCode", this.comp("itemsData").getValue("T_ItemAttribute"));
this.comp("mainData").setValue("fItemCode", this.comp("itemsData").getValue("fItemCode"));
this.comp("mainData").setValue("fItemVers", this.comp("itemsData").getValue("fItemVers"));
this.comp("mainData").setValue("fLName", this.comp("itemsData").getValue("fLName"));
this.comp("mainData").setValue("fItemModel", this.comp("itemsData").getValue("fItemModel"));
this.comp("mainData").setValue("fItemSpec", this.comp("itemsData").getValue("fItemSpec"));
this.comp("mainData").setValue("fDrawNO", this.comp("itemsData").getValue("fDrawNO"));
this.comp("mainData").setValue("fCompositionUom", this.comp("itemsData").getValue("fBasicUom"));
this.comp("mainData").setValue("fBomUomName", this.comp("itemsData").getValue("fUomName"));
}
}
itemsData中只有3条数据(“01-000001-001”,“02-000001-001”,“03-000001-001”)
录入前界面(图一)
录入03之后,界面(图二)
按回车键希望跳转(无效),只有按TAB键,按下后界面(图三)
Option还是弹出来了
|
|