Pman.Tab.AdminNotify.bjs
[Pman.Admin] / Pman.Tab.AdminNotify.js
index f9da27c..6e66148 100644 (file)
@@ -212,6 +212,12 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
                               if(to){
                                   options.params.to = to.format('Y-m-d');
                               }
+                              
+                              var type = _this.typeCombo.getValue();
+                              
+                              if(type.length){
+                                  options.params.evtype = type;
+                              }
                           }
                     },
                     items : [
@@ -314,7 +320,7 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
                             store : {
                                 proxy : {
                                     '|xns' : 'Roo.data',
-                                    url : baseURL + '/Roo/core_notify.php',
+                                    url : baseURL + '/Roo/core_enum.php',
                                     xtype : 'HttpProxy',
                                     method : 'GET',
                                     xns : Roo.data
@@ -325,18 +331,18 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
                                     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;
                                           }
                                 },
@@ -367,7 +373,7 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
                             listeners : {
                                render : function (_self)
                                   {
-                                     _this.evtypeCombo = _self;
+                                     _this.typeCombo = _self;
                                   },
                                select : function (combo, record, index)
                                   {