|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
/*! time: 2021-1-18 14:00:24 */ |
|
|
|
|
/*! time: 2021-1-19 09:30:24 */ |
|
|
|
|
/******/ (function(modules) { // webpackBootstrap
|
|
|
|
|
/******/ // The module cache
|
|
|
|
|
/******/ var installedModules = {}; |
|
|
|
@ -38535,7 +38535,7 @@ BI.shortcut("bi.linear_segment_button", BI.LinearSegmentButton);
|
|
|
|
|
BI.LinearSegment = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
props: { |
|
|
|
|
baseCls: "bi-linear-segment bi-split-bottom", |
|
|
|
|
baseCls: "bi-linear-segment", |
|
|
|
|
items: [], |
|
|
|
|
layouts: [{ |
|
|
|
|
type: "bi.center" |
|
|
|
@ -41840,14 +41840,12 @@ BI.shortcut("bi.year_picker", BI.YearPicker);
|
|
|
|
|
* @extends BI.Widget |
|
|
|
|
*/ |
|
|
|
|
BI.DateCalendarPopup = BI.inherit(BI.Widget, { |
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
var conf = BI.DateCalendarPopup.superclass._defaultConfig.apply(this, arguments); |
|
|
|
|
return BI.extend(conf, { |
|
|
|
|
baseCls: "bi-date-calendar-popup", |
|
|
|
|
min: "1900-01-01", // 最小日期
|
|
|
|
|
max: "2099-12-31", // 最大日期
|
|
|
|
|
selectedTime: null |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
props: { |
|
|
|
|
baseCls: "bi-date-calendar-popup", |
|
|
|
|
min: "1900-01-01", // 最小日期
|
|
|
|
|
max: "2099-12-31", // 最大日期
|
|
|
|
|
selectedTime: null |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_createNav: function (v) { |
|
|
|
@ -41867,8 +41865,7 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
return calendar; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
|
BI.DateCalendarPopup.superclass._init.apply(this, arguments); |
|
|
|
|
render: function () { |
|
|
|
|
var self = this, |
|
|
|
|
o = this.options; |
|
|
|
|
this.today = BI.getDate(); |
|
|
|
@ -41922,14 +41919,16 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
element: this, |
|
|
|
|
return [{ |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
items: [{ |
|
|
|
|
el: this.calendar, |
|
|
|
|
left: 5, |
|
|
|
|
right: 5 |
|
|
|
|
}, { |
|
|
|
|
hgap: 5, |
|
|
|
|
bgap: 12 |
|
|
|
|
}] |
|
|
|
|
}, { |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
items: [{ |
|
|
|
|
el: { |
|
|
|
|
type: "bi.layout", |
|
|
|
|
cls: "bi-split-top" |
|
|
|
@ -41939,7 +41938,7 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
left: 0, |
|
|
|
|
right: 0 |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_checkMin: function () { |
|
|
|
@ -44564,7 +44563,8 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
|
|
|
|
|
minDate: "1900-01-01", |
|
|
|
|
maxDate: "2099-12-31", |
|
|
|
|
format: "", |
|
|
|
|
allowEdit: true |
|
|
|
|
allowEdit: true, |
|
|
|
|
supportDynamic: true, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -44686,6 +44686,7 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
|
|
|
|
|
popup: { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.dynamic_date_popup", |
|
|
|
|
supportDynamic: opts.supportDynamic, |
|
|
|
|
behaviors: opts.behaviors, |
|
|
|
|
min: opts.minDate, |
|
|
|
|
max: opts.maxDate, |
|
|
|
@ -45025,7 +45026,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
props: { |
|
|
|
|
baseCls: "bi-dynamic-date-popup", |
|
|
|
|
width: 248, |
|
|
|
|
height: 344 |
|
|
|
|
supportDynamic: true, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
@ -45034,7 +45035,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
this.storeValue = {type: BI.DynamicDateCombo.Static}; |
|
|
|
|
BI.createWidget({ |
|
|
|
|
element: this, |
|
|
|
|
type: "bi.vtape", |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
items: [{ |
|
|
|
|
el: this._getTabJson() |
|
|
|
|
}, { |
|
|
|
@ -45079,9 +45080,9 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
self.fireEvent(BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}]] |
|
|
|
|
}]], |
|
|
|
|
height: 24 |
|
|
|
|
}, |
|
|
|
|
height: 24 |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
this.setValue(opts.value); |
|
|
|
@ -45091,11 +45092,15 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
return { |
|
|
|
|
type: "bi.tab", |
|
|
|
|
logic: { |
|
|
|
|
dynamic: true |
|
|
|
|
}, |
|
|
|
|
ref: function () { |
|
|
|
|
self.dateTab = this; |
|
|
|
|
}, |
|
|
|
|
tab: { |
|
|
|
|
type: "bi.linear_segment", |
|
|
|
|
invisible: !o.supportDynamic, |
|
|
|
|
cls: "bi-split-bottom", |
|
|
|
|
height: this.constants.tabHeight, |
|
|
|
|
items: BI.createItems([{ |
|
|
|
@ -45113,6 +45118,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
case BI.DynamicDateCombo.Dynamic: |
|
|
|
|
return { |
|
|
|
|
type: "bi.dynamic_date_card", |
|
|
|
|
cls: "dynamic-date-pane", |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: "EVENT_CHANGE", |
|
|
|
|
action: function () { |
|
|
|
@ -45634,7 +45640,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
|
|
|
|
|
minDate: "1900-01-01", |
|
|
|
|
maxDate: "2099-12-31", |
|
|
|
|
format: "", |
|
|
|
|
allowEdit: true |
|
|
|
|
allowEdit: true, |
|
|
|
|
supportDynamic: true |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -45761,6 +45768,7 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
|
|
|
|
|
popup: { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.dynamic_date_time_popup", |
|
|
|
|
supportDynamic: opts.supportDynamic, |
|
|
|
|
behaviors: opts.behaviors, |
|
|
|
|
min: opts.minDate, |
|
|
|
|
max: opts.maxDate, |
|
|
|
@ -45964,7 +45972,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
props: { |
|
|
|
|
baseCls: "bi-dynamic-date-time-popup", |
|
|
|
|
width: 248, |
|
|
|
|
height: 385 |
|
|
|
|
supportDynamic: true, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
@ -45973,7 +45981,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
this.storeValue = {type: BI.DynamicDateCombo.Static}; |
|
|
|
|
BI.createWidget({ |
|
|
|
|
element: this, |
|
|
|
|
type: "bi.vtape", |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
items: [{ |
|
|
|
|
el: this._getTabJson() |
|
|
|
|
}, { |
|
|
|
@ -46018,9 +46026,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
self.fireEvent(BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}]] |
|
|
|
|
}, |
|
|
|
|
height: 24 |
|
|
|
|
}]], |
|
|
|
|
height: 24 |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
this.setValue(opts.value); |
|
|
|
@ -46030,11 +46038,15 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
return { |
|
|
|
|
type: "bi.tab", |
|
|
|
|
logic: { |
|
|
|
|
dynamic: true |
|
|
|
|
}, |
|
|
|
|
ref: function () { |
|
|
|
|
self.dateTab = this; |
|
|
|
|
}, |
|
|
|
|
tab: { |
|
|
|
|
type: "bi.linear_segment", |
|
|
|
|
invisible: !o.supportDynamic, |
|
|
|
|
cls: "bi-split-bottom", |
|
|
|
|
height: this.constants.tabHeight, |
|
|
|
|
items: BI.createItems([{ |
|
|
|
@ -46052,6 +46064,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
case BI.DynamicDateCombo.Dynamic: |
|
|
|
|
return { |
|
|
|
|
type: "bi.dynamic_date_card", |
|
|
|
|
cls: "dynamic-date-pane", |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: "EVENT_CHANGE", |
|
|
|
|
action: function () { |
|
|
|
@ -46067,7 +46080,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
case BI.DynamicDateCombo.Static: |
|
|
|
|
default: |
|
|
|
|
return { |
|
|
|
|
type: "bi.vtape", |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
items: [{ |
|
|
|
|
type: "bi.date_calendar_popup", |
|
|
|
|
behaviors: o.behaviors, |
|
|
|
@ -46088,9 +46101,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
cls: "bi-split-top", |
|
|
|
|
ref: function () { |
|
|
|
|
self.timeSelect = this; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
height: 40 |
|
|
|
|
}, |
|
|
|
|
height: 40 |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
@ -65669,7 +65682,8 @@ BI.DateInterval = BI.inherit(BI.Single, {
|
|
|
|
|
extraCls: "bi-date-interval", |
|
|
|
|
minDate: "1900-01-01", |
|
|
|
|
maxDate: "2099-12-31", |
|
|
|
|
height: 24 |
|
|
|
|
height: 24, |
|
|
|
|
supportDynamic: true, |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
_init: function () { |
|
|
|
@ -65722,6 +65736,7 @@ BI.DateInterval = BI.inherit(BI.Single, {
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
var combo = BI.createWidget({ |
|
|
|
|
type: "bi.dynamic_date_combo", |
|
|
|
|
supportDynamic: o.supportDynamic, |
|
|
|
|
minDate: o.minDate, |
|
|
|
|
maxDate: o.maxDate, |
|
|
|
|
behaviors: o.behaviors, |
|
|
|
@ -65882,7 +65897,8 @@ BI.TimeInterval = BI.inherit(BI.Single, {
|
|
|
|
|
extraCls: "bi-time-interval", |
|
|
|
|
minDate: "1900-01-01", |
|
|
|
|
maxDate: "2099-12-31", |
|
|
|
|
height: 24 |
|
|
|
|
height: 24, |
|
|
|
|
supportDynamic: true |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
_init: function () { |
|
|
|
@ -65935,6 +65951,7 @@ BI.TimeInterval = BI.inherit(BI.Single, {
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
var combo = BI.createWidget({ |
|
|
|
|
type: "bi.dynamic_date_time_combo", |
|
|
|
|
supportDynamic: o.supportDynamic, |
|
|
|
|
minDate: o.minDate, |
|
|
|
|
maxDate: o.maxDate, |
|
|
|
|
behaviors: o.behaviors, |
|
|
|
@ -66497,7 +66514,8 @@ BI.DynamicYearCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
behaviors: {}, |
|
|
|
|
minDate: "1900-01-01", // 最小日期
|
|
|
|
|
maxDate: "2099-12-31", // 最大日期
|
|
|
|
|
height: 22 |
|
|
|
|
height: 22, |
|
|
|
|
supportDynamic: true, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
@ -66554,6 +66572,7 @@ BI.DynamicYearCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
stopPropagation: false, |
|
|
|
|
el: { |
|
|
|
|
type: "bi.dynamic_year_popup", |
|
|
|
|
supportDynamic: o.supportDynamic, |
|
|
|
|
ref: function () { |
|
|
|
|
self.popup = this; |
|
|
|
|
}, |
|
|
|
@ -66699,14 +66718,14 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
min: "1900-01-01", // 最小日期
|
|
|
|
|
max: "2099-12-31", // 最大日期,
|
|
|
|
|
width: 180, |
|
|
|
|
height: 240 |
|
|
|
|
supportDynamic: true, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
var self = this, opts = this.options, c = this.constants; |
|
|
|
|
this.storeValue = {type: BI.DynamicYearCombo.Static}; |
|
|
|
|
return { |
|
|
|
|
type: "bi.vtape", |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
items: [{ |
|
|
|
|
el: this._getTabJson() |
|
|
|
|
}, { |
|
|
|
@ -66751,9 +66770,9 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
self.fireEvent(BI.DynamicYearPopup.BUTTON_OK_EVENT_CHANGE); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}]] |
|
|
|
|
}]], |
|
|
|
|
height: 24 |
|
|
|
|
}, |
|
|
|
|
height: 24 |
|
|
|
|
}] |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
@ -66774,12 +66793,15 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
return { |
|
|
|
|
type: "bi.tab", |
|
|
|
|
logic: { |
|
|
|
|
dynamic: true |
|
|
|
|
}, |
|
|
|
|
ref: function () { |
|
|
|
|
self.dateTab = this; |
|
|
|
|
}, |
|
|
|
|
tab: { |
|
|
|
|
type: "bi.linear_segment", |
|
|
|
|
cls: "bi-split-bottom", |
|
|
|
|
invisible: !o.supportDynamic, |
|
|
|
|
height: this.constants.tabHeight, |
|
|
|
|
items: BI.createItems([{ |
|
|
|
|
text: BI.i18nText("BI-Basic_Year_Fen"), |
|
|
|
@ -66796,6 +66818,7 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
case BI.DynamicYearCombo.Dynamic: |
|
|
|
|
return { |
|
|
|
|
type: "bi.dynamic_year_card", |
|
|
|
|
cls: "dynamic-year-pane", |
|
|
|
|
min: self.options.min, |
|
|
|
|
max: self.options.max, |
|
|
|
|
listeners: [{ |
|
|
|
@ -67278,6 +67301,7 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.vertical", |
|
|
|
|
items: [{ |
|
|
|
|
type: "bi.year_picker", |
|
|
|
|
cls: "bi-split-bottom", |
|
|
|
|
min: o.min, |
|
|
|
|
max: o.max, |
|
|
|
|
ref: function () { |
|
|
|
@ -67297,34 +67321,36 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}, { |
|
|
|
|
type: "bi.button_group", |
|
|
|
|
cls: "bi-split-top", |
|
|
|
|
behaviors: o.behaviors, |
|
|
|
|
ref: function () { |
|
|
|
|
self.month = this; |
|
|
|
|
el: { |
|
|
|
|
type: "bi.button_group", |
|
|
|
|
behaviors: o.behaviors, |
|
|
|
|
ref: function () { |
|
|
|
|
self.month = this; |
|
|
|
|
}, |
|
|
|
|
items: this._createMonths(), |
|
|
|
|
layouts: [BI.LogicFactory.createLogic("table", BI.extend({ |
|
|
|
|
dynamic: true |
|
|
|
|
}, { |
|
|
|
|
columns: 2, |
|
|
|
|
rows: 6, |
|
|
|
|
columnSize: [1 / 2, 1 / 2], |
|
|
|
|
rowSize: 25 |
|
|
|
|
})), { |
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
vgap: 1, |
|
|
|
|
hgap: 2 |
|
|
|
|
}], |
|
|
|
|
value: o.value, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.ButtonGroup.EVENT_CHANGE, |
|
|
|
|
action: function () { |
|
|
|
|
self.selectedYear = self.yearPicker.getValue(); |
|
|
|
|
self.selectedMonth = this.getValue()[0]; |
|
|
|
|
self.fireEvent(BI.StaticYearMonthCard.EVENT_CHANGE); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
items: this._createMonths(), |
|
|
|
|
layouts: [BI.LogicFactory.createLogic("table", BI.extend({ |
|
|
|
|
dynamic: true |
|
|
|
|
}, { |
|
|
|
|
columns: 2, |
|
|
|
|
rows: 6, |
|
|
|
|
columnSize: [1 / 2, 1 / 2], |
|
|
|
|
rowSize: 25 |
|
|
|
|
})), { |
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
vgap: 1, |
|
|
|
|
hgap: 2 |
|
|
|
|
}], |
|
|
|
|
value: o.value, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.ButtonGroup.EVENT_CHANGE, |
|
|
|
|
action: function () { |
|
|
|
|
self.selectedYear = self.yearPicker.getValue(); |
|
|
|
|
self.selectedMonth = this.getValue()[0]; |
|
|
|
|
self.fireEvent(BI.StaticYearMonthCard.EVENT_CHANGE); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
vgap: 5 |
|
|
|
|
}] |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
@ -67405,7 +67431,8 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
|
|
|
|
|
behaviors: {}, |
|
|
|
|
minDate: "1900-01-01", // 最小日期
|
|
|
|
|
maxDate: "2099-12-31", // 最大日期
|
|
|
|
|
height: 22 |
|
|
|
|
height: 22, |
|
|
|
|
supportDynamic: true |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
@ -67466,6 +67493,7 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
|
|
|
|
|
stopPropagation: false, |
|
|
|
|
el: { |
|
|
|
|
type: "bi.dynamic_year_month_popup", |
|
|
|
|
supportDynamic: o.supportDynamic, |
|
|
|
|
ref: function () { |
|
|
|
|
self.popup = this; |
|
|
|
|
}, |
|
|
|
@ -67626,14 +67654,14 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
min: "1900-01-01", // 最小日期
|
|
|
|
|
max: "2099-12-31", // 最大日期,
|
|
|
|
|
width: 180, |
|
|
|
|
height: 240 |
|
|
|
|
supportDynamic: true, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
var self = this, opts = this.options, c = this.constants; |
|
|
|
|
this.storeValue = {type: BI.DynamicYearMonthCombo.Static}; |
|
|
|
|
return { |
|
|
|
|
type: "bi.vtape", |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
items: [{ |
|
|
|
|
el: this._getTabJson() |
|
|
|
|
}, { |
|
|
|
@ -67678,9 +67706,9 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
self.fireEvent(BI.DynamicYearMonthPopup.BUTTON_OK_EVENT_CHANGE); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}]] |
|
|
|
|
}]], |
|
|
|
|
height: 24 |
|
|
|
|
}, |
|
|
|
|
height: 24 |
|
|
|
|
}] |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
@ -67701,12 +67729,16 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
return { |
|
|
|
|
type: "bi.tab", |
|
|
|
|
logic: { |
|
|
|
|
dynamic: true |
|
|
|
|
}, |
|
|
|
|
ref: function () { |
|
|
|
|
self.dateTab = this; |
|
|
|
|
}, |
|
|
|
|
tab: { |
|
|
|
|
type: "bi.linear_segment", |
|
|
|
|
cls: "bi-split-bottom", |
|
|
|
|
invisible: !o.supportDynamic, |
|
|
|
|
height: this.constants.tabHeight, |
|
|
|
|
items: BI.createItems([{ |
|
|
|
|
text: BI.i18nText("BI-Basic_Year_Month"), |
|
|
|
@ -67723,6 +67755,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
case BI.DynamicYearCombo.Dynamic: |
|
|
|
|
return { |
|
|
|
|
type: "bi.dynamic_year_month_card", |
|
|
|
|
cls: "dynamic-year-month-pane", |
|
|
|
|
min: self.options.min, |
|
|
|
|
max: self.options.max, |
|
|
|
|
listeners: [{ |
|
|
|
@ -68127,7 +68160,8 @@ BI.YearMonthInterval = BI.inherit(BI.Single, {
|
|
|
|
|
props: { |
|
|
|
|
extraCls: "bi-year-month-interval", |
|
|
|
|
minDate: "1900-01-01", |
|
|
|
|
maxDate: "2099-12-31" |
|
|
|
|
maxDate: "2099-12-31", |
|
|
|
|
supportDynamic: true, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
@ -68181,6 +68215,7 @@ BI.YearMonthInterval = BI.inherit(BI.Single, {
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
var combo = BI.createWidget({ |
|
|
|
|
type: "bi.dynamic_year_month_combo", |
|
|
|
|
supportDynamic: o.supportDynamic, |
|
|
|
|
minDate: o.minDate, |
|
|
|
|
maxDate: o.maxDate, |
|
|
|
|
behaviors: o.behaviors, |
|
|
|
@ -68506,6 +68541,7 @@ BI.StaticYearQuarterCard = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.vertical", |
|
|
|
|
items: [{ |
|
|
|
|
type: "bi.year_picker", |
|
|
|
|
cls: "bi-split-bottom", |
|
|
|
|
ref: function () { |
|
|
|
|
self.yearPicker = this; |
|
|
|
|
}, |
|
|
|
@ -68525,25 +68561,28 @@ BI.StaticYearQuarterCard = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}, { |
|
|
|
|
type: "bi.button_group", |
|
|
|
|
behaviors: o.behaviors, |
|
|
|
|
ref: function () { |
|
|
|
|
self.quarter = this; |
|
|
|
|
el: { |
|
|
|
|
type: "bi.button_group", |
|
|
|
|
behaviors: o.behaviors, |
|
|
|
|
ref: function () { |
|
|
|
|
self.quarter = this; |
|
|
|
|
}, |
|
|
|
|
items: this._createQuarter(), |
|
|
|
|
layouts: [{ |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
vgap: 10 |
|
|
|
|
}], |
|
|
|
|
value: o.value, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.ButtonGroup.EVENT_CHANGE, |
|
|
|
|
action: function () { |
|
|
|
|
self.selectedYear = self.yearPicker.getValue(); |
|
|
|
|
self.selectedQuarter = this.getValue()[0]; |
|
|
|
|
self.fireEvent(BI.StaticYearQuarterCard.EVENT_CHANGE); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
items: this._createQuarter(), |
|
|
|
|
layouts: [{ |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
vgap: 10 |
|
|
|
|
}], |
|
|
|
|
value: o.value, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.ButtonGroup.EVENT_CHANGE, |
|
|
|
|
action: function () { |
|
|
|
|
self.selectedYear = self.yearPicker.getValue(); |
|
|
|
|
self.selectedQuarter = this.getValue()[0]; |
|
|
|
|
self.fireEvent(BI.StaticYearQuarterCard.EVENT_CHANGE); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
vgap: 5 |
|
|
|
|
}] |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
@ -68621,7 +68660,8 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
behaviors: {}, |
|
|
|
|
minDate: "1900-01-01", // 最小日期
|
|
|
|
|
maxDate: "2099-12-31", // 最大日期
|
|
|
|
|
height: 22 |
|
|
|
|
height: 22, |
|
|
|
|
supportDynamic: true, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
@ -68677,6 +68717,7 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
stopPropagation: false, |
|
|
|
|
el: { |
|
|
|
|
type: "bi.dynamic_year_quarter_popup", |
|
|
|
|
supportDynamic: o.supportDynamic, |
|
|
|
|
ref: function () { |
|
|
|
|
self.popup = this; |
|
|
|
|
}, |
|
|
|
@ -68815,14 +68856,14 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
min: "1900-01-01", // 最小日期
|
|
|
|
|
max: "2099-12-31", // 最大日期,
|
|
|
|
|
width: 180, |
|
|
|
|
height: 240 |
|
|
|
|
supportDynamic: true, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
var self = this, opts = this.options, c = this.constants; |
|
|
|
|
this.storeValue = {type: BI.DynamicYearQuarterCombo.Static}; |
|
|
|
|
return { |
|
|
|
|
type: "bi.vtape", |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
items: [{ |
|
|
|
|
el: this._getTabJson() |
|
|
|
|
}, { |
|
|
|
@ -68867,9 +68908,9 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
self.fireEvent(BI.DynamicYearQuarterPopup.BUTTON_OK_EVENT_CHANGE); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}]] |
|
|
|
|
}]], |
|
|
|
|
height: 24 |
|
|
|
|
}, |
|
|
|
|
height: 24 |
|
|
|
|
}] |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
@ -68890,12 +68931,16 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
return { |
|
|
|
|
type: "bi.tab", |
|
|
|
|
logic: { |
|
|
|
|
dynamic: true |
|
|
|
|
}, |
|
|
|
|
ref: function () { |
|
|
|
|
self.dateTab = this; |
|
|
|
|
}, |
|
|
|
|
tab: { |
|
|
|
|
type: "bi.linear_segment", |
|
|
|
|
cls: "bi-split-bottom", |
|
|
|
|
invisible: !o.supportDynamic, |
|
|
|
|
height: this.constants.tabHeight, |
|
|
|
|
items: BI.createItems([{ |
|
|
|
|
text: BI.i18nText("BI-Basic_Year_Quarter"), |
|
|
|
@ -68912,6 +68957,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
case BI.DynamicYearQuarterCombo.Dynamic: |
|
|
|
|
return { |
|
|
|
|
type: "bi.dynamic_year_quarter_card", |
|
|
|
|
cls: "dynamic-year-quarter-pane", |
|
|
|
|
min: self.options.min, |
|
|
|
|
max: self.options.max, |
|
|
|
|
listeners: [{ |
|
|
|
|