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