|
|
@ -28471,7 +28471,7 @@ BI.extend(BI.DOM, { |
|
|
|
return this._scrollWidth; |
|
|
|
return this._scrollWidth; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getImage: function (param) { |
|
|
|
getImage: function (param, fillStyle, backgroundColor) { |
|
|
|
var image = new Image(); |
|
|
|
var image = new Image(); |
|
|
|
var canvas = document.createElement("canvas"); |
|
|
|
var canvas = document.createElement("canvas"); |
|
|
|
$("body").append(canvas); |
|
|
|
$("body").append(canvas); |
|
|
@ -28481,15 +28481,16 @@ BI.extend(BI.DOM, { |
|
|
|
var ctx = canvas.getContext("2d"); |
|
|
|
var ctx = canvas.getContext("2d"); |
|
|
|
// ctx.fillStyle = "#EAF2FD";
|
|
|
|
// ctx.fillStyle = "#EAF2FD";
|
|
|
|
ctx.font = "12px Georgia"; |
|
|
|
ctx.font = "12px Georgia"; |
|
|
|
ctx.fillStyle = "#3D4D66"; |
|
|
|
ctx.fillStyle = fillStyle || "#3D4D66"; |
|
|
|
ctx.textBaseline = "middle"; |
|
|
|
ctx.textBaseline = "middle"; |
|
|
|
ctx.fillText(param, 6, 12); |
|
|
|
ctx.fillText(param, 6, 12); |
|
|
|
$(canvas).destroy(); |
|
|
|
$(canvas).destroy(); |
|
|
|
|
|
|
|
var backColor = backgroundColor || "#EAF2FD"; |
|
|
|
return { |
|
|
|
return { |
|
|
|
width: w, |
|
|
|
width: w, |
|
|
|
height: 24, |
|
|
|
height: 24, |
|
|
|
src: canvas.toDataURL("image/png"), |
|
|
|
src: canvas.toDataURL("image/png"), |
|
|
|
style: "background-color: #EAF2FD; vertical-align: sub; margin: 0 3px;", |
|
|
|
style: "background-color: " + backColor + ";vertical-align: sub; margin: 0 3px;", |
|
|
|
alt: param |
|
|
|
alt: param |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
@ -77224,7 +77225,8 @@ BI.IconCombo = BI.inherit(BI.Widget, { |
|
|
|
adjustXOffset: 0, |
|
|
|
adjustXOffset: 0, |
|
|
|
adjustYOffset: 0, |
|
|
|
adjustYOffset: 0, |
|
|
|
offsetStyle: "left", |
|
|
|
offsetStyle: "left", |
|
|
|
chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE |
|
|
|
chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE, |
|
|
|
|
|
|
|
isShowDown: true |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -77240,7 +77242,8 @@ BI.IconCombo = BI.inherit(BI.Widget, { |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
iconWidth: o.iconWidth, |
|
|
|
iconWidth: o.iconWidth, |
|
|
|
iconHeight: o.iconHeight, |
|
|
|
iconHeight: o.iconHeight, |
|
|
|
value: o.value |
|
|
|
value: o.value, |
|
|
|
|
|
|
|
isShowDown: o.isShowDown |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.popup = BI.createWidget(o.popup, { |
|
|
|
this.popup = BI.createWidget(o.popup, { |
|
|
|
type: "bi.icon_combo_popup", |
|
|
|
type: "bi.icon_combo_popup", |
|
|
@ -77395,7 +77398,7 @@ BI.IconComboTrigger = BI.inherit(BI.Trigger, { |
|
|
|
cls: "icon-combo-trigger-icon", |
|
|
|
cls: "icon-combo-trigger-icon", |
|
|
|
iconCls: iconCls, |
|
|
|
iconCls: iconCls, |
|
|
|
disableSelected: true, |
|
|
|
disableSelected: true, |
|
|
|
width: o.width - 12, |
|
|
|
width: o.isShowDown ? o.width - 12 : o.width, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
iconWidth: o.iconWidth, |
|
|
|
iconWidth: o.iconWidth, |
|
|
|
iconHeight: o.iconHeight, |
|
|
|
iconHeight: o.iconHeight, |
|
|
@ -89801,10 +89804,26 @@ BI.shortcut("bi.down_list_popup", BI.DownListPopup);/** |
|
|
|
if(value.length !== 0) { |
|
|
|
if(value.length !== 0) { |
|
|
|
self.workDayBox.setSelected(false); |
|
|
|
self.workDayBox.setSelected(false); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var plainValue = {}; |
|
|
|
|
|
|
|
BI.each(self.resultPane.getAllButtons(), function (idx, button) { |
|
|
|
|
|
|
|
var value = button.getValue(); |
|
|
|
|
|
|
|
if(BI.isNotNull(value.dateType)) { |
|
|
|
|
|
|
|
plainValue[value.dateType] = { |
|
|
|
|
|
|
|
value: value.value, |
|
|
|
|
|
|
|
offset: value.offset |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
self.resultPane.populate(self._getParamJson(BI.map(self.checkgroup.getValue(), function (idx, v) { |
|
|
|
self.resultPane.populate(self._getParamJson(BI.map(self.checkgroup.getValue(), function (idx, v) { |
|
|
|
return { |
|
|
|
var obj = { |
|
|
|
dateType: v |
|
|
|
dateType: v |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
if(BI.has(plainValue, v)) { |
|
|
|
|
|
|
|
obj.value = plainValue[v].value; |
|
|
|
|
|
|
|
obj.offset = plainValue[v].offset; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return obj; |
|
|
|
}))); |
|
|
|
}))); |
|
|
|
self.position = BI.DynamicDateCard.OFFSET.CURRENT; |
|
|
|
self.position = BI.DynamicDateCard.OFFSET.CURRENT; |
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
@ -100337,6 +100356,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
type: "bi.icon_combo", |
|
|
|
type: "bi.icon_combo", |
|
|
|
cls: "number-interval-small-combo bi-border", |
|
|
|
cls: "number-interval-small-combo bi-border", |
|
|
|
height: o.height - 2, |
|
|
|
height: o.height - 2, |
|
|
|
|
|
|
|
isShowDown: false, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
text: "(" + BI.i18nText("BI-Less_Than") + ")", |
|
|
|
text: "(" + BI.i18nText("BI-Less_Than") + ")", |
|
|
|
iconCls: "less-font", |
|
|
|
iconCls: "less-font", |
|
|
@ -100355,6 +100375,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
this.bigCombo = BI.createWidget({ |
|
|
|
this.bigCombo = BI.createWidget({ |
|
|
|
type: "bi.icon_combo", |
|
|
|
type: "bi.icon_combo", |
|
|
|
cls: "number-interval-big-combo bi-border", |
|
|
|
cls: "number-interval-big-combo bi-border", |
|
|
|
|
|
|
|
isShowDown: false, |
|
|
|
height: o.height - 2, |
|
|
|
height: o.height - 2, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
text: "(" + BI.i18nText("BI-Less_Than") + ")", |
|
|
|
text: "(" + BI.i18nText("BI-Less_Than") + ")", |
|
|
|