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