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