d87f4f0cdd9957dcf96a2d489da73cee30cdf413
[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                                     "cls": "x-btn-text-icon",
73                                     "text": "Staff",
74                                     "xtype": "Button",
75                                     "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
76                                     "|xns": "Roo.Toolbar",
77                                     "listeners": {}
78                                 },
79                                 {
80                                     "text": "Edit",
81                                     "xtype": "Button",
82                                     "cls": "x-btn-text-icon",
83                                     "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
84                                     "listeners": {
85                                         "|click": "function()\n{\n    var s = _this.grid.getSelectionModel().getSelections();\n    if (!s.length || (s.length > 1))  {\n        Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n        return;\n    }\n    if (!_this.dialog) return;\n    _this.dialog.show(s[0].data, function() {\n        _this.grid.footer.onClick('first');\n    }); \n    \n}\n"
86                                     },
87                                     "|xns": "Roo.Toolbar"
88                                 },
89                                 {
90                                     "text": "Delete",
91                                     "cls": "x-btn-text-icon",
92                                     "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
93                                     "xtype": "Button",
94                                     "listeners": {
95                                         "|click": "function()\n{\n     Pman.genericDelete(_this, 'Person'); \n}\n        "
96                                     },
97                                     "|xns": "Roo.Toolbar"
98                                 }
99                             ]
100                         },
101                         {
102                             "xtype": "ColumnModel",
103                             "header": "Id",
104                             "width": 75,
105                             "dataIndex": "id",
106                             "|renderer": "function(v) { return String.format('{0}', v); }",
107                             "|xns": "Roo.grid",
108                             "*prop": "colModel[]"
109                         },
110                         {
111                             "xtype": "ColumnModel",
112                             "header": "Office",
113                             "width": 75,
114                             "dataIndex": "office_id",
115                             "|renderer": "function(v) { return String.format('{0}', v); }",
116                             "|xns": "Roo.grid",
117                             "*prop": "colModel[]"
118                         },
119                         {
120                             "xtype": "ColumnModel",
121                             "header": "Name",
122                             "width": 200,
123                             "dataIndex": "name",
124                             "|renderer": "function(v) { return String.format('{0}', v); }",
125                             "|xns": "Roo.grid",
126                             "*prop": "colModel[]"
127                         },
128                         {
129                             "xtype": "ColumnModel",
130                             "header": "Phone",
131                             "width": 200,
132                             "dataIndex": "phone",
133                             "|renderer": "function(v) { return String.format('{0}', v); }",
134                             "|xns": "Roo.grid",
135                             "*prop": "colModel[]"
136                         },
137                         {
138                             "xtype": "ColumnModel",
139                             "header": "Fax",
140                             "width": 200,
141                             "dataIndex": "fax",
142                             "|renderer": "function(v) { return String.format('{0}', v); }",
143                             "|xns": "Roo.grid",
144                             "*prop": "colModel[]"
145                         },
146                         {
147                             "xtype": "ColumnModel",
148                             "header": "Email",
149                             "width": 200,
150                             "dataIndex": "email",
151                             "|renderer": "function(v) { return String.format('{0}', v); }",
152                             "|xns": "Roo.grid",
153                             "*prop": "colModel[]"
154                         },
155                         {
156                             "xtype": "ColumnModel",
157                             "header": "Company",
158                             "width": 75,
159                             "dataIndex": "company_id",
160                             "|renderer": "function(v) { return String.format('{0}', v); }",
161                             "|xns": "Roo.grid",
162                             "*prop": "colModel[]"
163                         },
164                         {
165                             "xtype": "ColumnModel",
166                             "header": "Role",
167                             "width": 200,
168                             "dataIndex": "role",
169                             "|renderer": "function(v) { return String.format('{0}', v); }",
170                             "|xns": "Roo.grid",
171                             "*prop": "colModel[]"
172                         },
173                         {
174                             "xtype": "ColumnModel",
175                             "header": "Active",
176                             "width": 75,
177                             "dataIndex": "active",
178                             "|renderer": "function(v) { return String.format('{0}', v); }",
179                             "|xns": "Roo.grid",
180                             "*prop": "colModel[]"
181                         },
182                         {
183                             "xtype": "ColumnModel",
184                             "header": "Remarks",
185                             "width": 200,
186                             "dataIndex": "remarks",
187                             "|renderer": "function(v) { return String.format('{0}', v); }",
188                             "|xns": "Roo.grid",
189                             "*prop": "colModel[]"
190                         },
191                         {
192                             "xtype": "ColumnModel",
193                             "header": "Passwd",
194                             "width": 200,
195                             "dataIndex": "passwd",
196                             "|renderer": "function(v) { return String.format('{0}', v); }",
197                             "|xns": "Roo.grid",
198                             "*prop": "colModel[]"
199                         },
200                         {
201                             "xtype": "ColumnModel",
202                             "header": "Owner",
203                             "width": 75,
204                             "dataIndex": "owner_id",
205                             "|renderer": "function(v) { return String.format('{0}', v); }",
206                             "|xns": "Roo.grid",
207                             "*prop": "colModel[]"
208                         },
209                         {
210                             "xtype": "ColumnModel",
211                             "header": "Lang",
212                             "width": 200,
213                             "dataIndex": "lang",
214                             "|renderer": "function(v) { return String.format('{0}', v); }",
215                             "|xns": "Roo.grid",
216                             "*prop": "colModel[]"
217                         },
218                         {
219                             "xtype": "ColumnModel",
220                             "header": "No reset sent",
221                             "width": 75,
222                             "dataIndex": "no_reset_sent",
223                             "|renderer": "function(v) { return String.format('{0}', v); }",
224                             "|xns": "Roo.grid",
225                             "*prop": "colModel[]"
226                         },
227                         {
228                             "xtype": "ColumnModel",
229                             "header": "Action type",
230                             "width": 200,
231                             "dataIndex": "action_type",
232                             "|renderer": "function(v) { return String.format('{0}', v); }",
233                             "|xns": "Roo.grid",
234                             "*prop": "colModel[]"
235                         },
236                         {
237                             "xtype": "ColumnModel",
238                             "header": "Project",
239                             "width": 75,
240                             "dataIndex": "project_id",
241                             "|renderer": "function(v) { return String.format('{0}', v); }",
242                             "|xns": "Roo.grid",
243                             "*prop": "colModel[]"
244                         }
245                     ]
246                 }
247             ]
248         }
249     ],
250     "permname": "",
251     "modOrder": "001"
252 }