|
|
@ -74127,7 +74127,7 @@ BI.extend(BI.YearCalendar, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getEndYear: function (year) { |
|
|
|
getEndYear: function (year) { |
|
|
|
return BI.YearCalendar.getStartYear(year) + BI.YearCalendar.INTERVAL; |
|
|
|
return BI.YearCalendar.getStartYear(year) + BI.YearCalendar.INTERVAL - 1; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getPageByYear: function (year) { |
|
|
|
getPageByYear: function (year) { |
|
|
@ -90626,7 +90626,7 @@ BI.extend(BI.DynamicDateCombo, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
errorText: function (v) { |
|
|
|
errorText: function (v) { |
|
|
|
if(BI.isEmptyString(v)) { |
|
|
|
if(BI.isEmptyString(v)) { |
|
|
|
return BI.i18nText("BI-Basic_Input_Can_Not_Null"); |
|
|
|
return BI.i18nText("BI-Basic_Please_Input_Content"); |
|
|
|
} |
|
|
|
} |
|
|
|
return BI.i18nText("BI-Please_Input_Positive_Integer"); |
|
|
|
return BI.i18nText("BI-Please_Input_Positive_Integer"); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -92195,6 +92195,15 @@ BI.SearchEditor = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getKeywords: function () { |
|
|
|
|
|
|
|
var val = this.editor.getValue(); |
|
|
|
|
|
|
|
var keywords = val.match(/[\S]+/g); |
|
|
|
|
|
|
|
if (BI.isEndWithBlank(val)) { |
|
|
|
|
|
|
|
return keywords.concat([" "]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return keywords; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getLastValidValue: function () { |
|
|
|
getLastValidValue: function () { |
|
|
|
return this.editor.getLastValidValue(); |
|
|
|
return this.editor.getLastValidValue(); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -98837,7 +98846,7 @@ BI.MultiSelectInsertList = BI.inherit(BI.Widget, { |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
eventName: BI.Searcher.EVENT_SEARCHING, |
|
|
|
eventName: BI.Searcher.EVENT_SEARCHING, |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
|
var keywords = this.getKeyword(); |
|
|
|
var keywords = this.getKeywords(); |
|
|
|
var last = BI.last(keywords); |
|
|
|
var last = BI.last(keywords); |
|
|
|
keywords = BI.initial(keywords || []); |
|
|
|
keywords = BI.initial(keywords || []); |
|
|
|
if (keywords.length > 0) { |
|
|
|
if (keywords.length > 0) { |
|
|
@ -100908,6 +100917,9 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
self.fireEvent(BI.NumberInterval.EVENT_CHANGE); |
|
|
|
self.fireEvent(BI.NumberInterval.EVENT_CHANGE); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
w.on(BI.Editor.EVENT_CONFIRM, function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.NumberInterval.EVENT_CONFIRM); |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_setComboValueChangedEvent: function (w) { |
|
|
|
_setComboValueChangedEvent: function (w) { |
|
|
@ -100928,6 +100940,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
break; |
|
|
|
break; |
|
|
|
default : |
|
|
|
default : |
|
|
|
self.fireEvent(BI.NumberInterval.EVENT_CHANGE); |
|
|
|
self.fireEvent(BI.NumberInterval.EVENT_CHANGE); |
|
|
|
|
|
|
|
self.fireEvent(BI.NumberInterval.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.NumberInterval.EVENT_VALID); |
|
|
|
self.fireEvent(BI.NumberInterval.EVENT_VALID); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
@ -101030,6 +101043,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.NumberInterval.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.NumberInterval.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
|
|
|
BI.NumberInterval.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.NumberInterval.EVENT_VALID = "EVENT_VALID"; |
|
|
|
BI.NumberInterval.EVENT_VALID = "EVENT_VALID"; |
|
|
|
BI.NumberInterval.EVENT_ERROR = "EVENT_ERROR"; |
|
|
|
BI.NumberInterval.EVENT_ERROR = "EVENT_ERROR"; |
|
|
|
BI.shortcut("bi.number_interval", BI.NumberInterval);/** |
|
|
|
BI.shortcut("bi.number_interval", BI.NumberInterval);/** |
|
|
@ -108347,7 +108361,7 @@ BI.shortcut("bi.dynamic_year_popup", BI.DynamicYearPopup);BI.DynamicYearTrigger |
|
|
|
value = value || {}; |
|
|
|
value = value || {}; |
|
|
|
this.editor.setState(value.year); |
|
|
|
this.editor.setState(value.year); |
|
|
|
this.editor.setValue(value.year); |
|
|
|
this.editor.setValue(value.year); |
|
|
|
this.editor.setTitle(value.year); |
|
|
|
this.setTitle(value.year); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -108542,11 +108556,10 @@ BI.shortcut("bi.dynamic_year_month_card", BI.DynamicYearMonthCard);BI.StaticYear |
|
|
|
obj.month = obj.month || 0; |
|
|
|
obj.month = obj.month || 0; |
|
|
|
if (BI.checkDateVoid(obj.year, obj.month, 1, o.min, o.max)[0]) { |
|
|
|
if (BI.checkDateVoid(obj.year, obj.month, 1, o.min, o.max)[0]) { |
|
|
|
var year = BI.getDate().getFullYear(); |
|
|
|
var year = BI.getDate().getFullYear(); |
|
|
|
var month = BI.getDate().getMonth(); |
|
|
|
|
|
|
|
this.selectedYear = ""; |
|
|
|
this.selectedYear = ""; |
|
|
|
this.selectedMonth = ""; |
|
|
|
this.selectedMonth = ""; |
|
|
|
this.yearPicker.setValue(year); |
|
|
|
this.yearPicker.setValue(year); |
|
|
|
this.month.setValue(month); |
|
|
|
this.month.setValue(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.selectedYear = BI.parseInt(obj.year); |
|
|
|
this.selectedYear = BI.parseInt(obj.year); |
|
|
|
this.selectedMonth = BI.parseInt(obj.month); |
|
|
|
this.selectedMonth = BI.parseInt(obj.month); |
|
|
@ -108631,7 +108644,7 @@ BI.shortcut("bi.static_year_month_card", BI.StaticYearMonthCard);BI.DynamicYearM |
|
|
|
eventName: BI.DynamicYearMonthPopup.BUTTON_lABEL_EVENT_CHANGE, |
|
|
|
eventName: BI.DynamicYearMonthPopup.BUTTON_lABEL_EVENT_CHANGE, |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
|
var date = BI.getDate(); |
|
|
|
var date = BI.getDate(); |
|
|
|
self.setValue({year: date.getFullYear()}); |
|
|
|
self.setValue({year: date.getFullYear(), month: date.getMonth() + 1}); |
|
|
|
self.combo.hideView(); |
|
|
|
self.combo.hideView(); |
|
|
|
self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM); |
|
|
|
} |
|
|
|
} |
|
|
@ -108826,7 +108839,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, { |
|
|
|
cls: "bi-border-bottom", |
|
|
|
cls: "bi-border-bottom", |
|
|
|
height: this.constants.tabHeight, |
|
|
|
height: this.constants.tabHeight, |
|
|
|
items: BI.createItems([{ |
|
|
|
items: BI.createItems([{ |
|
|
|
text: BI.i18nText("BI-Basic_Year_Fen"), |
|
|
|
text: BI.i18nText("BI-Basic_Year_Month"), |
|
|
|
value: BI.DynamicYearCombo.Static |
|
|
|
value: BI.DynamicYearCombo.Static |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
text: BI.i18nText("BI-Basic_Dynamic_Title"), |
|
|
|
text: BI.i18nText("BI-Basic_Dynamic_Title"), |
|
|
@ -109027,10 +109040,11 @@ BI.shortcut("bi.dynamic_year_month_popup", BI.DynamicYearMonthPopup);BI.DynamicY |
|
|
|
type: BI.DynamicDateCombo.Static, |
|
|
|
type: BI.DynamicDateCombo.Static, |
|
|
|
value: { |
|
|
|
value: { |
|
|
|
year: self.yearEditor.getValue(), |
|
|
|
year: self.yearEditor.getValue(), |
|
|
|
month: BI.isEmptyString(self.monthEditor.getValue()) ? "" : monthValue - 1 |
|
|
|
month: BI.isEmptyString(self.monthEditor.getValue()) ? "" : monthValue |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
self.setTitle(self._getStaticTitle(self.storeValue.value)); |
|
|
|
|
|
|
|
|
|
|
|
self.fireEvent(BI.DynamicYearMonthTrigger.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.DynamicYearMonthTrigger.EVENT_CONFIRM); |
|
|
|
}); |
|
|
|
}); |
|
|
@ -109078,11 +109092,11 @@ BI.shortcut("bi.dynamic_year_month_popup", BI.DynamicYearMonthPopup);BI.DynamicY |
|
|
|
|
|
|
|
|
|
|
|
_getText: function (obj) { |
|
|
|
_getText: function (obj) { |
|
|
|
var value = ""; |
|
|
|
var value = ""; |
|
|
|
if(BI.isNotNull(obj.year)) { |
|
|
|
if(BI.isNotNull(obj.year) && obj.year !== 0) { |
|
|
|
value += Math.abs(obj.year) + BI.i18nText("BI-Basic_Year") + (obj.year < 0 ? BI.i18nText("BI-Basic_Front") : BI.i18nText("BI-Basic_Behind")); |
|
|
|
value += Math.abs(obj.year) + BI.i18nText("BI-Basic_Year") + (obj.year < 0 ? BI.i18nText("BI-Basic_Front") : BI.i18nText("BI-Basic_Behind")); |
|
|
|
} |
|
|
|
} |
|
|
|
if(BI.isNotNull(obj.month) && obj.month !== 0) { |
|
|
|
if(BI.isNotNull(obj.month) && obj.month !== 0) { |
|
|
|
value += Math.abs(obj.month) + BI.i18nText("BI-Basic_Year") + (obj.month < 0 ? BI.i18nText("BI-Basic_Front") : BI.i18nText("BI-Basic_Behind")); |
|
|
|
value += Math.abs(obj.month) + BI.i18nText("BI-Basic_Month") + (obj.month < 0 ? BI.i18nText("BI-Basic_Front") : BI.i18nText("BI-Basic_Behind")); |
|
|
|
} |
|
|
|
} |
|
|
|
return value; |
|
|
|
return value; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -109094,6 +109108,13 @@ BI.shortcut("bi.dynamic_year_month_popup", BI.DynamicYearMonthPopup);BI.DynamicY |
|
|
|
this.setTitle(BI.isEmptyString(text) ? dateStr : (text + ":" + dateStr)); |
|
|
|
this.setTitle(BI.isEmptyString(text) ? dateStr : (text + ":" + dateStr)); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_getStaticTitle: function (value) { |
|
|
|
|
|
|
|
value = value || {}; |
|
|
|
|
|
|
|
var yearStr = (BI.isNull(value.year) || BI.isEmptyString(value.year)) ? "" : value.year + "-"; |
|
|
|
|
|
|
|
var monthStr = (BI.isNull(value.month) || BI.isEmptyString(value.month)) ? "" : value.month; |
|
|
|
|
|
|
|
return yearStr + monthStr; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
|
var type, value; |
|
|
|
var type, value; |
|
|
|
var date = BI.getDate(); |
|
|
|
var date = BI.getDate(); |
|
|
@ -109116,6 +109137,7 @@ BI.shortcut("bi.dynamic_year_month_popup", BI.DynamicYearMonthPopup);BI.DynamicY |
|
|
|
this.yearEditor.setTitle(value.year); |
|
|
|
this.yearEditor.setTitle(value.year); |
|
|
|
this.monthEditor.setValue(month); |
|
|
|
this.monthEditor.setValue(month); |
|
|
|
this.monthEditor.setTitle(month); |
|
|
|
this.monthEditor.setTitle(month); |
|
|
|
|
|
|
|
this.setTitle(this._getStaticTitle(value)); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -109482,11 +109504,10 @@ BI.shortcut("bi.dynamic_year_quarter_card", BI.DynamicYearQuarterCard);BI.Static |
|
|
|
obj.quarter = obj.quarter || 0; |
|
|
|
obj.quarter = obj.quarter || 0; |
|
|
|
if (BI.checkDateVoid(obj.year, obj.quarter, 1, o.min, o.max)[0]) { |
|
|
|
if (BI.checkDateVoid(obj.year, obj.quarter, 1, o.min, o.max)[0]) { |
|
|
|
var year = BI.getDate().getFullYear(); |
|
|
|
var year = BI.getDate().getFullYear(); |
|
|
|
var quarter = BI.getDate().getQuarter(); |
|
|
|
|
|
|
|
this.selectedYear = ""; |
|
|
|
this.selectedYear = ""; |
|
|
|
this.selectedQuarter = ""; |
|
|
|
this.selectedQuarter = ""; |
|
|
|
this.yearPicker.setValue(year); |
|
|
|
this.yearPicker.setValue(year); |
|
|
|
this.quarter.setValue(quarter); |
|
|
|
this.quarter.setValue(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.selectedYear = BI.parseInt(obj.year); |
|
|
|
this.selectedYear = BI.parseInt(obj.year); |
|
|
|
this.selectedQuarter = BI.parseInt(obj.quarter); |
|
|
|
this.selectedQuarter = BI.parseInt(obj.quarter); |
|
|
@ -109564,7 +109585,7 @@ BI.shortcut("bi.static_year_quarter_card", BI.StaticYearQuarterCard);BI.DynamicY |
|
|
|
eventName: BI.DynamicYearQuarterPopup.BUTTON_lABEL_EVENT_CHANGE, |
|
|
|
eventName: BI.DynamicYearQuarterPopup.BUTTON_lABEL_EVENT_CHANGE, |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
|
var date = BI.getDate(); |
|
|
|
var date = BI.getDate(); |
|
|
|
self.setValue({year: date.getFullYear()}); |
|
|
|
self.setValue({year: date.getFullYear(), quarter: date.getQuarter()}); |
|
|
|
self.combo.hideView(); |
|
|
|
self.combo.hideView(); |
|
|
|
self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM); |
|
|
|
} |
|
|
|
} |
|
|
@ -109741,7 +109762,7 @@ BI.extend(BI.DynamicYearQuarterCombo, { |
|
|
|
cls: "bi-border-bottom", |
|
|
|
cls: "bi-border-bottom", |
|
|
|
height: this.constants.tabHeight, |
|
|
|
height: this.constants.tabHeight, |
|
|
|
items: BI.createItems([{ |
|
|
|
items: BI.createItems([{ |
|
|
|
text: BI.i18nText("BI-Basic_Year_Fen"), |
|
|
|
text: BI.i18nText("BI-Basic_Year_Quarter"), |
|
|
|
value: BI.DynamicYearQuarterCombo.Static |
|
|
|
value: BI.DynamicYearQuarterCombo.Static |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
text: BI.i18nText("BI-Basic_Dynamic_Title"), |
|
|
|
text: BI.i18nText("BI-Basic_Dynamic_Title"), |
|
|
@ -109946,6 +109967,7 @@ BI.shortcut("bi.dynamic_year_quarter_popup", BI.DynamicYearQuarterPopup);BI.Dyna |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
self.setTitle(self._getStaticTitle(self.storeValue.value)); |
|
|
|
|
|
|
|
|
|
|
|
self.fireEvent(BI.DynamicYearQuarterTrigger.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.DynamicYearQuarterTrigger.EVENT_CONFIRM); |
|
|
|
}); |
|
|
|
}); |
|
|
@ -109982,13 +110004,20 @@ BI.shortcut("bi.dynamic_year_quarter_popup", BI.DynamicYearQuarterPopup);BI.Dyna |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_getStaticTitle: function (value) { |
|
|
|
|
|
|
|
value = value || {}; |
|
|
|
|
|
|
|
var yearStr = (BI.isNull(value.year) || BI.isEmptyString(value.year)) ? "" : value.year + "-"; |
|
|
|
|
|
|
|
var quarterStr = (BI.isNull(value.quarter) || BI.isEmptyString(value.quarter)) ? "" : value.quarter; |
|
|
|
|
|
|
|
return yearStr + quarterStr; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_getText: function (obj) { |
|
|
|
_getText: function (obj) { |
|
|
|
var value = ""; |
|
|
|
var value = ""; |
|
|
|
if(BI.isNotNull(obj.year)) { |
|
|
|
if(BI.isNotNull(obj.year) && obj.year !== 0) { |
|
|
|
value += Math.abs(obj.year) + BI.i18nText("BI-Basic_Year") + (obj.year < 0 ? BI.i18nText("BI-Basic_Front") : BI.i18nText("BI-Basic_Behind")); |
|
|
|
value += Math.abs(obj.year) + BI.i18nText("BI-Basic_Year") + (obj.year < 0 ? BI.i18nText("BI-Basic_Front") : BI.i18nText("BI-Basic_Behind")); |
|
|
|
} |
|
|
|
} |
|
|
|
if(BI.isNotNull(obj.quarter) && obj.quarter !== 0) { |
|
|
|
if(BI.isNotNull(obj.quarter) && obj.quarter !== 0) { |
|
|
|
value += Math.abs(obj.quarter) + BI.i18nText("BI-Basic_Year") + (obj.quarter < 0 ? BI.i18nText("BI-Basic_Front") : BI.i18nText("BI-Basic_Behind")); |
|
|
|
value += Math.abs(obj.quarter) + BI.i18nText("BI-Basic_Single_Quarter") + (obj.quarter < 0 ? BI.i18nText("BI-Basic_Front") : BI.i18nText("BI-Basic_Behind")); |
|
|
|
} |
|
|
|
} |
|
|
|
return value; |
|
|
|
return value; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -110022,6 +110051,7 @@ BI.shortcut("bi.dynamic_year_quarter_popup", BI.DynamicYearQuarterPopup);BI.Dyna |
|
|
|
this.yearEditor.setTitle(value.year); |
|
|
|
this.yearEditor.setTitle(value.year); |
|
|
|
this.quarterEditor.setValue(quarter); |
|
|
|
this.quarterEditor.setValue(quarter); |
|
|
|
this.quarterEditor.setTitle(quarter); |
|
|
|
this.quarterEditor.setTitle(quarter); |
|
|
|
|
|
|
|
this.setTitle(this._getStaticTitle(value)); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -112176,5 +112206,6 @@ BI.i18n = { |
|
|
|
"BI-Conf_Condition_Or": "或条件", |
|
|
|
"BI-Conf_Condition_Or": "或条件", |
|
|
|
"BI-Microsoft_YaHei": "微软雅黑", |
|
|
|
"BI-Microsoft_YaHei": "微软雅黑", |
|
|
|
"BI-Apple_Light": "苹方-light", |
|
|
|
"BI-Apple_Light": "苹方-light", |
|
|
|
"BI-Font_Family": "字体" |
|
|
|
"BI-Font_Family": "字体", |
|
|
|
|
|
|
|
"BI-Basic_Please_Input_Content": "请输入内容" |
|
|
|
}; |
|
|
|
}; |