|
|
@ -7,7 +7,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, { |
|
|
|
props: { |
|
|
|
props: { |
|
|
|
baseCls: "bi-dynamic-date-time-popup", |
|
|
|
baseCls: "bi-dynamic-date-time-popup", |
|
|
|
width: 248, |
|
|
|
width: 248, |
|
|
|
height: 385 |
|
|
|
supportDynamic: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
@ -16,7 +16,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, { |
|
|
|
this.storeValue = {type: BI.DynamicDateCombo.Static}; |
|
|
|
this.storeValue = {type: BI.DynamicDateCombo.Static}; |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
type: "bi.vtape", |
|
|
|
type: "bi.vertical", |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: this._getTabJson() |
|
|
|
el: this._getTabJson() |
|
|
|
}, { |
|
|
|
}, { |
|
|
@ -61,9 +61,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, { |
|
|
|
self.fireEvent(BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE); |
|
|
|
self.fireEvent(BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE); |
|
|
|
} |
|
|
|
} |
|
|
|
}] |
|
|
|
}] |
|
|
|
}]] |
|
|
|
}]], |
|
|
|
}, |
|
|
|
height: 24 |
|
|
|
height: 24 |
|
|
|
} |
|
|
|
}] |
|
|
|
}] |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.setValue(opts.value); |
|
|
|
this.setValue(opts.value); |
|
|
@ -73,11 +73,15 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
return { |
|
|
|
return { |
|
|
|
type: "bi.tab", |
|
|
|
type: "bi.tab", |
|
|
|
|
|
|
|
logic: { |
|
|
|
|
|
|
|
dynamic: true |
|
|
|
|
|
|
|
}, |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
|
self.dateTab = this; |
|
|
|
self.dateTab = this; |
|
|
|
}, |
|
|
|
}, |
|
|
|
tab: { |
|
|
|
tab: { |
|
|
|
type: "bi.linear_segment", |
|
|
|
type: "bi.linear_segment", |
|
|
|
|
|
|
|
invisible: !o.supportDynamic, |
|
|
|
cls: "bi-split-bottom", |
|
|
|
cls: "bi-split-bottom", |
|
|
|
height: this.constants.tabHeight, |
|
|
|
height: this.constants.tabHeight, |
|
|
|
items: BI.createItems([{ |
|
|
|
items: BI.createItems([{ |
|
|
@ -95,6 +99,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, { |
|
|
|
case BI.DynamicDateCombo.Dynamic: |
|
|
|
case BI.DynamicDateCombo.Dynamic: |
|
|
|
return { |
|
|
|
return { |
|
|
|
type: "bi.dynamic_date_card", |
|
|
|
type: "bi.dynamic_date_card", |
|
|
|
|
|
|
|
cls: "dynamic-date-pane", |
|
|
|
listeners: [{ |
|
|
|
listeners: [{ |
|
|
|
eventName: "EVENT_CHANGE", |
|
|
|
eventName: "EVENT_CHANGE", |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
@ -110,7 +115,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, { |
|
|
|
case BI.DynamicDateCombo.Static: |
|
|
|
case BI.DynamicDateCombo.Static: |
|
|
|
default: |
|
|
|
default: |
|
|
|
return { |
|
|
|
return { |
|
|
|
type: "bi.vtape", |
|
|
|
type: "bi.vertical", |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
type: "bi.date_calendar_popup", |
|
|
|
type: "bi.date_calendar_popup", |
|
|
|
behaviors: o.behaviors, |
|
|
|
behaviors: o.behaviors, |
|
|
@ -131,9 +136,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, { |
|
|
|
cls: "bi-split-top", |
|
|
|
cls: "bi-split-top", |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
|
self.timeSelect = this; |
|
|
|
self.timeSelect = this; |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
height: 40 |
|
|
|
height: 40 |
|
|
|
} |
|
|
|
}] |
|
|
|
}] |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|