|
|
@ -88463,25 +88463,38 @@ BI.DownListPopup = BI.inherit(BI.Pane, { |
|
|
|
var value = []; |
|
|
|
var value = []; |
|
|
|
BI.each(o.items, function (idx, itemGroup) { |
|
|
|
BI.each(o.items, function (idx, itemGroup) { |
|
|
|
BI.each(itemGroup, function (id, item) { |
|
|
|
BI.each(itemGroup, function (id, item) { |
|
|
|
if(BI.isNotNull(item.children)){ |
|
|
|
if(BI.isNotNull(item.children)) { |
|
|
|
var childValues = BI.pluck(item.children, "value"); |
|
|
|
var childValues = BI.map(item.children, "value"); |
|
|
|
if(BI.contains(childValues, valueGetter(idx))){ |
|
|
|
var v = joinValue(childValues, valueGetter(idx)); |
|
|
|
value.push(valueGetter(idx)); |
|
|
|
if(BI.isNotEmptyString(v)) { |
|
|
|
|
|
|
|
value.push(v); |
|
|
|
} |
|
|
|
} |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
if(item.value === valueGetter(idx)){ |
|
|
|
if(item.value === valueGetter(idx)[0]) { |
|
|
|
value.push(valueGetter(idx)); |
|
|
|
value.push(valueGetter(idx)[0]); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
return value; |
|
|
|
return value; |
|
|
|
|
|
|
|
|
|
|
|
function valueGetter(index) { |
|
|
|
function joinValue (sources, targets) { |
|
|
|
|
|
|
|
var value = ""; |
|
|
|
|
|
|
|
BI.some(sources, function (idx, s) { |
|
|
|
|
|
|
|
return BI.some(targets, function (id, t) { |
|
|
|
|
|
|
|
if(s === t) { |
|
|
|
|
|
|
|
value = s; |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return value; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function valueGetter (index) { |
|
|
|
switch (o.chooseType) { |
|
|
|
switch (o.chooseType) { |
|
|
|
case BI.Selection.Single: |
|
|
|
case BI.Selection.Single: |
|
|
|
return values[0]; |
|
|
|
return values[0]; |
|
|
|
break; |
|
|
|
|
|
|
|
case BI.Selection.Multi: |
|
|
|
case BI.Selection.Multi: |
|
|
|
return values[index]; |
|
|
|
return values[index]; |
|
|
|
default: |
|
|
|
default: |
|
|
@ -88509,9 +88522,17 @@ BI.DownListPopup = BI.inherit(BI.Pane, { |
|
|
|
this.popup.setValue(this._digest(valueItem)); |
|
|
|
this.popup.setValue(this._digest(valueItem)); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_getValue: function () { |
|
|
|
|
|
|
|
var v = []; |
|
|
|
|
|
|
|
BI.each(this.popup.getAllButtons(), function (i, item) { |
|
|
|
|
|
|
|
i % 2 === 0 && v.push(item.getValue()); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return v; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
|
var self = this, result = []; |
|
|
|
var self = this, result = []; |
|
|
|
var values = this._checkValues(this.popup.getValue()); |
|
|
|
var values = this._checkValues(this._getValue()); |
|
|
|
BI.each(values, function (i, value) { |
|
|
|
BI.each(values, function (i, value) { |
|
|
|
var valueItem = {}; |
|
|
|
var valueItem = {}; |
|
|
|
if (BI.isNotNull(self.childValueMap[value])) { |
|
|
|
if (BI.isNotNull(self.childValueMap[value])) { |
|
|
@ -93495,7 +93516,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, { |
|
|
|
type: BI.MultiSelectInsertCombo.REQ_GET_ALL_DATA, |
|
|
|
type: BI.MultiSelectInsertCombo.REQ_GET_ALL_DATA, |
|
|
|
keywords: keywords |
|
|
|
keywords: keywords |
|
|
|
}, function (ob) { |
|
|
|
}, function (ob) { |
|
|
|
var values = BI.pluck(ob.items, "value"); |
|
|
|
var values = BI.map(ob.items, "value"); |
|
|
|
digest(values); |
|
|
|
digest(values); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -93518,7 +93539,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, { |
|
|
|
type: BI.MultiSelectInsertCombo.REQ_GET_ALL_DATA, |
|
|
|
type: BI.MultiSelectInsertCombo.REQ_GET_ALL_DATA, |
|
|
|
keywords: [this.trigger.getKey()] |
|
|
|
keywords: [this.trigger.getKey()] |
|
|
|
}, function (ob) { |
|
|
|
}, function (ob) { |
|
|
|
var items = BI.pluck(ob.items, "value"); |
|
|
|
var items = BI.map(ob.items, "value"); |
|
|
|
if (self.storeValue.type === res.type) { |
|
|
|
if (self.storeValue.type === res.type) { |
|
|
|
var change = false; |
|
|
|
var change = false; |
|
|
|
var map = self._makeMap(self.storeValue.value); |
|
|
|
var map = self._makeMap(self.storeValue.value); |
|
|
@ -93852,7 +93873,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, { |
|
|
|
type: BI.MultiSelectCombo.REQ_GET_ALL_DATA, |
|
|
|
type: BI.MultiSelectCombo.REQ_GET_ALL_DATA, |
|
|
|
keywords: keywords |
|
|
|
keywords: keywords |
|
|
|
}, function (ob) { |
|
|
|
}, function (ob) { |
|
|
|
var values = BI.pluck(ob.items, "value"); |
|
|
|
var values = BI.map(ob.items, "value"); |
|
|
|
digest(values); |
|
|
|
digest(values); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -93875,7 +93896,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, { |
|
|
|
type: BI.MultiSelectCombo.REQ_GET_ALL_DATA, |
|
|
|
type: BI.MultiSelectCombo.REQ_GET_ALL_DATA, |
|
|
|
keywords: [this.trigger.getKey()] |
|
|
|
keywords: [this.trigger.getKey()] |
|
|
|
}, function (ob) { |
|
|
|
}, function (ob) { |
|
|
|
var items = BI.pluck(ob.items, "value"); |
|
|
|
var items = BI.map(ob.items, "value"); |
|
|
|
if (self.storeValue.type === res.type) { |
|
|
|
if (self.storeValue.type === res.type) { |
|
|
|
var change = false; |
|
|
|
var change = false; |
|
|
|
var map = self._makeMap(self.storeValue.value); |
|
|
|
var map = self._makeMap(self.storeValue.value); |
|
|
@ -95305,7 +95326,7 @@ BI.MultiSelectInsertList = BI.inherit(BI.Widget, { |
|
|
|
o.itemsCreator({ |
|
|
|
o.itemsCreator({ |
|
|
|
type: BI.MultiSelectInsertList.REQ_GET_ALL_DATA |
|
|
|
type: BI.MultiSelectInsertList.REQ_GET_ALL_DATA |
|
|
|
}, function (ob) { |
|
|
|
}, function (ob) { |
|
|
|
self._allData = BI.pluck(ob.items, "value"); |
|
|
|
self._allData = BI.map(ob.items, "value"); |
|
|
|
digest(self._allData); |
|
|
|
digest(self._allData); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -95330,7 +95351,7 @@ BI.MultiSelectInsertList = BI.inherit(BI.Widget, { |
|
|
|
type: BI.MultiSelectInsertList.REQ_GET_ALL_DATA, |
|
|
|
type: BI.MultiSelectInsertList.REQ_GET_ALL_DATA, |
|
|
|
keyword: self.trigger.getKeyword() |
|
|
|
keyword: self.trigger.getKeyword() |
|
|
|
}, function (ob) { |
|
|
|
}, function (ob) { |
|
|
|
var items = BI.pluck(ob.items, "value"); |
|
|
|
var items = BI.map(ob.items, "value"); |
|
|
|
if (self.storeValue.type === res.type) { |
|
|
|
if (self.storeValue.type === res.type) { |
|
|
|
var change = false; |
|
|
|
var change = false; |
|
|
|
var map = self._makeMap(self.storeValue.value); |
|
|
|
var map = self._makeMap(self.storeValue.value); |
|
|
@ -95619,7 +95640,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, { |
|
|
|
o.itemsCreator({ |
|
|
|
o.itemsCreator({ |
|
|
|
type: BI.MultiSelectList.REQ_GET_ALL_DATA |
|
|
|
type: BI.MultiSelectList.REQ_GET_ALL_DATA |
|
|
|
}, function (ob) { |
|
|
|
}, function (ob) { |
|
|
|
self._allData = BI.pluck(ob.items, "value"); |
|
|
|
self._allData = BI.map(ob.items, "value"); |
|
|
|
digest(self._allData); |
|
|
|
digest(self._allData); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -95644,7 +95665,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, { |
|
|
|
type: BI.MultiSelectList.REQ_GET_ALL_DATA, |
|
|
|
type: BI.MultiSelectList.REQ_GET_ALL_DATA, |
|
|
|
keyword: self.trigger.getKeyword() |
|
|
|
keyword: self.trigger.getKeyword() |
|
|
|
}, function (ob) { |
|
|
|
}, function (ob) { |
|
|
|
var items = BI.pluck(ob.items, "value"); |
|
|
|
var items = BI.map(ob.items, "value"); |
|
|
|
if (self.storeValue.type === res.type) { |
|
|
|
if (self.storeValue.type === res.type) { |
|
|
|
var change = false; |
|
|
|
var change = false; |
|
|
|
var map = self._makeMap(self.storeValue.value); |
|
|
|
var map = self._makeMap(self.storeValue.value); |
|
|
@ -100136,7 +100157,7 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, { |
|
|
|
type: BI.SingleSelectCombo.REQ_GET_ALL_DATA, |
|
|
|
type: BI.SingleSelectCombo.REQ_GET_ALL_DATA, |
|
|
|
keywords: keywords |
|
|
|
keywords: keywords |
|
|
|
}, function (ob) { |
|
|
|
}, function (ob) { |
|
|
|
var values = BI.pluck(ob.items, "value"); |
|
|
|
var values = BI.map(ob.items, "value"); |
|
|
|
digest(values); |
|
|
|
digest(values); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -100159,7 +100180,7 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, { |
|
|
|
type: BI.SingleSelectCombo.REQ_GET_ALL_DATA, |
|
|
|
type: BI.SingleSelectCombo.REQ_GET_ALL_DATA, |
|
|
|
keywords: [this.trigger.getKey()] |
|
|
|
keywords: [this.trigger.getKey()] |
|
|
|
}, function (ob) { |
|
|
|
}, function (ob) { |
|
|
|
var items = BI.pluck(ob.items, "value"); |
|
|
|
var items = BI.map(ob.items, "value"); |
|
|
|
if (self.storeValue.type === res.type) { |
|
|
|
if (self.storeValue.type === res.type) { |
|
|
|
var change = false; |
|
|
|
var change = false; |
|
|
|
var map = self._makeMap(self.storeValue.value); |
|
|
|
var map = self._makeMap(self.storeValue.value); |
|
|
@ -101453,7 +101474,7 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, { |
|
|
|
type: BI.SingleSelectCombo.REQ_GET_ALL_DATA, |
|
|
|
type: BI.SingleSelectCombo.REQ_GET_ALL_DATA, |
|
|
|
keywords: keywords |
|
|
|
keywords: keywords |
|
|
|
}, function (ob) { |
|
|
|
}, function (ob) { |
|
|
|
var values = BI.pluck(ob.items, "value"); |
|
|
|
var values = BI.map(ob.items, "value"); |
|
|
|
digest(values); |
|
|
|
digest(values); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -101476,7 +101497,7 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, { |
|
|
|
type: BI.SingleSelectCombo.REQ_GET_ALL_DATA, |
|
|
|
type: BI.SingleSelectCombo.REQ_GET_ALL_DATA, |
|
|
|
keywords: [this.trigger.getKey()] |
|
|
|
keywords: [this.trigger.getKey()] |
|
|
|
}, function (ob) { |
|
|
|
}, function (ob) { |
|
|
|
var items = BI.pluck(ob.items, "value"); |
|
|
|
var items = BI.map(ob.items, "value"); |
|
|
|
if (self.storeValue.type === res.type) { |
|
|
|
if (self.storeValue.type === res.type) { |
|
|
|
var change = false; |
|
|
|
var change = false; |
|
|
|
var map = self._makeMap(self.storeValue.value); |
|
|
|
var map = self._makeMap(self.storeValue.value); |
|
|
|