|
|
@ -7739,6 +7739,7 @@ BI.MonthCombo = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.MonthCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.MonthCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-month-combo", |
|
|
|
baseCls: "bi-month-combo", |
|
|
|
|
|
|
|
behaviors: {}, |
|
|
|
height: 25 |
|
|
|
height: 25 |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -7751,9 +7752,9 @@ BI.MonthCombo = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.trigger.on(BI.MonthTrigger.EVENT_CONFIRM, function (v) { |
|
|
|
this.trigger.on(BI.MonthTrigger.EVENT_CONFIRM, function (v) { |
|
|
|
if(this.getKey() && this.getKey() !== self.storeValue) { |
|
|
|
if (this.getKey() && this.getKey() !== self.storeValue) { |
|
|
|
self.setValue(this.getValue()); |
|
|
|
self.setValue(this.getValue()); |
|
|
|
}else if(!this.getKey()){ |
|
|
|
} else if (!this.getKey()) { |
|
|
|
self.setValue(); |
|
|
|
self.setValue(); |
|
|
|
} |
|
|
|
} |
|
|
|
self.fireEvent(BI.MonthCombo.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.MonthCombo.EVENT_CONFIRM); |
|
|
@ -7774,7 +7775,8 @@ BI.MonthCombo = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.popup = BI.createWidget({ |
|
|
|
this.popup = BI.createWidget({ |
|
|
|
type: "bi.month_popup" |
|
|
|
type: "bi.month_popup", |
|
|
|
|
|
|
|
behaviors: o.behaviors |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.popup.on(BI.MonthPopup.EVENT_CHANGE, function () { |
|
|
|
this.popup.on(BI.MonthPopup.EVENT_CHANGE, function () { |
|
|
|
self.setValue(self.popup.getValue()); |
|
|
|
self.setValue(self.popup.getValue()); |
|
|
@ -7792,7 +7794,10 @@ BI.MonthCombo = BI.inherit(BI.Widget, { |
|
|
|
minWidth: 85, |
|
|
|
minWidth: 85, |
|
|
|
el: this.popup |
|
|
|
el: this.popup |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}); |
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.MonthCombo.EVENT_BEFORE_POPUPVIEW); |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
@ -7806,6 +7811,7 @@ BI.MonthCombo = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
BI.MonthCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.MonthCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
|
|
|
|
BI.MonthCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; |
|
|
|
BI.shortcut('bi.month_combo', BI.MonthCombo);/** |
|
|
|
BI.shortcut('bi.month_combo', BI.MonthCombo);/** |
|
|
|
* 月份展示面板 |
|
|
|
* 月份展示面板 |
|
|
|
* |
|
|
|
* |
|
|
@ -7817,13 +7823,14 @@ BI.MonthPopup = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.MonthPopup.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.MonthPopup.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-month-popup" |
|
|
|
baseCls: "bi-month-popup", |
|
|
|
|
|
|
|
behaviors: {} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
|
BI.MonthPopup.superclass._init.apply(this, arguments); |
|
|
|
BI.MonthPopup.superclass._init.apply(this, arguments); |
|
|
|
var self = this; |
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
|
|
|
|
//纵向排列月
|
|
|
|
//纵向排列月
|
|
|
|
var month = [0, 6, 1, 7, 2, 8, 3, 9, 4, 10, 5, 11]; |
|
|
|
var month = [0, 6, 1, 7, 2, 8, 3, 9, 4, 10, 5, 11]; |
|
|
@ -7854,6 +7861,7 @@ BI.MonthPopup = BI.inherit(BI.Widget, { |
|
|
|
this.month = BI.createWidget({ |
|
|
|
this.month = BI.createWidget({ |
|
|
|
type: "bi.button_group", |
|
|
|
type: "bi.button_group", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
|
|
|
|
behaviors: o.behaviors, |
|
|
|
items: BI.createItems(items, {}), |
|
|
|
items: BI.createItems(items, {}), |
|
|
|
layouts: [BI.LogicFactory.createLogic("table", BI.extend({ |
|
|
|
layouts: [BI.LogicFactory.createLogic("table", BI.extend({ |
|
|
|
dynamic: true |
|
|
|
dynamic: true |
|
|
@ -8170,10 +8178,6 @@ BI.MultiLayerSelectLevelTree = BI.inherit(BI.Widget, { |
|
|
|
this.tree.populate(this._formatItems(BI.Tree.transformToTreeFormat(nodes), 0)); |
|
|
|
this.tree.populate(this._formatItems(BI.Tree.transformToTreeFormat(nodes), 0)); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
doBehavior: function () { |
|
|
|
|
|
|
|
this.tree.doBehavior.apply(this.tree, arguments); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
|
this.tree.setValue(v); |
|
|
|
this.tree.setValue(v); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -8715,10 +8719,6 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Widget, { |
|
|
|
this.tree.populate(this._formatItems(BI.Tree.transformToTreeFormat(nodes), 0)); |
|
|
|
this.tree.populate(this._formatItems(BI.Tree.transformToTreeFormat(nodes), 0)); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
doBehavior: function () { |
|
|
|
|
|
|
|
this.tree.doBehavior.apply(this.tree, arguments); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
|
this.tree.setValue(v); |
|
|
|
this.tree.setValue(v); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -13976,6 +13976,7 @@ BI.QuarterCombo = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.QuarterCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.QuarterCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-quarter-combo", |
|
|
|
baseCls: "bi-quarter-combo", |
|
|
|
|
|
|
|
behaviors: {}, |
|
|
|
height: 25 |
|
|
|
height: 25 |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -13996,24 +13997,25 @@ BI.QuarterCombo = BI.inherit(BI.Widget, { |
|
|
|
this.trigger.on(BI.QuarterTrigger.EVENT_START, function () { |
|
|
|
this.trigger.on(BI.QuarterTrigger.EVENT_START, function () { |
|
|
|
self.combo.isViewVisible() && self.combo.hideView(); |
|
|
|
self.combo.isViewVisible() && self.combo.hideView(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.trigger.on(BI.QuarterTrigger.EVENT_STOP, function(){ |
|
|
|
this.trigger.on(BI.QuarterTrigger.EVENT_STOP, function () { |
|
|
|
if (!self.combo.isViewVisible()) { |
|
|
|
if (!self.combo.isViewVisible()) { |
|
|
|
self.combo.showView(); |
|
|
|
self.combo.showView(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.trigger.on(BI.QuarterTrigger.EVENT_CONFIRM, function () { |
|
|
|
this.trigger.on(BI.QuarterTrigger.EVENT_CONFIRM, function () { |
|
|
|
if(self.combo.isViewVisible()) { |
|
|
|
if (self.combo.isViewVisible()) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if(this.getKey() && this.getKey() !== self.storeValue) { |
|
|
|
if (this.getKey() && this.getKey() !== self.storeValue) { |
|
|
|
self.setValue(this.getKey()); |
|
|
|
self.setValue(this.getKey()); |
|
|
|
}else if(!this.getKey()){ |
|
|
|
} else if (!this.getKey()) { |
|
|
|
self.setValue(); |
|
|
|
self.setValue(); |
|
|
|
} |
|
|
|
} |
|
|
|
self.fireEvent(BI.QuarterCombo.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.QuarterCombo.EVENT_CONFIRM); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.popup = BI.createWidget({ |
|
|
|
this.popup = BI.createWidget({ |
|
|
|
type: "bi.quarter_popup" |
|
|
|
type: "bi.quarter_popup", |
|
|
|
|
|
|
|
behaviors: o.behaviors |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.popup.on(BI.QuarterPopup.EVENT_CHANGE, function () { |
|
|
|
this.popup.on(BI.QuarterPopup.EVENT_CHANGE, function () { |
|
|
@ -14033,6 +14035,9 @@ BI.QuarterCombo = BI.inherit(BI.Widget, { |
|
|
|
el: this.popup |
|
|
|
el: this.popup |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.QuarterCombo.EVENT_BEFORE_POPUPVIEW); |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
@ -14046,6 +14051,7 @@ BI.QuarterCombo = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
BI.QuarterCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.QuarterCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
|
|
|
|
BI.QuarterCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; |
|
|
|
BI.shortcut('bi.quarter_combo', BI.QuarterCombo);/** |
|
|
|
BI.shortcut('bi.quarter_combo', BI.QuarterCombo);/** |
|
|
|
* 季度展示面板 |
|
|
|
* 季度展示面板 |
|
|
|
* |
|
|
|
* |
|
|
@ -14057,13 +14063,14 @@ BI.QuarterPopup = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.QuarterPopup.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.QuarterPopup.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-quarter-popup" |
|
|
|
baseCls: "bi-quarter-popup", |
|
|
|
|
|
|
|
behaviors: {} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
|
BI.QuarterPopup.superclass._init.apply(this, arguments); |
|
|
|
BI.QuarterPopup.superclass._init.apply(this, arguments); |
|
|
|
var self = this; |
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
|
|
|
|
var items = [{ |
|
|
|
var items = [{ |
|
|
|
text: Date._QN[01], |
|
|
|
text: Date._QN[01], |
|
|
@ -14093,6 +14100,7 @@ BI.QuarterPopup = BI.inherit(BI.Widget, { |
|
|
|
this.quarter = BI.createWidget({ |
|
|
|
this.quarter = BI.createWidget({ |
|
|
|
type: "bi.button_group", |
|
|
|
type: "bi.button_group", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
|
|
|
|
behaviors: o.behaviors, |
|
|
|
items: BI.createItems(items, {}), |
|
|
|
items: BI.createItems(items, {}), |
|
|
|
layouts: [{ |
|
|
|
layouts: [{ |
|
|
|
type: "bi.vertical" |
|
|
|
type: "bi.vertical" |
|
|
@ -16581,6 +16589,7 @@ BI.YearCombo = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.YearCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.YearCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-year-combo", |
|
|
|
baseCls: "bi-year-combo", |
|
|
|
|
|
|
|
behaviors: {}, |
|
|
|
min: '1900-01-01', //最小日期
|
|
|
|
min: '1900-01-01', //最小日期
|
|
|
|
max: '2099-12-31', //最大日期
|
|
|
|
max: '2099-12-31', //最大日期
|
|
|
|
height: 25 |
|
|
|
height: 25 |
|
|
@ -16608,7 +16617,7 @@ BI.YearCombo = BI.inherit(BI.Widget, { |
|
|
|
self.combo.isViewVisible() && self.combo.hideView(); |
|
|
|
self.combo.isViewVisible() && self.combo.hideView(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.trigger.on(BI.YearTrigger.EVENT_CONFIRM, function () { |
|
|
|
this.trigger.on(BI.YearTrigger.EVENT_CONFIRM, function () { |
|
|
|
if(self.combo.isViewVisible()) { |
|
|
|
if (self.combo.isViewVisible()) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.getKey() && this.getKey() !== self.storeValue) { |
|
|
|
if (this.getKey() && this.getKey() !== self.storeValue) { |
|
|
@ -16619,45 +16628,50 @@ BI.YearCombo = BI.inherit(BI.Widget, { |
|
|
|
self.fireEvent(BI.YearCombo.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.YearCombo.EVENT_CONFIRM); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.popup = BI.createWidget({ |
|
|
|
|
|
|
|
type: "bi.year_popup", |
|
|
|
|
|
|
|
min: o.min, |
|
|
|
|
|
|
|
max: o.max |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.popup.on(BI.YearPopup.EVENT_CHANGE, function () { |
|
|
|
|
|
|
|
self.setValue(self.popup.getValue()); |
|
|
|
|
|
|
|
self.combo.hideView(); |
|
|
|
|
|
|
|
self.fireEvent(BI.YearCombo.EVENT_CONFIRM); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
|
|
|
|
destroyWhenHide: true, |
|
|
|
isNeedAdjustHeight: false, |
|
|
|
isNeedAdjustHeight: false, |
|
|
|
isNeedAdjustWidth: false, |
|
|
|
isNeedAdjustWidth: false, |
|
|
|
el: this.trigger, |
|
|
|
el: this.trigger, |
|
|
|
popup: { |
|
|
|
popup: { |
|
|
|
minWidth: 85, |
|
|
|
minWidth: 85, |
|
|
|
stopPropagation: false, |
|
|
|
stopPropagation: false, |
|
|
|
el: this.popup |
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.year_popup", |
|
|
|
|
|
|
|
ref: function () { |
|
|
|
|
|
|
|
self.popup = this; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: BI.YearPopup.EVENT_CHANGE, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.setValue(self.popup.getValue()); |
|
|
|
|
|
|
|
self.combo.hideView(); |
|
|
|
|
|
|
|
self.fireEvent(BI.YearCombo.EVENT_CONFIRM); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}], |
|
|
|
|
|
|
|
behaviors: o.behaviors, |
|
|
|
|
|
|
|
min: o.min, |
|
|
|
|
|
|
|
max: o.max |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
var value = self.trigger.getKey(); |
|
|
|
var value = self.trigger.getKey(); |
|
|
|
if (BI.isNotNull(value)) { |
|
|
|
if (BI.isNotNull(value)) { |
|
|
|
self.popup.setValue(value); |
|
|
|
self.popup.setValue(value); |
|
|
|
} else if(!value && value !== self.storeValue){ |
|
|
|
} else if (!value && value !== self.storeValue) { |
|
|
|
self.popup.setValue(self.storeValue); |
|
|
|
self.popup.setValue(self.storeValue); |
|
|
|
}else { |
|
|
|
} else { |
|
|
|
self.setValue(); |
|
|
|
self.setValue(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
self.fireEvent(BI.YearCombo.EVENT_BEFORE_POPUPVIEW); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
|
this.trigger.setValue(v); |
|
|
|
this.combo.setValue(v); |
|
|
|
this.popup.setValue(v); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
@ -16665,6 +16679,7 @@ BI.YearCombo = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.YearCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.YearCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
|
|
|
|
BI.YearCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; |
|
|
|
BI.shortcut('bi.year_combo', BI.YearCombo);/** |
|
|
|
BI.shortcut('bi.year_combo', BI.YearCombo);/** |
|
|
|
* 年份展示面板 |
|
|
|
* 年份展示面板 |
|
|
|
* |
|
|
|
* |
|
|
@ -16677,6 +16692,7 @@ BI.YearPopup = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.YearPopup.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.YearPopup.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-year-popup", |
|
|
|
baseCls: "bi-year-popup", |
|
|
|
|
|
|
|
behaviors: {}, |
|
|
|
min: '1900-01-01', //最小日期
|
|
|
|
min: '1900-01-01', //最小日期
|
|
|
|
max: '2099-12-31' //最大日期
|
|
|
|
max: '2099-12-31' //最大日期
|
|
|
|
}); |
|
|
|
}); |
|
|
@ -16687,6 +16703,7 @@ BI.YearPopup = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
var calendar = BI.createWidget({ |
|
|
|
var calendar = BI.createWidget({ |
|
|
|
type: "bi.year_calendar", |
|
|
|
type: "bi.year_calendar", |
|
|
|
|
|
|
|
behaviors: o.behaviors, |
|
|
|
min: o.min, |
|
|
|
min: o.min, |
|
|
|
max: o.max, |
|
|
|
max: o.max, |
|
|
|
logic: { |
|
|
|
logic: { |
|
|
@ -16723,11 +16740,12 @@ BI.YearPopup = BI.inherit(BI.Widget, { |
|
|
|
this.navigation = BI.createWidget({ |
|
|
|
this.navigation = BI.createWidget({ |
|
|
|
type: "bi.navigation", |
|
|
|
type: "bi.navigation", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
|
|
|
|
single: true, |
|
|
|
logic: { |
|
|
|
logic: { |
|
|
|
dynamic: true |
|
|
|
dynamic: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
tab: { |
|
|
|
tab: { |
|
|
|
cls: "year-popup-navigation bi-border-top", |
|
|
|
cls: "year-popup-navigation bi-high-light bi-border-top", |
|
|
|
height: 25, |
|
|
|
height: 25, |
|
|
|
items: [backBtn, preBtn] |
|
|
|
items: [backBtn, preBtn] |
|
|
|
}, |
|
|
|
}, |
|
|
@ -16882,6 +16900,8 @@ BI.YearMonthCombo = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.YearMonthCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.YearMonthCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-year-month-combo", |
|
|
|
baseCls: "bi-year-month-combo", |
|
|
|
|
|
|
|
yearBehaviors: {}, |
|
|
|
|
|
|
|
monthBehaviors: {}, |
|
|
|
height: 25 |
|
|
|
height: 25 |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -16890,20 +16910,28 @@ BI.YearMonthCombo = BI.inherit(BI.Widget, { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
|
|
|
|
this.year = BI.createWidget({ |
|
|
|
this.year = BI.createWidget({ |
|
|
|
type: "bi.year_combo" |
|
|
|
type: "bi.year_combo", |
|
|
|
|
|
|
|
behaviors: o.yearBehaviors |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.month = BI.createWidget({ |
|
|
|
this.month = BI.createWidget({ |
|
|
|
type: "bi.month_combo" |
|
|
|
type: "bi.month_combo", |
|
|
|
|
|
|
|
behaviors: o.monthBehaviors |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.year.on(BI.YearCombo.EVENT_CONFIRM, function(){ |
|
|
|
this.year.on(BI.YearCombo.EVENT_CONFIRM, function () { |
|
|
|
self.fireEvent(BI.YearMonthCombo.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.YearMonthCombo.EVENT_CONFIRM); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
this.year.on(BI.YearCombo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.YearMonthCombo.EVENT_BEFORE_POPUPVIEW); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.month.on(BI.MonthCombo.EVENT_CONFIRM, function(){ |
|
|
|
this.month.on(BI.MonthCombo.EVENT_CONFIRM, function () { |
|
|
|
self.fireEvent(BI.YearMonthCombo.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.YearMonthCombo.EVENT_CONFIRM); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
this.month.on(BI.MonthCombo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.YearMonthCombo.EVENT_BEFORE_POPUPVIEW); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.center", |
|
|
|
type: "bi.center", |
|
|
@ -16928,6 +16956,7 @@ BI.YearMonthCombo = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.YearMonthCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.YearMonthCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
|
|
|
|
BI.YearMonthCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; |
|
|
|
BI.shortcut('bi.year_month_combo', BI.YearMonthCombo);/** |
|
|
|
BI.shortcut('bi.year_month_combo', BI.YearMonthCombo);/** |
|
|
|
* 年份 + 月份下拉框 |
|
|
|
* 年份 + 月份下拉框 |
|
|
|
* |
|
|
|
* |
|
|
@ -16938,6 +16967,8 @@ BI.YearQuarterCombo = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.YearQuarterCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.YearQuarterCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-year-quarter-combo", |
|
|
|
baseCls: "bi-year-quarter-combo", |
|
|
|
|
|
|
|
yearBehaviors: {}, |
|
|
|
|
|
|
|
quarterBehaviors: {}, |
|
|
|
height: 25 |
|
|
|
height: 25 |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -16946,20 +16977,28 @@ BI.YearQuarterCombo = BI.inherit(BI.Widget, { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
|
|
|
|
this.year = BI.createWidget({ |
|
|
|
this.year = BI.createWidget({ |
|
|
|
type: "bi.year_combo" |
|
|
|
type: "bi.year_combo", |
|
|
|
|
|
|
|
behaviors: o.yearBehaviors |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.quarter = BI.createWidget({ |
|
|
|
this.quarter = BI.createWidget({ |
|
|
|
type: "bi.quarter_combo" |
|
|
|
type: "bi.quarter_combo", |
|
|
|
|
|
|
|
behaviors: o.quarterBehaviors |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.year.on(BI.YearCombo.EVENT_CONFIRM, function(){ |
|
|
|
this.year.on(BI.YearCombo.EVENT_CONFIRM, function () { |
|
|
|
self.fireEvent(BI.YearQuarterCombo.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.YearQuarterCombo.EVENT_CONFIRM); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
this.year.on(BI.YearCombo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.YearQuarterCombo.EVENT_BEFORE_POPUPVIEW); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.quarter.on(BI.QuarterCombo.EVENT_CONFIRM, function(){ |
|
|
|
this.quarter.on(BI.QuarterCombo.EVENT_CONFIRM, function () { |
|
|
|
self.fireEvent(BI.YearQuarterCombo.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.YearQuarterCombo.EVENT_CONFIRM); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
this.quarter.on(BI.QuarterCombo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.YearQuarterCombo.EVENT_BEFORE_POPUPVIEW); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.center", |
|
|
|
type: "bi.center", |
|
|
@ -16984,6 +17023,7 @@ BI.YearQuarterCombo = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.YearQuarterCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.YearQuarterCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
|
|
|
|
BI.YearQuarterCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; |
|
|
|
BI.shortcut('bi.year_quarter_combo', BI.YearQuarterCombo);/** |
|
|
|
BI.shortcut('bi.year_quarter_combo', BI.YearQuarterCombo);/** |
|
|
|
* 简单的复选下拉框控件, 适用于数据量少的情况, 与valuechooser的区别是allvaluechooser setValue和getValue返回的是所有值 |
|
|
|
* 简单的复选下拉框控件, 适用于数据量少的情况, 与valuechooser的区别是allvaluechooser setValue和getValue返回的是所有值 |
|
|
|
* 封装了字段处理逻辑 |
|
|
|
* 封装了字段处理逻辑 |
|
|
|