fcb5893ceb91a4f2695016a3079605fcfb27f5a7
[Pman.Admin] / Pman.Tab.AdminProjectMembers.bjs
1 {
2     "id": "roo-file-189",
3     "name": "Pman.Tab.AdminProjectMembers",
4     "parent": "",
5     "title": "",
6     "path": "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminProjectMembers.bjs",
7     "items": [
8         {
9             "|xns": "Roo",
10             "xtype": "GridPanel",
11             "title": "Person",
12             "fitToframe": true,
13             "fitContainer": true,
14             "tableName": "Person",
15             "background": true,
16             "region": "center",
17             "listeners": {
18                 "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
19             },
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                             "*prop": "dataSource",
34                             "xtype": "Store",
35                             "remoteSort": true,
36                             "|sortInfo": "{ field : 'name', direction: 'ASC' }",
37                             "|xns": "Roo.data",
38                             "items": [
39                                 {
40                                     "*prop": "proxy",
41                                     "xtype": "HttpProxy",
42                                     "method": "GET",
43                                     "|url": "baseURL + '/Roo/Person.php'",
44                                     "|xns": "Roo.data"
45                                 },
46                                 {
47                                     "|xns": "Roo.data",
48                                     "xtype": "JsonReader",
49                                     "totalProperty": "total",
50                                     "root": "data",
51                                     "*prop": "reader",
52                                     "id": "id",
53                                     "|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]"
54                                 }
55                             ]
56                         },
57                         {
58                             "*prop": "footer",
59                             "xtype": "PagingToolbar",
60                             "pageSize": 25,
61                             "displayInfo": true,
62                             "displayMsg": "Displaying Person{0} - {1} of {2}",
63                             "emptyMsg": "No Person found",
64                             "|xns": "Roo"
65                         },
66                         {
67                             "*prop": "toolbar",
68                             "xtype": "Toolbar",
69                             "|xns": "Roo",
70                             "items": [
71                                 {
72                                     "listeners": {
73                                         "toggle": "function (_self, pressed)\n{\n    if (pressed) {\n        _this.grid.filter = 'S';\n    }\n}"
74                                     },
75                                     "enableToggle": true,
76                                     "text": "Staff",
77                                     "toggleGroup": "appm",
78                                     "xtype": "Button",
79                                     "|xns": "Roo.Toolbar"
80                                 }
81                             ]
82                         },
83                         {
84                             "xtype": "ColumnModel",
85                             "header": "Id",
86                             "width": 75,
87                             "dataIndex": "id",
88                             "|renderer": "function(v) { return String.format('{0}', v); }",
89                             "|xns": "Roo.grid",
90                             "*prop": "colModel[]"
91                         },
92                         {
93                             "xtype": "ColumnModel",
94                             "header": "Office",
95                             "width": 75,
96                             "dataIndex": "office_id",
97                             "|renderer": "function(v) { return String.format('{0}', v); }",
98                             "|xns": "Roo.grid",
99                             "*prop": "colModel[]"
100                         },
101                         {
102                             "xtype": "ColumnModel",
103                             "header": "Name",
104                             "width": 200,
105                             "dataIndex": "name",
106                             "|renderer": "function(v) { return String.format('{0}', v); }",
107                             "|xns": "Roo.grid",
108                             "*prop": "colModel[]"
109                         },
110                         {
111                             "xtype": "ColumnModel",
112                             "header": "Phone",
113                             "width": 200,
114                             "dataIndex": "phone",
115                             "|renderer": "function(v) { return String.format('{0}', v); }",
116                             "|xns": "Roo.grid",
117                             "*prop": "colModel[]"
118                         },
119                         {
120                             "xtype": "ColumnModel",
121                             "header": "Fax",
122                             "width": 200,
123                             "dataIndex": "fax",
124                             "|renderer": "function(v) { return String.format('{0}', v); }",
125                             "|xns": "Roo.grid",
126                             "*prop": "colModel[]"
127                         },
128                         {
129                             "xtype": "ColumnModel",
130                             "header": "Email",
131                             "width": 200,
132                             "dataIndex": "email",
133                             "|renderer": "function(v) { return String.format('{0}', v); }",
134                             "|xns": "Roo.grid",
135                             "*prop": "colModel[]"
136                         },
137                         {
138                             "xtype": "ColumnModel",
139                             "header": "Company",
140                             "width": 75,
141                             "dataIndex": "company_id",
142                             "|renderer": "function(v) { return String.format('{0}', v); }",
143                             "|xns": "Roo.grid",
144                             "*prop": "colModel[]"
145                         },
146                         {
147                             "xtype": "ColumnModel",
148                             "header": "Role",
149                             "width": 200,
150                             "dataIndex": "role",
151                             "|renderer": "function(v) { return String.format('{0}', v); }",
152                             "|xns": "Roo.grid",
153                             "*prop": "colModel[]"
154                         },
155                         {
156                             "xtype": "ColumnModel",
157                             "header": "Active",
158                             "width": 75,
159                             "dataIndex": "active",
160                             "|renderer": "function(v) { return String.format('{0}', v); }",
161                             "|xns": "Roo.grid",
162                             "*prop": "colModel[]"
163                         },
164                         {
165                             "xtype": "ColumnModel",
166                             "header": "Remarks",
167                             "width": 200,
168                             "dataIndex": "remarks",
169                             "|renderer": "function(v) { return String.format('{0}', v); }",
170                             "|xns": "Roo.grid",
171                             "*prop": "colModel[]"
172                         },
173                         {
174                             "xtype": "ColumnModel",
175                             "header": "Passwd",
176                             "width": 200,
177                             "dataIndex": "passwd",
178                             "|renderer": "function(v) { return String.format('{0}', v); }",
179                             "|xns": "Roo.grid",
180                             "*prop": "colModel[]"
181                         },
182                         {
183                             "xtype": "ColumnModel",
184                             "header": "Owner",
185                             "width": 75,
186                             "dataIndex": "owner_id",
187                             "|renderer": "function(v) { return String.format('{0}', v); }",
188                             "|xns": "Roo.grid",
189                             "*prop": "colModel[]"
190                         },
191                         {
192                             "xtype": "ColumnModel",
193                             "header": "Lang",
194                             "width": 200,
195                             "dataIndex": "lang",
196                             "|renderer": "function(v) { return String.format('{0}', v); }",
197                             "|xns": "Roo.grid",
198                             "*prop": "colModel[]"
199                         },
200                         {
201                             "xtype": "ColumnModel",
202                             "header": "No reset sent",
203                             "width": 75,
204                             "dataIndex": "no_reset_sent",
205                             "|renderer": "function(v) { return String.format('{0}', v); }",
206                             "|xns": "Roo.grid",
207                             "*prop": "colModel[]"
208                         },
209                         {
210                             "xtype": "ColumnModel",
211                             "header": "Action type",
212                             "width": 200,
213                             "dataIndex": "action_type",
214                             "|renderer": "function(v) { return String.format('{0}', v); }",
215                             "|xns": "Roo.grid",
216                             "*prop": "colModel[]"
217                         },
218                         {
219                             "xtype": "ColumnModel",
220                             "header": "Project",
221                             "width": 75,
222                             "dataIndex": "project_id",
223                             "|renderer": "function(v) { return String.format('{0}', v); }",
224                             "|xns": "Roo.grid",
225                             "*prop": "colModel[]"
226                         }
227                     ]
228                 }
229             ]
230         }
231     ],
232     "permname": "",
233     "modOrder": "001"
234 }