Pman.Tab.XtupleSalesOrder.bjs
authorEdward <edward@roojs.com>
Thu, 23 Jan 2014 04:04:10 +0000 (12:04 +0800)
committerEdward <edward@roojs.com>
Thu, 23 Jan 2014 04:04:10 +0000 (12:04 +0800)
Pman.Tab.XtupleSalesOrder.js

Pman.Tab.XtupleSalesOrder.bjs
Pman.Tab.XtupleSalesOrder.js

index f308ece..08c51b6 100644 (file)
                                                     "|xns": "Roo.Toolbar"
                                                 },
                                                 {
-                                                    "listeners": {
-                                                        "click": "function (_self, e)\n{\n   Pman.Dialog.Image.show(\n       {\n            _url : baseURL+'/Xtuple/Import/Products',\n        \n       },\n       function (data) {\n            var msg = [];\n           \n            if (data.updated) {\n                msg.push(\"Updated \" + data.updated + \" Products(s)\");\n            }            \n            if (data.inserted) {\n                msg.push(\"Added \" + data.inserted + \" Products(s)\");\n            }\n            if (data.skipped) {\n                msg.push(\"Skipped \" + data.skipped);\n            }\n            \n            if (!msg.length) {\n                msg.push(\"No data changed\");\n            }\n            Roo.MessageBox.alert(\"Notice\", msg.join(\"\\n\"));\n\n       }\n   );\n}"
-                                                    },
                                                     "text": "Upload new products and costs",
                                                     "xtype": "Button",
                                                     "|xns": "Roo.Toolbar"
index 209a90e..a5eb2e9 100644 (file)
@@ -197,36 +197,6 @@ Pman.Tab.XtupleSalesOrder = new Roo.XComponent({
                                     {
                                         xtype: 'Button',
                                         xns: Roo.Toolbar,
-                                        listeners : {
-                                            click : function (_self, e)
-                                            {
-                                               Pman.Dialog.Image.show(
-                                                   {
-                                                        _url : baseURL+'/Xtuple/Import/Products',
-                                                    
-                                                   },
-                                                   function (data) {
-                                                        var msg = [];
-                                                       
-                                                        if (data.updated) {
-                                                            msg.push("Updated " + data.updated + " Products(s)");
-                                                        }            
-                                                        if (data.inserted) {
-                                                            msg.push("Added " + data.inserted + " Products(s)");
-                                                        }
-                                                        if (data.skipped) {
-                                                            msg.push("Skipped " + data.skipped);
-                                                        }
-                                                        
-                                                        if (!msg.length) {
-                                                            msg.push("No data changed");
-                                                        }
-                                                        Roo.MessageBox.alert("Notice", msg.join("\n"));
-                                            
-                                                   }
-                                               );
-                                            }
-                                        },
                                         text : "Upload new products and costs"
                                     },
                                     {