looking for wrong seperator
[Pman.Core] / Core.readers.js
1 //<script type="text/javascript">
2
3 Pman.Readers.Companies = {
4         root : 'data',
5         totalProperty : 'total',
6         id : 'id',
7         xtype : 'JsonReader',
8         fields : [
9                 'code',
10                 'name',
11                 'remarks',
12                 {name : 'owner_id',type : 'int'},
13                 'address',
14                 'tel',
15                 'fax',
16                 'email',
17                 {name : 'id',type : 'int'},
18                 {name : 'isOwner',type : 'int'},
19                 {name : 'logo_id',type : 'int'},
20                 'background_color',
21                 'comptype',
22                 'ava_craft',
23                 'url',
24                 {name : 'main_office_id',type : 'int'},
25                 {name : 'created_by',type : 'int'},
26                 {name : 'created_dt',type : 'date',dateFormat : 'Y-m-d H:i:s'},
27                 {name : 'updated_by',type : 'int'},
28                 {name : 'updated_dt',type : 'date',dateFormat : 'Y-m-d H:i:s'},
29                 'passwd',
30                 {name : 'logo_id_id',type : 'int'},
31                 'logo_id_filename',
32                 'logo_id_ontable',
33                 {name : 'logo_id_onid',type : 'int'},
34                 'logo_id_mimetype',
35                 {name : 'logo_id_width',type : 'int'},
36                 {name : 'logo_id_height',type : 'int'},
37                 {name : 'logo_id_filesize',type : 'int'},
38                 {name : 'logo_id_displayorder',type : 'int'},
39                 'logo_id_language',
40                 {name : 'logo_id_parent_image_id',type : 'int'},
41                 {name : 'logo_id_created',type : 'date',dateFormat : 'Y-m-d H:i:s'},
42                 'logo_id_imgtype',
43                 'logo_id_linkurl',
44                 'logo_id_descript',
45                 'logo_id_title',
46                 {name : 'owner_id_id',type : 'int'},
47                 {name : 'owner_id_office_id',type : 'int'},
48                 'owner_id_name',
49                 'owner_id_phone',
50                 'owner_id_fax',
51                 'owner_id_email',
52                 {name : 'owner_id_company_id',type : 'int'},
53                 'owner_id_role',
54                 {name : 'owner_id_active',type : 'int'},
55                 'owner_id_remarks',
56                 'owner_id_passwd',
57                 {name : 'owner_id_owner_id',type : 'int'},
58                 'owner_id_lang',
59                 {name : 'owner_id_no_reset_sent',type : 'int'},
60                 {name : 'owner_id_project_id',type : 'int'},
61                 'owner_id_action_type',
62                 {name : 'main_office_id_id',type : 'int'},
63                 {name : 'main_office_id_company_id',type : 'int'},
64                 'main_office_id_name',
65                 'main_office_id_address',
66                 'main_office_id_phone',
67                 'main_office_id_fax',
68                 'main_office_id_email',
69                 'main_office_id_role'
70         ]
71 };
72
73 Pman.Readers.Events = {
74         root : 'data',
75         totalProperty : 'total',
76         id : 'id',
77         xtype : 'JsonReader',
78         fields : [
79                 {name : 'id',type : 'int'},
80                 'person_name',
81                 {name : 'event_when',type : 'date',dateFormat : 'Y-m-d H:i:s'},
82                 'action',
83                 'ipaddr',
84                 {name : 'on_id',type : 'int'},
85                 'on_table',
86                 {name : 'person_id',type : 'int'},
87                 'remarks',
88                 {name : 'person_id_id',type : 'int'},
89                 {name : 'person_id_office_id',type : 'int'},
90                 'person_id_name',
91                 'person_id_phone',
92                 'person_id_fax',
93                 'person_id_email',
94                 {name : 'person_id_company_id',type : 'int'},
95                 'person_id_role',
96                 {name : 'person_id_active',type : 'int'},
97                 'person_id_remarks',
98                 'person_id_passwd',
99                 {name : 'person_id_owner_id',type : 'int'},
100                 'person_id_lang',
101                 {name : 'person_id_no_reset_sent',type : 'int'},
102                 {name : 'person_id_project_id',type : 'int'},
103                 'person_id_action_type'
104         ]
105 };
106
107 Pman.Readers.Group_Members = {
108         root : 'data',
109         totalProperty : 'total',
110         id : 'id',
111         xtype : 'JsonReader',
112         fields : [
113                 {name : 'group_id',type : 'int'},
114                 {name : 'id',type : 'int'},
115                 {name : 'user_id',type : 'int'},
116                 {name : 'group_id_id',type : 'int'},
117                 'group_id_name',
118                 {name : 'group_id_type',type : 'int'},
119                 {name : 'group_id_leader',type : 'int'},
120                 {name : 'user_id_id',type : 'int'},
121                 {name : 'user_id_office_id',type : 'int'},
122                 'user_id_name',
123                 'user_id_phone',
124                 'user_id_fax',
125                 'user_id_email',
126                 {name : 'user_id_company_id',type : 'int'},
127                 'user_id_role',
128                 {name : 'user_id_active',type : 'int'},
129                 'user_id_remarks',
130                 'user_id_passwd',
131                 {name : 'user_id_owner_id',type : 'int'},
132                 'user_id_lang',
133                 {name : 'user_id_no_reset_sent',type : 'int'},
134                 {name : 'user_id_project_id',type : 'int'},
135                 'user_id_action_type'
136         ]
137 };
138
139 Pman.Readers.Group_Rights = {
140         root : 'data',
141         totalProperty : 'total',
142         id : 'id',
143         xtype : 'JsonReader',
144         fields : [
145                 'rightname',
146                 {name : 'group_id',type : 'int'},
147                 'accessmask',
148                 {name : 'id',type : 'int'},
149                 {name : 'group_id_id',type : 'int'},
150                 'group_id_name',
151                 {name : 'group_id_type',type : 'int'},
152                 {name : 'group_id_leader',type : 'int'}
153         ]
154 };
155
156 Pman.Readers.Groups = {
157         root : 'data',
158         totalProperty : 'total',
159         id : 'id',
160         xtype : 'JsonReader',
161         fields : [
162                 {name : 'id',type : 'int'},
163                 'name',
164                 {name : 'type',type : 'int'},
165                 {name : 'leader',type : 'int'},
166                 {name : 'leader_id',type : 'int'},
167                 {name : 'leader_office_id',type : 'int'},
168                 'leader_name',
169                 'leader_phone',
170                 'leader_fax',
171                 'leader_email',
172                 {name : 'leader_company_id',type : 'int'},
173                 'leader_role',
174                 {name : 'leader_active',type : 'int'},
175                 'leader_remarks',
176                 'leader_passwd',
177                 {name : 'leader_owner_id',type : 'int'},
178                 'leader_lang',
179                 {name : 'leader_no_reset_sent',type : 'int'},
180                 {name : 'leader_project_id',type : 'int'},
181                 'leader_action_type'
182         ]
183 };
184
185 Pman.Readers.Images = {
186         root : 'data',
187         totalProperty : 'total',
188         id : 'id',
189         xtype : 'JsonReader',
190         fields : [
191                 {name : 'id',type : 'int'},
192                 'filename',
193                 'ontable',
194                 {name : 'onid',type : 'int'},
195                 'mimetype',
196                 {name : 'width',type : 'int'},
197                 {name : 'height',type : 'int'},
198                 {name : 'filesize',type : 'int'},
199                 {name : 'displayorder',type : 'int'},
200                 'language',
201                 {name : 'parent_image_id',type : 'int'},
202                 {name : 'created',type : 'date',dateFormat : 'Y-m-d H:i:s'},
203                 'imgtype',
204                 'linkurl',
205                 'descript',
206                 'title',
207                 {name : 'parent_image_id_id',type : 'int'},
208                 'parent_image_id_filename',
209                 'parent_image_id_ontable',
210                 {name : 'parent_image_id_onid',type : 'int'},
211                 'parent_image_id_mimetype',
212                 {name : 'parent_image_id_width',type : 'int'},
213                 {name : 'parent_image_id_height',type : 'int'},
214                 {name : 'parent_image_id_filesize',type : 'int'},
215                 {name : 'parent_image_id_displayorder',type : 'int'},
216                 'parent_image_id_language',
217                 {name : 'parent_image_id_parent_image_id',type : 'int'},
218                 {name : 'parent_image_id_created',type : 'date',dateFormat : 'Y-m-d H:i:s'},
219                 'parent_image_id_imgtype',
220                 'parent_image_id_linkurl',
221                 'parent_image_id_descript',
222                 'parent_image_id_title'
223         ]
224 };
225
226 Pman.Readers.Office = {
227         root : 'data',
228         totalProperty : 'total',
229         id : 'id',
230         xtype : 'JsonReader',
231         fields : [
232                 {name : 'id',type : 'int'},
233                 {name : 'company_id',type : 'int'},
234                 'name',
235                 'address',
236                 'phone',
237                 'fax',
238                 'email',
239                 'role',
240                 'company_id_code',
241                 'company_id_name',
242                 'company_id_remarks',
243                 {name : 'company_id_owner_id',type : 'int'},
244                 'company_id_address',
245                 'company_id_tel',
246                 'company_id_fax',
247                 'company_id_email',
248                 {name : 'company_id_id',type : 'int'},
249                 {name : 'company_id_isOwner',type : 'int'},
250                 {name : 'company_id_logo_id',type : 'int'},
251                 'company_id_background_color',
252                 'company_id_comptype',
253                 'company_id_ava_craft',
254                 'company_id_url',
255                 {name : 'company_id_main_office_id',type : 'int'},
256                 {name : 'company_id_created_by',type : 'int'},
257                 {name : 'company_id_created_dt',type : 'date',dateFormat : 'Y-m-d H:i:s'},
258                 {name : 'company_id_updated_by',type : 'int'},
259                 {name : 'company_id_updated_dt',type : 'date',dateFormat : 'Y-m-d H:i:s'},
260                 'company_id_passwd'
261         ]
262 };
263
264 Pman.Readers.Person = {
265         root : 'data',
266         totalProperty : 'total',
267         id : 'id',
268         xtype : 'JsonReader',
269         fields : [
270                 {name : 'id',type : 'int'},
271                 {name : 'office_id',type : 'int'},
272                 'name',
273                 'phone',
274                 'fax',
275                 'email',
276                 {name : 'company_id',type : 'int'},
277                 'role',
278                 {name : 'active',type : 'int'},
279                 'remarks',
280                 'passwd',
281                 {name : 'owner_id',type : 'int'},
282                 'lang',
283                 {name : 'no_reset_sent',type : 'int'},
284                 {name : 'project_id',type : 'int'},
285                 'action_type',
286                 {name : 'office_id_id',type : 'int'},
287                 {name : 'office_id_company_id',type : 'int'},
288                 'office_id_name',
289                 'office_id_address',
290                 'office_id_phone',
291                 'office_id_fax',
292                 'office_id_email',
293                 'office_id_role',
294                 'company_id_code',
295                 'company_id_name',
296                 'company_id_remarks',
297                 {name : 'company_id_owner_id',type : 'int'},
298                 'company_id_address',
299                 'company_id_tel',
300                 'company_id_fax',
301                 'company_id_email',
302                 {name : 'company_id_id',type : 'int'},
303                 {name : 'company_id_isOwner',type : 'int'},
304                 {name : 'company_id_logo_id',type : 'int'},
305                 'company_id_background_color',
306                 'company_id_comptype',
307                 'company_id_ava_craft',
308                 'company_id_url',
309                 {name : 'company_id_main_office_id',type : 'int'},
310                 {name : 'company_id_created_by',type : 'int'},
311                 {name : 'company_id_created_dt',type : 'date',dateFormat : 'Y-m-d H:i:s'},
312                 {name : 'company_id_updated_by',type : 'int'},
313                 {name : 'company_id_updated_dt',type : 'date',dateFormat : 'Y-m-d H:i:s'},
314                 'company_id_passwd',
315                 {name : 'project_id_id',type : 'int'},
316                 'project_id_name',
317                 'project_id_remarks',
318                 {name : 'project_id_owner_id',type : 'int'},
319                 'project_id_code',
320                 {name : 'project_id_active',type : 'int'},
321                 'project_id_type',
322                 {name : 'project_id_client_id',type : 'int'},
323                 {name : 'project_id_team_id',type : 'int'},
324                 'project_id_file_location',
325                 {name : 'project_id_open_date',type : 'date',dateFormat : 'Y-m-d'},
326                 {name : 'project_id_open_by',type : 'int'},
327                 'project_id_countries',
328                 'project_id_languages',
329                 {name : 'project_id_close_date',type : 'date',dateFormat : 'Y-m-d'},
330                 {name : 'project_id_agency_id',type : 'int'},
331                 {name : 'owner_id_id',type : 'int'},
332                 {name : 'owner_id_office_id',type : 'int'},
333                 'owner_id_name',
334                 'owner_id_phone',
335                 'owner_id_fax',
336                 'owner_id_email',
337                 {name : 'owner_id_company_id',type : 'int'},
338                 'owner_id_role',
339                 {name : 'owner_id_active',type : 'int'},
340                 'owner_id_remarks',
341                 'owner_id_passwd',
342                 {name : 'owner_id_owner_id',type : 'int'},
343                 'owner_id_lang',
344                 {name : 'owner_id_no_reset_sent',type : 'int'},
345                 {name : 'owner_id_project_id',type : 'int'},
346                 'owner_id_action_type'
347         ]
348 };
349
350 Pman.Readers.Projects = {
351         root : 'data',
352         totalProperty : 'total',
353         id : 'id',
354         xtype : 'JsonReader',
355         fields : [
356                 {name : 'id',type : 'int'},
357                 'name',
358                 'remarks',
359                 {name : 'owner_id',type : 'int'},
360                 'code',
361                 {name : 'active',type : 'int'},
362                 'type',
363                 {name : 'client_id',type : 'int'},
364                 {name : 'team_id',type : 'int'},
365                 'file_location',
366                 {name : 'open_date',type : 'date',dateFormat : 'Y-m-d'},
367                 {name : 'open_by',type : 'int'},
368                 'countries',
369                 'languages',
370                 {name : 'close_date',type : 'date',dateFormat : 'Y-m-d'},
371                 {name : 'agency_id',type : 'int'},
372                 'client_id_code',
373                 'client_id_name',
374                 'client_id_remarks',
375                 {name : 'client_id_owner_id',type : 'int'},
376                 'client_id_address',
377                 'client_id_tel',
378                 'client_id_fax',
379                 'client_id_email',
380                 {name : 'client_id_id',type : 'int'},
381                 {name : 'client_id_isOwner',type : 'int'},
382                 {name : 'client_id_logo_id',type : 'int'},
383                 'client_id_background_color',
384                 'client_id_comptype',
385                 'client_id_ava_craft',
386                 'client_id_url',
387                 {name : 'client_id_main_office_id',type : 'int'},
388                 {name : 'client_id_created_by',type : 'int'},
389                 {name : 'client_id_created_dt',type : 'date',dateFormat : 'Y-m-d H:i:s'},
390                 {name : 'client_id_updated_by',type : 'int'},
391                 {name : 'client_id_updated_dt',type : 'date',dateFormat : 'Y-m-d H:i:s'},
392                 'client_id_passwd',
393                 'agency_id_code',
394                 'agency_id_name',
395                 'agency_id_remarks',
396                 {name : 'agency_id_owner_id',type : 'int'},
397                 'agency_id_address',
398                 'agency_id_tel',
399                 'agency_id_fax',
400                 'agency_id_email',
401                 {name : 'agency_id_id',type : 'int'},
402                 {name : 'agency_id_isOwner',type : 'int'},
403                 {name : 'agency_id_logo_id',type : 'int'},
404                 'agency_id_background_color',
405                 'agency_id_comptype',
406                 'agency_id_ava_craft',
407                 'agency_id_url',
408                 {name : 'agency_id_main_office_id',type : 'int'},
409                 {name : 'agency_id_created_by',type : 'int'},
410                 {name : 'agency_id_created_dt',type : 'date',dateFormat : 'Y-m-d H:i:s'},
411                 {name : 'agency_id_updated_by',type : 'int'},
412                 {name : 'agency_id_updated_dt',type : 'date',dateFormat : 'Y-m-d H:i:s'},
413                 'agency_id_passwd',
414                 {name : 'team_id_id',type : 'int'},
415                 'team_id_name',
416                 {name : 'team_id_type',type : 'int'},
417                 {name : 'team_id_leader',type : 'int'},
418                 {name : 'open_by_id',type : 'int'},
419                 {name : 'open_by_office_id',type : 'int'},
420                 'open_by_name',
421                 'open_by_phone',
422                 'open_by_fax',
423                 'open_by_email',
424                 {name : 'open_by_company_id',type : 'int'},
425                 'open_by_role',
426                 {name : 'open_by_active',type : 'int'},
427                 'open_by_remarks',
428                 'open_by_passwd',
429                 {name : 'open_by_owner_id',type : 'int'},
430                 'open_by_lang',
431                 {name : 'open_by_no_reset_sent',type : 'int'},
432                 {name : 'open_by_project_id',type : 'int'},
433                 'open_by_action_type',
434                 {name : 'owner_id_id',type : 'int'},
435                 {name : 'owner_id_office_id',type : 'int'},
436                 'owner_id_name',
437                 'owner_id_phone',
438                 'owner_id_fax',
439                 'owner_id_email',
440                 {name : 'owner_id_company_id',type : 'int'},
441                 'owner_id_role',
442                 {name : 'owner_id_active',type : 'int'},
443                 'owner_id_remarks',
444                 'owner_id_passwd',
445                 {name : 'owner_id_owner_id',type : 'int'},
446                 'owner_id_lang',
447                 {name : 'owner_id_no_reset_sent',type : 'int'},
448                 {name : 'owner_id_project_id',type : 'int'},
449                 'owner_id_action_type'
450         ]
451 };
452
453 Pman.Readers.I18n = {
454         root : 'data',
455         totalProperty : 'total',
456         id : 'id',
457         xtype : 'JsonReader',
458         fields : [
459                 {name : 'id',type : 'int'},
460                 'ltype',
461                 'lkey',
462                 'inlang',
463                 'lval'
464         ]
465 };
466
467 Pman.Readers.Proftp_groups = {
468         root : 'data',
469         totalProperty : 'total',
470         id : 'id',
471         xtype : 'JsonReader',
472         fields : [
473                 {name : 'id',type : 'int'},
474                 {name : 'grpid',type : 'int'},
475                 'grpname',
476                 'grpmembers'
477         ]
478 };
479
480 Pman.Readers.Translations = {
481         root : 'data',
482         totalProperty : 'total',
483         id : 'id',
484         xtype : 'JsonReader',
485         fields : [
486                 {name : 'id',type : 'int'},
487                 'module',
488                 'tfile',
489                 'tlang',
490                 'tkey',
491                 'tval'
492         ]
493 };