|
|
@ -47,7 +47,8 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, { |
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
popup: { |
|
|
|
popup: { |
|
|
|
type: "bi.multi_tree_search_insert_pane", |
|
|
|
type: "bi.multi_tree_search_insert_pane", |
|
|
|
listeners: [{ |
|
|
|
listeners: [ |
|
|
|
|
|
|
|
{ |
|
|
|
eventName: BI.MultiTreeSearchInsertPane.EVENT_ADD_ITEM, |
|
|
|
eventName: BI.MultiTreeSearchInsertPane.EVENT_ADD_ITEM, |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
|
self.storeValue.value[self.trigger.getSearcher().getKeyword()] = {}; |
|
|
|
self.storeValue.value[self.trigger.getSearcher().getKeyword()] = {}; |
|
|
@ -58,7 +59,13 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, { |
|
|
|
self._stopEditing(); |
|
|
|
self._stopEditing(); |
|
|
|
self._dataChange = true; |
|
|
|
self._dataChange = true; |
|
|
|
} |
|
|
|
} |
|
|
|
}] |
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.MultiTreeSearchInsertPane.EVENT_CLICK_TREE_NODE, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self._dataChange = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
value: { value: o.value || {} } |
|
|
|
value: { value: o.value || {} } |
|
|
@ -79,7 +86,8 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, { |
|
|
|
self.trigger.setAdapter(this); |
|
|
|
self.trigger.setAdapter(this); |
|
|
|
self.numberCounter.setAdapter(this); |
|
|
|
self.numberCounter.setAdapter(this); |
|
|
|
}, |
|
|
|
}, |
|
|
|
listeners: [{ |
|
|
|
listeners: [ |
|
|
|
|
|
|
|
{ |
|
|
|
eventName: BI.MultiTreePopup.EVENT_AFTERINIT, |
|
|
|
eventName: BI.MultiTreePopup.EVENT_AFTERINIT, |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
|
self.numberCounter.adjustView(); |
|
|
|
self.numberCounter.adjustView(); |
|
|
@ -115,7 +123,8 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, { |
|
|
|
self.setValue(); |
|
|
|
self.setValue(); |
|
|
|
self._defaultState(); |
|
|
|
self._defaultState(); |
|
|
|
} |
|
|
|
} |
|
|
|
}], |
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
onLoaded: function () { |
|
|
|
onLoaded: function () { |
|
|
|
BI.nextTick(function () { |
|
|
|
BI.nextTick(function () { |
|
|
@ -303,7 +312,8 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, { |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.absolute", |
|
|
|
type: "bi.absolute", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
items: [{ |
|
|
|
items: [ |
|
|
|
|
|
|
|
{ |
|
|
|
el: this.combo, |
|
|
|
el: this.combo, |
|
|
|
left: 0, |
|
|
|
left: 0, |
|
|
|
right: 0, |
|
|
|
right: 0, |
|
|
@ -322,7 +332,8 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, { |
|
|
|
right: o.height, |
|
|
|
right: o.height, |
|
|
|
top: 0, |
|
|
|
top: 0, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
}] |
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|