|
@@ -501,6 +501,10 @@ Ext.define('saas.view.core.report.ReportPanel', {
|
|
|
conditions.push(condition);
|
|
conditions.push(condition);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ return me.myGetConditions(conditions);
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ myGetConditions: function(conditions) {
|
|
|
return conditions;
|
|
return conditions;
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -511,7 +515,7 @@ Ext.define('saas.view.core.report.ReportPanel', {
|
|
|
|
|
|
|
|
if(me.isContainsAny(xtypes, ['numberfield'])) {
|
|
if(me.isContainsAny(xtypes, ['numberfield'])) {
|
|
|
type = 'number';
|
|
type = 'number';
|
|
|
- }else if(me.isContainsAny(xtypes, ['datefield', 'condatefield'])) {
|
|
|
|
|
|
|
+ }else if(me.isContainsAny(xtypes, ['datefield', 'condatefield', 'conmonthfield'])) {
|
|
|
type = 'date';
|
|
type = 'date';
|
|
|
}else if(me.isContainsAny(xtypes, ['dbfindtrigger'])) {
|
|
}else if(me.isContainsAny(xtypes, ['dbfindtrigger'])) {
|
|
|
type = 'string';
|
|
type = 'string';
|
|
@@ -544,7 +548,7 @@ Ext.define('saas.view.core.report.ReportPanel', {
|
|
|
|
|
|
|
|
if(me.isContainsAny(xtypes, ['numberfield', 'datefield', 'dbfindtrigger'])) {
|
|
if(me.isContainsAny(xtypes, ['numberfield', 'datefield', 'dbfindtrigger'])) {
|
|
|
operation = '=';
|
|
operation = '=';
|
|
|
- }else if(me.isContainsAny(xtypes, ['condatefield'])) {
|
|
|
|
|
|
|
+ }else if(me.isContainsAny(xtypes, ['condatefield', 'conmonthfield'])) {
|
|
|
operation = 'between';
|
|
operation = 'between';
|
|
|
}else if(me.isContainsAny(xtypes, ['multidbfindtrigger', 'combobox', 'multicombo', 'combo'])) {
|
|
}else if(me.isContainsAny(xtypes, ['multidbfindtrigger', 'combobox', 'multicombo', 'combo'])) {
|
|
|
operation = 'in';
|
|
operation = 'in';
|
|
@@ -564,6 +568,15 @@ Ext.define('saas.view.core.report.ReportPanel', {
|
|
|
conditionValue;
|
|
conditionValue;
|
|
|
if(me.isContainsAny(xtypes, ['datefield'])) {
|
|
if(me.isContainsAny(xtypes, ['datefield'])) {
|
|
|
conditionValue = Ext.Date.format(new Date(from), 'Y-m-d H:i:s');
|
|
conditionValue = Ext.Date.format(new Date(from), 'Y-m-d H:i:s');
|
|
|
|
|
+ }else if(me.isContainsAny(xtypes, ['conmonthfield'])) {
|
|
|
|
|
+ var from = value.from,
|
|
|
|
|
+ to = value.to,
|
|
|
|
|
+ fy = Math.floor(Number(from)/100),
|
|
|
|
|
+ fm = Math.floor(Number(from)%100),
|
|
|
|
|
+ ty = Math.floor(Number(to)/100),
|
|
|
|
|
+ tm = Math.floor(Number(to)%100);
|
|
|
|
|
+
|
|
|
|
|
+ conditionValue = Ext.Date.format(new Date(fy+'/'+fm), 'Y-m-d 00:00:00') + ',' + Ext.Date.format(new Date(ty+'/'+tm), 'Y-m-d 23:59:59');
|
|
|
}else if(me.isContainsAny(xtypes, ['condatefield'])) {
|
|
}else if(me.isContainsAny(xtypes, ['condatefield'])) {
|
|
|
var from = value.from,
|
|
var from = value.from,
|
|
|
to = value.to;
|
|
to = value.to;
|