if(to){
options.params.to = to.format('Y-m-d');
}
+
+ var type = _this.typeCombo.getValue();
+
+ if(type.length){
+ options.params.evtype = type;
+ }
}
},
items : [
store : {
proxy : {
'|xns' : 'Roo.data',
- url : baseURL + '/Roo/core_notify.php',
+ url : baseURL + '/Roo/core_enum.php',
xtype : 'HttpProxy',
method : 'GET',
xns : Roo.data
root : 'data',
xtype : 'JsonReader',
xns : Roo.data,
- fields : [{"name":"id","type":"int"},{"name":"ontable","type":"string"}],
+ fields : [{"name":"name","type":"string"},{"name":"display_name","type":"string"}],
totalProperty : 'total'
},
'|xns' : 'Roo.data',
xtype : 'Store',
remoteSort : true,
- sortInfo : { direction : 'ASC', field: 'person_id_name' },
+ sortInfo : { direction : 'ASC', field: 'id' },
xns : Roo.data,
listeners : {
beforeload : function (_self, o){
o.params = o.params || {};
- o.params.evtype = 'Core.NotifyType';
+ o.params.etype = 'Core.NotifyType';
o.params.active = 1;
}
},
listeners : {
render : function (_self)
{
- _this.evtypeCombo = _self;
+ _this.typeCombo = _self;
},
select : function (combo, record, index)
{