|
|
|
@ -90877,10 +90877,7 @@ BI.extend(BI.DynamicDateCard, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
mounted: function () { |
|
|
|
|
var o = this.options; |
|
|
|
|
if(BI.isNotNull(o.value)) { |
|
|
|
|
this._checkDynamicValue(o.value); |
|
|
|
|
} |
|
|
|
|
this._checkDynamicValue(this.storeValue); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_checkDynamicValue: function (v) { |
|
|
|
@ -91740,10 +91737,7 @@ BI.shortcut("bi.dynamic_date_trigger", BI.DynamicDateTrigger);BI.DynamicDateTime
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
mounted: function () { |
|
|
|
|
var o = this.options; |
|
|
|
|
if(BI.isNotNull(o.value)) { |
|
|
|
|
this._checkDynamicValue(o.value); |
|
|
|
|
} |
|
|
|
|
this._checkDynamicValue(this.storeValue); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_checkDynamicValue: function (v) { |
|
|
|
@ -101100,11 +101094,11 @@ BI.NumberInterval = BI.inherit(BI.Single, {
|
|
|
|
|
cls: "number-interval-small-combo bi-border", |
|
|
|
|
height: o.height - 2, |
|
|
|
|
items: [{ |
|
|
|
|
text: "(" + BI.i18nText("BI-Less_Than") + ")", |
|
|
|
|
text: "(" + BI.i18nText("BI-More_Than") + ")", |
|
|
|
|
iconCls: "less-font", |
|
|
|
|
value: 0 |
|
|
|
|
}, { |
|
|
|
|
text: "(" + BI.i18nText("BI-Less_And_Equal") + ")", |
|
|
|
|
text: "(" + BI.i18nText("BI-More_And_Equal") + ")", |
|
|
|
|
value: 1, |
|
|
|
|
iconCls: "less-equal-font" |
|
|
|
|
}] |
|
|
|
@ -109022,18 +109016,18 @@ BI.shortcut("bi.dynamic_year_month_card", BI.DynamicYearMonthCard);BI.StaticYear
|
|
|
|
|
|
|
|
|
|
setValue: function (obj) { |
|
|
|
|
var o = this.options; |
|
|
|
|
obj = obj || {}; |
|
|
|
|
obj.year = obj.year || 0; |
|
|
|
|
obj.month = obj.month || 0; |
|
|
|
|
if (obj.year === 0 || obj.month === 0 || BI.checkDateVoid(obj.year, obj.month, 1, o.min, o.max)[0]) { |
|
|
|
|
var year = obj.year || BI.getDate().getFullYear(); |
|
|
|
|
var newObj = {}; |
|
|
|
|
newObj.year = obj.year || 0; |
|
|
|
|
newObj.month = obj.month || 0; |
|
|
|
|
if (newObj.year === 0 || newObj.month === 0 || BI.checkDateVoid(newObj.year, newObj.month, 1, o.min, o.max)[0]) { |
|
|
|
|
var year = newObj.year || BI.getDate().getFullYear(); |
|
|
|
|
this.selectedYear = year; |
|
|
|
|
this.selectedMonth = ""; |
|
|
|
|
this.yearPicker.setValue(year); |
|
|
|
|
this.month.setValue(); |
|
|
|
|
} else { |
|
|
|
|
this.selectedYear = BI.parseInt(obj.year); |
|
|
|
|
this.selectedMonth = BI.parseInt(obj.month); |
|
|
|
|
this.selectedYear = BI.parseInt(newObj.year); |
|
|
|
|
this.selectedMonth = BI.parseInt(newObj.month); |
|
|
|
|
this.yearPicker.setValue(this.selectedYear); |
|
|
|
|
this.month.setValue(this.selectedMonth); |
|
|
|
|
} |
|
|
|
@ -109079,9 +109073,10 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
|
|
|
|
|
self.fireEvent(BI.DynamicYearMonthCombo.EVENT_VALID); |
|
|
|
|
}); |
|
|
|
|
this.trigger.on(BI.DynamicYearMonthTrigger.EVENT_CONFIRM, function () { |
|
|
|
|
if (self.combo.isViewVisible()) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
// 没看出来干啥的,先去掉
|
|
|
|
|
// if (self.combo.isViewVisible()) {
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
var dateStore = self.storeTriggerValue; |
|
|
|
|
var dateObj = self.trigger.getKey(); |
|
|
|
|
if (BI.isNotEmptyString(dateObj) && !BI.isEqual(dateObj, dateStore)) { |
|
|
|
@ -110023,18 +110018,18 @@ BI.shortcut("bi.dynamic_year_quarter_card", BI.DynamicYearQuarterCard);BI.Static
|
|
|
|
|
|
|
|
|
|
setValue: function (obj) { |
|
|
|
|
var o = this.options; |
|
|
|
|
obj = obj || {}; |
|
|
|
|
obj.year = obj.year || 0; |
|
|
|
|
obj.quarter = obj.quarter || 0; |
|
|
|
|
if (obj.quarter === 0 || obj.year === 0 || BI.checkDateVoid(obj.year, obj.quarter, 1, o.min, o.max)[0]) { |
|
|
|
|
var year = obj.year || BI.getDate().getFullYear(); |
|
|
|
|
var newObj = {}; |
|
|
|
|
newObj.year = obj.year || 0; |
|
|
|
|
newObj.quarter = obj.quarter || 0; |
|
|
|
|
if (newObj.quarter === 0 || newObj.year === 0 || BI.checkDateVoid(newObj.year, newObj.quarter, 1, o.min, o.max)[0]) { |
|
|
|
|
var year = newObj.year || BI.getDate().getFullYear(); |
|
|
|
|
this.selectedYear = year; |
|
|
|
|
this.selectedQuarter = ""; |
|
|
|
|
this.yearPicker.setValue(year); |
|
|
|
|
this.quarter.setValue(); |
|
|
|
|
} else { |
|
|
|
|
this.selectedYear = BI.parseInt(obj.year); |
|
|
|
|
this.selectedQuarter = BI.parseInt(obj.quarter); |
|
|
|
|
this.selectedYear = BI.parseInt(newObj.year); |
|
|
|
|
this.selectedQuarter = BI.parseInt(newObj.quarter); |
|
|
|
|
this.yearPicker.setValue(this.selectedYear); |
|
|
|
|
this.quarter.setValue(this.selectedQuarter); |
|
|
|
|
} |
|
|
|
@ -110076,9 +110071,10 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
self.combo.isViewVisible() && self.combo.hideView(); |
|
|
|
|
}); |
|
|
|
|
this.trigger.on(BI.DynamicYearQuarterTrigger.EVENT_CONFIRM, function () { |
|
|
|
|
if (self.combo.isViewVisible()) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
// 没看出来干啥的,先去掉
|
|
|
|
|
// if (self.combo.isViewVisible()) {
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
var dateStore = self.storeTriggerValue; |
|
|
|
|
var dateObj = self.trigger.getKey(); |
|
|
|
|
if (BI.isNotEmptyString(dateObj) && !BI.isEqual(dateObj, dateStore)) { |
|
|
|
@ -112771,5 +112767,7 @@ BI.i18n = {
|
|
|
|
|
"BI-Font_Family": "字体", |
|
|
|
|
"BI-Basic_Please_Input_Content": "请输入内容", |
|
|
|
|
"BI-Word_Align_Center": "文字居中", |
|
|
|
|
"BI-Basic_Please_Enter_Number_Between": "请输入{R1}-{R2}的值" |
|
|
|
|
"BI-Basic_Please_Enter_Number_Between": "请输入{R1}-{R2}的值", |
|
|
|
|
"BI-More_Than": "大于", |
|
|
|
|
"BI-More_And_Equal": "大于等于" |
|
|
|
|
}; |