|
|
@ -90644,8 +90644,11 @@ BI.extend(BI.DynamicDateCard, { |
|
|
|
eventName: BI.DynamicDateTrigger.EVENT_ERROR, |
|
|
|
eventName: BI.DynamicDateTrigger.EVENT_ERROR, |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
|
self.storeValue = { |
|
|
|
self.storeValue = { |
|
|
|
|
|
|
|
type: BI.DynamicDateCombo.Static, |
|
|
|
|
|
|
|
value: { |
|
|
|
year: date.getFullYear(), |
|
|
|
year: date.getFullYear(), |
|
|
|
month: date.getMonth() + 1 |
|
|
|
month: date.getMonth() + 1 |
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
self.fireEvent(BI.DynamicDateCombo.EVENT_ERROR); |
|
|
|
self.fireEvent(BI.DynamicDateCombo.EVENT_ERROR); |
|
|
|
} |
|
|
|
} |
|
|
@ -90701,9 +90704,12 @@ BI.extend(BI.DynamicDateCard, { |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
|
var date = BI.getDate(); |
|
|
|
var date = BI.getDate(); |
|
|
|
self.setValue({ |
|
|
|
self.setValue({ |
|
|
|
|
|
|
|
type: BI.DynamicDateCombo.Static, |
|
|
|
|
|
|
|
value: { |
|
|
|
year: date.getFullYear(), |
|
|
|
year: date.getFullYear(), |
|
|
|
month: date.getMonth() + 1, |
|
|
|
month: date.getMonth() + 1, |
|
|
|
day: date.getDate() |
|
|
|
day: date.getDate() |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
self.combo.hideView(); |
|
|
|
self.combo.hideView(); |
|
|
|
self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM); |
|
|
@ -91493,8 +91499,11 @@ BI.shortcut("bi.dynamic_date_trigger", BI.DynamicDateTrigger);BI.DynamicDateTime |
|
|
|
eventName: BI.DynamicDateTimeTrigger.EVENT_ERROR, |
|
|
|
eventName: BI.DynamicDateTimeTrigger.EVENT_ERROR, |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
|
self.storeValue = { |
|
|
|
self.storeValue = { |
|
|
|
|
|
|
|
type: BI.DynamicDateTimeCombo.Static, |
|
|
|
|
|
|
|
value: { |
|
|
|
year: date.getFullYear(), |
|
|
|
year: date.getFullYear(), |
|
|
|
month: date.getMonth() + 1 |
|
|
|
month: date.getMonth() + 1 |
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
self.fireEvent(BI.DynamicDateTimeCombo.EVENT_ERROR); |
|
|
|
self.fireEvent(BI.DynamicDateTimeCombo.EVENT_ERROR); |
|
|
|
} |
|
|
|
} |
|
|
@ -91550,12 +91559,15 @@ BI.shortcut("bi.dynamic_date_trigger", BI.DynamicDateTrigger);BI.DynamicDateTime |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
|
var date = BI.getDate(); |
|
|
|
var date = BI.getDate(); |
|
|
|
self.setValue({ |
|
|
|
self.setValue({ |
|
|
|
|
|
|
|
type: BI.DynamicDateTimeCombo.Static, |
|
|
|
|
|
|
|
value: { |
|
|
|
year: date.getFullYear(), |
|
|
|
year: date.getFullYear(), |
|
|
|
month: date.getMonth() + 1, |
|
|
|
month: date.getMonth() + 1, |
|
|
|
day: date.getDate(), |
|
|
|
day: date.getDate(), |
|
|
|
hour: 0, |
|
|
|
hour: 0, |
|
|
|
minute: 0, |
|
|
|
minute: 0, |
|
|
|
second: 0 |
|
|
|
second: 0 |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
self.combo.hideView(); |
|
|
|
self.combo.hideView(); |
|
|
|
self.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM); |
|
|
|