|
|
|
@ -15,47 +15,53 @@ BI.DynamicYearQuarterCard = BI.inherit(BI.Widget, {
|
|
|
|
|
var self = this; |
|
|
|
|
return { |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
ref: function (_ref) { |
|
|
|
|
self.wrapper = _ref; |
|
|
|
|
}, |
|
|
|
|
items: [{ |
|
|
|
|
type: "bi.label", |
|
|
|
|
text: BI.i18nText("BI-Multi_Date_Relative_Current_Time"), |
|
|
|
|
textAlign: "left", |
|
|
|
|
height: 24 |
|
|
|
|
}, { |
|
|
|
|
type: "bi.dynamic_date_param_item", |
|
|
|
|
validationChecker: BI.bind(self._checkDate, self), |
|
|
|
|
ref: function () { |
|
|
|
|
self.year = this; |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
ref: function (_ref) { |
|
|
|
|
self.wrapper = _ref; |
|
|
|
|
}, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: "EVENT_CHANGE", |
|
|
|
|
action: function () { |
|
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
|
} |
|
|
|
|
items: [{ |
|
|
|
|
el: { |
|
|
|
|
type: "bi.dynamic_date_param_item", |
|
|
|
|
validationChecker: BI.bind(self._checkDate, self), |
|
|
|
|
ref: function () { |
|
|
|
|
self.year = this; |
|
|
|
|
}, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: "EVENT_CHANGE", |
|
|
|
|
action: function () { |
|
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
|
eventName: "EVENT_INPUT_CHANGE", |
|
|
|
|
action: function () { |
|
|
|
|
BI.Bubbles.hide("dynamic-year-quarter-error"); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
bgap: 10 |
|
|
|
|
}, { |
|
|
|
|
eventName: "EVENT_INPUT_CHANGE", |
|
|
|
|
action: function () { |
|
|
|
|
BI.Bubbles.hide("dynamic-year-quarter-error"); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}, { |
|
|
|
|
type: "bi.dynamic_date_param_item", |
|
|
|
|
dateType: BI.DynamicDateCard.TYPE.QUARTER, |
|
|
|
|
ref: function () { |
|
|
|
|
self.quarter = this; |
|
|
|
|
}, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: "EVENT_CHANGE", |
|
|
|
|
action: function () { |
|
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
|
eventName: "EVENT_INPUT_CHANGE", |
|
|
|
|
action: function () { |
|
|
|
|
BI.Bubbles.hide("dynamic-year-quarter-error"); |
|
|
|
|
} |
|
|
|
|
type: "bi.dynamic_date_param_item", |
|
|
|
|
dateType: BI.DynamicDateCard.TYPE.QUARTER, |
|
|
|
|
ref: function () { |
|
|
|
|
self.quarter = this; |
|
|
|
|
}, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: "EVENT_CHANGE", |
|
|
|
|
action: function () { |
|
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
|
eventName: "EVENT_INPUT_CHANGE", |
|
|
|
|
action: function () { |
|
|
|
|
BI.Bubbles.hide("dynamic-year-quarter-error"); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}] |
|
|
|
|
}], |
|
|
|
|
vgap: 10, |
|
|
|
@ -132,6 +138,10 @@ BI.DynamicYearQuarterCard = BI.inherit(BI.Widget, {
|
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getInputValue: function () { |
|
|
|
|
return this._getValue(); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
|
return this.checkValidation() ? this._getValue() : {}; |
|
|
|
|
}, |
|
|
|
|