|
|
|
@ -88861,7 +88861,9 @@ BI.shortcut("bi.static_date_pane_card", BI.StaticDatePaneCard);BI.DynamicDatePan
|
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: "EVENT_CHANGE", |
|
|
|
|
action: function () { |
|
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
|
if(self._checkValue(self.getValue())) { |
|
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}], |
|
|
|
|
ref: function () { |
|
|
|
@ -88882,6 +88884,16 @@ BI.shortcut("bi.static_date_pane_card", BI.StaticDatePaneCard);BI.DynamicDatePan
|
|
|
|
|
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_checkValue: function (v) { |
|
|
|
|
switch (v.type) { |
|
|
|
|
case BI.DynamicDateCombo.Dynamic: |
|
|
|
|
return BI.isNotEmptyObject(v.value); |
|
|
|
|
case BI.DynamicDateCombo.Static: |
|
|
|
|
default: |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
|
v = v || {}; |
|
|
|
|
var type = v.type || BI.DynamicDateCombo.Static; |
|
|
|
@ -89617,7 +89629,9 @@ BI.shortcut("bi.static_date_time_pane_card", BI.StaticDateTimePaneCard);BI.Dynam
|
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: "EVENT_CHANGE", |
|
|
|
|
action: function () { |
|
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
|
if(self._checkValue(self.getValue())) { |
|
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}], |
|
|
|
|
ref: function () { |
|
|
|
@ -89638,6 +89652,16 @@ BI.shortcut("bi.static_date_time_pane_card", BI.StaticDateTimePaneCard);BI.Dynam
|
|
|
|
|
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_checkValue: function (v) { |
|
|
|
|
switch (v.type) { |
|
|
|
|
case BI.DynamicDateCombo.Dynamic: |
|
|
|
|
return BI.isNotEmptyObject(v.value); |
|
|
|
|
case BI.DynamicDateCombo.Static: |
|
|
|
|
default: |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
|
v = v || {}; |
|
|
|
|
var type = v.type || BI.DynamicDateTimePane.Static; |
|
|
|
@ -90830,7 +90854,10 @@ BI.extend(BI.DynamicDateCard, {
|
|
|
|
|
}, { |
|
|
|
|
eventName: BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE, |
|
|
|
|
action: function () { |
|
|
|
|
self.setValue(self.popup.getValue()); |
|
|
|
|
var value = self.popup.getValue(); |
|
|
|
|
if(self._checkValue(value)) { |
|
|
|
|
self.setValue(value); |
|
|
|
|
} |
|
|
|
|
self.combo.hideView(); |
|
|
|
|
self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM); |
|
|
|
|
} |
|
|
|
@ -90907,6 +90934,16 @@ BI.extend(BI.DynamicDateCard, {
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_checkValue: function (v) { |
|
|
|
|
switch (v.type) { |
|
|
|
|
case BI.DynamicDateCombo.Dynamic: |
|
|
|
|
return BI.isNotEmptyObject(v.value); |
|
|
|
|
case BI.DynamicDateCombo.Static: |
|
|
|
|
default: |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
|
this.storeValue = v; |
|
|
|
|
this.trigger.setValue(v); |
|
|
|
@ -91690,7 +91727,10 @@ BI.shortcut("bi.dynamic_date_trigger", BI.DynamicDateTrigger);BI.DynamicDateTime
|
|
|
|
|
}, { |
|
|
|
|
eventName: BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE, |
|
|
|
|
action: function () { |
|
|
|
|
self.setValue(self.popup.getValue()); |
|
|
|
|
var value = self.popup.getValue(); |
|
|
|
|
if(self._checkValue(value)) { |
|
|
|
|
self.setValue(value); |
|
|
|
|
} |
|
|
|
|
self.combo.hideView(); |
|
|
|
|
self.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM); |
|
|
|
|
} |
|
|
|
@ -91767,6 +91807,16 @@ BI.shortcut("bi.dynamic_date_trigger", BI.DynamicDateTrigger);BI.DynamicDateTime
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_checkValue: function (v) { |
|
|
|
|
switch (v.type) { |
|
|
|
|
case BI.DynamicDateCombo.Dynamic: |
|
|
|
|
return BI.isNotEmptyObject(v.value); |
|
|
|
|
case BI.DynamicDateCombo.Static: |
|
|
|
|
default: |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
|
this.storeValue = v; |
|
|
|
|
this.trigger.setValue(v); |
|
|
|
|