|
|
|
@ -51353,6 +51353,7 @@ BI.PopupView = BI.inherit(BI.Widget, {
|
|
|
|
|
bgap: 0, |
|
|
|
|
vgap: 0, |
|
|
|
|
hgap: 0, |
|
|
|
|
innerVGap: 0, |
|
|
|
|
direction: BI.Direction.Top, // 工具栏的方向
|
|
|
|
|
stopEvent: false, // 是否停止mousedown、mouseup事件
|
|
|
|
|
stopPropagation: false, // 是否停止mousedown、mouseup向上冒泡
|
|
|
|
@ -51430,7 +51431,7 @@ BI.PopupView = BI.inherit(BI.Widget, {
|
|
|
|
|
_createView: function () { |
|
|
|
|
var o = this.options; |
|
|
|
|
this.button_group = BI.createWidget(o.el, {type: "bi.button_group", value: o.value}); |
|
|
|
|
this.button_group.element.css({"min-height": o.minHeight + "px"}); |
|
|
|
|
this.button_group.element.css({"min-height": o.minHeight + "px", "padding-top": o.innerVGap + "px", "padding-bottom": o.innerVGap + "px"}); |
|
|
|
|
return this.button_group; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -74367,7 +74368,7 @@ BI.YearCalendar = BI.inherit(BI.Widget, {
|
|
|
|
|
once: false, |
|
|
|
|
forceSelected: true, |
|
|
|
|
height: 24, |
|
|
|
|
width: 38, |
|
|
|
|
width: 45, |
|
|
|
|
value: td.text, |
|
|
|
|
disabled: td.disabled |
|
|
|
|
}); |
|
|
|
@ -88218,7 +88219,7 @@ BI.YearDateCombo = BI.inherit(BI.Trigger, {
|
|
|
|
|
isNeedAdjustWidth: false, |
|
|
|
|
el: this.trigger, |
|
|
|
|
popup: { |
|
|
|
|
minWidth: 85, |
|
|
|
|
minWidth: 100, |
|
|
|
|
stopPropagation: false, |
|
|
|
|
el: this.popup |
|
|
|
|
} |
|
|
|
@ -88252,7 +88253,7 @@ BI.DatePicker = BI.inherit(BI.Widget, {
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
var conf = BI.DatePicker.superclass._defaultConfig.apply(this, arguments); |
|
|
|
|
return BI.extend(conf, { |
|
|
|
|
baseCls: "bi-date-picker bi-background", |
|
|
|
|
baseCls: "bi-date-picker", |
|
|
|
|
height: 40, |
|
|
|
|
min: "1900-01-01", // 最小日期
|
|
|
|
|
max: "2099-12-31" // 最大日期
|
|
|
|
@ -88408,7 +88409,7 @@ BI.YearPicker = BI.inherit(BI.Widget, {
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
var conf = BI.YearPicker.superclass._defaultConfig.apply(this, arguments); |
|
|
|
|
return BI.extend(conf, { |
|
|
|
|
baseCls: "bi-year-picker bi-background", |
|
|
|
|
baseCls: "bi-year-picker", |
|
|
|
|
behaviors: {}, |
|
|
|
|
height: 40, |
|
|
|
|
min: "1900-01-01", // 最小日期
|
|
|
|
@ -88567,7 +88568,6 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
this.calendar = BI.createWidget({ |
|
|
|
|
direction: "top", |
|
|
|
|
element: this, |
|
|
|
|
logic: { |
|
|
|
|
dynamic: true |
|
|
|
|
}, |
|
|
|
@ -88595,6 +88595,25 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
self.setValue(self.selectedTime); |
|
|
|
|
self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
element: this, |
|
|
|
|
items: [{ |
|
|
|
|
el: this.calendar, |
|
|
|
|
left: 10, |
|
|
|
|
right: 10 |
|
|
|
|
}, { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.layout", |
|
|
|
|
cls: "bi-border-top" |
|
|
|
|
}, |
|
|
|
|
height: 1, |
|
|
|
|
top: 40, |
|
|
|
|
left: 0, |
|
|
|
|
right: 0 |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (timeOb) { |
|
|
|
@ -88763,7 +88782,10 @@ BI.DateTriangleTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
width: 50, |
|
|
|
|
height: c.height, |
|
|
|
|
items: [this.text, this.icon] |
|
|
|
|
items: [{ |
|
|
|
|
el: this.text, |
|
|
|
|
rgap: 10 |
|
|
|
|
}, this.icon] |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
@ -88838,11 +88860,10 @@ BI.StaticDatePaneCard = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.calendar = BI.createWidget({ |
|
|
|
|
direction: "top", |
|
|
|
|
element: this, |
|
|
|
|
logic: { |
|
|
|
|
dynamic: false |
|
|
|
|
}, |
|
|
|
|
direction: "custom", |
|
|
|
|
// logic: {
|
|
|
|
|
// dynamic: false
|
|
|
|
|
// },
|
|
|
|
|
type: "bi.navigation", |
|
|
|
|
tab: this.datePicker, |
|
|
|
|
cardCreator: BI.bind(this._createNav, this) |
|
|
|
@ -88855,6 +88876,31 @@ BI.StaticDatePaneCard = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
this.setValue(o.selectedTime); |
|
|
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.vtape", |
|
|
|
|
element: this, |
|
|
|
|
items: [{ |
|
|
|
|
el: this.datePicker, |
|
|
|
|
height: 40 |
|
|
|
|
}, this.calendar], |
|
|
|
|
hgap: 10 |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
element: this, |
|
|
|
|
items: [{ |
|
|
|
|
el: { |
|
|
|
|
type: "bi.layout", |
|
|
|
|
cls: "bi-border-top" |
|
|
|
|
}, |
|
|
|
|
height: 1, |
|
|
|
|
top: 40, |
|
|
|
|
left: 0, |
|
|
|
|
right: 0 |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_createNav: function (v) { |
|
|
|
@ -89584,10 +89630,10 @@ BI.shortcut("bi.date_time_trigger", BI.DateTimeTrigger);BI.StaticDateTimePaneCar
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.calendar = BI.createWidget({ |
|
|
|
|
direction: "top", |
|
|
|
|
logic: { |
|
|
|
|
dynamic: false |
|
|
|
|
}, |
|
|
|
|
direction: "custom", |
|
|
|
|
// logic: {
|
|
|
|
|
// dynamic: false
|
|
|
|
|
// },
|
|
|
|
|
type: "bi.navigation", |
|
|
|
|
tab: this.datePicker, |
|
|
|
|
cardCreator: BI.bind(this._createNav, this) |
|
|
|
@ -89602,7 +89648,11 @@ BI.shortcut("bi.date_time_trigger", BI.DateTimeTrigger);BI.StaticDateTimePaneCar
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.vtape", |
|
|
|
|
element: this, |
|
|
|
|
items: [this.calendar, { |
|
|
|
|
hgap: 10, |
|
|
|
|
items: [{ |
|
|
|
|
el: this.datePicker, |
|
|
|
|
height: 40 |
|
|
|
|
}, this.calendar, { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.dynamic_date_time_select", |
|
|
|
|
ref: function () { |
|
|
|
@ -89619,6 +89669,21 @@ BI.shortcut("bi.date_time_trigger", BI.DateTimeTrigger);BI.StaticDateTimePaneCar
|
|
|
|
|
height: 40 |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
element: this, |
|
|
|
|
items: [{ |
|
|
|
|
el: { |
|
|
|
|
type: "bi.layout", |
|
|
|
|
cls: "bi-border-top" |
|
|
|
|
}, |
|
|
|
|
height: 1, |
|
|
|
|
top: 40, |
|
|
|
|
left: 0, |
|
|
|
|
right: 0 |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
this.setValue(o.selectedTime); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
@ -90278,7 +90343,7 @@ BI.DownListPopup = BI.inherit(BI.Pane, {
|
|
|
|
|
}] |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
vgap: 5, |
|
|
|
|
innerVGap: 5, |
|
|
|
|
maxHeight: 378 |
|
|
|
|
}; |
|
|
|
|
item.el.childValues = []; |
|
|
|
@ -90537,15 +90602,18 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.label", |
|
|
|
|
text: BI.i18nText("BI-Multi_Date_Relative_Current_Time"), |
|
|
|
|
textAlign: "left", |
|
|
|
|
height: 24, |
|
|
|
|
height: 12, |
|
|
|
|
lgap: 10 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
tgap: 10, |
|
|
|
|
bgap: 5 |
|
|
|
|
}, { |
|
|
|
|
type: "bi.button_group", |
|
|
|
|
ref: function () { |
|
|
|
|
self.checkgroup = this; |
|
|
|
|
}, |
|
|
|
|
chooseType: BI.ButtonGroup.CHOOSE_TYPE_MULTI, |
|
|
|
|
lgap: 4, |
|
|
|
|
value: [BI.DynamicDateCard.TYPE.YEAR], |
|
|
|
|
items: BI.createItems([{ |
|
|
|
|
text: BI.i18nText("BI-Basic_Year"), |
|
|
|
@ -90569,7 +90637,8 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}), |
|
|
|
|
layouts: [{ |
|
|
|
|
type: "bi.left" |
|
|
|
|
type: "bi.left", |
|
|
|
|
rgap: 4 |
|
|
|
|
}], |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.ButtonGroup.EVENT_CHANGE, |
|
|
|
@ -90605,7 +90674,9 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, {
|
|
|
|
|
}] |
|
|
|
|
}, { |
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
lgap: 2, |
|
|
|
|
items: [{ |
|
|
|
|
el: { |
|
|
|
|
type: "bi.multi_select_item", |
|
|
|
|
ref: function () { |
|
|
|
|
self.workDayBox = this; |
|
|
|
@ -90628,6 +90699,8 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, {
|
|
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
bgap: 5 |
|
|
|
|
}], |
|
|
|
|
ref: function () { |
|
|
|
|
self.workDay = this; |
|
|
|
@ -90642,7 +90715,7 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, {
|
|
|
|
|
}, |
|
|
|
|
layouts: [{ |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
vgap: 10, |
|
|
|
|
bgap: 10, |
|
|
|
|
hgap: 10 |
|
|
|
|
}] |
|
|
|
|
}] |
|
|
|
@ -91273,7 +91346,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
items: [[{ |
|
|
|
|
type: "bi.text_button", |
|
|
|
|
forceCenter: true, |
|
|
|
|
cls: "bi-high-light bi-border-top toolbar-button", |
|
|
|
|
cls: "bi-high-light bi-border-top", |
|
|
|
|
shadow: true, |
|
|
|
|
text: BI.i18nText("BI-Basic_Clear"), |
|
|
|
|
listeners: [{ |
|
|
|
@ -91285,7 +91358,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
}, { |
|
|
|
|
type: "bi.text_button", |
|
|
|
|
forceCenter: true, |
|
|
|
|
cls: "bi-border-left bi-border-right bi-high-light bi-border-top toolbar-button", |
|
|
|
|
cls: "bi-border-left bi-border-right bi-high-light bi-border-top", |
|
|
|
|
shadow: true, |
|
|
|
|
text: BI.i18nText("BI-Multi_Date_Today"), |
|
|
|
|
ref: function () { |
|
|
|
@ -91300,7 +91373,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
}, { |
|
|
|
|
type: "bi.text_button", |
|
|
|
|
forceCenter: true, |
|
|
|
|
cls: "bi-high-light bi-border-top toolbar-button", |
|
|
|
|
cls: "bi-high-light bi-border-top", |
|
|
|
|
shadow: true, |
|
|
|
|
text: BI.i18nText("BI-Basic_OK"), |
|
|
|
|
listeners: [{ |
|
|
|
@ -92039,7 +92112,7 @@ BI.extend(BI.DynamicDateTimeCombo, {
|
|
|
|
|
items: [[{ |
|
|
|
|
type: "bi.text_button", |
|
|
|
|
forceCenter: true, |
|
|
|
|
cls: "bi-high-light bi-border-top toolbar-button", |
|
|
|
|
cls: "bi-high-light bi-border-top", |
|
|
|
|
shadow: true, |
|
|
|
|
text: BI.i18nText("BI-Basic_Clear"), |
|
|
|
|
listeners: [{ |
|
|
|
@ -92051,7 +92124,7 @@ BI.extend(BI.DynamicDateTimeCombo, {
|
|
|
|
|
}, { |
|
|
|
|
type: "bi.text_button", |
|
|
|
|
forceCenter: true, |
|
|
|
|
cls: "bi-border-left bi-border-right bi-high-light bi-border-top toolbar-button", |
|
|
|
|
cls: "bi-border-left bi-border-right bi-high-light bi-border-top", |
|
|
|
|
shadow: true, |
|
|
|
|
text: BI.i18nText("BI-Multi_Date_Today"), |
|
|
|
|
ref: function () { |
|
|
|
@ -92066,7 +92139,7 @@ BI.extend(BI.DynamicDateTimeCombo, {
|
|
|
|
|
}, { |
|
|
|
|
type: "bi.text_button", |
|
|
|
|
forceCenter: true, |
|
|
|
|
cls: "bi-high-light bi-border-top toolbar-button", |
|
|
|
|
cls: "bi-high-light bi-border-top", |
|
|
|
|
shadow: true, |
|
|
|
|
text: BI.i18nText("BI-Basic_OK"), |
|
|
|
|
listeners: [{ |
|
|
|
@ -109819,7 +109892,7 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
items: [[{ |
|
|
|
|
type: "bi.text_button", |
|
|
|
|
forceCenter: true, |
|
|
|
|
cls: "bi-border-top bi-high-light toolbar-button", |
|
|
|
|
cls: "bi-border-top bi-high-light", |
|
|
|
|
shadow: true, |
|
|
|
|
text: BI.i18nText("BI-Basic_Clear"), |
|
|
|
|
listeners: [{ |
|
|
|
@ -109831,7 +109904,7 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
}, { |
|
|
|
|
type: "bi.text_button", |
|
|
|
|
forceCenter: true, |
|
|
|
|
cls: "bi-border-left bi-border-right bi-high-light bi-border-top toolbar-button", |
|
|
|
|
cls: "bi-border-left bi-border-right bi-high-light bi-border-top", |
|
|
|
|
shadow: true, |
|
|
|
|
text: BI.i18nText("BI-Basic_Current_Year"), |
|
|
|
|
ref: function () { |
|
|
|
@ -109846,7 +109919,7 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
}, { |
|
|
|
|
type: "bi.text_button", |
|
|
|
|
forceCenter: true, |
|
|
|
|
cls: "bi-border-top bi-high-light toolbar-button", |
|
|
|
|
cls: "bi-border-top bi-high-light", |
|
|
|
|
shadow: true, |
|
|
|
|
text: BI.i18nText("BI-Basic_OK"), |
|
|
|
|
listeners: [{ |
|
|
|
@ -110292,6 +110365,7 @@ BI.shortcut("bi.dynamic_year_month_card", BI.DynamicYearMonthCard);BI.StaticYear
|
|
|
|
|
}] |
|
|
|
|
}, { |
|
|
|
|
type: "bi.button_group", |
|
|
|
|
cls: "bi-border-top", |
|
|
|
|
behaviors: o.behaviors, |
|
|
|
|
ref: function () { |
|
|
|
|
self.month = this; |
|
|
|
@ -110413,7 +110487,7 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
|
|
|
|
|
isNeedAdjustWidth: false, |
|
|
|
|
el: this.trigger, |
|
|
|
|
popup: { |
|
|
|
|
minWidth: 85, |
|
|
|
|
minWidth: 100, |
|
|
|
|
stopPropagation: false, |
|
|
|
|
el: { |
|
|
|
|
type: "bi.dynamic_year_month_popup", |
|
|
|
@ -110570,7 +110644,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
items: [[{ |
|
|
|
|
type: "bi.text_button", |
|
|
|
|
forceCenter: true, |
|
|
|
|
cls: "bi-border-top bi-high-light toolbar-button", |
|
|
|
|
cls: "bi-border-top bi-high-light", |
|
|
|
|
shadow: true, |
|
|
|
|
text: BI.i18nText("BI-Basic_Clear"), |
|
|
|
|
listeners: [{ |
|
|
|
@ -110582,7 +110656,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
}, { |
|
|
|
|
type: "bi.text_button", |
|
|
|
|
forceCenter: true, |
|
|
|
|
cls: "bi-border-left bi-border-right bi-high-light bi-border-top toolbar-button", |
|
|
|
|
cls: "bi-border-left bi-border-right bi-high-light bi-border-top", |
|
|
|
|
shadow: true, |
|
|
|
|
text: BI.i18nText("BI-Basic_Current_Month"), |
|
|
|
|
ref: function () { |
|
|
|
@ -110597,7 +110671,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
}, { |
|
|
|
|
type: "bi.text_button", |
|
|
|
|
forceCenter: true, |
|
|
|
|
cls: "bi-border-top bi-high-light toolbar-button", |
|
|
|
|
cls: "bi-border-top bi-high-light", |
|
|
|
|
shadow: true, |
|
|
|
|
text: BI.i18nText("BI-Basic_OK"), |
|
|
|
|
listeners: [{ |
|
|
|
@ -111548,7 +111622,7 @@ BI.extend(BI.DynamicYearQuarterCombo, {
|
|
|
|
|
items: [[{ |
|
|
|
|
type: "bi.text_button", |
|
|
|
|
forceCenter: true, |
|
|
|
|
cls: "bi-border-top bi-high-light toolbar-button", |
|
|
|
|
cls: "bi-border-top bi-high-light", |
|
|
|
|
shadow: true, |
|
|
|
|
text: BI.i18nText("BI-Basic_Clear"), |
|
|
|
|
listeners: [{ |
|
|
|
@ -111560,7 +111634,7 @@ BI.extend(BI.DynamicYearQuarterCombo, {
|
|
|
|
|
}, { |
|
|
|
|
type: "bi.text_button", |
|
|
|
|
forceCenter: true, |
|
|
|
|
cls: "bi-border-left bi-border-right bi-high-light bi-border-top toolbar-button", |
|
|
|
|
cls: "bi-border-left bi-border-right bi-high-light bi-border-top", |
|
|
|
|
shadow: true, |
|
|
|
|
text: BI.i18nText("BI-Basic_Current_Quarter"), |
|
|
|
|
ref: function () { |
|
|
|
@ -111575,7 +111649,7 @@ BI.extend(BI.DynamicYearQuarterCombo, {
|
|
|
|
|
}, { |
|
|
|
|
type: "bi.text_button", |
|
|
|
|
forceCenter: true, |
|
|
|
|
cls: "bi-border-top bi-high-light toolbar-button", |
|
|
|
|
cls: "bi-border-top bi-high-light", |
|
|
|
|
shadow: true, |
|
|
|
|
text: BI.i18nText("BI-Basic_OK"), |
|
|
|
|
listeners: [{ |
|
|
|
|