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