Pman.Dialog.XtupleVendorEdit.bjs
authorEdward <edward@roojs.com>
Wed, 15 Jan 2014 05:40:08 +0000 (13:40 +0800)
committerEdward <edward@roojs.com>
Wed, 15 Jan 2014 05:40:08 +0000 (13:40 +0800)
Pman.Dialog.XtupleVendorEdit.js

Pman.Dialog.XtupleVendorEdit.bjs
Pman.Dialog.XtupleVendorEdit.js

index 4c424e4..6b89b06 100644 (file)
                                         {
                                             "|xns": "Roo.Toolbar",
                                             "xtype": "Fill"
-                                        },
-                                        {
-                                            "listeners": {
-                                                "|click": "function()\n{\n   \n    Pman.Dialog.XtupleSalesProductList.show({\n        exclude_itemsrc_vendor : _this.form.findField('vend_id').getValue(),\n        multi_select : true\n    \n    }, function(sels) {\n       Roo.log(sels); \n\n       var ids = [];\n       Roo.each(sels,function(rec) {\n            ids.push(rec.data.item_id);\n        });\n        new Pman.Request({\n            mask: \"Adding\",\n            url : baseURL + '/Roo/Itemsrc',\n            method: 'POST',\n            params : {\n                add_multiple : ids.join(','),\n                itemsrc_vend_id : _this.form.findField('vend_id').getValue()\n            },\n            success : function() { \n                \n            \n                  _this.grid.footer.onClick('first');\n          }\n      });\n              \n    \n    });\n   \n}\n"
-                                            },
-                                            "cls": "x-btn-text-icon",
-                                            "text": "Add",
-                                            "xtype": "Button",
-                                            "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
-                                            "|xns": "Roo.Toolbar"
-                                        },
-                                        {
-                                            "listeners": {
-                                                "|click": "function()\n{\n     Pman.genericDelete(_this, 'itemsrc'); \n}\n        "
-                                            },
-                                            "cls": "x-btn-text-icon",
-                                            "text": "Delete",
-                                            "xtype": "Button",
-                                            "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
-                                            "|xns": "Roo.Toolbar"
                                         }
                                     ]
                                 },
index 173435f..eac6a6f 100644 (file)
@@ -902,61 +902,6 @@ Pman.Dialog.XtupleVendorEdit = {
                                 {
                                     xtype: 'Fill',
                                     xns: Roo.Toolbar
-                                },
-                                {
-                                    xtype: 'Button',
-                                    xns: Roo.Toolbar,
-                                    listeners : {
-                                        click : function()
-                                        {
-                                           
-                                            Pman.Dialog.XtupleSalesProductList.show({
-                                                exclude_itemsrc_vendor : _this.form.findField('vend_id').getValue(),
-                                                multi_select : true
-                                            
-                                            }, function(sels) {
-                                               Roo.log(sels); 
-                                        
-                                               var ids = [];
-                                               Roo.each(sels,function(rec) {
-                                                    ids.push(rec.data.item_id);
-                                                });
-                                                new Pman.Request({
-                                                    mask: "Adding",
-                                                    url : baseURL + '/Roo/Itemsrc',
-                                                    method: 'POST',
-                                                    params : {
-                                                        add_multiple : ids.join(','),
-                                                        itemsrc_vend_id : _this.form.findField('vend_id').getValue()
-                                                    },
-                                                    success : function() { 
-                                                        
-                                                    
-                                                          _this.grid.footer.onClick('first');
-                                                  }
-                                              });
-                                                      
-                                            
-                                            });
-                                           
-                                        }
-                                    },
-                                    cls : 'x-btn-text-icon',
-                                    text : "Add",
-                                    icon : Roo.rootURL + 'images/default/dd/drop-add.gif'
-                                },
-                                {
-                                    xtype: 'Button',
-                                    xns: Roo.Toolbar,
-                                    listeners : {
-                                        click : function()
-                                        {
-                                             Pman.genericDelete(_this, 'itemsrc'); 
-                                        }
-                                    },
-                                    cls : 'x-btn-text-icon',
-                                    text : "Delete",
-                                    icon : rootURL + '/Pman/templates/images/trash.gif'
                                 }
                             ]
                         },