|
|
@ -62325,13 +62325,13 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, { |
|
|
|
tabHeight: 30, |
|
|
|
tabHeight: 30, |
|
|
|
buttonHeight: 24 |
|
|
|
buttonHeight: 24 |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
props: { |
|
|
|
props: { |
|
|
|
baseCls: "bi-dynamic-date-popup", |
|
|
|
baseCls: "bi-dynamic-date-popup", |
|
|
|
width: 248, |
|
|
|
width: 248, |
|
|
|
height: 344 |
|
|
|
height: 344 |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
|
BI.DynamicDatePopup.superclass._init.apply(this, arguments); |
|
|
|
BI.DynamicDatePopup.superclass._init.apply(this, arguments); |
|
|
|
var self = this, opts = this.options, c = this.constants; |
|
|
|
var self = this, opts = this.options, c = this.constants; |
|
|
@ -62486,7 +62486,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, { |
|
|
|
this.textButton.setEnable(true); |
|
|
|
this.textButton.setEnable(true); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue()); |
|
|
|
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue()); |
|
|
|
date = BI.print(date, "%Y-%x-%e"); |
|
|
|
date = BI.print(date, "%Y-%X-%d"); |
|
|
|
this.textButton.setValue(date); |
|
|
|
this.textButton.setValue(date); |
|
|
|
this.textButton.setEnable(false); |
|
|
|
this.textButton.setEnable(false); |
|
|
|
} |
|
|
|
} |
|
|
@ -62593,7 +62593,7 @@ BI.shortcut("bi.dynamic_date_popup", BI.DynamicDatePopup);BI.DynamicDateTrigger |
|
|
|
var text = self._getText(value); |
|
|
|
var text = self._getText(value); |
|
|
|
var date = BI.getDate(); |
|
|
|
var date = BI.getDate(); |
|
|
|
date = BI.DynamicDateHelper.getCalculation(value); |
|
|
|
date = BI.DynamicDateHelper.getCalculation(value); |
|
|
|
var dateStr = BI.print(date, "%Y-%x-%e"); |
|
|
|
var dateStr = BI.print(date, "%Y-%X-%d"); |
|
|
|
return BI.isEmptyString(text) ? dateStr : (text + ":" + dateStr); |
|
|
|
return BI.isEmptyString(text) ? dateStr : (text + ":" + dateStr); |
|
|
|
case BI.DynamicDateCombo.Static: |
|
|
|
case BI.DynamicDateCombo.Static: |
|
|
|
default: |
|
|
|
default: |
|
|
@ -62703,7 +62703,7 @@ BI.shortcut("bi.dynamic_date_popup", BI.DynamicDatePopup);BI.DynamicDateTrigger |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_setInnerValue: function (date) { |
|
|
|
_setInnerValue: function (date) { |
|
|
|
var dateStr = BI.print(date, "%Y-%X-%e"); |
|
|
|
var dateStr = BI.print(date, "%Y-%X-%d"); |
|
|
|
this.editor.setState(dateStr); |
|
|
|
this.editor.setState(dateStr); |
|
|
|
this.editor.setValue(dateStr); |
|
|
|
this.editor.setValue(dateStr); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -63278,7 +63278,7 @@ BI.extend(BI.DynamicDateTimeCombo, { |
|
|
|
this.textButton.setEnable(true); |
|
|
|
this.textButton.setEnable(true); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue()); |
|
|
|
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue()); |
|
|
|
date = BI.print(date, "%Y-%x-%e"); |
|
|
|
date = BI.print(date, "%Y-%X-%d"); |
|
|
|
this.textButton.setValue(date); |
|
|
|
this.textButton.setValue(date); |
|
|
|
this.textButton.setEnable(false); |
|
|
|
this.textButton.setEnable(false); |
|
|
|
} |
|
|
|
} |
|
|
|