sync
[Pman.Admin] / Pman.Tab.AdminOffice.bjs
index 846f65e..d6ad503 100644 (file)
@@ -23,9 +23,9 @@
    "listeners" : {
     "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
    },
-   "background" : true,
    "region" : "south",
    "fitToframe" : true,
+   "background" : true,
    "title" : "Offices / Departments / Sub-Companies",
    "xtype" : "GridPanel",
    "fitContainer" : true,
@@ -54,7 +54,7 @@
        "* prop" : "dataSource",
        "items" : [
         {
-         "$ url" : "baseURL + '/Roo/Office.php'",
+         "$ url" : "baseURL + '/Roo/core_office.php'",
          "method" : "GET",
          "xtype" : "HttpProxy",
          "$ xns" : "Roo.data",
@@ -87,7 +87,7 @@
        "items" : [
         {
          "listeners" : {
-          "|click" : "function()\n{\n    if (!_this.dialog) {\n     return;\n    }\n    var sd = Pman.Tab.AdminCompanies.grid.getSelectionModel().getSelected();\n    if (!sd) {\n        Roo.MessageBox.alert(\"Error\", \"Select an company to add an office to\");\n        return;\n    }\n    var cdata = sd.data;\n    _this.dialog.show( { \n        id : 0 ,\n        company_name : cdata.name,\n        company_id : cdata.id,\n        address : cdata.address,\n        phone : cdata.tel,\n        fax : cdata.fax,\n        email  : cdata.email\n    } , function() {\n        _this.grid.footer.onClick('first');\n   });\n}"
+          "|click" : "function()\n{\n    if (!_this.dialog) {\n     return;\n    }\n    var sd = Pman.Tab.AdminCompanies.grid.getSelectionModel().getSelected();\n    if (!sd) {\n        Roo.MessageBox.alert(\"Error\", \"Select an company to add an office to\");\n        return;\n    }\n    var cdata = sd.data;\n    _this. dialog.show( { \n        id : 0 ,\n        company_name : cdata.name,\n        company_id : cdata.id,\n        address : cdata.address,\n        phone : cdata.tel,\n        fax : cdata.fax,\n        email  : cdata.email\n    } , function() {\n        _this.grid.footer.onClick('first');\n   });\n}"
          },
          "text" : "Add",
          "xtype" : "Button",