Pman.Tab.AdminOffice.bjs
authorChris <chris@roojs.com>
Fri, 10 Aug 2012 05:49:44 +0000 (13:49 +0800)
committerChris <chris@roojs.com>
Fri, 10 Aug 2012 05:49:44 +0000 (13:49 +0800)
Pman.Tab.AdminOffice.js

Pman.Tab.AdminOffice.bjs
Pman.Tab.AdminOffice.js

index 9677b63..b7ad4a2 100644 (file)
@@ -1,9 +1,9 @@
 {
-    "id": "roo-file-8",
+    "id": "roo-file-110",
     "name": "Pman.Tab.AdminOffice",
     "parent": "Pman.Tab.AdminCompanies",
     "title": "Pman.Tab.AdminOffice",
-    "path": "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminOffice.bjs",
+    "path": "/home/chris/gitlive/Pman.Admin/Pman.Tab.AdminOffice.bjs",
     "items": [
         {
             "listeners": {
index 45b7d4c..75d5370 100644 (file)
@@ -2,35 +2,19 @@
 
 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
 
-
-
-// register the module first
-Pman.on('beforeload', function()
-{
-    Pman.register({
-        modKey : '001-Pman.Tab.AdminOffice',
-        module : Pman.Tab.AdminOffice,
-        region : 'center',
-        parent : Pman.Tab.AdminCompanies,
-        name : "Pman.Tab.AdminOffice",
-        disabled : false, 
-        permname: '' 
-    });
-});
-
-Pman.Tab.AdminOffice = new Roo.util.Observable({
-
-    panel : false,
-    disabled : false,
-    parentLayout:  false,
-
-    add : function(parentLayout, region)
+Pman.Tab.AdminOffice = new Roo.XComponent({
+    part     :  ["Admin","Office"],
+    order    : '001-Pman.Tab.AdminOffice',
+    region   : 'center',
+    parent   : 'Pman.Tab.AdminCompanies',
+    name     : "Pman.Tab.AdminOffice",
+    disabled : false, 
+    permname : '', 
+    _tree : function()
     {
-
         var _this = this;
-        this.parentLayout = parentLayout;
-
-        this.panel = parentLayout.addxtype({
+        var MODULE = this;
+        return {
             xtype: 'GridPanel',
             xns: Roo,
             listeners : {
@@ -238,8 +222,8 @@ Pman.Tab.AdminOffice = new Roo.util.Observable({
                     xns: Roo,
                     pageSize : 25,
                     displayInfo : true,
-                    displayMsg : 'Displaying Office{0} - {1} of {2}',
-                    emptyMsg : 'No Office found'
+                    displayMsg : "Displaying Office{0} - {1} of {2}",
+                    emptyMsg : "No Office found"
                 },
                 toolbar : {
                     xtype: 'Toolbar',
@@ -357,8 +341,6 @@ Pman.Tab.AdminOffice = new Roo.util.Observable({
                     }
                 ]
             }
-        });
-        this.layout = this.panel.layout;
-
+        };
     }
 });