Browse Source

Merge pull request #102 in FUI/fineui from ~GUY/fineui:master to master

* commit '1690b1e6294310af32bf97c02badee1450c1e3fb':
  add
  update
  增加步长
  更新
master
guy 7 years ago
parent
commit
eeda93e4fd
  1. 8
      bi/core.js
  2. 208
      bi/widget.js
  3. 216
      dist/bundle.js
  4. 2
      dist/bundle.min.css
  5. 30
      dist/bundle.min.js
  6. 8
      dist/core.js
  7. 86
      dist/resource.css
  8. 208
      dist/widget.js
  9. 8
      src/core/proto/date.js
  10. 6
      src/css/resource/third/farbtastic/farbtastic.css
  11. 6
      src/css/resource/third/ztree/display.tree.css
  12. 74
      src/css/resource/third/ztree/zTreeStyle.css
  13. 2
      src/css/widget/singleslider/slider/widget.slider.css
  14. 6
      src/less/var.less
  15. 7
      src/widget/finetuningnumbereditor/finetuning.number.editor.js
  16. 34
      src/widget/multidate/abstract.multidate.datepane.js
  17. 67
      src/widget/multidate/multidate.combo.js
  18. 8
      src/widget/multidate/multidate.day.js
  19. 10
      src/widget/multidate/multidate.month.js
  20. 56
      src/widget/multidate/multidate.popup.js
  21. 10
      src/widget/multidate/multidate.quarter.js
  22. 6
      src/widget/multidate/multidate.week.js
  23. 10
      src/widget/multidate/multidate.year.js

8
bi/core.js

@ -6161,6 +6161,14 @@ Date.prototype.getMonthDays = function (month) {
}
};
/**
* 获取每月的最后一天
* @returns {Date}
*/
Date.prototype.getLastDateOfMonth = function () {
return new Date(this.getFullYear(), this.getMonth(), this.getMonthDays());
};
/** Returns the number of day in the year. */
Date.prototype.getDayOfYear = function () {
var now = new Date(this.getFullYear(), this.getMonth(), this.getDate(), 0, 0, 0);

208
bi/widget.js

@ -5496,7 +5496,8 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
validationChecker: function () {return true;},
valueFormatter: function (v) {return v;},
value: 0,
errorText: ""
errorText: "",
step: 1
})
},
@ -5523,7 +5524,7 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
cls: "column-pre-page-h-font top-button bi-border-left bi-border-bottom"
});
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function(){
self._finetuning(1);
self._finetuning(o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});
@ -5533,7 +5534,7 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
cls: "column-next-page-h-font bottom-button bi-border-left bi-border-top"
});
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function(){
self._finetuning(-1);
self._finetuning(-o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});
@ -6569,39 +6570,39 @@ BI.MultiDateCard = BI.inherit(BI.Widget, {
var valueObject = this.getValue();
var type = valueObject.type, value = valueObject.value;
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
return new Date().getOffsetDate(-1 * value);
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
return new Date().getOffsetDate(value);
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
return new Date();
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
return new Date().getBeforeMultiMonth(value);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
return new Date().getAfterMultiMonth(value);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
return new Date(new Date().getFullYear(), new Date().getMonth(), 1);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
return new Date(new Date().getFullYear(), new Date().getMonth(), (new Date().getLastDateOfMonth()).getDate());
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
return new Date().getBeforeMulQuarter(value);
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
return new Date().getAfterMulQuarter(value);
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
return new Date().getQuarterStartDate();
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
return new Date().getQuarterEndDate();
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
return new Date().getOffsetDate(-7 * value);
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
return new Date().getOffsetDate(7 * value);
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
return new Date((new Date().getFullYear() - 1 * value), new Date().getMonth(), new Date().getDate());
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
return new Date((new Date().getFullYear() + 1 * value), new Date().getMonth(), new Date().getDate());
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
return new Date(new Date().getFullYear(), 0, 1);
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
return new Date(new Date().getFullYear(), 11, 31);
}
}
@ -6792,23 +6793,23 @@ BI.MultiDateCombo = BI.inherit(BI.Single, {
type = v.type
}
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.changeIcon.setVisible(true);
this.comboWrapper.attr("items")[1].width = 30;
this.comboWrapper.resize();
@ -6854,6 +6855,39 @@ BI.extend(BI.MultiDateCombo, {
MULTI_DATE_WEEK_CARD: 5,
MULTI_DATE_DAY_CARD: 6
});
BI.extend(BI.MultiDateCombo, {
DATE_TYPE: {
MULTI_DATE_YEAR_PREV: 1,
MULTI_DATE_YEAR_AFTER: 2,
MULTI_DATE_YEAR_BEGIN: 3,
MULTI_DATE_YEAR_END: 4,
MULTI_DATE_MONTH_PREV: 5,
MULTI_DATE_MONTH_AFTER: 6,
MULTI_DATE_MONTH_BEGIN: 7,
MULTI_DATE_MONTH_END: 8,
MULTI_DATE_QUARTER_PREV: 9,
MULTI_DATE_QUARTER_AFTER: 10,
MULTI_DATE_QUARTER_BEGIN: 11,
MULTI_DATE_QUARTER_END: 12,
MULTI_DATE_WEEK_PREV: 13,
MULTI_DATE_WEEK_AFTER: 14,
MULTI_DATE_DAY_PREV: 15,
MULTI_DATE_DAY_AFTER: 16,
MULTI_DATE_DAY_TODAY: 17,
MULTI_DATE_PARAM: 18,
MULTI_DATE_CALENDAR: 19,
YEAR_QUARTER: 20,
YEAR_MONTH: 21,
YEAR_WEEK: 22,
YEAR_DAY: 23,
MONTH_WEEK: 24,
MONTH_DAY: 25,
YEAR: 26,
SAME_PERIOD: 27,
LAST_SAME_PERIOD: 28
}
});
/**
* 普通控件
*
@ -6877,22 +6911,22 @@ BI.DayCard = BI.inherit(BI.MultiDateCard, {
isEditorExist: true,
selected: true,
text: BI.i18nText("BI-Multi_Date_Day_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_DAY_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Day_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY,
text: BI.i18nText("BI-Multi_Date_Today")
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_DAY_PREV
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV
}
});
BI.DayCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -6918,28 +6952,28 @@ BI.MonthCard = BI.inherit(BI.MultiDateCard, {
return [{
selected: true,
isEditorExist: true,
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV,
text: BI.i18nText("BI-Multi_Date_Month_Prev")
},
{
isEditorExist: true,
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER,
text: BI.i18nText("BI-Multi_Date_Month_Next")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Month_Begin")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Month_End")
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV;
}
});
BI.MonthCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -7165,52 +7199,52 @@ BI.MultiDatePopup = BI.inherit(BI.Widget, {
var self = this, date;
var type, value;
if (BI.isNotNull(v)) {
type = v.type || BICst.DATE_TYPE.MULTI_DATE_CALENDAR;
type = v.type || BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_CALENDAR;
value = v.value;
if (BI.isNull(value)) {
value = v;
}
}
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
this.dateTab.setSelect(BICst.MULTI_DATE_YEAR_CARD);
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_YEAR_CARD);
this.year.setValue({type: type, value: value});
this.cur = BICst.MULTI_DATE_YEAR_CARD;
this.cur = BI.MultiDateCombo.MULTI_DATE_YEAR_CARD;
self._setInnerValue(this.year);
break;
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
this.dateTab.setSelect(BICst.MULTI_DATE_QUARTER_CARD);
this.cur = BICst.MULTI_DATE_QUARTER_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_QUARTER_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_QUARTER_CARD;
this.quarter.setValue({type: type, value: value});
self._setInnerValue(this.quarter);
break;
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
this.dateTab.setSelect(BICst.MULTI_DATE_MONTH_CARD);
this.cur = BICst.MULTI_DATE_MONTH_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_MONTH_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_MONTH_CARD;
this.month.setValue({type: type, value: value});
self._setInnerValue(this.month);
break;
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
this.dateTab.setSelect(BICst.MULTI_DATE_WEEK_CARD);
this.cur = BICst.MULTI_DATE_WEEK_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_WEEK_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_WEEK_CARD;
this.week.setValue({type: type, value: value});
self._setInnerValue(this.week);
break;
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.dateTab.setSelect(BICst.MULTI_DATE_DAY_CARD);
this.cur = BICst.MULTI_DATE_DAY_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_DAY_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_DAY_CARD;
this.day.setValue({type: type, value: value});
self._setInnerValue(this.day);
break;
@ -7277,29 +7311,29 @@ BI.QuarterCard = BI.inherit(BI.MultiDateCard, {
dateConfig: function () {
return [{
selected: true,
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Quarter_Prev")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Quarter_Next")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Quarter_Begin")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Quarter_End")
}]
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV;
}
});
BI.QuarterCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -7452,17 +7486,17 @@ BI.WeekCard = BI.inherit(BI.MultiDateCard, {
selected: true,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Week_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Week_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV;
}
});
BI.WeekCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -7489,27 +7523,27 @@ BI.YearCard = BI.inherit(BI.MultiDateCard, {
selected: true,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Year_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Year_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN,
text: BI.i18nText("BI-Multi_Date_Year_Begin")
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END,
text: BI.i18nText("BI-Multi_Date_Year_End")
}]
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV;
}
});
BI.YearCard.EVENT_CHANGE = "EVENT_CHANGE";

216
dist/bundle.js vendored

@ -23744,6 +23744,14 @@ Date.prototype.getMonthDays = function (month) {
}
};
/**
* 获取每月的最后一天
* @returns {Date}
*/
Date.prototype.getLastDateOfMonth = function () {
return new Date(this.getFullYear(), this.getMonth(), this.getMonthDays());
};
/** Returns the number of day in the year. */
Date.prototype.getDayOfYear = function () {
var now = new Date(this.getFullYear(), this.getMonth(), this.getDate(), 0, 0, 0);
@ -82572,7 +82580,8 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
validationChecker: function () {return true;},
valueFormatter: function (v) {return v;},
value: 0,
errorText: ""
errorText: "",
step: 1
})
},
@ -82599,7 +82608,7 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
cls: "column-pre-page-h-font top-button bi-border-left bi-border-bottom"
});
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function(){
self._finetuning(1);
self._finetuning(o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});
@ -82609,7 +82618,7 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
cls: "column-next-page-h-font bottom-button bi-border-left bi-border-top"
});
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function(){
self._finetuning(-1);
self._finetuning(-o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});
@ -83645,39 +83654,39 @@ BI.MultiDateCard = BI.inherit(BI.Widget, {
var valueObject = this.getValue();
var type = valueObject.type, value = valueObject.value;
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
return new Date().getOffsetDate(-1 * value);
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
return new Date().getOffsetDate(value);
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
return new Date();
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
return new Date().getBeforeMultiMonth(value);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
return new Date().getAfterMultiMonth(value);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
return new Date(new Date().getFullYear(), new Date().getMonth(), 1);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
return new Date(new Date().getFullYear(), new Date().getMonth(), (new Date().getLastDateOfMonth()).getDate());
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
return new Date().getBeforeMulQuarter(value);
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
return new Date().getAfterMulQuarter(value);
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
return new Date().getQuarterStartDate();
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
return new Date().getQuarterEndDate();
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
return new Date().getOffsetDate(-7 * value);
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
return new Date().getOffsetDate(7 * value);
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
return new Date((new Date().getFullYear() - 1 * value), new Date().getMonth(), new Date().getDate());
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
return new Date((new Date().getFullYear() + 1 * value), new Date().getMonth(), new Date().getDate());
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
return new Date(new Date().getFullYear(), 0, 1);
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
return new Date(new Date().getFullYear(), 11, 31);
}
}
@ -83868,23 +83877,23 @@ BI.MultiDateCombo = BI.inherit(BI.Single, {
type = v.type
}
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.changeIcon.setVisible(true);
this.comboWrapper.attr("items")[1].width = 30;
this.comboWrapper.resize();
@ -83930,6 +83939,39 @@ BI.extend(BI.MultiDateCombo, {
MULTI_DATE_WEEK_CARD: 5,
MULTI_DATE_DAY_CARD: 6
});
BI.extend(BI.MultiDateCombo, {
DATE_TYPE: {
MULTI_DATE_YEAR_PREV: 1,
MULTI_DATE_YEAR_AFTER: 2,
MULTI_DATE_YEAR_BEGIN: 3,
MULTI_DATE_YEAR_END: 4,
MULTI_DATE_MONTH_PREV: 5,
MULTI_DATE_MONTH_AFTER: 6,
MULTI_DATE_MONTH_BEGIN: 7,
MULTI_DATE_MONTH_END: 8,
MULTI_DATE_QUARTER_PREV: 9,
MULTI_DATE_QUARTER_AFTER: 10,
MULTI_DATE_QUARTER_BEGIN: 11,
MULTI_DATE_QUARTER_END: 12,
MULTI_DATE_WEEK_PREV: 13,
MULTI_DATE_WEEK_AFTER: 14,
MULTI_DATE_DAY_PREV: 15,
MULTI_DATE_DAY_AFTER: 16,
MULTI_DATE_DAY_TODAY: 17,
MULTI_DATE_PARAM: 18,
MULTI_DATE_CALENDAR: 19,
YEAR_QUARTER: 20,
YEAR_MONTH: 21,
YEAR_WEEK: 22,
YEAR_DAY: 23,
MONTH_WEEK: 24,
MONTH_DAY: 25,
YEAR: 26,
SAME_PERIOD: 27,
LAST_SAME_PERIOD: 28
}
});
/**
* 普通控件
*
@ -83953,22 +83995,22 @@ BI.DayCard = BI.inherit(BI.MultiDateCard, {
isEditorExist: true,
selected: true,
text: BI.i18nText("BI-Multi_Date_Day_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_DAY_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Day_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY,
text: BI.i18nText("BI-Multi_Date_Today")
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_DAY_PREV
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV
}
});
BI.DayCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -83994,28 +84036,28 @@ BI.MonthCard = BI.inherit(BI.MultiDateCard, {
return [{
selected: true,
isEditorExist: true,
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV,
text: BI.i18nText("BI-Multi_Date_Month_Prev")
},
{
isEditorExist: true,
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER,
text: BI.i18nText("BI-Multi_Date_Month_Next")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Month_Begin")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Month_End")
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV;
}
});
BI.MonthCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -84241,52 +84283,52 @@ BI.MultiDatePopup = BI.inherit(BI.Widget, {
var self = this, date;
var type, value;
if (BI.isNotNull(v)) {
type = v.type || BICst.DATE_TYPE.MULTI_DATE_CALENDAR;
type = v.type || BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_CALENDAR;
value = v.value;
if (BI.isNull(value)) {
value = v;
}
}
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
this.dateTab.setSelect(BICst.MULTI_DATE_YEAR_CARD);
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_YEAR_CARD);
this.year.setValue({type: type, value: value});
this.cur = BICst.MULTI_DATE_YEAR_CARD;
this.cur = BI.MultiDateCombo.MULTI_DATE_YEAR_CARD;
self._setInnerValue(this.year);
break;
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
this.dateTab.setSelect(BICst.MULTI_DATE_QUARTER_CARD);
this.cur = BICst.MULTI_DATE_QUARTER_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_QUARTER_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_QUARTER_CARD;
this.quarter.setValue({type: type, value: value});
self._setInnerValue(this.quarter);
break;
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
this.dateTab.setSelect(BICst.MULTI_DATE_MONTH_CARD);
this.cur = BICst.MULTI_DATE_MONTH_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_MONTH_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_MONTH_CARD;
this.month.setValue({type: type, value: value});
self._setInnerValue(this.month);
break;
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
this.dateTab.setSelect(BICst.MULTI_DATE_WEEK_CARD);
this.cur = BICst.MULTI_DATE_WEEK_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_WEEK_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_WEEK_CARD;
this.week.setValue({type: type, value: value});
self._setInnerValue(this.week);
break;
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.dateTab.setSelect(BICst.MULTI_DATE_DAY_CARD);
this.cur = BICst.MULTI_DATE_DAY_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_DAY_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_DAY_CARD;
this.day.setValue({type: type, value: value});
self._setInnerValue(this.day);
break;
@ -84353,29 +84395,29 @@ BI.QuarterCard = BI.inherit(BI.MultiDateCard, {
dateConfig: function () {
return [{
selected: true,
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Quarter_Prev")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Quarter_Next")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Quarter_Begin")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Quarter_End")
}]
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV;
}
});
BI.QuarterCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -84528,17 +84570,17 @@ BI.WeekCard = BI.inherit(BI.MultiDateCard, {
selected: true,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Week_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Week_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV;
}
});
BI.WeekCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -84565,27 +84607,27 @@ BI.YearCard = BI.inherit(BI.MultiDateCard, {
selected: true,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Year_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Year_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN,
text: BI.i18nText("BI-Multi_Date_Year_Begin")
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END,
text: BI.i18nText("BI-Multi_Date_Year_End")
}]
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV;
}
});
BI.YearCard.EVENT_CHANGE = "EVENT_CHANGE";

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

30
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

8
dist/core.js vendored

@ -23693,6 +23693,14 @@ Date.prototype.getMonthDays = function (month) {
}
};
/**
* 获取每月的最后一天
* @returns {Date}
*/
Date.prototype.getLastDateOfMonth = function () {
return new Date(this.getFullYear(), this.getMonth(), this.getMonthDays());
};
/** Returns the number of day in the year. */
Date.prototype.getDayOfYear = function () {
var now = new Date(this.getFullYear(), this.getMonth(), this.getDate(), 0, 0, 0);

86
dist/resource.css vendored

@ -1732,31 +1732,31 @@ textarea::-webkit-scrollbar-thumb:hover {
height: 101px;
}
.farbtastic .wheel {
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/farbtastic/wheel.png") no-repeat;
background: url("images/1x/third/farbtastic/wheel.png") no-repeat;
width: 195px;
height: 195px;
}
.farbtastic .overlay {
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/farbtastic/mask.png") no-repeat;
background: url("images/1x/third/farbtastic/mask.png") no-repeat;
}
.farbtastic .marker {
width: 17px;
height: 17px;
margin: -8px 0 0 -8px;
overflow: hidden;
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/farbtastic/marker.png") no-repeat;
background: url("images/1x/third/farbtastic/marker.png") no-repeat;
}
.bi-display-tree .ztree * {
color: #999999;
}
.bi-display-tree .ztree li span.button.switch.center_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x//icon/tree-vertical-line-3.png");
background-image: url("images/1x//icon/tree-vertical-line-3.png");
}
.bi-display-tree .ztree li span.button.switch.roots_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x//icon/tree-vertical-line-2.png");
background-image: url("images/1x//icon/tree-vertical-line-2.png");
}
.bi-display-tree .ztree li span.button.switch.bottom_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x//icon/tree-vertical-line-4.png");
background-image: url("images/1x//icon/tree-vertical-line-4.png");
}
.bi-display-tree .ztree li a,
.bi-display-tree .ztree li span {
@ -1803,10 +1803,10 @@ website: http://code.google.com/p/jquerytree/
padding: 0 0 0 18px;
}
.ztree li ul.line {
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-vertical-line-1.png") 0 0 repeat-y;
background: url("images/1x/icon/tree-vertical-line-1.png") 0 0 repeat-y;
}
.bi-theme-dark .ztree li ul.line {
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-vertical-line-1.png") 0 0 repeat-y;
background: url("images/1x/icon/dark/tree-vertical-line-1.png") 0 0 repeat-y;
}
.ztree li a {
padding: 1px 3px 0 0;
@ -1861,8 +1861,8 @@ website: http://code.google.com/p/jquerytree/
background-color: transparent;
background-repeat: no-repeat;
background-attachment: scroll;
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/ztree/img/zTreeStandard.png");
*background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/ztree/img/zTreeStandard.gif");
background-image: url("images/1x/third/ztree/img/zTreeStandard.png");
*background-image: url("images/1x/third/ztree/img/zTreeStandard.gif");
}
.ztree li span.button.chk {
width: 16px;
@ -1871,31 +1871,31 @@ website: http://code.google.com/p/jquerytree/
cursor: auto;
}
.ztree li span.button.chk.checkbox_false_full {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/check-box-normal.png");
background-image: url("images/1x/icon/check-box-normal.png");
}
.ztree li span.button.chk.checkbox_false_full_focus {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/check-box-normal.png");
background-image: url("images/1x/icon/check-box-normal.png");
}
.ztree li span.button.chk.checkbox_false_part {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/half_selected.png");
background-image: url("images/1x/icon/half_selected.png");
}
.ztree li span.button.chk.checkbox_false_part_focus {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/half_selected.png");
background-image: url("images/1x/icon/half_selected.png");
}
.ztree li span.button.chk.checkbox_false_disable {
background-position: 0 -56px;
}
.ztree li span.button.chk.checkbox_true_full {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/check-box-active.png");
background-image: url("images/1x/icon/check-box-active.png");
}
.ztree li span.button.chk.checkbox_true_full_focus {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/check-box-active.png");
background-image: url("images/1x/icon/check-box-active.png");
}
.ztree li span.button.chk.checkbox_true_part {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/half_selected.png");
background-image: url("images/1x/icon/half_selected.png");
}
.ztree li span.button.chk.checkbox_true_part_focus {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/half_selected.png");
background-image: url("images/1x/icon/half_selected.png");
}
.ztree li span.button.chk.checkbox_true_disable {
background-position: -14px -56px;
@ -1935,52 +1935,52 @@ website: http://code.google.com/p/jquerytree/
height: 25px;
}
.ztree li span.button.root_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-expand-1.png");
background-image: url("images/1x/icon/tree-expand-1.png");
}
.bi-theme-dark .ztree li span.button.root_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-expand-1.png");
background-image: url("images/1x/icon/dark/tree-expand-1.png");
}
.ztree li span.button.root_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-collapse-1.png");
background-image: url("images/1x/icon/tree-collapse-1.png");
}
.bi-theme-dark .ztree li span.button.root_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-collapse-1.png");
background-image: url("images/1x/icon/dark/tree-collapse-1.png");
}
.ztree li span.button.roots_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-expand-2.png");
background-image: url("images/1x/icon/tree-expand-2.png");
}
.bi-theme-dark .ztree li span.button.roots_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-expand-2.png");
background-image: url("images/1x/icon/dark/tree-expand-2.png");
}
.ztree li span.button.roots_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-collapse-2.png");
background-image: url("images/1x/icon/tree-collapse-2.png");
}
.bi-theme-dark .ztree li span.button.roots_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-collapse-2.png");
background-image: url("images/1x/icon/dark/tree-collapse-2.png");
}
.ztree li span.button.center_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-expand-3.png");
background-image: url("images/1x/icon/tree-expand-3.png");
}
.bi-theme-dark .ztree li span.button.center_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-expand-3.png");
background-image: url("images/1x/icon/dark/tree-expand-3.png");
}
.ztree li span.button.center_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-collapse-3.png");
background-image: url("images/1x/icon/tree-collapse-3.png");
}
.bi-theme-dark .ztree li span.button.center_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-collapse-3.png");
background-image: url("images/1x/icon/dark/tree-collapse-3.png");
}
.ztree li span.button.bottom_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-expand-4.png");
background-image: url("images/1x/icon/tree-expand-4.png");
}
.bi-theme-dark .ztree li span.button.bottom_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-expand-4.png");
background-image: url("images/1x/icon/dark/tree-expand-4.png");
}
.ztree li span.button.bottom_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-collapse-4.png");
background-image: url("images/1x/icon/tree-collapse-4.png");
}
.bi-theme-dark .ztree li span.button.bottom_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-collapse-4.png");
background-image: url("images/1x/icon/dark/tree-collapse-4.png");
}
.ztree li span.button.noline_open {
background-position: -92px -72px;
@ -1992,22 +1992,22 @@ website: http://code.google.com/p/jquerytree/
background: none;
}
.ztree li span.button.roots_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-vertical-line-2.png");
background-image: url("images/1x/icon/tree-vertical-line-2.png");
}
.bi-theme-dark .ztree li span.button.roots_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-vertical-line-2.png");
background-image: url("images/1x/icon/dark/tree-vertical-line-2.png");
}
.ztree li span.button.center_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-vertical-line-3.png");
background-image: url("images/1x/icon/tree-vertical-line-3.png");
}
.bi-theme-dark .ztree li span.button.center_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-vertical-line-3.png");
background-image: url("images/1x/icon/dark/tree-vertical-line-3.png");
}
.ztree li span.button.bottom_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-vertical-line-4.png");
background-image: url("images/1x/icon/tree-vertical-line-4.png");
}
.bi-theme-dark .ztree li span.button.bottom_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-vertical-line-4.png");
background-image: url("images/1x/icon/dark/tree-vertical-line-4.png");
}
.ztree li span.button.noline_docu {
background: none;
@ -2045,7 +2045,7 @@ website: http://code.google.com/p/jquerytree/
.ztree li span.button.ico_loading {
width: 0px;
margin-right: 2px;
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/ztree/img/loading.gif") no-repeat scroll 0 0 transparent;
background: url("images/1x/third/ztree/img/loading.gif") no-repeat scroll 0 0 transparent;
vertical-align: top;
*vertical-align: middle;
}
@ -2066,8 +2066,8 @@ span.tmpzTreeMove_arrow {
background-repeat: no-repeat;
background-attachment: scroll;
background-position: -110px -80px;
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/ztree/img/zTreeStandard.png");
*background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/ztree/img/zTreeStandard.gif");
background-image: url("images/1x/third/ztree/img/zTreeStandard.png");
*background-image: url("images/1x/third/ztree/img/zTreeStandard.gif");
}
ul.ztree.zTreeDragUL {
margin: 0;

208
dist/widget.js vendored

@ -5496,7 +5496,8 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
validationChecker: function () {return true;},
valueFormatter: function (v) {return v;},
value: 0,
errorText: ""
errorText: "",
step: 1
})
},
@ -5523,7 +5524,7 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
cls: "column-pre-page-h-font top-button bi-border-left bi-border-bottom"
});
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function(){
self._finetuning(1);
self._finetuning(o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});
@ -5533,7 +5534,7 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
cls: "column-next-page-h-font bottom-button bi-border-left bi-border-top"
});
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function(){
self._finetuning(-1);
self._finetuning(-o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});
@ -6569,39 +6570,39 @@ BI.MultiDateCard = BI.inherit(BI.Widget, {
var valueObject = this.getValue();
var type = valueObject.type, value = valueObject.value;
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
return new Date().getOffsetDate(-1 * value);
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
return new Date().getOffsetDate(value);
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
return new Date();
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
return new Date().getBeforeMultiMonth(value);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
return new Date().getAfterMultiMonth(value);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
return new Date(new Date().getFullYear(), new Date().getMonth(), 1);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
return new Date(new Date().getFullYear(), new Date().getMonth(), (new Date().getLastDateOfMonth()).getDate());
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
return new Date().getBeforeMulQuarter(value);
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
return new Date().getAfterMulQuarter(value);
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
return new Date().getQuarterStartDate();
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
return new Date().getQuarterEndDate();
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
return new Date().getOffsetDate(-7 * value);
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
return new Date().getOffsetDate(7 * value);
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
return new Date((new Date().getFullYear() - 1 * value), new Date().getMonth(), new Date().getDate());
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
return new Date((new Date().getFullYear() + 1 * value), new Date().getMonth(), new Date().getDate());
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
return new Date(new Date().getFullYear(), 0, 1);
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
return new Date(new Date().getFullYear(), 11, 31);
}
}
@ -6792,23 +6793,23 @@ BI.MultiDateCombo = BI.inherit(BI.Single, {
type = v.type
}
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.changeIcon.setVisible(true);
this.comboWrapper.attr("items")[1].width = 30;
this.comboWrapper.resize();
@ -6854,6 +6855,39 @@ BI.extend(BI.MultiDateCombo, {
MULTI_DATE_WEEK_CARD: 5,
MULTI_DATE_DAY_CARD: 6
});
BI.extend(BI.MultiDateCombo, {
DATE_TYPE: {
MULTI_DATE_YEAR_PREV: 1,
MULTI_DATE_YEAR_AFTER: 2,
MULTI_DATE_YEAR_BEGIN: 3,
MULTI_DATE_YEAR_END: 4,
MULTI_DATE_MONTH_PREV: 5,
MULTI_DATE_MONTH_AFTER: 6,
MULTI_DATE_MONTH_BEGIN: 7,
MULTI_DATE_MONTH_END: 8,
MULTI_DATE_QUARTER_PREV: 9,
MULTI_DATE_QUARTER_AFTER: 10,
MULTI_DATE_QUARTER_BEGIN: 11,
MULTI_DATE_QUARTER_END: 12,
MULTI_DATE_WEEK_PREV: 13,
MULTI_DATE_WEEK_AFTER: 14,
MULTI_DATE_DAY_PREV: 15,
MULTI_DATE_DAY_AFTER: 16,
MULTI_DATE_DAY_TODAY: 17,
MULTI_DATE_PARAM: 18,
MULTI_DATE_CALENDAR: 19,
YEAR_QUARTER: 20,
YEAR_MONTH: 21,
YEAR_WEEK: 22,
YEAR_DAY: 23,
MONTH_WEEK: 24,
MONTH_DAY: 25,
YEAR: 26,
SAME_PERIOD: 27,
LAST_SAME_PERIOD: 28
}
});
/**
* 普通控件
*
@ -6877,22 +6911,22 @@ BI.DayCard = BI.inherit(BI.MultiDateCard, {
isEditorExist: true,
selected: true,
text: BI.i18nText("BI-Multi_Date_Day_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_DAY_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Day_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY,
text: BI.i18nText("BI-Multi_Date_Today")
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_DAY_PREV
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV
}
});
BI.DayCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -6918,28 +6952,28 @@ BI.MonthCard = BI.inherit(BI.MultiDateCard, {
return [{
selected: true,
isEditorExist: true,
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV,
text: BI.i18nText("BI-Multi_Date_Month_Prev")
},
{
isEditorExist: true,
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER,
text: BI.i18nText("BI-Multi_Date_Month_Next")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Month_Begin")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Month_End")
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV;
}
});
BI.MonthCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -7165,52 +7199,52 @@ BI.MultiDatePopup = BI.inherit(BI.Widget, {
var self = this, date;
var type, value;
if (BI.isNotNull(v)) {
type = v.type || BICst.DATE_TYPE.MULTI_DATE_CALENDAR;
type = v.type || BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_CALENDAR;
value = v.value;
if (BI.isNull(value)) {
value = v;
}
}
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
this.dateTab.setSelect(BICst.MULTI_DATE_YEAR_CARD);
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_YEAR_CARD);
this.year.setValue({type: type, value: value});
this.cur = BICst.MULTI_DATE_YEAR_CARD;
this.cur = BI.MultiDateCombo.MULTI_DATE_YEAR_CARD;
self._setInnerValue(this.year);
break;
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
this.dateTab.setSelect(BICst.MULTI_DATE_QUARTER_CARD);
this.cur = BICst.MULTI_DATE_QUARTER_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_QUARTER_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_QUARTER_CARD;
this.quarter.setValue({type: type, value: value});
self._setInnerValue(this.quarter);
break;
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
this.dateTab.setSelect(BICst.MULTI_DATE_MONTH_CARD);
this.cur = BICst.MULTI_DATE_MONTH_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_MONTH_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_MONTH_CARD;
this.month.setValue({type: type, value: value});
self._setInnerValue(this.month);
break;
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
this.dateTab.setSelect(BICst.MULTI_DATE_WEEK_CARD);
this.cur = BICst.MULTI_DATE_WEEK_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_WEEK_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_WEEK_CARD;
this.week.setValue({type: type, value: value});
self._setInnerValue(this.week);
break;
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.dateTab.setSelect(BICst.MULTI_DATE_DAY_CARD);
this.cur = BICst.MULTI_DATE_DAY_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_DAY_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_DAY_CARD;
this.day.setValue({type: type, value: value});
self._setInnerValue(this.day);
break;
@ -7277,29 +7311,29 @@ BI.QuarterCard = BI.inherit(BI.MultiDateCard, {
dateConfig: function () {
return [{
selected: true,
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Quarter_Prev")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Quarter_Next")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Quarter_Begin")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Quarter_End")
}]
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV;
}
});
BI.QuarterCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -7452,17 +7486,17 @@ BI.WeekCard = BI.inherit(BI.MultiDateCard, {
selected: true,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Week_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Week_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV;
}
});
BI.WeekCard.EVENT_CHANGE = "EVENT_CHANGE";
@ -7489,27 +7523,27 @@ BI.YearCard = BI.inherit(BI.MultiDateCard, {
selected: true,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Year_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Year_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN,
text: BI.i18nText("BI-Multi_Date_Year_Begin")
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END,
text: BI.i18nText("BI-Multi_Date_Year_End")
}]
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV;
}
});
BI.YearCard.EVENT_CHANGE = "EVENT_CHANGE";

8
src/core/proto/date.js

@ -86,6 +86,14 @@ Date.prototype.getMonthDays = function (month) {
}
};
/**
* 获取每月的最后一天
* @returns {Date}
*/
Date.prototype.getLastDateOfMonth = function () {
return new Date(this.getFullYear(), this.getMonth(), this.getMonthDays());
};
/** Returns the number of day in the year. */
Date.prototype.getDayOfYear = function () {
var now = new Date(this.getFullYear(), this.getMonth(), this.getDate(), 0, 0, 0);

6
src/css/resource/third/farbtastic/farbtastic.css

@ -36,17 +36,17 @@
height: 101px;
}
.farbtastic .wheel {
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/farbtastic/wheel.png") no-repeat;
background: url("images/1x/third/farbtastic/wheel.png") no-repeat;
width: 195px;
height: 195px;
}
.farbtastic .overlay {
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/farbtastic/mask.png") no-repeat;
background: url("images/1x/third/farbtastic/mask.png") no-repeat;
}
.farbtastic .marker {
width: 17px;
height: 17px;
margin: -8px 0 0 -8px;
overflow: hidden;
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/farbtastic/marker.png") no-repeat;
background: url("images/1x/third/farbtastic/marker.png") no-repeat;
}

6
src/css/resource/third/ztree/display.tree.css

@ -2,13 +2,13 @@
color: #999999;
}
.bi-display-tree .ztree li span.button.switch.center_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x//icon/tree-vertical-line-3.png");
background-image: url("images/1x//icon/tree-vertical-line-3.png");
}
.bi-display-tree .ztree li span.button.switch.roots_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x//icon/tree-vertical-line-2.png");
background-image: url("images/1x//icon/tree-vertical-line-2.png");
}
.bi-display-tree .ztree li span.button.switch.bottom_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x//icon/tree-vertical-line-4.png");
background-image: url("images/1x//icon/tree-vertical-line-4.png");
}
.bi-display-tree .ztree li a,
.bi-display-tree .ztree li span {

74
src/css/resource/third/ztree/zTreeStyle.css

@ -29,10 +29,10 @@ website: http://code.google.com/p/jquerytree/
padding: 0 0 0 18px;
}
.ztree li ul.line {
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-vertical-line-1.png") 0 0 repeat-y;
background: url("images/1x/icon/tree-vertical-line-1.png") 0 0 repeat-y;
}
.bi-theme-dark .ztree li ul.line {
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-vertical-line-1.png") 0 0 repeat-y;
background: url("images/1x/icon/dark/tree-vertical-line-1.png") 0 0 repeat-y;
}
.ztree li a {
padding: 1px 3px 0 0;
@ -87,8 +87,8 @@ website: http://code.google.com/p/jquerytree/
background-color: transparent;
background-repeat: no-repeat;
background-attachment: scroll;
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/ztree/img/zTreeStandard.png");
*background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/ztree/img/zTreeStandard.gif");
background-image: url("images/1x/third/ztree/img/zTreeStandard.png");
*background-image: url("images/1x/third/ztree/img/zTreeStandard.gif");
}
.ztree li span.button.chk {
width: 16px;
@ -97,31 +97,31 @@ website: http://code.google.com/p/jquerytree/
cursor: auto;
}
.ztree li span.button.chk.checkbox_false_full {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/check-box-normal.png");
background-image: url("images/1x/icon/check-box-normal.png");
}
.ztree li span.button.chk.checkbox_false_full_focus {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/check-box-normal.png");
background-image: url("images/1x/icon/check-box-normal.png");
}
.ztree li span.button.chk.checkbox_false_part {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/half_selected.png");
background-image: url("images/1x/icon/half_selected.png");
}
.ztree li span.button.chk.checkbox_false_part_focus {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/half_selected.png");
background-image: url("images/1x/icon/half_selected.png");
}
.ztree li span.button.chk.checkbox_false_disable {
background-position: 0 -56px;
}
.ztree li span.button.chk.checkbox_true_full {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/check-box-active.png");
background-image: url("images/1x/icon/check-box-active.png");
}
.ztree li span.button.chk.checkbox_true_full_focus {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/check-box-active.png");
background-image: url("images/1x/icon/check-box-active.png");
}
.ztree li span.button.chk.checkbox_true_part {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/half_selected.png");
background-image: url("images/1x/icon/half_selected.png");
}
.ztree li span.button.chk.checkbox_true_part_focus {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/half_selected.png");
background-image: url("images/1x/icon/half_selected.png");
}
.ztree li span.button.chk.checkbox_true_disable {
background-position: -14px -56px;
@ -161,52 +161,52 @@ website: http://code.google.com/p/jquerytree/
height: 25px;
}
.ztree li span.button.root_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-expand-1.png");
background-image: url("images/1x/icon/tree-expand-1.png");
}
.bi-theme-dark .ztree li span.button.root_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-expand-1.png");
background-image: url("images/1x/icon/dark/tree-expand-1.png");
}
.ztree li span.button.root_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-collapse-1.png");
background-image: url("images/1x/icon/tree-collapse-1.png");
}
.bi-theme-dark .ztree li span.button.root_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-collapse-1.png");
background-image: url("images/1x/icon/dark/tree-collapse-1.png");
}
.ztree li span.button.roots_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-expand-2.png");
background-image: url("images/1x/icon/tree-expand-2.png");
}
.bi-theme-dark .ztree li span.button.roots_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-expand-2.png");
background-image: url("images/1x/icon/dark/tree-expand-2.png");
}
.ztree li span.button.roots_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-collapse-2.png");
background-image: url("images/1x/icon/tree-collapse-2.png");
}
.bi-theme-dark .ztree li span.button.roots_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-collapse-2.png");
background-image: url("images/1x/icon/dark/tree-collapse-2.png");
}
.ztree li span.button.center_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-expand-3.png");
background-image: url("images/1x/icon/tree-expand-3.png");
}
.bi-theme-dark .ztree li span.button.center_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-expand-3.png");
background-image: url("images/1x/icon/dark/tree-expand-3.png");
}
.ztree li span.button.center_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-collapse-3.png");
background-image: url("images/1x/icon/tree-collapse-3.png");
}
.bi-theme-dark .ztree li span.button.center_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-collapse-3.png");
background-image: url("images/1x/icon/dark/tree-collapse-3.png");
}
.ztree li span.button.bottom_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-expand-4.png");
background-image: url("images/1x/icon/tree-expand-4.png");
}
.bi-theme-dark .ztree li span.button.bottom_open {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-expand-4.png");
background-image: url("images/1x/icon/dark/tree-expand-4.png");
}
.ztree li span.button.bottom_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-collapse-4.png");
background-image: url("images/1x/icon/tree-collapse-4.png");
}
.bi-theme-dark .ztree li span.button.bottom_close {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-collapse-4.png");
background-image: url("images/1x/icon/dark/tree-collapse-4.png");
}
.ztree li span.button.noline_open {
background-position: -92px -72px;
@ -218,22 +218,22 @@ website: http://code.google.com/p/jquerytree/
background: none;
}
.ztree li span.button.roots_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-vertical-line-2.png");
background-image: url("images/1x/icon/tree-vertical-line-2.png");
}
.bi-theme-dark .ztree li span.button.roots_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-vertical-line-2.png");
background-image: url("images/1x/icon/dark/tree-vertical-line-2.png");
}
.ztree li span.button.center_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-vertical-line-3.png");
background-image: url("images/1x/icon/tree-vertical-line-3.png");
}
.bi-theme-dark .ztree li span.button.center_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-vertical-line-3.png");
background-image: url("images/1x/icon/dark/tree-vertical-line-3.png");
}
.ztree li span.button.bottom_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/tree-vertical-line-4.png");
background-image: url("images/1x/icon/tree-vertical-line-4.png");
}
.bi-theme-dark .ztree li span.button.bottom_docu {
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/icon/dark/tree-vertical-line-4.png");
background-image: url("images/1x/icon/dark/tree-vertical-line-4.png");
}
.ztree li span.button.noline_docu {
background: none;
@ -271,7 +271,7 @@ website: http://code.google.com/p/jquerytree/
.ztree li span.button.ico_loading {
width: 0px;
margin-right: 2px;
background: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/ztree/img/loading.gif") no-repeat scroll 0 0 transparent;
background: url("images/1x/third/ztree/img/loading.gif") no-repeat scroll 0 0 transparent;
vertical-align: top;
*vertical-align: middle;
}
@ -292,8 +292,8 @@ span.tmpzTreeMove_arrow {
background-repeat: no-repeat;
background-attachment: scroll;
background-position: -110px -80px;
background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/ztree/img/zTreeStandard.png");
*background-image: url("${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/third/ztree/img/zTreeStandard.gif");
background-image: url("images/1x/third/ztree/img/zTreeStandard.png");
*background-image: url("images/1x/third/ztree/img/zTreeStandard.gif");
}
ul.ztree.zTreeDragUL {
margin: 0;

2
src/css/widget/singleslider/slider/widget.slider.css

@ -1,5 +1,5 @@
.bi-single-slider-slider .slider-button {
cursor: url('${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/cursor/cursor_drag_slider.cur'), auto;
cursor: url('images/1x/cursor/cursor_drag_slider.cur'), auto;
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);

6
src/less/var.less

@ -1,6 +1,6 @@
@webUrl: '${remoteServletURL}?op=resource&resource=/com/fr/bi/web/';
@imageUrl: '${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/1x/'; //图片的基本地址
@image2xUrl: '${remoteServletURL}?op=resource&resource=/com/fr/bi/web/images/2x/'; //2x图片的基本地址
@webUrl: '';
@imageUrl: 'images/1x/'; //图片的基本地址
@image2xUrl: 'images/2x/'; //2x图片的基本地址
@cursor: '@{webUrl}images/cursor/cursor_hand.cur';
@dragCursor: '@{webUrl}images/cursor/cursor_drag_hand.cur';

7
src/widget/finetuningnumbereditor/finetuning.number.editor.js

@ -9,7 +9,8 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
validationChecker: function () {return true;},
valueFormatter: function (v) {return v;},
value: 0,
errorText: ""
errorText: "",
step: 1
})
},
@ -36,7 +37,7 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
cls: "column-pre-page-h-font top-button bi-border-left bi-border-bottom"
});
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function(){
self._finetuning(1);
self._finetuning(o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});
@ -46,7 +47,7 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
cls: "column-next-page-h-font bottom-button bi-border-left bi-border-top"
});
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function(){
self._finetuning(-1);
self._finetuning(-o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});

34
src/widget/multidate/abstract.multidate.datepane.js

@ -111,39 +111,39 @@ BI.MultiDateCard = BI.inherit(BI.Widget, {
var valueObject = this.getValue();
var type = valueObject.type, value = valueObject.value;
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
return new Date().getOffsetDate(-1 * value);
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
return new Date().getOffsetDate(value);
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
return new Date();
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
return new Date().getBeforeMultiMonth(value);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
return new Date().getAfterMultiMonth(value);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
return new Date(new Date().getFullYear(), new Date().getMonth(), 1);
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
return new Date(new Date().getFullYear(), new Date().getMonth(), (new Date().getLastDateOfMonth()).getDate());
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
return new Date().getBeforeMulQuarter(value);
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
return new Date().getAfterMulQuarter(value);
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
return new Date().getQuarterStartDate();
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
return new Date().getQuarterEndDate();
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
return new Date().getOffsetDate(-7 * value);
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
return new Date().getOffsetDate(7 * value);
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
return new Date((new Date().getFullYear() - 1 * value), new Date().getMonth(), new Date().getDate());
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
return new Date((new Date().getFullYear() + 1 * value), new Date().getMonth(), new Date().getDate());
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
return new Date(new Date().getFullYear(), 0, 1);
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
return new Date(new Date().getFullYear(), 11, 31);
}
}

67
src/widget/multidate/multidate.combo.js

@ -183,23 +183,23 @@ BI.MultiDateCombo = BI.inherit(BI.Single, {
type = v.type
}
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.changeIcon.setVisible(true);
this.comboWrapper.attr("items")[1].width = 30;
this.comboWrapper.resize();
@ -245,3 +245,36 @@ BI.extend(BI.MultiDateCombo, {
MULTI_DATE_WEEK_CARD: 5,
MULTI_DATE_DAY_CARD: 6
});
BI.extend(BI.MultiDateCombo, {
DATE_TYPE: {
MULTI_DATE_YEAR_PREV: 1,
MULTI_DATE_YEAR_AFTER: 2,
MULTI_DATE_YEAR_BEGIN: 3,
MULTI_DATE_YEAR_END: 4,
MULTI_DATE_MONTH_PREV: 5,
MULTI_DATE_MONTH_AFTER: 6,
MULTI_DATE_MONTH_BEGIN: 7,
MULTI_DATE_MONTH_END: 8,
MULTI_DATE_QUARTER_PREV: 9,
MULTI_DATE_QUARTER_AFTER: 10,
MULTI_DATE_QUARTER_BEGIN: 11,
MULTI_DATE_QUARTER_END: 12,
MULTI_DATE_WEEK_PREV: 13,
MULTI_DATE_WEEK_AFTER: 14,
MULTI_DATE_DAY_PREV: 15,
MULTI_DATE_DAY_AFTER: 16,
MULTI_DATE_DAY_TODAY: 17,
MULTI_DATE_PARAM: 18,
MULTI_DATE_CALENDAR: 19,
YEAR_QUARTER: 20,
YEAR_MONTH: 21,
YEAR_WEEK: 22,
YEAR_DAY: 23,
MONTH_WEEK: 24,
MONTH_DAY: 25,
YEAR: 26,
SAME_PERIOD: 27,
LAST_SAME_PERIOD: 28
}
});

8
src/widget/multidate/multidate.day.js

@ -21,22 +21,22 @@ BI.DayCard = BI.inherit(BI.MultiDateCard, {
isEditorExist: true,
selected: true,
text: BI.i18nText("BI-Multi_Date_Day_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_DAY_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Day_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY,
text: BI.i18nText("BI-Multi_Date_Today")
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_DAY_PREV
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV
}
});
BI.DayCard.EVENT_CHANGE = "EVENT_CHANGE";

10
src/widget/multidate/multidate.month.js

@ -19,28 +19,28 @@ BI.MonthCard = BI.inherit(BI.MultiDateCard, {
return [{
selected: true,
isEditorExist: true,
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV,
text: BI.i18nText("BI-Multi_Date_Month_Prev")
},
{
isEditorExist: true,
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER,
text: BI.i18nText("BI-Multi_Date_Month_Next")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Month_Begin")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_MONTH_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Month_End")
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV;
}
});
BI.MonthCard.EVENT_CHANGE = "EVENT_CHANGE";

56
src/widget/multidate/multidate.popup.js

@ -219,52 +219,52 @@ BI.MultiDatePopup = BI.inherit(BI.Widget, {
var self = this, date;
var type, value;
if (BI.isNotNull(v)) {
type = v.type || BICst.DATE_TYPE.MULTI_DATE_CALENDAR;
type = v.type || BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_CALENDAR;
value = v.value;
if (BI.isNull(value)) {
value = v;
}
}
switch (type) {
case BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_YEAR_END:
this.dateTab.setSelect(BICst.MULTI_DATE_YEAR_CARD);
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_YEAR_CARD);
this.year.setValue({type: type, value: value});
this.cur = BICst.MULTI_DATE_YEAR_CARD;
this.cur = BI.MultiDateCombo.MULTI_DATE_YEAR_CARD;
self._setInnerValue(this.year);
break;
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_QUARTER_END:
this.dateTab.setSelect(BICst.MULTI_DATE_QUARTER_CARD);
this.cur = BICst.MULTI_DATE_QUARTER_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_QUARTER_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_QUARTER_CARD;
this.quarter.setValue({type: type, value: value});
self._setInnerValue(this.quarter);
break;
case BICst.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BICst.DATE_TYPE.MULTI_DATE_MONTH_END:
this.dateTab.setSelect(BICst.MULTI_DATE_MONTH_CARD);
this.cur = BICst.MULTI_DATE_MONTH_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_MONTH_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_MONTH_CARD;
this.month.setValue({type: type, value: value});
self._setInnerValue(this.month);
break;
case BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
this.dateTab.setSelect(BICst.MULTI_DATE_WEEK_CARD);
this.cur = BICst.MULTI_DATE_WEEK_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_WEEK_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_WEEK_CARD;
this.week.setValue({type: type, value: value});
self._setInnerValue(this.week);
break;
case BICst.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.dateTab.setSelect(BICst.MULTI_DATE_DAY_CARD);
this.cur = BICst.MULTI_DATE_DAY_CARD;
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_PREV:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_AFTER:
case BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_DAY_TODAY:
this.dateTab.setSelect(BI.MultiDateCombo.MULTI_DATE_DAY_CARD);
this.cur = BI.MultiDateCombo.MULTI_DATE_DAY_CARD;
this.day.setValue({type: type, value: value});
self._setInnerValue(this.day);
break;

10
src/widget/multidate/multidate.quarter.js

@ -19,29 +19,29 @@ BI.QuarterCard = BI.inherit(BI.MultiDateCard, {
dateConfig: function () {
return [{
selected: true,
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Quarter_Prev")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_AFTER,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_AFTER,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Quarter_Next")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_BEGIN,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Quarter_Begin")
},
{
value: BICst.DATE_TYPE.MULTI_DATE_QUARTER_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_END,
isEditorExist: false,
text: BI.i18nText("BI-Multi_Date_Quarter_End")
}]
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_QUARTER_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_QUARTER_PREV;
}
});
BI.QuarterCard.EVENT_CHANGE = "EVENT_CHANGE";

6
src/widget/multidate/multidate.week.js

@ -20,17 +20,17 @@ BI.WeekCard = BI.inherit(BI.MultiDateCard, {
selected: true,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Week_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Week_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_WEEK_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER
}];
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_WEEK_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV;
}
});
BI.WeekCard.EVENT_CHANGE = "EVENT_CHANGE";

10
src/widget/multidate/multidate.year.js

@ -20,27 +20,27 @@ BI.YearCard = BI.inherit(BI.MultiDateCard, {
selected: true,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Year_Prev"),
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Year_Next"),
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_AFTER
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_BEGIN,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN,
text: BI.i18nText("BI-Multi_Date_Year_Begin")
},
{
isEditorExist: false,
value: BICst.DATE_TYPE.MULTI_DATE_YEAR_END,
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END,
text: BI.i18nText("BI-Multi_Date_Year_End")
}]
},
defaultSelectedItem: function () {
return BICst.DATE_TYPE.MULTI_DATE_YEAR_PREV;
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV;
}
});
BI.YearCard.EVENT_CHANGE = "EVENT_CHANGE";

Loading…
Cancel
Save