|
|
@ -14,15 +14,18 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, { |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
text: BI.i18nText("BI-Multi_Date_Relative_Current_Time"), |
|
|
|
text: BI.i18nText("BI-Multi_Date_Relative_Current_Time"), |
|
|
|
textAlign: "left", |
|
|
|
textAlign: "left", |
|
|
|
height: 24, |
|
|
|
height: 12, |
|
|
|
lgap: 10 |
|
|
|
lgap: 10 |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
tgap: 10, |
|
|
|
|
|
|
|
bgap: 5 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
type: "bi.button_group", |
|
|
|
type: "bi.button_group", |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
|
self.checkgroup = this; |
|
|
|
self.checkgroup = this; |
|
|
|
}, |
|
|
|
}, |
|
|
|
chooseType: BI.ButtonGroup.CHOOSE_TYPE_MULTI, |
|
|
|
chooseType: BI.ButtonGroup.CHOOSE_TYPE_MULTI, |
|
|
|
|
|
|
|
lgap: 4, |
|
|
|
value: [BI.DynamicDateCard.TYPE.YEAR], |
|
|
|
value: [BI.DynamicDateCard.TYPE.YEAR], |
|
|
|
items: BI.createItems([{ |
|
|
|
items: BI.createItems([{ |
|
|
|
text: BI.i18nText("BI-Basic_Year"), |
|
|
|
text: BI.i18nText("BI-Basic_Year"), |
|
|
@ -46,7 +49,8 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}), |
|
|
|
}), |
|
|
|
layouts: [{ |
|
|
|
layouts: [{ |
|
|
|
type: "bi.left" |
|
|
|
type: "bi.left", |
|
|
|
|
|
|
|
rgap: 4 |
|
|
|
}], |
|
|
|
}], |
|
|
|
listeners: [{ |
|
|
|
listeners: [{ |
|
|
|
eventName: BI.ButtonGroup.EVENT_CHANGE, |
|
|
|
eventName: BI.ButtonGroup.EVENT_CHANGE, |
|
|
@ -82,7 +86,9 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, { |
|
|
|
}] |
|
|
|
}] |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
type: "bi.vertical_adapt", |
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
|
|
|
lgap: 2, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
|
|
|
|
el: { |
|
|
|
type: "bi.multi_select_item", |
|
|
|
type: "bi.multi_select_item", |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
|
self.workDayBox = this; |
|
|
|
self.workDayBox = this; |
|
|
@ -105,6 +111,8 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, { |
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
} |
|
|
|
} |
|
|
|
}] |
|
|
|
}] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
bgap: 5 |
|
|
|
}], |
|
|
|
}], |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
|
self.workDay = this; |
|
|
|
self.workDay = this; |
|
|
@ -119,7 +127,7 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
layouts: [{ |
|
|
|
layouts: [{ |
|
|
|
type: "bi.vertical", |
|
|
|
type: "bi.vertical", |
|
|
|
vgap: 10, |
|
|
|
bgap: 10, |
|
|
|
hgap: 10 |
|
|
|
hgap: 10 |
|
|
|
}] |
|
|
|
}] |
|
|
|
}] |
|
|
|
}] |
|
|
|