Pman.Tab.AdminProjectMembers.bjs
[Pman.Admin] / Pman.Tab.AdminProjectMembers.bjs
1 {
2     "id": "roo-file-189",
3     "name": "Pman.Tab.AdminProjectMembers",
4     "parent": "Pman.Tab.AdminProjectManager",
5     "title": "Pman.Tab.AdminProjectMembers",
6     "path": "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminProjectMembers.bjs",
7     "items": [
8         {
9             "listeners": {
10                 "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
11             },
12             "background": true,
13             "fitContainer": true,
14             "fitToframe": true,
15             "region": "east",
16             "tableName": "Person",
17             "title": "Person",
18             "xtype": "GridPanel",
19             "|xns": "Roo",
20             "items": [
21                 {
22                     "*prop": "grid",
23                     "xtype": "Grid",
24                     "autoExpandColumn": "name",
25                     "loadMask": true,
26                     "listeners": {
27                         "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
28                         "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n"
29                     },
30                     "|xns": "Roo.grid",
31                     "items": [
32                         {
33                             "listeners": {
34                                 "beforeload": "function (_self, options)\n{\n    options.params.project_member_filtertype = this.filter;\n    options.params.project_member_filter = _this.memberFilter.pressed;\n    \n}"
35                             },
36                             "*prop": "dataSource",
37                             "remoteSort": true,
38                             "xtype": "Store",
39                             "|sortInfo": "{ field : 'name', direction: 'ASC' }",
40                             "|xns": "Roo.data",
41                             "": "",
42                             "items": [
43                                 {
44                                     "*prop": "proxy",
45                                     "xtype": "HttpProxy",
46                                     "method": "GET",
47                                     "|url": "baseURL + '/Roo/Person.php'",
48                                     "|xns": "Roo.data"
49                                 },
50                                 {
51                                     "|xns": "Roo.data",
52                                     "xtype": "JsonReader",
53                                     "totalProperty": "total",
54                                     "root": "data",
55                                     "*prop": "reader",
56                                     "id": "id",
57                                     "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'phone',\n        'type': 'string'\n    },\n    {\n        'name': 'fax',\n        'type': 'string'\n    },\n    {\n        'name': 'email',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'role',\n        'type': 'string'\n    },\n    {\n        'name': 'active',\n        'type': 'int'\n    },\n    {\n        'name': 'remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'lang',\n        'type': 'string'\n    },\n    {\n        'name': 'no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'office_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'office_id_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'office_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'office_id_address',\n        'type': 'string'\n    },\n    {\n        'name': 'office_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'office_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'office_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'office_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_code',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_address',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_tel',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_isOwner',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_logo_id',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_background_color',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_comptype',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_url',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_main_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_created_by',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_created_dt',\n        'type': 'date'\n    },\n    {\n        'name': 'company_id_updated_by',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_updated_dt',\n        'type': 'date'\n    },\n    {\n        'name': 'company_id_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_code',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_type',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_client_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_team_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_file_location',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_open_date',\n        'type': 'date'\n    },\n    {\n        'name': 'project_id_open_by',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_close_date',\n        'type': 'date'\n    },\n    {\n        'name': 'project_id_countries',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_languages',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_agency_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_project_id',\n        'type': 'int'\n    }\n]"
58                                 }
59                             ]
60                         },
61                         {
62                             "*prop": "footer",
63                             "displayInfo": true,
64                             "displayMsg": " ",
65                             "emptyMsg": "No Person found",
66                             "pageSize": 25,
67                             "xtype": "PagingToolbar",
68                             "|xns": "Roo"
69                         },
70                         {
71                             "*prop": "toolbar",
72                             "xtype": "Toolbar",
73                             "|xns": "Roo",
74                             "items": [
75                                 {
76                                     "listeners": {
77                                         "toggle": "function (_self, pressed)\n{\n    if (pressed) {\n        _this.grid.filter = 'S';\n    }\n    _this.grid.footer.onClick('first');\n}"
78                                     },
79                                     "enableToggle": true,
80                                     "pressed": true,
81                                     "text": "Staff",
82                                     "toggleGroup": "appm",
83                                     "xtype": "Button",
84                                     "|xns": "Roo.Toolbar"
85                                 },
86                                 {
87                                     "listeners": {
88                                         "toggle": "function (_self, pressed)\n{\n    if (pressed) {\n        _this.grid.filter = 'O';\n    }\n    _this.grid.footer.onClick('first');\n}"
89                                     },
90                                     "enableToggle": true,
91                                     "text": "Owners",
92                                     "toggleGroup": "appm",
93                                     "xtype": "Button",
94                                     "|xns": "Roo.Toolbar"
95                                 },
96                                 {
97                                     "listeners": {
98                                         "toggle": "function (_self, pressed)\n{\n    if (pressed) {\n        _this.grid.filter = 'A';\n    }\n    _this.grid.footer.onClick('first');\n}"
99                                     },
100                                     "enableToggle": true,
101                                     "text": "Other",
102                                     "toggleGroup": "appm",
103                                     "xtype": "Button",
104                                     "|xns": "Roo.Toolbar"
105                                 },
106                                 {
107                                     "|xns": "Roo.Toolbar",
108                                     "xtype": "Fill"
109                                 },
110                                 {
111                                     "listeners": {
112                                         "toggle": "function (_self, pressed)\n{\n   \n    _this.grid.footer.onClick('first');\n}",
113                                         "render": "function (_self)\n{\n    _this.memberBtn = _self;\n}"
114                                     },
115                                     "enableToggle": true,
116                                     "text": "Members",
117                                     "xtype": "Button",
118                                     "|xns": "Roo.Toolbar"
119                                 }
120                             ]
121                         },
122                         {
123                             "*prop": "colModel[]",
124                             "dataIndex": "is_member",
125                             "header": "Member",
126                             "width": 60,
127                             "xtype": "ColumnModel",
128                             "|renderer": "function(v) { return String.format('{0}', v); }",
129                             "|xns": "Roo.grid"
130                         },
131                         {
132                             "*prop": "colModel[]",
133                             "dataIndex": "name",
134                             "header": "Name",
135                             "sortable": true,
136                             "width": 200,
137                             "xtype": "ColumnModel",
138                             "|renderer": "function(v) { return String.format('{0}', v); }",
139                             "|xns": "Roo.grid"
140                         },
141                         {
142                             "*prop": "colModel[]",
143                             "dataIndex": "email",
144                             "header": "Email",
145                             "width": 100,
146                             "xtype": "ColumnModel",
147                             "|renderer": "function(v) { return String.format('{0}', v); }",
148                             "|xns": "Roo.grid",
149                             "sortable": true,
150                             "listeners": {}
151                         },
152                         {
153                             "*prop": "colModel[]",
154                             "dataIndex": "company_id_name",
155                             "header": "Company",
156                             "sortable": true,
157                             "width": 120,
158                             "xtype": "ColumnModel",
159                             "|renderer": "function(v) { return String.format('{0}', v); }",
160                             "|xns": "Roo.grid"
161                         }
162                     ]
163                 }
164             ]
165         }
166     ],
167     "permname": "",
168     "modOrder": "001"
169 }