Pman.Tab.XtupleSalesOrder.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 4 Dec 2013 05:42:42 +0000 (13:42 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 4 Dec 2013 05:42:42 +0000 (13:42 +0800)
Pman.Tab.XtupleSalesOrder.js

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

index a194893..fc9a0bb 100644 (file)
@@ -1,9 +1,9 @@
 {
-    "id": "roo-file-57",
+    "id": "roo-file-370",
     "name": "Pman.Tab.XtupleSalesOrder",
     "parent": "Pman.Tab.XtupleSales",
     "title": "",
-    "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtupleSalesOrder.bjs",
+    "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtupleSalesOrder.bjs",
     "items": [
         {
             "listeners": {
                                                     "xtype": "Button",
                                                     "|xns": "Roo.Toolbar"
                                                 },
-                                                {
-                                                    "hidden": true,
-                                                    "text": "Magento Upload",
-                                                    "xtype": "Button",
-                                                    "|xns": "Roo.Toolbar",
-                                                    "items": [
-                                                        {
-                                                            "|xns": "Roo.menu",
-                                                            "xtype": "Menu",
-                                                            "*prop": "menu",
-                                                            "items": [
-                                                                {
-                                                                    "listeners": {
-                                                                        "click": "function (_self, e)\n{\n   Pman.Dialog.Image.show(\n       {\n            _url : baseURL+'/Xtuple/Import/MagentoOld',\n            timeout : 90000\n            \n        \n       },\n       function (data) {\n            Roo.MessageBox.alert(\"Notice\", data); \n            _this.grid.footer.onClick('first');\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 Magento File (Old Format)",
-                                                                    "xtype": "Item",
-                                                                    "|xns": "Roo.menu"
-                                                                },
-                                                                {
-                                                                    "listeners": {
-                                                                        "click": "function (_self, e)\n{\n   Pman.Dialog.Image.show(\n       {\n            _url : baseURL+'/Xtuple/Import/Magento',\n            timeout : 90000\n        \n       },\n       function (data) {\n            Roo.MessageBox.alert(\"Notice\", data); \n            _this.grid.footer.onClick('first');\n\n       }\n   );\n}"
-                                                                    },
-                                                                    "text": "Upload Magento File (New Format)",
-                                                                    "xtype": "Item",
-                                                                    "|xns": "Roo.menu"
-                                                                }
-                                                            ]
-                                                        }
-                                                    ]
-                                                },
                                                 {
                                                     "cls": "x-btn-text-icon",
                                                     "text": "Reports",
index 2419b67..469f4f6 100644 (file)
@@ -216,79 +216,6 @@ Pman.Tab.XtupleSalesOrder = new Roo.XComponent({
                                         },
                                         text : "Magento Upload"
                                     },
-                                    {
-                                        xtype: 'Button',
-                                        xns: Roo.Toolbar,
-                                        hidden : true,
-                                        text : "Magento Upload",
-                                        menu : {
-                                            xtype: 'Menu',
-                                            xns: Roo.menu,
-                                            items : [
-                                                {
-                                                    xtype: 'Item',
-                                                    xns: Roo.menu,
-                                                    listeners : {
-                                                        click : function (_self, e)
-                                                        {
-                                                           Pman.Dialog.Image.show(
-                                                               {
-                                                                    _url : baseURL+'/Xtuple/Import/MagentoOld',
-                                                                    timeout : 90000
-                                                                    
-                                                                
-                                                               },
-                                                               function (data) {
-                                                                    Roo.MessageBox.alert("Notice", data); 
-                                                                    _this.grid.footer.onClick('first');
-                                                                  /*  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 Magento File (Old Format)"
-                                                },
-                                                {
-                                                    xtype: 'Item',
-                                                    xns: Roo.menu,
-                                                    listeners : {
-                                                        click : function (_self, e)
-                                                        {
-                                                           Pman.Dialog.Image.show(
-                                                               {
-                                                                    _url : baseURL+'/Xtuple/Import/Magento',
-                                                                    timeout : 90000
-                                                                
-                                                               },
-                                                               function (data) {
-                                                                    Roo.MessageBox.alert("Notice", data); 
-                                                                    _this.grid.footer.onClick('first');
-                                                        
-                                                               }
-                                                           );
-                                                        }
-                                                    },
-                                                    text : "Upload Magento File (New Format)"
-                                                }
-                                            ]
-                                        }
-                                    },
                                     {
                                         xtype: 'Button',
                                         xns: Roo.Toolbar,